lib/saklient/cloud/resources/appliance.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, 'Class')
            @m_clazz = (Saklient::Util::get_by_path(r, 'Class')).nil? ? nil : Saklient::Util::get_by_path(r, 'Class').to_s
          else
            @m_clazz = nil
            @is_incomplete = true
          end
          @n_clazz = 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, 'Tags')
            if (Saklient::Util::get_by_path(r, 'Tags')).nil?
              @m_tags = []
            else
              @m_tags = []
              for t in Saklient::Util::get_by_path(r, 'Tags')
                v1 = nil
                v1 = (t).nil? ? nil : t.to_s
                @m_tags << v1
              end
            end
          else
            @m_tags = nil
            @is_incomplete = true
          end
          @n_tags = false
          if Saklient::Util::exists_path(r, 'Icon')
            @m_icon = (Saklient::Util::get_by_path(r, 'Icon')).nil? ? nil : Saklient::Cloud::Resources::Icon.new(@_client, Saklient::Util::get_by_path(r, 'Icon'))
          else
            @m_icon = nil
            @is_incomplete = true
          end
          @n_icon = false
          if Saklient::Util::exists_path(r, 'Plan.ID')
            @m_plan_id = (Saklient::Util::get_by_path(r, 'Plan.ID')).nil? ? nil : (Saklient::Util::get_by_path(r, 'Plan.ID').to_s).to_s().to_i(10)
          else
            @m_plan_id = nil
            @is_incomplete = true
          end
          @n_plan_id = false
          if Saklient::Util::exists_path(r, 'Interfaces')
            if (Saklient::Util::get_by_path(r, 'Interfaces')).nil?
              @m_ifaces = []
            else
              @m_ifaces = []
              for t in Saklient::Util::get_by_path(r, 'Interfaces')
                v2 = nil
                v2 = (t).nil? ? nil : Saklient::Cloud::Resources::Iface.new(@_client, t)
                @m_ifaces << v2
              end
            end
          else
            @m_ifaces = nil
            @is_incomplete = true
          end
          @n_ifaces = false
          if Saklient::Util::exists_path(r, 'Remark')
            @m_raw_annotation = Saklient::Util::get_by_path(r, 'Remark')
          else
            @m_raw_annotation = nil
            @is_incomplete = true
          end
          @n_raw_annotation = false
          if Saklient::Util::exists_path(r, 'Settings')
            @m_raw_settings = Saklient::Util::get_by_path(r, 'Settings')
          else
            @m_raw_settings = nil
            @is_incomplete = true
          end
          @n_raw_settings = false
          if Saklient::Util::exists_path(r, 'SettingsHash')
            @m_raw_settings_hash = (Saklient::Util::get_by_path(r, 'SettingsHash')).nil? ? nil : Saklient::Util::get_by_path(r, 'SettingsHash').to_s
          else
            @m_raw_settings_hash = nil
            @is_incomplete = true
          end
          @n_raw_settings_hash = false
          if Saklient::Util::exists_path(r, 'Instance.Status')
            @m_status = (Saklient::Util::get_by_path(r, 'Instance.Status')).nil? ? nil : Saklient::Util::get_by_path(r, 'Instance.Status').to_s
          else
            @m_status = nil
            @is_incomplete = true
          end
          @n_status = false
          if Saklient::Util::exists_path(r, 'ServiceClass')
            @m_service_class = (Saklient::Util::get_by_path(r, 'ServiceClass')).nil? ? nil : Saklient::Util::get_by_path(r, 'ServiceClass').to_s
          else
            @m_service_class = nil
            @is_incomplete = true
          end
          @n_service_class = false
          if Saklient::Util::exists_path(r, 'Availability')
            @m_availability = (Saklient::Util::get_by_path(r, 'Availability')).nil? ? nil : Saklient::Util::get_by_path(r, 'Availability').to_s
          else
            @m_availability = nil
            @is_incomplete = true
          end
          @n_availability = 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 , 'Class' ) @m_clazz = ( Saklient :: Util :: get_by_path ( r , 'Class' ) ) . nil? ? nil : Saklient :: Util :: get_by_path ( r , 'Class' ) . to_s else @m_clazz = nil @is_incomplete = true end @n_clazz = 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 , 'Tags' ) if ( Saklient :: Util :: get_by_path ( r , 'Tags' ) ) . nil? @m_tags = [ ] else @m_tags = [ ] for t in Saklient :: Util :: get_by_path ( r , 'Tags' ) v1 = nil v1 = ( t ) . nil? ? nil : t . to_s @m_tags << v1 end end else @m_tags = nil @is_incomplete = true end @n_tags = false if Saklient :: Util :: exists_path ( r , 'Icon' ) @m_icon = ( Saklient :: Util :: get_by_path ( r , 'Icon' ) ) . nil? ? nil : Saklient :: Cloud :: Resources :: Icon . new ( @_client , Saklient :: Util :: get_by_path ( r , 'Icon' ) ) else @m_icon = nil @is_incomplete = true end @n_icon = false if Saklient :: Util :: exists_path ( r , 'Plan.ID' ) @m_plan_id = ( Saklient :: Util :: get_by_path ( r , 'Plan.ID' ) ) . nil? ? nil : ( Saklient :: Util :: get_by_path ( r , 'Plan.ID' ) . to_s ) . to_s ( ) . to_i ( 10 ) else @m_plan_id = nil @is_incomplete = true end @n_plan_id = false if Saklient :: Util :: exists_path ( r , 'Interfaces' ) if ( Saklient :: Util :: get_by_path ( r , 'Interfaces' ) ) . nil? @m_ifaces = [ ] else @m_ifaces = [ ] for t in Saklient :: Util :: get_by_path ( r , 'Interfaces' ) v2 = nil v2 = ( t ) . nil? ? nil : Saklient :: Cloud :: Resources :: Iface . new ( @_client , t ) @m_ifaces << v2 end end else @m_ifaces = nil @is_incomplete = true end @n_ifaces = false if Saklient :: Util :: exists_path ( r , 'Remark' ) @m_raw_annotation = Saklient :: Util :: get_by_path ( r , 'Remark' ) else @m_raw_annotation = nil @is_incomplete = true end @n_raw_annotation = false if Saklient :: Util :: exists_path ( r , 'Settings' ) @m_raw_settings = Saklient :: Util :: get_by_path ( r , 'Settings' ) else @m_raw_settings = nil @is_incomplete = true end @n_raw_settings = false if Saklient :: Util :: exists_path ( r , 'SettingsHash' ) @m_raw_settings_hash = ( Saklient :: Util :: get_by_path ( r , 'SettingsHash' ) ) . nil? ? nil : Saklient :: Util :: get_by_path ( r , 'SettingsHash' ) . to_s else @m_raw_settings_hash = nil @is_incomplete = true end @n_raw_settings_hash = false if Saklient :: Util :: exists_path ( r , 'Instance.Status' ) @m_status = ( Saklient :: Util :: get_by_path ( r , 'Instance.Status' ) ) . nil? ? nil : Saklient :: Util :: get_by_path ( r , 'Instance.Status' ) . to_s else @m_status = nil @is_incomplete = true end @n_status = false if Saklient :: Util :: exists_path ( r , 'ServiceClass' ) @m_service_class = ( Saklient :: Util :: get_by_path ( r , 'ServiceClass' ) ) . nil? ? nil : Saklient :: Util :: get_by_path ( r , 'ServiceClass' ) . to_s else @m_service_class = nil @is_incomplete = true end @n_service_class = false if Saklient :: Util :: exists_path ( r , 'Availability' ) @m_availability = ( Saklient :: Util :: get_by_path ( r , 'Availability' ) ) . nil? ? nil : Saklient :: Util :: get_by_path ( r , 'Availability' ) . to_s else @m_availability = nil @is_incomplete = true end @n_availability = 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