// UpdateDynamicBrokerConfigs adds or updates broker configuration dynamically.
UpdateDynamicBrokerConfigs adds or updates broker configuration dynamically.
// UpdateDynamicBrokerConfigs adds or updates broker configuration dynamically .
func (c *Client) UpdateDynamicBrokerConfigs(brokerID int, toAddOrUpdate BrokerConfig) error {
	send, err := json.Marshal(toAddOrUpdate)
	if err != nil {
		return err
	}
	path := fmt.Sprintf(brokerConfigsPath, brokerID)
	resp, err := c.Do(http.MethodPut, path, contentTypeJSON, send)
	if err != nil {
		return err
	}
	return resp.Body.Close()
}
func ( c * Client ) UpdateDynamicBrokerConfigs ( brokerID int , toAddOrUpdate BrokerConfig ) error { send , err := json . Marshal ( toAddOrUpdate ) if err != nil { return err } path := fmt . Sprintf ( brokerConfigsPath , brokerID ) resp , err := c . Do ( http . MethodPut , path , contentTypeJSON , send ) if err != nil { return err } return resp . Body . Close ( ) }
UpdateDynamicBrokerConfigs adds or updates broker configuration dynamically.
UpdateDynamicBrokerConfigs adds or updates broker configuration dynamically .