lib/saklient/cloud/resources/iface.rb
# (This method is generated in Translator_default#buildImpl)
#
# @param [any] r
(This method is generated in Translator_default#buildImpl)
( This method is generated in Translator_default#buildImpl )
def api_deserialize_impl(r)
          @is_new = (r).nil?
          r = {} if @is_new
          @is_incomplete = false
          if Saklient::Util::exists_path(r, 'ID')
            @m_id = (Saklient::Util::get_by_path(r, 'ID')).nil? ? nil : Saklient::Util::get_by_path(r, 'ID').to_s
          else
            @m_id = nil
            @is_incomplete = true
          end
          @n_id = false
          if Saklient::Util::exists_path(r, 'MACAddress')
            @m_mac_address = (Saklient::Util::get_by_path(r, 'MACAddress')).nil? ? nil : Saklient::Util::get_by_path(r, 'MACAddress').to_s
          else
            @m_mac_address = nil
            @is_incomplete = true
          end
          @n_mac_address = false
          if Saklient::Util::exists_path(r, 'IPAddress')
            @m_ip_address = (Saklient::Util::get_by_path(r, 'IPAddress')).nil? ? nil : Saklient::Util::get_by_path(r, 'IPAddress').to_s
          else
            @m_ip_address = nil
            @is_incomplete = true
          end
          @n_ip_address = false
          if Saklient::Util::exists_path(r, 'UserIPAddress')
            @m_user_ip_address = (Saklient::Util::get_by_path(r, 'UserIPAddress')).nil? ? nil : Saklient::Util::get_by_path(r, 'UserIPAddress').to_s
          else
            @m_user_ip_address = nil
            @is_incomplete = true
          end
          @n_user_ip_address = false
          if Saklient::Util::exists_path(r, 'Server.ID')
            @m_server_id = (Saklient::Util::get_by_path(r, 'Server.ID')).nil? ? nil : Saklient::Util::get_by_path(r, 'Server.ID').to_s
          else
            @m_server_id = nil
            @is_incomplete = true
          end
          @n_server_id = false
          if Saklient::Util::exists_path(r, 'Switch.ID')
            @m_swytch_id = (Saklient::Util::get_by_path(r, 'Switch.ID')).nil? ? nil : Saklient::Util::get_by_path(r, 'Switch.ID').to_s
          else
            @m_swytch_id = nil
            @is_incomplete = true
          end
          @n_swytch_id = false
        end
def api_deserialize_impl ( r ) @is_new = ( r ) . nil? r = { } if @is_new @is_incomplete = false if Saklient :: Util :: exists_path ( r , 'ID' ) @m_id = ( Saklient :: Util :: get_by_path ( r , 'ID' ) ) . nil? ? nil : Saklient :: Util :: get_by_path ( r , 'ID' ) . to_s else @m_id = nil @is_incomplete = true end @n_id = false if Saklient :: Util :: exists_path ( r , 'MACAddress' ) @m_mac_address = ( Saklient :: Util :: get_by_path ( r , 'MACAddress' ) ) . nil? ? nil : Saklient :: Util :: get_by_path ( r , 'MACAddress' ) . to_s else @m_mac_address = nil @is_incomplete = true end @n_mac_address = false if Saklient :: Util :: exists_path ( r , 'IPAddress' ) @m_ip_address = ( Saklient :: Util :: get_by_path ( r , 'IPAddress' ) ) . nil? ? nil : Saklient :: Util :: get_by_path ( r , 'IPAddress' ) . to_s else @m_ip_address = nil @is_incomplete = true end @n_ip_address = false if Saklient :: Util :: exists_path ( r , 'UserIPAddress' ) @m_user_ip_address = ( Saklient :: Util :: get_by_path ( r , 'UserIPAddress' ) ) . nil? ? nil : Saklient :: Util :: get_by_path ( r , 'UserIPAddress' ) . to_s else @m_user_ip_address = nil @is_incomplete = true end @n_user_ip_address = false if Saklient :: Util :: exists_path ( r , 'Server.ID' ) @m_server_id = ( Saklient :: Util :: get_by_path ( r , 'Server.ID' ) ) . nil? ? nil : Saklient :: Util :: get_by_path ( r , 'Server.ID' ) . to_s else @m_server_id = nil @is_incomplete = true end @n_server_id = false if Saklient :: Util :: exists_path ( r , 'Switch.ID' ) @m_swytch_id = ( Saklient :: Util :: get_by_path ( r , 'Switch.ID' ) ) . nil? ? nil : Saklient :: Util :: get_by_path ( r , 'Switch.ID' ) . to_s else @m_swytch_id = nil @is_incomplete = true end @n_swytch_id = false end
(This method is generated in Translator_default#buildImpl)
( This method is generated in Translator_default#buildImpl )
r
<not_specific>
<not_specific>
None