lib/saklient/cloud/resources/common_service_item.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, '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 : 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, 'CommonServiceProvider')
            @m_provider = (Saklient::Util::get_by_path(r, 'CommonServiceProvider')).nil? ? nil : Saklient::Cloud::Resources::CommonServiceProvider.new(@_client, Saklient::Util::get_by_path(r, 'CommonServiceProvider'))
          else
            @m_provider = nil
            @is_incomplete = true
          end
          @n_provider = 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, 'Status')
            @m_raw_status = Saklient::Util::get_by_path(r, 'Status')
          else
            @m_raw_status = nil
            @is_incomplete = true
          end
          @n_raw_status = 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 , '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 : 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 , 'CommonServiceProvider' ) @m_provider = ( Saklient :: Util :: get_by_path ( r , 'CommonServiceProvider' ) ) . nil? ? nil : Saklient :: Cloud :: Resources :: CommonServiceProvider . new ( @_client , Saklient :: Util :: get_by_path ( r , 'CommonServiceProvider' ) ) else @m_provider = nil @is_incomplete = true end @n_provider = 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 , 'Status' ) @m_raw_status = Saklient :: Util :: get_by_path ( r , 'Status' ) else @m_raw_status = nil @is_incomplete = true end @n_raw_status = false end
(This method is generated in Translator_default#buildImpl)
( This method is generated in Translator_default#buildImpl )
r
<not_specific>
<not_specific>
None