Class: Softlayer::Layout::Profile

Inherits:
Entity show all
Defined in:
lib/softlayer/layout/profile.rb,
lib/softlayer/layout/profile/customer.rb,
lib/softlayer/layout/profile/containers.rb,
lib/softlayer/layout/profile/preference.rb

Direct Known Subclasses

Customer

Defined Under Namespace

Classes: Containers, Customer, Preference, Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Layout_Profile'

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

#active_flagObject

Returns the value of attribute active_flag.



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

def active_flag
  @active_flag
end

#create_dateObject

Returns the value of attribute create_date.



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

def create_date
  @create_date
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#layout_container_countObject

Returns the value of attribute layout_container_count.



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

def layout_container_count
  @layout_container_count
end

#layout_containersObject

Returns the value of attribute layout_containers.



16
17
18
# File 'lib/softlayer/layout/profile.rb', line 16

def layout_containers
  @layout_containers
end

#layout_preference_countObject

Returns the value of attribute layout_preference_count.



15
16
17
# File 'lib/softlayer/layout/profile.rb', line 15

def layout_preference_count
  @layout_preference_count
end

#layout_preferencesObject

Returns the value of attribute layout_preferences.



17
18
19
# File 'lib/softlayer/layout/profile.rb', line 17

def layout_preferences
  @layout_preferences
end

#modify_dateObject

Returns the value of attribute modify_date.



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

def modify_date
  @modify_date
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#user_record_idObject

Returns the value of attribute user_record_id.



13
14
15
# File 'lib/softlayer/layout/profile.rb', line 13

def user_record_id
  @user_record_id
end

Class Method Details

.create_object(message) ⇒ Object

template_object



20
21
22
# File 'lib/softlayer/layout/profile.rb', line 20

def self.create_object(message)
  request(:create_object, Boolean, message)
end

Instance Method Details

#delete_objectObject



24
25
26
# File 'lib/softlayer/layout/profile.rb', line 24

def delete_object
  request(:delete_object, Boolean)
end

#edit_object(message) ⇒ Object

template_object



29
30
31
# File 'lib/softlayer/layout/profile.rb', line 29

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

#get_layout_containersObject



33
34
35
# File 'lib/softlayer/layout/profile.rb', line 33

def get_layout_containers
  request(:get_layout_containers, Array[Softlayer::Layout::Container])
end

#get_layout_preferencesObject



37
38
39
# File 'lib/softlayer/layout/profile.rb', line 37

def get_layout_preferences
  request(:get_layout_preferences, Array[Softlayer::Layout::Profile::Preference])
end

#get_objectObject



41
42
43
# File 'lib/softlayer/layout/profile.rb', line 41

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

#modify_preference(message) ⇒ Object

template_object



46
47
48
# File 'lib/softlayer/layout/profile.rb', line 46

def modify_preference(message)
  request(:modify_preference, Softlayer::Layout::Profile::Preference, message)
end

#modify_preferences(message) ⇒ Object

layout_preference_objects



51
52
53
# File 'lib/softlayer/layout/profile.rb', line 51

def modify_preferences(message)
  request(:modify_preferences, Array[Softlayer::Layout::Profile::Preference], message)
end