Class: Softlayer::Layout::Container

Inherits:
Entity show all
Defined in:
lib/softlayer/layout/container.rb,
lib/softlayer/layout/container/type.rb

Defined Under Namespace

Classes: Representer, Type

Constant Summary collapse

SERVICE =
'SoftLayer_Layout_Container'

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

#id ⇒ Object

Returns the value of attribute id.



6
7
8
# File 'lib/softlayer/layout/container.rb', line 6

def id
  @id
end

#keyname ⇒ Object

Returns the value of attribute keyname.



7
8
9
# File 'lib/softlayer/layout/container.rb', line 7

def keyname
  @keyname
end

#layout_container_type ⇒ Object

Returns the value of attribute layout_container_type.



11
12
13
# File 'lib/softlayer/layout/container.rb', line 11

def layout_container_type
  @layout_container_type
end

#layout_container_type_id ⇒ Object

Returns the value of attribute layout_container_type_id.



8
9
10
# File 'lib/softlayer/layout/container.rb', line 8

def layout_container_type_id
  @layout_container_type_id
end

#layout_item_count ⇒ Object

Returns the value of attribute layout_item_count.



10
11
12
# File 'lib/softlayer/layout/container.rb', line 10

def layout_item_count
  @layout_item_count
end

#layout_items ⇒ Object

Returns the value of attribute layout_items.



12
13
14
# File 'lib/softlayer/layout/container.rb', line 12

def layout_items
  @layout_items
end

#name ⇒ Object

Returns the value of attribute name.



9
10
11
# File 'lib/softlayer/layout/container.rb', line 9

def name
  @name
end

Class Method Details

.get_all_objects ⇒ Object



14
15
16
# File 'lib/softlayer/layout/container.rb', line 14

def self.get_all_objects
  request(:get_all_objects, Array[Softlayer::Layout::Container])
end

Instance Method Details

#get_layout_container_type ⇒ Object



18
19
20
# File 'lib/softlayer/layout/container.rb', line 18

def get_layout_container_type
  request(:get_layout_container_type, Softlayer::Layout::Container::Type)
end

#get_layout_items ⇒ Object



22
23
24
# File 'lib/softlayer/layout/container.rb', line 22

def get_layout_items
  request(:get_layout_items, Array[Softlayer::Layout::Item])
end

#get_object ⇒ Object



26
27
28
# File 'lib/softlayer/layout/container.rb', line 26

def get_object
  request(:get_object, Softlayer::Layout::Container)
end