class System
Attributes
id[R]
Public Class Methods
new(system)
click to toggle source
# File lib/satops/operator.rb, line 979 def initialize(system) @id=system['id'] @profile_name=system['profile_name'] @base_entitlement=system['base_entitlement'] @addon_entitlement=system[''] @auto_update=system['auto_update'] @release=system['release'] @address1=system['address1'] @address2=system['address2'] @city=system['city'] @state=system['state'] @country=system['country'] @building=system['building'] @room=system['room'] @rack=system['rack'] @description=system['description'] @hostname=system['hostname'] @last_boot=system['last_boot'] @osa_satus=system['osa_status'] @lock_status=system['lock_status'] @connection_path=system['connection_path'] @cpu=system['cpu'] @custom_values=system['custom_values='] @devices=system['devices'] @dmi=system['dmi'] @entitlements=system['entitlements'] @event_history=system['event_history'] @memory=system['memory'] @name=system['name'] @network=system['network'] @network_devices=system['network_devices'] @registration_date=system['registration_date'] @running_kernel=system['running_kernel'] @subscribed_base_channel=system['subscribed_base_channel'] end
reader(sat, id)
click to toggle source
# File lib/satops/operator.rb, line 959 def self.reader(sat, id) system={} system.merge!(sat.system.getDetails(id)) system.merge!({'connection_path'=>sat.system.getConnectionPath(id)}) system.merge!({'cpu'=>sat.system.getCpu(id)}) system.merge!({'custom_values'=>sat.system.getCustomValues(id)}) system.merge!({'devices'=>sat.system.getDevices(id)}) system.merge!({'dmi'=>sat.system.getDmi(id)}) system.merge!({'entitlements'=>sat.system.getEntitlements(id)}) system.merge!({'event_history'=>sat.system.getEventHistory(id)}) system.merge!({'memory'=>sat.system.getMemory(id)}) system.merge!({'name'=>sat.system.getName(id)}) system.merge!({'network'=>sat.system.getNetwork(id)}) system.merge!({'network_devices'=>sat.system.getNetworkDevices(id)}) system.merge!({'registration_date'=>sat.system.getRegistrationDate(id)}) system.merge!({'running_kernel'=>sat.system.getRunningKernel(id)}) system.merge!({'subscribed_base_channel'=>sat.system.getSubscribedBaseChannel(id)}) system end
Public Instance Methods
create(sat)
click to toggle source
System
profiles must be registered and cannot be created
# File lib/satops/operator.rb, line 1016 def create(sat) end
update(sat)
click to toggle source
# File lib/satops/operator.rb, line 1019 def update(sat) end