public Mono < Response < ConfigurationSetting > > setSetting ( ConfigurationSetting setting ) { // Validate that setting and key is not null. The key is used in the service URL so it cannot be null. validateSetting ( setting ) ; // This service method call is similar to addSetting except it will create or update a configuration setting. // If the user provides an etag value, it is passed in as If-Match = "{etag value}". If the current value in the // service has a matching etag then it matches, then its value is updated with what the user passed in. // Otherwise, the service throws an exception because the current configuration value was updated and we have an // old value locally. // If no etag value was passed in, then the value is always added or updated. return service . setKey ( serviceEndpoint , setting . key ( ) , setting . label ( ) , setting , getETagValue ( setting . etag ( ) ) , null ) ; }
Creates or updates a configuration value in the service . Partial updates are not supported and the entire configuration setting is updated .