def replace_option_set_by_id(cls, option_set_id, option_set, **kwargs):
        """Replace OptionSet

        Replace all attributes of OptionSet
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async=True
        >>> thread = api.replace_option_set_by_id(option_set_id, option_set, async=True)
        >>> result = thread.get()

        :param async bool
        :param str option_set_id: ID of optionSet to replace (required)
        :param OptionSet option_set: Attributes of optionSet to replace (required)
        :return: OptionSet
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async'):
            return cls._replace_option_set_by_id_with_http_info(option_set_id, option_set, **kwargs)
        else:
            (data) = cls._replace_option_set_by_id_with_http_info(option_set_id, option_set, **kwargs)
            return data
def replace_option_set_by_id ( cls , option_set_id , option_set , ** kwargs ) : kwargs [ '_return_http_data_only' ] = True if kwargs . get ( 'async' ) : return cls . _replace_option_set_by_id_with_http_info ( option_set_id , option_set , ** kwargs ) else : ( data ) = cls . _replace_option_set_by_id_with_http_info ( option_set_id , option_set , ** kwargs ) return data
Replace OptionSet

        Replace all attributes of OptionSet
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async=True
        >>> thread = api.replace_option_set_by_id(option_set_id, option_set, async=True)
        >>> result = thread.get()

        :param async bool
        :param str option_set_id: ID of optionSet to replace (required)
        :param OptionSet option_set: Attributes of optionSet to replace (required)
        :return: OptionSet
                 If the method is called asynchronously,
                 returns the request thread.