Class: OneviewSDK::FirmwareDriver

Inherits:
Resource
  • Object
show all
Defined in:
lib/oneview-sdk/resource/firmware_driver.rb

Overview

Firmware driver resource implementation

Constant Summary collapse

BASE_URI =
'/rest/firmware-drivers'.freeze

Instance Attribute Summary

Attributes inherited from Resource

#api_version, #client, #data, #logger

Instance Method Summary collapse

Methods inherited from Resource

#==, #[], #[]=, #create!, #delete, #each, #eql?, #exists?, find_by, from_file, get_all, #like?, #refresh, #retrieve!, #schema, schema, #set, #set_all, #to_file

Constructor Details

#initialize(client, params = {}, api_ver = nil) ⇒ FirmwareDriver

Returns a new instance of FirmwareDriver.



6
7
8
9
10
# File 'lib/oneview-sdk/resource/firmware_driver.rb', line 6

def initialize(client, params = {}, api_ver = nil)
  super
  # Default values
  @data['type'] ||= 'firmware-baselines'
end

Instance Method Details

#createObject



12
13
14
# File 'lib/oneview-sdk/resource/firmware_driver.rb', line 12

def create
  fail 'Method not available for this resource!'
end

#updateObject



16
17
18
# File 'lib/oneview-sdk/resource/firmware_driver.rb', line 16

def update
  create
end