def replace_table_rate_rule_by_id(cls, table_rate_rule_id, table_rate_rule, **kwargs):
        """Replace TableRateRule

        Replace all attributes of TableRateRule
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async=True
        >>> thread = api.replace_table_rate_rule_by_id(table_rate_rule_id, table_rate_rule, async=True)
        >>> result = thread.get()

        :param async bool
        :param str table_rate_rule_id: ID of tableRateRule to replace (required)
        :param TableRateRule table_rate_rule: Attributes of tableRateRule to replace (required)
        :return: TableRateRule
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async'):
            return cls._replace_table_rate_rule_by_id_with_http_info(table_rate_rule_id, table_rate_rule, **kwargs)
        else:
            (data) = cls._replace_table_rate_rule_by_id_with_http_info(table_rate_rule_id, table_rate_rule, **kwargs)
            return data
Replace TableRateRule

        Replace all attributes of TableRateRule
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async=True
        >>> thread = api.replace_table_rate_rule_by_id(table_rate_rule_id, table_rate_rule, async=True)
        >>> result = thread.get()

        :param async bool
        :param str table_rate_rule_id: ID of tableRateRule to replace (required)
        :param TableRateRule table_rate_rule: Attributes of tableRateRule to replace (required)
        :return: TableRateRule
                 If the method is called asynchronously,
                 returns the request thread.