Class: Softlayer::Configuration::Template

Inherits:
Entity
  • Object
show all
Defined in:
lib/softlayer/configuration/template.rb,
lib/softlayer/configuration/template/type.rb,
lib/softlayer/configuration/template/section.rb,
lib/softlayer/configuration/template/attribute.rb,
lib/softlayer/configuration/template/section/type.rb,
lib/softlayer/configuration/template/section/profile.rb,
lib/softlayer/configuration/template/section/attribute.rb,
lib/softlayer/configuration/template/section/reference.rb,
lib/softlayer/configuration/template/section/definition.rb,
lib/softlayer/configuration/template/section/definition/type.rb,
lib/softlayer/configuration/template/section/definition/group.rb,
lib/softlayer/configuration/template/section/definition/value.rb,
lib/softlayer/configuration/template/section/definition/attribute.rb,
lib/softlayer/configuration/template/section/definition/attribute/type.rb

Defined Under Namespace

Classes: Attribute, Representer, Section, Type

Constant Summary collapse

SERVICE =
'SoftLayer_Configuration_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

#account ⇒ Object

Returns the value of attribute account.



21
22
23
# File 'lib/softlayer/configuration/template.rb', line 21

def 
  @account
end

#account_id ⇒ Object

Returns the value of attribute account_id.



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

def 
  @account_id
end

#configuration_section_count ⇒ Object

Returns the value of attribute configuration_section_count.



17
18
19
# File 'lib/softlayer/configuration/template.rb', line 17

def configuration_section_count
  @configuration_section_count
end

#configuration_sections ⇒ Object

Returns the value of attribute configuration_sections.



22
23
24
# File 'lib/softlayer/configuration/template.rb', line 22

def configuration_sections
  @configuration_sections
end

#configuration_template_reference ⇒ Object

Returns the value of attribute configuration_template_reference.



23
24
25
# File 'lib/softlayer/configuration/template.rb', line 23

def configuration_template_reference
  @configuration_template_reference
end

#configuration_template_reference_count ⇒ Object

Returns the value of attribute configuration_template_reference_count.



18
19
20
# File 'lib/softlayer/configuration/template.rb', line 18

def configuration_template_reference_count
  @configuration_template_reference_count
end

#create_date ⇒ Object

Returns the value of attribute create_date.



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

def create_date
  @create_date
end

#default_value_count ⇒ Object

Returns the value of attribute default_value_count.



19
20
21
# File 'lib/softlayer/configuration/template.rb', line 19

def default_value_count
  @default_value_count
end

#default_values ⇒ Object

Returns the value of attribute default_values.



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

def default_values
  @default_values
end

#definition_count ⇒ Object

Returns the value of attribute definition_count.



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

def definition_count
  @definition_count
end

#definitions ⇒ Object

Returns the value of attribute definitions.



25
26
27
# File 'lib/softlayer/configuration/template.rb', line 25

def definitions
  @definitions
end

#description ⇒ Object

Returns the value of attribute description.



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

def description
  @description
end

#id ⇒ Object

Returns the value of attribute id.



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

def id
  @id
end

#item ⇒ Object

Returns the value of attribute item.



26
27
28
# File 'lib/softlayer/configuration/template.rb', line 26

def item
  @item
end

#item_id ⇒ Object

Returns the value of attribute item_id.



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

def item_id
  @item_id
end

#linked_section_references ⇒ Object

Returns the value of attribute linked_section_references.



27
28
29
# File 'lib/softlayer/configuration/template.rb', line 27

def linked_section_references
  @linked_section_references
end

#modify_date ⇒ Object

Returns the value of attribute modify_date.



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

def modify_date
  @modify_date
end

#name ⇒ Object

Returns the value of attribute name.



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

def name
  @name
end

#parent ⇒ Object

Returns the value of attribute parent.



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

def parent
  @parent
end

#parent_id ⇒ Object

Returns the value of attribute parent_id.



15
16
17
# File 'lib/softlayer/configuration/template.rb', line 15

def parent_id
  @parent_id
end

#user ⇒ Object

Returns the value of attribute user.



29
30
31
# File 'lib/softlayer/configuration/template.rb', line 29

def user
  @user
end

#user_record_id ⇒ Object

Returns the value of attribute user_record_id.



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

def user_record_id
  @user_record_id
end

Class Method Details

.get_all_objects ⇒ Object



49
50
51
# File 'lib/softlayer/configuration/template.rb', line 49

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

Instance Method Details

#copy_template(message) ⇒ Object

template_object



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

def copy_template(message)
  request(:copy_template, Softlayer::Configuration::Template, message)
end

#delete_object ⇒ Object



36
37
38
# File 'lib/softlayer/configuration/template.rb', line 36

def delete_object
  request(:delete_object, Boolean)
end

#edit_object(message) ⇒ Object

template_object



41
42
43
# File 'lib/softlayer/configuration/template.rb', line 41

def edit_object(message)
  request(:edit_object, Boolean, message)
end

#get_account ⇒ Object



45
46
47
# File 'lib/softlayer/configuration/template.rb', line 45

def 
  request(:get_account, Softlayer::)
end

#get_configuration_sections ⇒ Object



53
54
55
# File 'lib/softlayer/configuration/template.rb', line 53

def get_configuration_sections
  request(:get_configuration_sections, Array[Softlayer::Configuration::Template::Section])
end

#get_configuration_template_reference ⇒ Object



57
58
59
# File 'lib/softlayer/configuration/template.rb', line 57

def get_configuration_template_reference
  request(:get_configuration_template_reference, Array[Softlayer::Monitoring::Agent::Configuration::Template::Group::Reference])
end

#get_default_values ⇒ Object



61
62
63
# File 'lib/softlayer/configuration/template.rb', line 61

def get_default_values
  request(:get_default_values, Array[Softlayer::Configuration::Template::Section::Definition::Value])
end

#get_definitions ⇒ Object



65
66
67
# File 'lib/softlayer/configuration/template.rb', line 65

def get_definitions
  request(:get_definitions, Array[Softlayer::Configuration::Template::Section::Definition])
end

#get_item ⇒ Object



69
70
71
# File 'lib/softlayer/configuration/template.rb', line 69

def get_item
  request(:get_item, Softlayer::Product::Item)
end

#get_linked_section_references ⇒ Object



73
74
75
# File 'lib/softlayer/configuration/template.rb', line 73

def get_linked_section_references
  request(:get_linked_section_references, Softlayer::Configuration::Template::Section::Reference)
end

#get_object ⇒ Object



77
78
79
# File 'lib/softlayer/configuration/template.rb', line 77

def get_object
  request(:get_object, Softlayer::Configuration::Template)
end

#get_parent ⇒ Object



81
82
83
# File 'lib/softlayer/configuration/template.rb', line 81

def get_parent
  request(:get_parent, Softlayer::Configuration::Template)
end

#get_user ⇒ Object



85
86
87
# File 'lib/softlayer/configuration/template.rb', line 85

def get_user
  request(:get_user, Softlayer::User::Customer)
end

#update_default_values(message) ⇒ Object

configuration_values



90
91
92
# File 'lib/softlayer/configuration/template.rb', line 90

def update_default_values(message)
  request(:update_default_values, Boolean, message)
end