Make the needed changes to
the PhoneNumber. Where
set of params can be:
applicationId,
fallback_number,

@param data: set of valid patching options
172149
public function patch($data)
    {
        $app = $data['applicationId'];
        if ($app instanceof Application)
            $data['applicationId'] = $app->id;
        $data = Ensure::Input($data);
        $url = URIResource::Make($this->path, array($this->id));

        $this->client->post($url, $data->get());
        return Constructor::Make($this, $data->get());
    }
608824
def patch(self, path, data, **options):
        
        data, options = self._update_request(data, options)
        return self.request('patch', path, data=data, **options)
1067656
def update(self, callback=None, errback=None, **kwargs):
        
        if not self.data:
            raise NetworkException('Network not loaded')

        def success(result, *args):
            self.data = result
            self.id = result['id']
            self.name = result['name']
            self.report = self._rest.report(self.id)
            if callback:
                return callback(self)
            else:
                return self

        return self._rest.update(self.id, callback=success, errback=errback,
                                 **kwargs)
206591
function addError(data, error) {
	if (!data.error) {
		data.error = [];
	}
	error.lineNumber = data.lineNumber;
	data.error.push(error);
}
43248
function defaultUpdateFunction(instance, data) {
    if (instance.isMatreshkaArray) {
        instance.recreate(data);
    } else if (instance.isMatreshkaObject) {
        instance.setData(data, { replaceData: true });
    } else {
        // for other objects just extend them with given data
        nofn.assign(instance, data);
    }
}
1282945
@Deprecated
    public void replaceData(int position, @Nullable List<Card> data) {
        Preconditions.checkState(mGroupBasicAdapter != null, "Must call bindView() first");
        this.mGroupBasicAdapter.replaceGroup(position, data);
    }
1179865
def update(self, data):
        
        try:
            self.verifier.update(data)
        except TypeError:
            log.error("Invalid data: {} ({})".format(type(data), data))
            raise
1102193
function dataWatchFn(newData, oldData) {
                        if (newData !== oldData){
                            if (!scope._config.disabled) {
                                scope._config.refreshDataOnly ? scope.api.update() : scope.api.refresh(); // if wanted to refresh data only, use update method, otherwise use full refresh.
                            }
                        }
                    }
1044308
def update(data)
      process_name(data) if data['name']
      process_version(data) if data['version']
      process_source(data) if data['source']
      process_data_provider(data) if data['data_provider']
      merge_dependencies(data) if data['dependencies']

      @data.merge!(data)
      return self
    end
1038275
function(data) {
			var i, n, value, self = this;
	
			if ($.isArray(data)) {
				for (i = 0, n = data.length; i < n; i++) {
					self.addOption(data[i]);
				}
				return;
			}
	
			if (value = self.registerOption(data)) {
				self.userOptions[value] = true;
				self.lastQuery = null;
				self.trigger('option_add', value, data);
			}
		}
667295
public void update(float newData) {
        float data = history[0]*decay + newData*(1-decay);

        float[] r = new float[Math.min(history.length+1,historySize)];
        System.arraycopy(history,0,r,1,Math.min(history.length,r.length-1));
        r[0] = data;
        history = r;
    }
448274
public void setData(byte[] data) {
        if (immutable) {
            throw new IllegalStateException(ERR_MSG_IMMUTABLE);
        }
        if (data == null) {
            this.data = null;
        } else {
            setData(data, 0, data.length);
        }
    }
909901
def update(self, id, data):
        
        id = self.as_id(id)
        response = self.http.patch(
            '%s/%s' % (self, id), json=data, auth=self.auth
        )
        response.raise_for_status()
        return response.json()
188422
public BaseDataJsonFieldBo setData(Object data) {
        return setData(data != null ? SerializationUtils.toJson(data) : null);
    }
917517
public void updateRepeatNumber(int newNum, int path_id, String client_uuid) throws Exception {
        updateRequestResponseTables("repeat_number", newNum, getProfileIdFromPathID(path_id), client_uuid, path_id);
    }
162808
def update(self, data):
        
        data = values.of({'Data': serialize.object(data), })

        payload = self._version.update(
            'POST',
            self._uri,
            data=data,
        )

        return SyncMapItemInstance(
            self._version,
            payload,
            service_sid=self._solution['service_sid'],
            map_sid=self._solution['map_sid'],
            key=self._solution['key'],
        )
44248
function handleDataAndCallCallback(data) {
			const j = file.lastIndexOf("/");

			// Pass on an updated rootpath if path of imported file is relative and file
			// is in a (sub|sup) directory
			//
			// Examples:
			// - If path of imported file is 'module/nav/nav.less' and rootpath is 'less/',
			//   then rootpath should become 'less/module/nav/'
			// - If path of imported file is '../mixins.less' and rootpath is 'less/',
			//   then rootpath should become 'less/../'
			if (newFileInfo.relativeUrls && !/^(?:[a-z-]+:|\/)/.test(file) && j != -1) {
				const relativeSubDirectory = file.slice(0, j+1);
				newFileInfo.rootpath = newFileInfo.rootpath + relativeSubDirectory; // append (sub|sup) directory path of imported file
			}
			// eslint-disable-next-line no-useless-escape
			newFileInfo.currentDirectory = pathname.replace(/[^\\\/]*$/, "");
			newFileInfo.filename = pathname;

			callback(null, data, pathname, newFileInfo);
		}