Esempio n. 1
0
    def resolve_names(self):
        """Creates a dictionary representation of this object.

        This method converts an object to a dictionary that represents the
        format that the model should be in when passed into an API Request.
        Because of this, the generated dictionary may have different
        property names to that of the model itself.

        Returns:
            dict: The dictionary representing the object.

        """
        # Create a mapping from Model property names to API property names
        replace_names = {
            "met": "met",
            "metabolic": "metabolic",
            "sports_speed": "sports_speed",
            "sports_times": "sports_times",
            "sports_type": "sports_type",
            "total_consume": "total_consume",
            "total_intake": "total_intake",
        }

        retval = dict()

        return APIHelper.resolve_names(self, replace_names, retval)
Esempio n. 2
0
    def resolve_names(self):
        """Creates a dictionary representation of this object.

        This method converts an object to a dictionary that represents the
        format that the model should be in when passed into an API Request.
        Because of this, the generated dictionary may have different
        property names to that of the model itself.

        Returns:
            dict: The dictionary representing the object.

        """
        # Create a mapping from Model property names to API property names
        replace_names = {
            "gene": "gene",
            "genotype": "genotype",
            "genotypeid": "genotypeid",
            "mag": "mag",
            "orientation": "orientation",
            "repute": "repute",
            "rsid": "rsid",
            "snpid": "snpid",
            "summary": "summary",
            "tsummary": "tsummary",
        }

        retval = dict()

        return APIHelper.resolve_names(self, replace_names, retval)
Esempio n. 3
0
    def resolve_names(self):
        """Creates a dictionary representation of this object.

        This method converts an object to a dictionary that represents the
        format that the model should be in when passed into an API Request.
        Because of this, the generated dictionary may have different
        property names to that of the model itself.

        Returns:
            dict: The dictionary representing the object.

        """
        # Create a mapping from Model property names to API property names
        replace_names = {
            "description": "description",
            "mag": "mag",
            "odds": "odds",
            "result": "result",
            "sex": "sex",
            "rank": "rank",
            "caseid": "caseid",
            "score": "score",
            "percent": "percent",
            "risk": "risk",
        }

        retval = dict()

        return APIHelper.resolve_names(self, replace_names, retval)
Esempio n. 4
0
    def resolve_names(self):
        """Creates a dictionary representation of this object.

        This method converts an object to a dictionary that represents the
        format that the model should be in when passed into an API Request.
        Because of this, the generated dictionary may have different
        property names to that of the model itself.

        Returns:
            dict: The dictionary representing the object.

        """
        # Create a mapping from Model property names to API property names
        replace_names = {
            "met": "met",
            "metabolic": "metabolic",
            "sports_speed": "sports_speed",
            "sports_times": "sports_times",
            "sports_type": "sports_type",
            "total_consume": "total_consume",
            "total_intake": "total_intake",
        }

        retval = dict()

        return APIHelper.resolve_names(self, replace_names, retval)
Esempio n. 5
0
    def resolve_names(self):
        """Creates a dictionary representation of this object.

        This method converts an object to a dictionary that represents the
        format that the model should be in when passed into an API Request.
        Because of this, the generated dictionary may have different
        property names to that of the model itself.

        Returns:
            dict: The dictionary representing the object.

        """
        # Create a mapping from Model property names to API property names
        replace_names = {
            "gene": "gene",
            "genotype": "genotype",
            "genotypeid": "genotypeid",
            "mag": "mag",
            "orientation": "orientation",
            "repute": "repute",
            "rsid": "rsid",
            "snpid": "snpid",
            "summary": "summary",
            "tsummary": "tsummary",
        }

        retval = dict()

        return APIHelper.resolve_names(self, replace_names, retval)
Esempio n. 6
0
    def resolve_names(self):
        """Creates a dictionary representation of this object.

        This method converts an object to a dictionary that represents the
        format that the model should be in when passed into an API Request.
        Because of this, the generated dictionary may have different
        property names to that of the model itself.

        Returns:
            dict: The dictionary representing the object.

        """
        # Create a mapping from Model property names to API property names
        replace_names = {
            "description": "description",
            "mag": "mag",
            "odds": "odds",
            "result": "result",
            "sex": "sex",
            "rank": "rank",
            "caseid": "caseid",
            "score": "score",
            "percent": "percent",
            "risk": "risk",
        }

        retval = dict()

        return APIHelper.resolve_names(self, replace_names, retval)
Esempio n. 7
0
    def resolve_names(self):
        """Creates a dictionary representation of this object.

        This method converts an object to a dictionary that represents the
        format that the model should be in when passed into an API Request.
        Because of this, the generated dictionary may have different
        property names to that of the model itself.

        Returns:
            dict: The dictionary representing the object.

        """
        # Create a mapping from Model property names to API property names
        replace_names = {
            "african": "african",
            "middle_eastern": "middle_eastern",
            "ne_asian": "ne_asian",
            "se_asian": "se_asian",
            "chinese_nation": "chinese_nation",
            "central_asian": "central_asian",
            "european": "european",
            "american": "american",
            "south_asian": "south_asian",
            "oceanian": "oceanian",
        }

        retval = dict()

        return APIHelper.resolve_names(self, replace_names, retval)
Esempio n. 8
0
    def resolve_names(self):
        """Creates a dictionary representation of this object.

        This method converts an object to a dictionary that represents the
        format that the model should be in when passed into an API Request.
        Because of this, the generated dictionary may have different
        property names to that of the model itself.

        Returns:
            dict: The dictionary representing the object.

        """
        # Create a mapping from Model property names to API property names
        replace_names = {
            "id": "id",
            "profiles": "profiles",
            "email": "email",
        }

        retval = dict()

        return APIHelper.resolve_names(self, replace_names, retval)
Esempio n. 9
0
    def resolve_names(self):
        """Creates a dictionary representation of this object.

        This method converts an object to a dictionary that represents the
        format that the model should be in when passed into an API Request.
        Because of this, the generated dictionary may have different
        property names to that of the model itself.

        Returns:
            dict: The dictionary representing the object.

        """
        # Create a mapping from Model property names to API property names
        replace_names = {
            "id": "id",
            "profiles": "profiles",
            "email": "email",
        }

        retval = dict()

        return APIHelper.resolve_names(self, replace_names, retval)
Esempio n. 10
0
    def resolve_names(self):
        """Creates a dictionary representation of this object.

        This method converts an object to a dictionary that represents the
        format that the model should be in when passed into an API Request.
        Because of this, the generated dictionary may have different
        property names to that of the model itself.

        Returns:
            dict: The dictionary representing the object.

        """
        # Create a mapping from Model property names to API property names
        replace_names = {
            "uygur": "uygur",
            "ny": "ny",
            "finnish_russian": "finnish_russian",
            "iranian": "iranian",
            "dai": "dai",
            "spanish": "spanish",
            "han_southern": "han_southern",
            "han_northern": "han_northern",
            "somali": "somali",
            "tungus": "tungus",
            "sardinian": "sardinian",
            "mayan": "mayan",
            "mongolian": "mongolian",
            "egyptian": "egyptian",
            "pima": "pima",
            "gaoshan": "gaoshan",
            "lahu": "lahu",
            "cambodian": "cambodian",
            "korean": "korean",
            "french": "french",
            "english": "english",
            "balkan": "balkan",
            "sindhi": "sindhi",
            "papuan": "papuan",
            "hungarian": "hungarian",
            "kinh": "kinh",
            "japanese": "japanese",
            "eskimo": "eskimo",
            "saudi": "saudi",
            "mbuti": "mbuti",
            "she": "she",
            "tibetan": "tibetan",
            "yoruba": "yoruba",
            "bantusa": "bantusa",
            "ashkenazi": "ashkenazi",
            "mala": "mala",
            "yakut": "yakut",
            "bengali": "bengali",
            "thai": "thai",
            "kyrgyz": "kyrgyz",
            "uzbek": "uzbek",
            "miao_yao": "miao_yao",
        }

        retval = dict()

        return APIHelper.resolve_names(self, replace_names, retval)
Esempio n. 11
0
    def resolve_names(self):
        """Creates a dictionary representation of this object.

        This method converts an object to a dictionary that represents the
        format that the model should be in when passed into an API Request.
        Because of this, the generated dictionary may have different
        property names to that of the model itself.

        Returns:
            dict: The dictionary representing the object.

        """
        # Create a mapping from Model property names to API property names
        replace_names = {
            "uygur": "uygur",
            "ny": "ny",
            "finnish_russian": "finnish_russian",
            "iranian": "iranian",
            "dai": "dai",
            "spanish": "spanish",
            "han_southern": "han_southern",
            "han_northern": "han_northern",
            "somali": "somali",
            "tungus": "tungus",
            "sardinian": "sardinian",
            "mayan": "mayan",
            "mongolian": "mongolian",
            "egyptian": "egyptian",
            "pima": "pima",
            "gaoshan": "gaoshan",
            "lahu": "lahu",
            "cambodian": "cambodian",
            "korean": "korean",
            "french": "french",
            "english": "english",
            "balkan": "balkan",
            "sindhi": "sindhi",
            "papuan": "papuan",
            "hungarian": "hungarian",
            "kinh": "kinh",
            "japanese": "japanese",
            "eskimo": "eskimo",
            "saudi": "saudi",
            "mbuti": "mbuti",
            "she": "she",
            "tibetan": "tibetan",
            "yoruba": "yoruba",
            "bantusa": "bantusa",
            "ashkenazi": "ashkenazi",
            "mala": "mala",
            "yakut": "yakut",
            "bengali": "bengali",
            "thai": "thai",
            "kyrgyz": "kyrgyz",
            "uzbek": "uzbek",
            "miao_yao": "miao_yao",
        }

        retval = dict()

        return APIHelper.resolve_names(self, replace_names, retval)