Class: Softlayer::Hardware::Component::Model

Inherits:
Entity
  • Object
show all
Defined in:
lib/softlayer/hardware/component/model.rb,
lib/softlayer/hardware/component/model/generic.rb,
lib/softlayer/hardware/component/model/attribute.rb,
lib/softlayer/hardware/component/model/architecture.rb,
lib/softlayer/hardware/component/model/attribute/type.rb,
lib/softlayer/hardware/component/model/architecture/type.rb,
lib/softlayer/hardware/component/model/generic/attribute.rb,
lib/softlayer/hardware/component/model/generic/marketing_feature.rb

Defined Under Namespace

Modules: Architecture Classes: Attribute, Generic, Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Hardware_Component_Model'

Instance Attribute 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

#architecture_typeObject

Returns the value of attribute architecture_type.



23
24
25
# File 'lib/softlayer/hardware/component/model.rb', line 23

def architecture_type
  @architecture_type
end

#architecture_type_idObject

Returns the value of attribute architecture_type_id.



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

def architecture_type_id
  @architecture_type_id
end

#attribute_countObject

Returns the value of attribute attribute_count.



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

def attribute_count
  @attribute_count
end

#attributesObject

Returns the value of attribute attributes.



24
25
26
# File 'lib/softlayer/hardware/component/model.rb', line 24

def attributes
  @attributes
end

#capacityObject

Returns the value of attribute capacity.



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

def capacity
  @capacity
end

#compatible_array_type_countObject

Returns the value of attribute compatible_array_type_count.



19
20
21
# File 'lib/softlayer/hardware/component/model.rb', line 19

def compatible_array_type_count
  @compatible_array_type_count
end

#compatible_array_typesObject

Returns the value of attribute compatible_array_types.



25
26
27
# File 'lib/softlayer/hardware/component/model.rb', line 25

def compatible_array_types
  @compatible_array_types
end

#compatible_child_component_model_countObject

Returns the value of attribute compatible_child_component_model_count.



20
21
22
# File 'lib/softlayer/hardware/component/model.rb', line 20

def compatible_child_component_model_count
  @compatible_child_component_model_count
end

#compatible_child_component_modelsObject

Returns the value of attribute compatible_child_component_models.



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

def compatible_child_component_models
  @compatible_child_component_models
end

#compatible_parent_component_model_countObject

Returns the value of attribute compatible_parent_component_model_count.



21
22
23
# File 'lib/softlayer/hardware/component/model.rb', line 21

def compatible_parent_component_model_count
  @compatible_parent_component_model_count
end

#compatible_parent_component_modelsObject

Returns the value of attribute compatible_parent_component_models.



27
28
29
# File 'lib/softlayer/hardware/component/model.rb', line 27

def compatible_parent_component_models
  @compatible_parent_component_models
end

#descriptionObject

Returns the value of attribute description.



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

def description
  @description
end

#hardware_componentsObject

Returns the value of attribute hardware_components.



28
29
30
# File 'lib/softlayer/hardware/component/model.rb', line 28

def hardware_components
  @hardware_components
end

#hardware_generic_component_modelObject

Returns the value of attribute hardware_generic_component_model.



29
30
31
# File 'lib/softlayer/hardware/component/model.rb', line 29

def hardware_generic_component_model
  @hardware_generic_component_model
end

#hardware_generic_component_model_idObject

Returns the value of attribute hardware_generic_component_model_id.



12
13
14
# File 'lib/softlayer/hardware/component/model.rb', line 12

def hardware_generic_component_model_id
  @hardware_generic_component_model_id
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#infiniband_compatible_attributeObject

Returns the value of attribute infiniband_compatible_attribute.



30
31
32
# File 'lib/softlayer/hardware/component/model.rb', line 30

def infiniband_compatible_attribute
  @infiniband_compatible_attribute
end

#is_infiniband_compatibleObject

Returns the value of attribute is_infiniband_compatible.



31
32
33
# File 'lib/softlayer/hardware/component/model.rb', line 31

def is_infiniband_compatible
  @is_infiniband_compatible
end

#long_descriptionObject

Returns the value of attribute long_description.



14
15
16
# File 'lib/softlayer/hardware/component/model.rb', line 14

def long_description
  @long_description
end

#manufacturerObject

Returns the value of attribute manufacturer.



15
16
17
# File 'lib/softlayer/hardware/component/model.rb', line 15

def manufacturer
  @manufacturer
end

#nameObject

Returns the value of attribute name.



16
17
18
# File 'lib/softlayer/hardware/component/model.rb', line 16

def name
  @name
end

#reboot_timeObject

Returns the value of attribute reboot_time.



32
33
34
# File 'lib/softlayer/hardware/component/model.rb', line 32

def reboot_time
  @reboot_time
end

#typeObject

Returns the value of attribute type.



33
34
35
# File 'lib/softlayer/hardware/component/model.rb', line 33

def type
  @type
end

#valid_attribute_type_countObject

Returns the value of attribute valid_attribute_type_count.



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

def valid_attribute_type_count
  @valid_attribute_type_count
end

#valid_attribute_typesObject

Returns the value of attribute valid_attribute_types.



34
35
36
# File 'lib/softlayer/hardware/component/model.rb', line 34

def valid_attribute_types
  @valid_attribute_types
end

#versionObject

Returns the value of attribute version.



17
18
19
# File 'lib/softlayer/hardware/component/model.rb', line 17

def version
  @version
end

Instance Method Details

#get_architecture_typeObject



36
37
38
# File 'lib/softlayer/hardware/component/model.rb', line 36

def get_architecture_type
  request(:get_architecture_type, Softlayer::Hardware::Component::Model::Architecture::Type)
end

#get_attributesObject



40
41
42
# File 'lib/softlayer/hardware/component/model.rb', line 40

def get_attributes
  request(:get_attributes, Array[Softlayer::Hardware::Component::Model::Attribute])
end

#get_compatible_array_typesObject



44
45
46
# File 'lib/softlayer/hardware/component/model.rb', line 44

def get_compatible_array_types
  request(:get_compatible_array_types, Array[Softlayer::Configuration::Storage::Group::Array::Type])
end

#get_compatible_child_component_modelsObject



48
49
50
# File 'lib/softlayer/hardware/component/model.rb', line 48

def get_compatible_child_component_models
  request(:get_compatible_child_component_models, Array[Softlayer::Hardware::Component::Model])
end

#get_compatible_parent_component_modelsObject



52
53
54
# File 'lib/softlayer/hardware/component/model.rb', line 52

def get_compatible_parent_component_models
  request(:get_compatible_parent_component_models, Array[Softlayer::Hardware::Component::Model])
end

#get_hardware_componentsObject



56
57
58
# File 'lib/softlayer/hardware/component/model.rb', line 56

def get_hardware_components
  request(:get_hardware_components, Array[Softlayer::Hardware::Component])
end

#get_hardware_generic_component_modelObject



60
61
62
# File 'lib/softlayer/hardware/component/model.rb', line 60

def get_hardware_generic_component_model
  request(:get_hardware_generic_component_model, Softlayer::Hardware::Component::Model::Generic)
end

#get_infiniband_compatible_attributeObject



64
65
66
# File 'lib/softlayer/hardware/component/model.rb', line 64

def get_infiniband_compatible_attribute
  request(:get_infiniband_compatible_attribute, Softlayer::Hardware::Component::Model::Attribute)
end

#get_is_infiniband_compatibleObject



68
69
70
# File 'lib/softlayer/hardware/component/model.rb', line 68

def get_is_infiniband_compatible
  request(:get_is_infiniband_compatible, Boolean)
end

#get_objectObject



72
73
74
# File 'lib/softlayer/hardware/component/model.rb', line 72

def get_object
  request(:get_object, Softlayer::Hardware::Component::Model)
end

#get_reboot_timeObject



76
77
78
# File 'lib/softlayer/hardware/component/model.rb', line 76

def get_reboot_time
  request(:get_reboot_time, Softlayer::Hardware::Component::Motherboard::Reboot::Time)
end

#get_typeObject



80
81
82
# File 'lib/softlayer/hardware/component/model.rb', line 80

def get_type
  request(:get_type, String)
end

#get_valid_attribute_typesObject



84
85
86
# File 'lib/softlayer/hardware/component/model.rb', line 84

def get_valid_attribute_types
  request(:get_valid_attribute_types, Array[Softlayer::Hardware::Component::Model::Attribute::Type])
end