lib/saklient/cloud/resources/server_instance.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, 'Status')
            @m_status = (Saklient::Util::get_by_path(r, 'Status')).nil? ? nil : Saklient::Util::get_by_path(r, 'Status').to_s
          else
            @m_status = nil
            @is_incomplete = true
          end
          @n_status = false
          if Saklient::Util::exists_path(r, 'BeforeStatus')
            @m_before_status = (Saklient::Util::get_by_path(r, 'BeforeStatus')).nil? ? nil : Saklient::Util::get_by_path(r, 'BeforeStatus').to_s
          else
            @m_before_status = nil
            @is_incomplete = true
          end
          @n_before_status = false
          if Saklient::Util::exists_path(r, 'StatusChangedAt')
            @m_status_changed_at = (Saklient::Util::get_by_path(r, 'StatusChangedAt')).nil? ? nil : Saklient::Util::get_by_path(r, 'StatusChangedAt').to_s
          else
            @m_status_changed_at = nil
            @is_incomplete = true
          end
          @n_status_changed_at = false
          if Saklient::Util::exists_path(r, 'CDROM')
            @m_iso_image = (Saklient::Util::get_by_path(r, 'CDROM')).nil? ? nil : Saklient::Cloud::Resources::IsoImage.new(@_client, Saklient::Util::get_by_path(r, 'CDROM'))
          else
            @m_iso_image = nil
            @is_incomplete = true
          end
          @n_iso_image = false
        end
def api_deserialize_impl ( r ) @is_new = ( r ) . nil? r = { } if @is_new @is_incomplete = false if Saklient :: Util :: exists_path ( r , 'Status' ) @m_status = ( Saklient :: Util :: get_by_path ( r , 'Status' ) ) . nil? ? nil : Saklient :: Util :: get_by_path ( r , 'Status' ) . to_s else @m_status = nil @is_incomplete = true end @n_status = false if Saklient :: Util :: exists_path ( r , 'BeforeStatus' ) @m_before_status = ( Saklient :: Util :: get_by_path ( r , 'BeforeStatus' ) ) . nil? ? nil : Saklient :: Util :: get_by_path ( r , 'BeforeStatus' ) . to_s else @m_before_status = nil @is_incomplete = true end @n_before_status = false if Saklient :: Util :: exists_path ( r , 'StatusChangedAt' ) @m_status_changed_at = ( Saklient :: Util :: get_by_path ( r , 'StatusChangedAt' ) ) . nil? ? nil : Saklient :: Util :: get_by_path ( r , 'StatusChangedAt' ) . to_s else @m_status_changed_at = nil @is_incomplete = true end @n_status_changed_at = false if Saklient :: Util :: exists_path ( r , 'CDROM' ) @m_iso_image = ( Saklient :: Util :: get_by_path ( r , 'CDROM' ) ) . nil? ? nil : Saklient :: Cloud :: Resources :: IsoImage . new ( @_client , Saklient :: Util :: get_by_path ( r , 'CDROM' ) ) else @m_iso_image = nil @is_incomplete = true end @n_iso_image = false end
(This method is generated in Translator_default#buildImpl)
( This method is generated in Translator_default#buildImpl )
r
<not_specific>
<not_specific>
None