Class: Softlayer::Hardware::Component::Partition::OperatingSystem

Inherits:
Entity
  • Object
show all
Defined in:
lib/softlayer/hardware/component/partition/operating_system.rb

Defined Under Namespace

Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Hardware_Component_Partition_OperatingSystem'

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Model

all, all_request_for, create, find, #init_headers, parse, process_message, #request, request, service_name, #service_name, #to_hash, #to_softlayer

Methods included from Model::Operations

extended, #filter, included, #limit, #mask, #request_headers

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



7
8
9
# File 'lib/softlayer/hardware/component/partition/operating_system.rb', line 7

def description
  @description
end

#idObject

Returns the value of attribute id.



8
9
10
# File 'lib/softlayer/hardware/component/partition/operating_system.rb', line 8

def id
  @id
end

#notesObject

Returns the value of attribute notes.



9
10
11
# File 'lib/softlayer/hardware/component/partition/operating_system.rb', line 9

def notes
  @notes
end

#partition_template_countObject

Returns the value of attribute partition_template_count.



10
11
12
# File 'lib/softlayer/hardware/component/partition/operating_system.rb', line 10

def partition_template_count
  @partition_template_count
end

#partition_templatesObject

Returns the value of attribute partition_templates.



11
12
13
# File 'lib/softlayer/hardware/component/partition/operating_system.rb', line 11

def partition_templates
  @partition_templates
end

Class Method Details

.get_all_objectsObject



13
14
15
# File 'lib/softlayer/hardware/component/partition/operating_system.rb', line 13

def self.get_all_objects
  request(:get_all_objects, Array[Softlayer::Hardware::Component::Partition::OperatingSystem])
end

.get_by_description(message) ⇒ Object

description



18
19
20
# File 'lib/softlayer/hardware/component/partition/operating_system.rb', line 18

def self.get_by_description(message)
  request(:get_by_description, Softlayer::Hardware::Component::Partition::OperatingSystem, message)
end

Instance Method Details

#get_objectObject



22
23
24
# File 'lib/softlayer/hardware/component/partition/operating_system.rb', line 22

def get_object
  request(:get_object, Softlayer::Hardware::Component::Partition::OperatingSystem)
end

#get_partition_templatesObject



26
27
28
# File 'lib/softlayer/hardware/component/partition/operating_system.rb', line 26

def get_partition_templates
  request(:get_partition_templates, Array[Softlayer::Hardware::Component::Partition::Template])
end