class SoftLayer::UserCustomerExternalBinding

Each SoftLayer UserCustomerExternalBinding instance provides information for a single user customer's external binding.

This class roughly corresponds to the entity SoftLayer_User_Customer_External_Binding in the API.

Attributes

active[R]

The flag that determines whether the external binding is active will be used for authentication or not.

created[R]

The date that the external authentication binding was created. DEPRECATION WARNING: This attribute is deprecated in favor of #created_at and will be removed in the next major release.

created_at[R]

The date that the external authentication binding was created.

password[R]

The password used to authenticate the external id at an external authentication source.

Protected Class Methods

default_object_mask() click to toggle source
# File lib/softlayer/UserCustomerExternalBinding.rb, line 99
def self.default_object_mask
  {
    "mask(SoftLayer_User_Customer_External_Binding)" => [
                                                         'active',
                                                         'createDate',
                                                         'id',
                                                         'password'
                                                        ]
  }.to_sl_object_mask
end

Public Instance Methods

note(force_update=false) click to toggle source

Retrieve an optional note for identifying the external binding.

# File lib/softlayer/UserCustomerExternalBinding.rb, line 46
sl_dynamic_attr :note do |resource|
  resource.should_update? do
    #only retrieved once per instance
    @note == nil
  end

  resource.to_update do
    self.service.getNote
  end
end
service() click to toggle source

Returns the service for interacting with this user customer external binding through the network API

# File lib/softlayer/UserCustomerExternalBinding.rb, line 93
def service
  softlayer_client[:User_Customer_External_Binding].object_with_id(self.id)
end
type(force_update=false) click to toggle source

Retrieve the user friendly name of a type of external authentication binding.

# File lib/softlayer/UserCustomerExternalBinding.rb, line 61
sl_dynamic_attr :type do |resource|
  resource.should_update? do
    #only retrieved once per instance
    @type == nil
  end

  resource.to_update do
    type = self.service.getType
    type['name']
  end
end
vendor(force_update=false) click to toggle source

Retrieve the user friendly name of an external binding vendor.

# File lib/softlayer/UserCustomerExternalBinding.rb, line 77
sl_dynamic_attr :vendor do |resource|
  resource.should_update? do
    #only retrieved once per instance
    @vendor == nil
  end

  resource.to_update do
    vendor = self.service.getVendor
    vendor['name']
  end
end