Class: Softlayer::Resource::Group::Template

Inherits:
Entity
  • Object
show all
Defined in:
lib/softlayer/resource/group/template.rb,
lib/softlayer/resource/group/template/member.rb

Defined Under Namespace

Classes: Member, Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Resource_Group_Template'

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

#childrenObject

Returns the value of attribute children.



12
13
14
# File 'lib/softlayer/resource/group/template.rb', line 12

def children
  @children
end

#children_countObject

Returns the value of attribute children_count.



10
11
12
# File 'lib/softlayer/resource/group/template.rb', line 10

def children_count
  @children_count
end

#descriptionObject

Returns the value of attribute description.



7
8
9
# File 'lib/softlayer/resource/group/template.rb', line 7

def description
  @description
end

#idObject

Returns the value of attribute id.



8
9
10
# File 'lib/softlayer/resource/group/template.rb', line 8

def id
  @id
end

#key_nameObject

Returns the value of attribute key_name.



9
10
11
# File 'lib/softlayer/resource/group/template.rb', line 9

def key_name
  @key_name
end

#member_countObject

Returns the value of attribute member_count.



11
12
13
# File 'lib/softlayer/resource/group/template.rb', line 11

def member_count
  @member_count
end

#membersObject

Returns the value of attribute members.



13
14
15
# File 'lib/softlayer/resource/group/template.rb', line 13

def members
  @members
end

#packageObject

Returns the value of attribute package.



14
15
16
# File 'lib/softlayer/resource/group/template.rb', line 14

def package
  @package
end

Class Method Details

.get_all_objectsObject



16
17
18
# File 'lib/softlayer/resource/group/template.rb', line 16

def self.get_all_objects
  request(:get_all_objects, Array[Softlayer::Resource::Group::Template])
end

Instance Method Details

#get_childrenObject



20
21
22
# File 'lib/softlayer/resource/group/template.rb', line 20

def get_children
  request(:get_children, Array[Softlayer::Resource::Group::Template])
end

#get_membersObject



24
25
26
# File 'lib/softlayer/resource/group/template.rb', line 24

def get_members
  request(:get_members, Array[Softlayer::Resource::Group::Template::Member])
end

#get_objectObject



28
29
30
# File 'lib/softlayer/resource/group/template.rb', line 28

def get_object
  request(:get_object, Softlayer::Resource::Group::Template)
end

#get_packageObject



32
33
34
# File 'lib/softlayer/resource/group/template.rb', line 32

def get_package
  request(:get_package, Softlayer::Product::Package)
end