lib/saklient/cloud/resources/router.rb
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, 'Name')
            @m_name = (Saklient::Util::get_by_path(r, 'Name')).nil? ? nil : Saklient::Util::get_by_path(r, 'Name').to_s
          else
            @m_name = nil
            @is_incomplete = true
          end
          @n_name = false
          if Saklient::Util::exists_path(r, 'Description')
            @m_description = (Saklient::Util::get_by_path(r, 'Description')).nil? ? nil : Saklient::Util::get_by_path(r, 'Description').to_s
          else
            @m_description = nil
            @is_incomplete = true
          end
          @n_description = false
          if Saklient::Util::exists_path(r, 'NetworkMaskLen')
            @m_network_mask_len = (Saklient::Util::get_by_path(r, 'NetworkMaskLen')).nil? ? nil : (Saklient::Util::get_by_path(r, 'NetworkMaskLen').to_s).to_s().to_i(10)
          else
            @m_network_mask_len = nil
            @is_incomplete = true
          end
          @n_network_mask_len = false
          if Saklient::Util::exists_path(r, 'BandWidthMbps')
            @m_band_width_mbps = (Saklient::Util::get_by_path(r, 'BandWidthMbps')).nil? ? nil : (Saklient::Util::get_by_path(r, 'BandWidthMbps').to_s).to_s().to_i(10)
          else
            @m_band_width_mbps = nil
            @is_incomplete = true
          end
          @n_band_width_mbps = 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)
#
# @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, 'Name')
            @m_name = (Saklient::Util::get_by_path(r, 'Name')).nil? ? nil : Saklient::Util::get_by_path(r, 'Name').to_s
          else
            @m_name = nil
            @is_incomplete = true
          end
          @n_name = false
          if Saklient::Util::exists_path(r, 'Description')
            @m_description = (Saklient::Util::get_by_path(r, 'Description')).nil? ? nil : Saklient::Util::get_by_path(r, 'Description').to_s
          else
            @m_description = nil
            @is_incomplete = true
          end
          @n_description = false
          if Saklient::Util::exists_path(r, 'NetworkMaskLen')
            @m_network_mask_len = (Saklient::Util::get_by_path(r, 'NetworkMaskLen')).nil? ? nil : (Saklient::Util::get_by_path(r, 'NetworkMaskLen').to_s).to_s().to_i(10)
          else
            @m_network_mask_len = nil
            @is_incomplete = true
          end
          @n_network_mask_len = false
          if Saklient::Util::exists_path(r, 'BandWidthMbps')
            @m_band_width_mbps = (Saklient::Util::get_by_path(r, 'BandWidthMbps')).nil? ? nil : (Saklient::Util::get_by_path(r, 'BandWidthMbps').to_s).to_s().to_i(10)
          else
            @m_band_width_mbps = nil
            @is_incomplete = true
          end
          @n_band_width_mbps = 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 , 'Name' ) @m_name = ( Saklient :: Util :: get_by_path ( r , 'Name' ) ) . nil? ? nil : Saklient :: Util :: get_by_path ( r , 'Name' ) . to_s else @m_name = nil @is_incomplete = true end @n_name = false if Saklient :: Util :: exists_path ( r , 'Description' ) @m_description = ( Saklient :: Util :: get_by_path ( r , 'Description' ) ) . nil? ? nil : Saklient :: Util :: get_by_path ( r , 'Description' ) . to_s else @m_description = nil @is_incomplete = true end @n_description = false if Saklient :: Util :: exists_path ( r , 'NetworkMaskLen' ) @m_network_mask_len = ( Saklient :: Util :: get_by_path ( r , 'NetworkMaskLen' ) ) . nil? ? nil : ( Saklient :: Util :: get_by_path ( r , 'NetworkMaskLen' ) . to_s ) . to_s ( ) . to_i ( 10 ) else @m_network_mask_len = nil @is_incomplete = true end @n_network_mask_len = false if Saklient :: Util :: exists_path ( r , 'BandWidthMbps' ) @m_band_width_mbps = ( Saklient :: Util :: get_by_path ( r , 'BandWidthMbps' ) ) . nil? ? nil : ( Saklient :: Util :: get_by_path ( r , 'BandWidthMbps' ) . to_s ) . to_s ( ) . to_i ( 10 ) else @m_band_width_mbps = nil @is_incomplete = true end @n_band_width_mbps = 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
None