Class: Softlayer::Layout::Profile
- 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
Defined Under Namespace
Classes: Containers, Customer, Preference, Representer
Constant Summary collapse
- SERVICE =
'SoftLayer_Layout_Profile'
Instance Attribute Summary collapse
-
#active_flag ⇒ Object
Returns the value of attribute active_flag.
-
#create_date ⇒ Object
Returns the value of attribute create_date.
-
#id ⇒ Object
Returns the value of attribute id.
-
#layout_container_count ⇒ Object
Returns the value of attribute layout_container_count.
-
#layout_containers ⇒ Object
Returns the value of attribute layout_containers.
-
#layout_preference_count ⇒ Object
Returns the value of attribute layout_preference_count.
-
#layout_preferences ⇒ Object
Returns the value of attribute layout_preferences.
-
#modify_date ⇒ Object
Returns the value of attribute modify_date.
-
#name ⇒ Object
Returns the value of attribute name.
-
#user_record_id ⇒ Object
Returns the value of attribute user_record_id.
Class Method Summary collapse
Instance Method Summary collapse
- #delete_object ⇒ Object
- #edit_object(template_object = nil) ⇒ Object
- #get_layout_containers ⇒ Object
- #get_layout_preferences ⇒ Object
- #get_object ⇒ Object
- #modify_preference(template_object = nil) ⇒ Object
- #modify_preferences(layout_preference_objects = nil) ⇒ Object
Methods inherited from Model
all, all_request_for, create, find, #init_headers, parse, request, #request, service_name, #service_name, #to_hash
Methods included from Model::Operations
extended, #filter, included, #limit, #mask, #request_headers
Instance Attribute Details
#active_flag ⇒ Object
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_date ⇒ Object
Returns the value of attribute create_date.
9 10 11 |
# File 'lib/softlayer/layout/profile.rb', line 9 def create_date @create_date end |
#id ⇒ Object
Returns the value of attribute id.
10 11 12 |
# File 'lib/softlayer/layout/profile.rb', line 10 def id @id end |
#layout_container_count ⇒ Object
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_containers ⇒ Object
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_count ⇒ Object
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_preferences ⇒ Object
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_date ⇒ Object
Returns the value of attribute modify_date.
11 12 13 |
# File 'lib/softlayer/layout/profile.rb', line 11 def modify_date @modify_date end |
#name ⇒ Object
Returns the value of attribute name.
12 13 14 |
# File 'lib/softlayer/layout/profile.rb', line 12 def name @name end |
#user_record_id ⇒ Object
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(template_object = nil) ⇒ Object
19 20 21 22 |
# File 'lib/softlayer/layout/profile.rb', line 19 def self.create_object(template_object = nil) = {template_object: template_object} request(:create_object, Boolean, ) end |
Instance Method Details
#delete_object ⇒ Object
24 25 26 |
# File 'lib/softlayer/layout/profile.rb', line 24 def delete_object request(:delete_object, Boolean) end |
#edit_object(template_object = nil) ⇒ Object
28 29 30 31 |
# File 'lib/softlayer/layout/profile.rb', line 28 def edit_object(template_object = nil) = {template_object: template_object} request(:edit_object, Boolean, ) end |
#get_layout_containers ⇒ Object
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_preferences ⇒ Object
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_object ⇒ Object
41 42 43 |
# File 'lib/softlayer/layout/profile.rb', line 41 def get_object request(:get_object, Softlayer::Layout::Profile) end |
#modify_preference(template_object = nil) ⇒ Object
45 46 47 48 |
# File 'lib/softlayer/layout/profile.rb', line 45 def modify_preference(template_object = nil) = {template_object: template_object} request(:modify_preference, Softlayer::Layout::Profile::Preference, ) end |
#modify_preferences(layout_preference_objects = nil) ⇒ Object
50 51 52 53 |
# File 'lib/softlayer/layout/profile.rb', line 50 def modify_preferences(layout_preference_objects = nil) = {layout_preference_objects: layout_preference_objects} request(:modify_preferences, Array[Softlayer::Layout::Profile::Preference], ) end |