Class: Softlayer::Layout::Profile::Customer
Defined Under Namespace
Classes: Representer
Constant Summary
collapse
- SERVICE =
'SoftLayer_Layout_Profile_Customer'
Instance Attribute Summary collapse
#active_flag, #create_date, #id, #layout_container_count, #layout_containers, #layout_preference_count, #layout_preferences, #modify_date, #name, #user_record_id
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Model
all, all_request_for, create, find, #init_headers, parse, request, #request, service_name, #service_name, #to_hash
extended, #filter, included, #limit, #mask, #request_headers
Instance Attribute Details
#user_record ⇒ Object
Returns the value of attribute user_record.
6
7
8
|
# File 'lib/softlayer/layout/profile/customer.rb', line 6
def user_record
@user_record
end
|
Class Method Details
.create_object(template_object = nil) ⇒ Object
8
9
10
11
|
# File 'lib/softlayer/layout/profile/customer.rb', line 8
def self.create_object(template_object = nil)
message = {template_object: template_object}
request(:create_object, Boolean, message)
end
|
Instance Method Details
#delete_object ⇒ Object
13
14
15
|
# File 'lib/softlayer/layout/profile/customer.rb', line 13
def delete_object
request(:delete_object, Boolean)
end
|
#edit_object(template_object = nil) ⇒ Object
17
18
19
20
|
# File 'lib/softlayer/layout/profile/customer.rb', line 17
def edit_object(template_object = nil)
message = {template_object: template_object}
request(:edit_object, Boolean, message)
end
|
#get_layout_containers ⇒ Object
22
23
24
|
# File 'lib/softlayer/layout/profile/customer.rb', line 22
def get_layout_containers
request(:get_layout_containers, Array[Softlayer::Layout::Container])
end
|
#get_layout_preferences ⇒ Object
26
27
28
|
# File 'lib/softlayer/layout/profile/customer.rb', line 26
def get_layout_preferences
request(:get_layout_preferences, Array[Softlayer::Layout::Profile::Preference])
end
|
#get_object ⇒ Object
30
31
32
|
# File 'lib/softlayer/layout/profile/customer.rb', line 30
def get_object
request(:get_object, Softlayer::Layout::Profile::Customer)
end
|
#get_user_record ⇒ Object
34
35
36
|
# File 'lib/softlayer/layout/profile/customer.rb', line 34
def get_user_record
request(:get_user_record, Softlayer::User::Customer)
end
|
#modify_preference(template_object = nil) ⇒ Object
38
39
40
41
|
# File 'lib/softlayer/layout/profile/customer.rb', line 38
def modify_preference(template_object = nil)
message = {template_object: template_object}
request(:modify_preference, Softlayer::Layout::Profile::Preference, message)
end
|
#modify_preferences(layout_preference_objects = nil) ⇒ Object
43
44
45
46
|
# File 'lib/softlayer/layout/profile/customer.rb', line 43
def modify_preferences(layout_preference_objects = nil)
message = {layout_preference_objects: layout_preference_objects}
request(:modify_preferences, Array[Softlayer::Layout::Profile::Preference], message)
end
|