lib/saklient/cloud/resources/ipv4_net.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, 'NetworkAddress')
            @m_address = (Saklient::Util::get_by_path(r, 'NetworkAddress')).nil? ? nil : Saklient::Util::get_by_path(r, 'NetworkAddress').to_s
          else
            @m_address = nil
            @is_incomplete = true
          end
          @n_address = false
          if Saklient::Util::exists_path(r, 'NetworkMaskLen')
            @m_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_mask_len = nil
            @is_incomplete = true
          end
          @n_mask_len = false
          if Saklient::Util::exists_path(r, 'DefaultRoute')
            @m_default_route = (Saklient::Util::get_by_path(r, 'DefaultRoute')).nil? ? nil : Saklient::Util::get_by_path(r, 'DefaultRoute').to_s
          else
            @m_default_route = nil
            @is_incomplete = true
          end
          @n_default_route = false
          if Saklient::Util::exists_path(r, 'NextHop')
            @m_next_hop = (Saklient::Util::get_by_path(r, 'NextHop')).nil? ? nil : Saklient::Util::get_by_path(r, 'NextHop').to_s
          else
            @m_next_hop = nil
            @is_incomplete = true
          end
          @n_next_hop = 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 , 'NetworkAddress' ) @m_address = ( Saklient :: Util :: get_by_path ( r , 'NetworkAddress' ) ) . nil? ? nil : Saklient :: Util :: get_by_path ( r , 'NetworkAddress' ) . to_s else @m_address = nil @is_incomplete = true end @n_address = false if Saklient :: Util :: exists_path ( r , 'NetworkMaskLen' ) @m_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_mask_len = nil @is_incomplete = true end @n_mask_len = false if Saklient :: Util :: exists_path ( r , 'DefaultRoute' ) @m_default_route = ( Saklient :: Util :: get_by_path ( r , 'DefaultRoute' ) ) . nil? ? nil : Saklient :: Util :: get_by_path ( r , 'DefaultRoute' ) . to_s else @m_default_route = nil @is_incomplete = true end @n_default_route = false if Saklient :: Util :: exists_path ( r , 'NextHop' ) @m_next_hop = ( Saklient :: Util :: get_by_path ( r , 'NextHop' ) ) . nil? ? nil : Saklient :: Util :: get_by_path ( r , 'NextHop' ) . to_s else @m_next_hop = nil @is_incomplete = true end @n_next_hop = false end
(This method is generated in Translator_default#buildImpl)
( This method is generated in Translator_default#buildImpl )
r
<not_specific>
<not_specific>
None