Class: Softlayer::User::Customer::External::Binding::Phone
Defined Under Namespace
Classes: Representer
Constant Summary
collapse
- SERVICE =
'SoftLayer_User_Customer_External_Binding_Phone'
Instance Attribute Summary collapse
#user
#active, #attribute_count, #attributes, #billing_item, #create_date, #external_id, #id, #note, #password, #type, #type_id, #user_id, #vendor, #vendor_id
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
#binding_status ⇒ Object
Returns the value of attribute binding_status.
8
9
10
|
# File 'lib/softlayer/user/customer/external/binding/phone.rb', line 8
def binding_status
@binding_status
end
|
#pin_length ⇒ Object
Returns the value of attribute pin_length.
9
10
11
|
# File 'lib/softlayer/user/customer/external/binding/phone.rb', line 9
def pin_length
@pin_length
end
|
Instance Method Details
#check_phone_validation_result(token = nil) ⇒ Object
11
12
13
14
|
# File 'lib/softlayer/user/customer/external/binding/phone.rb', line 11
def check_phone_validation_result(token = nil)
message = {token: token}
request(:check_phone_validation_result, Boolean, message)
end
|
#delete_object ⇒ Object
16
17
18
|
# File 'lib/softlayer/user/customer/external/binding/phone.rb', line 16
def delete_object
request(:delete_object, Boolean)
end
|
#disable(reason = nil) ⇒ Object
20
21
22
23
|
# File 'lib/softlayer/user/customer/external/binding/phone.rb', line 20
def disable(reason = nil)
message = {reason: reason}
request(:disable, Boolean, message)
end
|
#enable ⇒ Object
25
26
27
|
# File 'lib/softlayer/user/customer/external/binding/phone.rb', line 25
def enable
request(:enable, Boolean)
end
|
#get_all_authentication_modes ⇒ Object
29
30
31
|
# File 'lib/softlayer/user/customer/external/binding/phone.rb', line 29
def get_all_authentication_modes
request(:get_all_authentication_modes, Array[String])
end
|
#get_all_authentication_pin_modes(authentication_mode_key_name = nil) ⇒ Object
33
34
35
36
|
# File 'lib/softlayer/user/customer/external/binding/phone.rb', line 33
def get_all_authentication_pin_modes(authentication_mode_key_name = nil)
message = {authentication_mode_key_name: authentication_mode_key_name}
request(:get_all_authentication_pin_modes, Array[String], message)
end
|
#get_authentication_mode ⇒ Object
#get_billing_item ⇒ Object
46
47
48
|
# File 'lib/softlayer/user/customer/external/binding/phone.rb', line 46
def get_billing_item
request(:get_billing_item, Softlayer::Billing::Item)
end
|
#get_binding_status ⇒ Object
50
51
52
|
# File 'lib/softlayer/user/customer/external/binding/phone.rb', line 50
def get_binding_status
request(:get_binding_status, String)
end
|
#get_note ⇒ Object
54
55
56
|
# File 'lib/softlayer/user/customer/external/binding/phone.rb', line 54
def get_note
request(:get_note, String)
end
|
#get_phone_app_activation_code ⇒ Object
62
63
64
|
# File 'lib/softlayer/user/customer/external/binding/phone.rb', line 62
def get_phone_app_activation_code
request(:get_phone_app_activation_code, Array[Softlayer::User::External::Binding::Attribute])
end
|
#get_phone_data ⇒ Object
66
67
68
|
# File 'lib/softlayer/user/customer/external/binding/phone.rb', line 66
def get_phone_data
request(:get_phone_data, Array[Softlayer::Container::User::Data::Phone])
end
|
#get_pin_length ⇒ Object
70
71
72
|
# File 'lib/softlayer/user/customer/external/binding/phone.rb', line 70
def get_pin_length
request(:get_pin_length, String)
end
|
#get_user ⇒ Object
78
79
80
|
# File 'lib/softlayer/user/customer/external/binding/phone.rb', line 78
def get_user
request(:get_user, Softlayer::User::Customer)
end
|
#request_phone_validation(phone_data = nil) ⇒ Object
86
87
88
89
|
# File 'lib/softlayer/user/customer/external/binding/phone.rb', line 86
def request_phone_validation(phone_data = nil)
message = {phone_data: phone_data}
request(:request_phone_validation, String, message)
end
|
#update_authentication_mode(mode = nil) ⇒ Object
91
92
93
94
|
# File 'lib/softlayer/user/customer/external/binding/phone.rb', line 91
def update_authentication_mode(mode = nil)
message = {mode: mode}
request(:update_authentication_mode, Boolean, message)
end
|
#update_note(text = nil) ⇒ Object
96
97
98
99
|
# File 'lib/softlayer/user/customer/external/binding/phone.rb', line 96
def update_note(text = nil)
message = {text: text}
request(:update_note, Boolean, message)
end
|
#update_phone(phone_data = nil) ⇒ Object
101
102
103
104
|
# File 'lib/softlayer/user/customer/external/binding/phone.rb', line 101
def update_phone(phone_data = nil)
message = {phone_data: phone_data}
request(:update_phone, Boolean, message)
end
|