Class: Softlayer::User::Customer::External::Binding::Totp

Inherits:
Softlayer::User::Customer::External::Binding show all
Defined in:
lib/softlayer/user/customer/external/binding/totp.rb

Defined Under Namespace

Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_User_Customer_External_Binding_Totp'

Instance Attribute Summary

Attributes inherited from Softlayer::User::Customer::External::Binding

#user

Attributes inherited from External::Binding

#active, #attribute_count, #attributes, #billing_item, #create_date, #external_id, #id, #note, #password, #type, #type_id, #user_id, #vendor, #vendor_id

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

Class Method Details

.generate_secret_keyObject



30
31
32
# File 'lib/softlayer/user/customer/external/binding/totp.rb', line 30

def self.generate_secret_key
  request(:generate_secret_key, String)
end

Instance Method Details

#activateObject



9
10
11
# File 'lib/softlayer/user/customer/external/binding/totp.rb', line 9

def activate
  request(:activate, Boolean)
end

#deactivateObject



13
14
15
# File 'lib/softlayer/user/customer/external/binding/totp.rb', line 13

def deactivate
  request(:deactivate, Boolean)
end

#delete_objectObject



17
18
19
# File 'lib/softlayer/user/customer/external/binding/totp.rb', line 17

def delete_object
  request(:delete_object, Boolean)
end

#disable(message) ⇒ Object

reason



22
23
24
# File 'lib/softlayer/user/customer/external/binding/totp.rb', line 22

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

#enableObject



26
27
28
# File 'lib/softlayer/user/customer/external/binding/totp.rb', line 26

def enable
  request(:enable, Boolean)
end

#get_attributesObject



34
35
36
# File 'lib/softlayer/user/customer/external/binding/totp.rb', line 34

def get_attributes
  request(:get_attributes, Array[Softlayer::User::External::Binding::Attribute])
end

#get_billing_itemObject



38
39
40
# File 'lib/softlayer/user/customer/external/binding/totp.rb', line 38

def get_billing_item
  request(:get_billing_item, Softlayer::Billing::Item)
end

#get_noteObject



42
43
44
# File 'lib/softlayer/user/customer/external/binding/totp.rb', line 42

def get_note
  request(:get_note, String)
end

#get_objectObject



46
47
48
# File 'lib/softlayer/user/customer/external/binding/totp.rb', line 46

def get_object
  request(:get_object, Softlayer::User::Customer::External::Binding::Totp)
end

#get_typeObject



50
51
52
# File 'lib/softlayer/user/customer/external/binding/totp.rb', line 50

def get_type
  request(:get_type, Softlayer::User::External::Binding::Type)
end

#get_userObject



54
55
56
# File 'lib/softlayer/user/customer/external/binding/totp.rb', line 54

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

#get_vendorObject



58
59
60
# File 'lib/softlayer/user/customer/external/binding/totp.rb', line 58

def get_vendor
  request(:get_vendor, Softlayer::User::External::Binding::Vendor)
end

#update_note(message) ⇒ Object

text



63
64
65
# File 'lib/softlayer/user/customer/external/binding/totp.rb', line 63

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