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

Inherits:
External::Binding show all
Defined in:
lib/softlayer/user/customer/external/binding.rb,
lib/softlayer/user/customer/external/binding/totp.rb,
lib/softlayer/user/customer/external/binding/type.rb,
lib/softlayer/user/customer/external/binding/phone.rb,
lib/softlayer/user/customer/external/binding/vendor.rb,
lib/softlayer/user/customer/external/binding/verisign.rb,
lib/softlayer/user/customer/external/binding/attribute.rb

Direct Known Subclasses

Phone, Totp, Verisign

Defined Under Namespace

Classes: Attribute, Phone, Representer, Totp, Type, Vendor, Verisign

Constant Summary collapse

SERVICE =
'SoftLayer_User_Customer_External_Binding'

Instance Attribute Summary collapse

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

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

#userObject

Returns the value of attribute user.



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

def user
  @user
end

Instance Method Details

#delete_objectObject



15
16
17
# File 'lib/softlayer/user/customer/external/binding.rb', line 15

def delete_object
  request(:delete_object, Boolean)
end

#disable(message) ⇒ Object

reason



20
21
22
# File 'lib/softlayer/user/customer/external/binding.rb', line 20

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

#enableObject



24
25
26
# File 'lib/softlayer/user/customer/external/binding.rb', line 24

def enable
  request(:enable, Boolean)
end

#get_attributesObject



28
29
30
# File 'lib/softlayer/user/customer/external/binding.rb', line 28

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

#get_billing_itemObject



32
33
34
# File 'lib/softlayer/user/customer/external/binding.rb', line 32

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

#get_noteObject



36
37
38
# File 'lib/softlayer/user/customer/external/binding.rb', line 36

def get_note
  request(:get_note, String)
end

#get_objectObject



40
41
42
# File 'lib/softlayer/user/customer/external/binding.rb', line 40

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

#get_typeObject



44
45
46
# File 'lib/softlayer/user/customer/external/binding.rb', line 44

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

#get_userObject



48
49
50
# File 'lib/softlayer/user/customer/external/binding.rb', line 48

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

#get_vendorObject



52
53
54
# File 'lib/softlayer/user/customer/external/binding.rb', line 52

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

#update_note(message) ⇒ Object

text



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

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