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

Inherits:
Entity
  • Object
show all
Defined in:
lib/softlayer/user/external/binding.rb,
lib/softlayer/user/external/binding/type.rb,
lib/softlayer/user/external/binding/vendor.rb,
lib/softlayer/user/external/binding/attribute.rb

Direct Known Subclasses

Customer::External::Binding

Defined Under Namespace

Classes: Attribute, Representer, Type, Vendor

Constant Summary collapse

SERVICE =
'SoftLayer_User_External_Binding'

Instance Attribute 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

Instance Attribute Details

#activeObject

Returns the value of attribute active.



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

def active
  @active
end

#attribute_countObject

Returns the value of attribute attribute_count.



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

def attribute_count
  @attribute_count
end

#attributesObject

Returns the value of attribute attributes.



18
19
20
# File 'lib/softlayer/user/external/binding.rb', line 18

def attributes
  @attributes
end

#billing_itemObject

Returns the value of attribute billing_item.



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

def billing_item
  @billing_item
end

#create_dateObject

Returns the value of attribute create_date.



10
11
12
# File 'lib/softlayer/user/external/binding.rb', line 10

def create_date
  @create_date
end

#external_idObject

Returns the value of attribute external_id.



11
12
13
# File 'lib/softlayer/user/external/binding.rb', line 11

def external_id
  @external_id
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#noteObject

Returns the value of attribute note.



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

def note
  @note
end

#passwordObject

Returns the value of attribute password.



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

def password
  @password
end

#typeObject

Returns the value of attribute type.



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

def type
  @type
end

#type_idObject

Returns the value of attribute type_id.



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

def type_id
  @type_id
end

#user_idObject

Returns the value of attribute user_id.



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

def user_id
  @user_id
end

#vendorObject

Returns the value of attribute vendor.



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

def vendor
  @vendor
end

#vendor_idObject

Returns the value of attribute vendor_id.



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

def vendor_id
  @vendor_id
end

Instance Method Details

#delete_objectObject



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

def delete_object
  request(:delete_object, Boolean)
end

#get_attributesObject



28
29
30
# File 'lib/softlayer/user/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/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/external/binding.rb', line 36

def get_note
  request(:get_note, String)
end

#get_objectObject



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

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

#get_typeObject



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

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

#get_vendorObject



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

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

#update_note(message) ⇒ Object

text



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

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