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
The flag that determines whether the external binding is active will be used for authentication or not.
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.
The date that the external authentication binding was created.
The password used to authenticate the external id at an external authentication source.
Protected Class Methods
# 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
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
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
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
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