Class: Softlayer::Provisioning::Maintenance::Classification

Inherits:
Entity
  • Object
show all
Defined in:
lib/softlayer/provisioning/maintenance/classification.rb,
lib/softlayer/provisioning/maintenance/classification/item.rb,
lib/softlayer/provisioning/maintenance/classification/item/category.rb

Defined Under Namespace

Modules: Item Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Provisioning_Maintenance_Classification'

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

#idObject

Returns the value of attribute id.



7
8
9
# File 'lib/softlayer/provisioning/maintenance/classification.rb', line 7

def id
  @id
end

#item_categoriesObject

Returns the value of attribute item_categories.



11
12
13
# File 'lib/softlayer/provisioning/maintenance/classification.rb', line 11

def item_categories
  @item_categories
end

#item_category_countObject

Returns the value of attribute item_category_count.



10
11
12
# File 'lib/softlayer/provisioning/maintenance/classification.rb', line 10

def item_category_count
  @item_category_count
end

#slotsObject

Returns the value of attribute slots.



8
9
10
# File 'lib/softlayer/provisioning/maintenance/classification.rb', line 8

def slots
  @slots
end

#typeObject

Returns the value of attribute type.



9
10
11
# File 'lib/softlayer/provisioning/maintenance/classification.rb', line 9

def type
  @type
end

Class Method Details

.get_maintenance_classification(message) ⇒ Object

maintenance_classification_id



18
19
20
# File 'lib/softlayer/provisioning/maintenance/classification.rb', line 18

def self.get_maintenance_classification(message)
  request(:get_maintenance_classification, Array[Softlayer::Provisioning::Maintenance::Classification], message)
end

.get_maintenance_classifications_by_item_categoryObject



22
23
24
# File 'lib/softlayer/provisioning/maintenance/classification.rb', line 22

def self.get_maintenance_classifications_by_item_category
  request(:get_maintenance_classifications_by_item_category, Array[Softlayer::Provisioning::Maintenance::Classification::Item::Category])
end

Instance Method Details

#get_item_categoriesObject



13
14
15
# File 'lib/softlayer/provisioning/maintenance/classification.rb', line 13

def get_item_categories
  request(:get_item_categories, Array[Softlayer::Provisioning::Maintenance::Classification::Item::Category])
end

#get_objectObject



26
27
28
# File 'lib/softlayer/provisioning/maintenance/classification.rb', line 26

def get_object
  request(:get_object, Softlayer::Provisioning::Maintenance::Classification)
end