// UpdateGlobalCompatibilityLevel sets a new global compatibility level.
// When there are multiple instances of schema registry running in the same cluster,
// the update request will be forwarded to one of the instances designated as the master.
// If the master is not available, the client will get an error code indicating
// that the forwarding has failed.
UpdateGlobalCompatibilityLevel sets a new global compatibility level.
When there are multiple instances of schema registry running in the same cluster,
the update request will be forwarded to one of the instances designated as the master.
If the master is not available, the client will get an error code indicating
that the forwarding has failed.
// UpdateGlobalCompatibilityLevel sets a new global compatibility level . // When there are multiple instances of schema registry running in the same cluster // the update request will be forwarded to one of the instances designated as the master . // If the master is not available the client will get an error code indicating // that the forwarding has failed .
func (c *Client) UpdateGlobalCompatibilityLevel(level CompatibilityLevel) error {
	lv := compatibilityPutOnlyJSON{
		Compatibility: string(level),
	}
	send, err := json.Marshal(lv)
	if err != nil {
		return err
	}
	resp, err := c.Do(http.MethodPut, compatibilityLevelPath, contentTypeSchemaJSON, send, schemaAPIOption)
	if err != nil {
		return err
	}
	return resp.Body.Close()
}
func ( c * Client ) UpdateGlobalCompatibilityLevel ( level CompatibilityLevel ) error { lv := compatibilityPutOnlyJSON { Compatibility : string ( level ) , } send , err := json . Marshal ( lv ) if err != nil { return err } resp , err := c . Do ( http . MethodPut , compatibilityLevelPath , contentTypeSchemaJSON , send , schemaAPIOption ) if err != nil { return err } return resp . Body . Close ( ) }
UpdateGlobalCompatibilityLevel sets a new global compatibility level.
UpdateGlobalCompatibilityLevel sets a new global compatibility level .
// # Update global compatibility level // PUT /api/proxy-sr/config