lib/saklient/cloud/resources/ipv6_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, 'IPv6Prefix')
            @m_prefix = (Saklient::Util::get_by_path(r, 'IPv6Prefix')).nil? ? nil : Saklient::Util::get_by_path(r, 'IPv6Prefix').to_s
          else
            @m_prefix = nil
            @is_incomplete = true
          end
          @n_prefix = false
          if Saklient::Util::exists_path(r, 'IPv6PrefixLen')
            @m_prefix_len = (Saklient::Util::get_by_path(r, 'IPv6PrefixLen')).nil? ? nil : (Saklient::Util::get_by_path(r, 'IPv6PrefixLen').to_s).to_s().to_i(10)
          else
            @m_prefix_len = nil
            @is_incomplete = true
          end
          @n_prefix_len = false
          if Saklient::Util::exists_path(r, 'IPv6PrefixTail')
            @m_prefix_tail = (Saklient::Util::get_by_path(r, 'IPv6PrefixTail')).nil? ? nil : Saklient::Util::get_by_path(r, 'IPv6PrefixTail').to_s
          else
            @m_prefix_tail = nil
            @is_incomplete = true
          end
          @n_prefix_tail = 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 , 'IPv6Prefix' ) @m_prefix = ( Saklient :: Util :: get_by_path ( r , 'IPv6Prefix' ) ) . nil? ? nil : Saklient :: Util :: get_by_path ( r , 'IPv6Prefix' ) . to_s else @m_prefix = nil @is_incomplete = true end @n_prefix = false if Saklient :: Util :: exists_path ( r , 'IPv6PrefixLen' ) @m_prefix_len = ( Saklient :: Util :: get_by_path ( r , 'IPv6PrefixLen' ) ) . nil? ? nil : ( Saklient :: Util :: get_by_path ( r , 'IPv6PrefixLen' ) . to_s ) . to_s ( ) . to_i ( 10 ) else @m_prefix_len = nil @is_incomplete = true end @n_prefix_len = false if Saklient :: Util :: exists_path ( r , 'IPv6PrefixTail' ) @m_prefix_tail = ( Saklient :: Util :: get_by_path ( r , 'IPv6PrefixTail' ) ) . nil? ? nil : Saklient :: Util :: get_by_path ( r , 'IPv6PrefixTail' ) . to_s else @m_prefix_tail = nil @is_incomplete = true end @n_prefix_tail = false end
(This method is generated in Translator_default#buildImpl)
( This method is generated in Translator_default#buildImpl )
r
<not_specific>
<not_specific>
None