lib/saklient/cloud/resources/script.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, 'Scope')
            @m_scope = (Saklient::Util::get_by_path(r, 'Scope')).nil? ? nil : Saklient::Util::get_by_path(r, 'Scope').to_s
          else
            @m_scope = nil
            @is_incomplete = true
          end
          @n_scope = 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, 'Content')
            @m_content = (Saklient::Util::get_by_path(r, 'Content')).nil? ? nil : Saklient::Util::get_by_path(r, 'Content').to_s
          else
            @m_content = nil
            @is_incomplete = true
          end
          @n_content = false
          if Saklient::Util::exists_path(r, 'Remark')
            @m_annotation = Saklient::Util::get_by_path(r, 'Remark')
          else
            @m_annotation = nil
            @is_incomplete = true
          end
          @n_annotation = 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 , 'Scope' ) @m_scope = ( Saklient :: Util :: get_by_path ( r , 'Scope' ) ) . nil? ? nil : Saklient :: Util :: get_by_path ( r , 'Scope' ) . to_s else @m_scope = nil @is_incomplete = true end @n_scope = 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 , 'Content' ) @m_content = ( Saklient :: Util :: get_by_path ( r , 'Content' ) ) . nil? ? nil : Saklient :: Util :: get_by_path ( r , 'Content' ) . to_s else @m_content = nil @is_incomplete = true end @n_content = false if Saklient :: Util :: exists_path ( r , 'Remark' ) @m_annotation = Saklient :: Util :: get_by_path ( r , 'Remark' ) else @m_annotation = nil @is_incomplete = true end @n_annotation = false end
(This method is generated in Translator_default#buildImpl)
( This method is generated in Translator_default#buildImpl )
r
<not_specific>
<not_specific>
None