Replace Country

        Replace all attributes of Country
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async=True
        >>> thread = api.replace_country_by_id(country_id, country, async=True)
        >>> result = thread.get()

        :param async bool
        :param str country_id: ID of country to replace (required)
        :param Country country: Attributes of country to replace (required)
        :return: Country
                 If the method is called asynchronously,
                 returns the request thread.

def replace_country_by_id(cls, country_id, country, **kwargs):
        """Replace Country

        Replace all attributes of Country
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async=True
        >>> thread = api.replace_country_by_id(country_id, country, async=True)
        >>> result = thread.get()

        :param async bool
        :param str country_id: ID of country to replace (required)
        :param Country country: Attributes of country to replace (required)
        :return: Country
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async'):
            return cls._replace_country_by_id_with_http_info(country_id, country, **kwargs)
        else:
            (data) = cls._replace_country_by_id_with_http_info(country_id, country, **kwargs)
            return data