LOCATION UPDATING REQUEST Section 9.2.15
194343
def locationUpdatingRequest():
    """"""
    a = TpPd(pd=0x5)
    b = MessageType(mesType=0x8)  # 00001000
    c = LocationUpdatingTypeAndCiphKeySeqNr()
    e = LocalAreaId()
    f = MobileStationClassmark1()
    g = MobileId()
    packet = a / b / c / e / f / g
    return packet
178169
def updateRPYLocations(self):
        ''''''
        # Locations
        self.rollText.set_position((self.leftPos+(self.vertSize/10.0),-0.97+(2*self.vertSize)-(self.vertSize/10.0)))
        self.pitchText.set_position((self.leftPos+(self.vertSize/10.0),-0.97+self.vertSize-(0.5*self.vertSize/10.0)))
        self.yawText.set_position((self.leftPos+(self.vertSize/10.0),-0.97))
        # Font Size
        self.rollText.set_size(self.fontSize)
        self.pitchText.set_size(self.fontSize)
        self.yawText.set_size(self.fontSize)
1087207
@SuppressWarnings("ResultOfMethodCallIgnored") private void updateSuccess(
      DownloadRequest request) {
    updateState(request, DownloadState.SUCCESSFUL);

    /* notify the request download finish */
    request.finish();

    File file = new File(request.tempFilePath());
    if (file.exists()) {
      file.renameTo(new File(request.destinationFilePath()));
    }

    /* deliver success message */
    delivery.postSuccess(request);
  }
895486
@RequestMapping(path="/{orderId}/status", method = RequestMethod.PUT)
    public ResponseEntity<Order> updateStatus(@PathVariable("orderId") Long orderId, @RequestParam("status") OrderStatus status){
        Order order = orderService.updateStatus(orderId, status);
        if(order != null){
            return new ResponseEntity<Order>(order, HttpStatus.OK);
        }
        return new ResponseEntity<Order>(HttpStatus.NOT_FOUND);
    }
668576
def Update(self):
		

		return(clc.v2.Requests(clc.v2.API.Call('PUT','servers/%s/%s/publicIPAddresses/%s' % (self.parent.server.alias,self.parent.server.id,self.id),
						                       json.dumps({'ports': [o.ToDict() for o in self.ports],
											               'sourceRestrictions': [o.ToDict() for o in self.source_restrictions] }),
											   session=self.session),
							   alias=self.parent.server.alias,
							   session=self.session))
479885
void updateReplace() {

        boolean replace = m_replace.getValue().booleanValue();

        m_replaceResource.setVisible(replace ? SearchType.resourcetype.equals(m_searchType.getValue()) : replace);
        m_replacePattern.setVisible(
            replace
            ? !SearchType.resourcetype.equals(m_searchType.getValue())
                & !SearchType.renameContainer.equals(m_searchType.getValue())
            : replace);

        m_newName.setVisible(replace ? SearchType.renameContainer.equals(m_searchType.getValue()) : replace);
        m_oldName.setVisible(replace ? SearchType.renameContainer.equals(m_searchType.getValue()) : replace);

        m_workProject.setVisible(replace);

        m_search.setCaption(
            replace
            ? CmsVaadinUtils.getMessageText(Messages.GUI_SOURCESEARCH_REPLACE_0)
            : CmsVaadinUtils.getMessageText(Messages.GUI_SOURCESEARCH_SEARCH_0));

    }
1278529
protected void updateRelocation(Relocation value, String xmlTag, Counter counter, Element element)
   {
      boolean shouldExist = value != null;
      Element root = updateElement(counter, element, xmlTag, shouldExist);
      if (shouldExist)
      {
         Counter innerCount = new Counter(counter.getDepth() + 1);
         findAndReplaceSimpleElement(innerCount, root, "groupId", value.getGroupId(), null);
         findAndReplaceSimpleElement(innerCount, root, "artifactId", value.getArtifactId(), null);
         findAndReplaceSimpleElement(innerCount, root, "version", value.getVersion(), null);
         findAndReplaceSimpleElement(innerCount, root, "message", value.getMessage(), null);
      }
   }
1299983
def update_request_setting(self, service_id, version_number, name_key, **kwargs):
		""""""
		body = self._formdata(kwargs, FastlyHealthCheck.FIELDS)
		content = self._fetch("/service/%s/version/%d/request_settings/%s" % (service_id, version_number, name_key), method="PUT", body=body)
		return FastlyRequestSetting(self, content)
878152
async def getUpdates(self,
                         offset=None,
                         limit=None,
                         timeout=None,
                         allowed_updates=None):
        
        p = _strip(locals())
        return await self._api_request('getUpdates', _rectify(p))
862635
def _on_new_location(self, form):
        """"""
        self._desired_longitude = float(form.data["long"])
        self._desired_latitude = float(form.data["lat"])
        self._desired_zoom = 13
        self._screen.force_update()
755832
public void update(URI location) {
    try {
      if (mUfs.isFile(mCheckpoint.toString())) {
        UnderFileSystemUtils.deleteFileIfExists(mUfs, mTempBackupCheckpoint.toString());
        UnderFileSystemUtils.deleteFileIfExists(mUfs, mBackupCheckpoint.toString());
        // Rename in two steps so that we never have identical mCheckpointPath and
        // mBackupCheckpointPath. This is a concern since UFS may implement rename as copy + delete.
        mUfs.renameFile(mCheckpoint.toString(), mTempBackupCheckpoint.toString());
        mUfs.renameFile(mTempBackupCheckpoint.toString(), mBackupCheckpoint.toString());
        LOG.info("Backed up the checkpoint file to {}", mBackupCheckpoint.toString());
      }
      mUfs.renameFile(location.getPath(), mCheckpoint.toString());
      LOG.info("Renamed the checkpoint file from {} to {}", location,
          mCheckpoint.toString());

      // The checkpoint already reflects the information in the completed logs.
      mWriter.deleteCompletedLogs();
      UnderFileSystemUtils.deleteFileIfExists(mUfs, mBackupCheckpoint.toString());
    } catch (IOException e) {
      throw new RuntimeException(e);
    }
  }
698519
function addLocation (state) {
  state.results.forEach(endpoint => {
    const isQueryRequest = ['GET', 'HEAD'].includes(endpoint.method)
    const urlParameterNames = (endpoint.path.match(/:\w+/g) || []).map(name => name.substr(1))
    endpoint.params.forEach(result => {
      if (urlParameterNames.includes(result.name)) {
        result.location = 'url'
        return
      }

      // Only few endpoints define request headers
      // - https://developer.github.com/v3/repos/releases/#upload-a-release-asset (Content-Type, Content-Length)
      // - https://developer.github.com/v3/markdown/#render-a-markdown-document-in-raw-mode (Content-Type)
      if (['Content-Type', 'Content-Length'].includes(result.name)) {
        result.location = 'headers'
        return
      }

      // Some endpoints have incorrect pagination headers, this is being worked on by GitHub.
      // e.g. if https://developer.github.com/v3/projects/#create-a-repository-project no longer
      // shows Link: <https://api.github.com/resource?page=2>; rel="next", in theresponse,
      // this can be removed
      if (['page', 'per_page'].includes(result.name)) {
        result.location = 'query'
        return
      }

      result.location = isQueryRequest ? 'query' : 'body'
    })
  })
}
1248991
def update_request(self, request, form):
        """"""
        forms_key = '%s_forms' % self.flow_type

        # Use ordered forms dict in case _formNode wants to fetch the first defined.
        flow_dict = OrderedDict()
        try:
            flow_dict = request.sitegate[forms_key]
        except AttributeError:
            request.sitegate = {}
        except KeyError:
            pass

        flow_dict[self.get_flow_name()] = form
        request.sitegate[forms_key] = flow_dict
761860
def change_location(self, old_location_name, new_location_name, new_parent_name=None,
                        new_er_data=None, new_pmag_data=None, replace_data=False):
        
        location = self.find_by_name(old_location_name, self.locations)
        if not location:
            print('-W- {} is not a currently existing location, so it cannot be updated.'.format(old_location_name))
            return False
        location.change_location(new_location_name, new_er_data, new_pmag_data, replace_data)
        return location
1197766
def edit_resource(self, request):
        
        self.location_query = request.uri_query
        self.payload = (request.content_type, request.payload)
526124
void updateLocationEngineNameAndSimulation(LocationEngine locationEngine) {
    if (locationEngine != null) {
      String locationEngineName = locationEngine.getClass().getName();
      boolean isSimulationEnabled = locationEngineName.equals(MOCK_PROVIDER);
      navigationSessionState = navigationSessionState.toBuilder()
        .locationEngineName(locationEngineName)
        .mockLocation(isSimulationEnabled)
        .build();
    }
  }
461165
function update(req, res, next) {
    for (var key in req.body) {
      req.body[key] = utils.toNative(req.body[key])
    }
    var resource = db(req.params.resource)
      .update(utils.toNative(req._internal.filters.id), req.body)
    if (resource) {
      res.jsonp(resource)
    } else {
      res.status(404).jsonp({})
    }
  }