upgrade a Vps

@param string $vpsName The name of the VPS
@param string $upgradeToProductName The name of the product to upgrade to
@throws ApiException on error
426931
public function upgradeVps($vpsName, $upgradeToProductName)
    {
        return $this->getSoapClient(array_merge(array($vpsName, $upgradeToProductName), array('__method' => 'upgradeVps')))->upgradeVps($vpsName, $upgradeToProductName);
    }
449476
public function orderAddon($vpsName, $addons)
    {
        return $this->getSoapClient(array_merge(array($vpsName, $addons), array('__method' => 'orderAddon')))->orderAddon($vpsName, $addons);
    }
979533
public static br_upgrade[] upgrade(nitro_service client, br_upgrade[] resources) throws Exception
	{
		if(resources == null)
			throw new Exception("Null resource array");
		
		
		if(resources.length == 1)
			return ((br_upgrade[]) resources[0].perform_operation(client, "upgrade"));
		
		return ((br_upgrade[]) perform_operation_bulk_request(client, resources, "upgrade"));
	}
866687
def upgrade_available(name, **kwargs):
    '''
    
    '''
    version = None
    cmd = ['pkg', 'list', '-Huv', name]
    lines = __salt__['cmd.run_stdout'](cmd).splitlines()
    if not lines:
        return {}
    ret = {}
    for line in lines:
        ret[_ips_get_pkgname(line)] = _ips_get_pkgversion(line)
    return ret
356664
public function upgrade(): void
    {
        // This table was previously created by the googlemap module in 1.7.9.
        // These migrations are now part of the core code.

        if (!DB::schema()->hasTable('placelocation')) {
            DB::schema()->create('placelocation', static function (Blueprint $table): void {
                $table->integer('pl_id')->primary();
                $table->integer('pl_parent_id');
                $table->integer('pl_level');
                $table->string('pl_place', 255);
                $table->string('pl_long', 30)->nullable();
                $table->string('pl_lati', 30)->nullable();
                $table->integer('pl_zoom')->nullable();
                $table->string('pl_icon', 255)->nullable();

                $table->index('pl_place');
                $table->unique(['pl_parent_id', 'pl_place']);
            });
        }

        if (DB::schema()->hasColumn('placelocation', 'pl_media')) {
            DB::schema()->table('placelocation', static function (Blueprint $table): void {
                $table->dropColumn('pl_media');
                $table->dropColumn('sv_long');
                $table->dropColumn('sv_lati');
                $table->dropColumn('sv_bearing');
                $table->dropColumn('sv_elevation');
                $table->dropColumn('sv_zoom');
            });
        }
    }
483645
public function upgrade(string $local_name,
                            string $remote,
                            string $auth,
                            array $request)
    {
        $url = $this->base_url.'/'.$local_name.'/upgrade?'.http_build_query([
                    'remote' => $remote,
                ]
            );

        $header = [];

        if ($auth) {
            $header = ['X-Registry-Auth' => $auth];
        }

        return $this->curl->post($url, json_encode($request), $header);
    }
634496
public void upgrade(ConnectionProtocol upgrade)
  {
    connHttp().request(upgrade);
    //_upgrade = upgrade;
    
    //upgrade.start();
    
    requestHttp().upgrade();
    
    _state = _state.toUpgrade();
    
    requestHttp().connTcp().proxy().requestWake();
  }
892520
public static base_response update(nitro_service client, vserver resource) throws Exception {
		vserver updateresource = new vserver();
		updateresource.name = resource.name;
		updateresource.backupvserver = resource.backupvserver;
		updateresource.redirecturl = resource.redirecturl;
		updateresource.cacheable = resource.cacheable;
		updateresource.clttimeout = resource.clttimeout;
		updateresource.somethod = resource.somethod;
		updateresource.sopersistence = resource.sopersistence;
		updateresource.sopersistencetimeout = resource.sopersistencetimeout;
		updateresource.sothreshold = resource.sothreshold;
		updateresource.pushvserver = resource.pushvserver;
		return updateresource.update_resource(client);
	}
543300
def upgrade_plan(self, subid, vpsplanid, params=None):
        ''' 
        '''
        params = update_params(params, {
            'SUBID': subid,
            'VPSPLANID': vpsplanid
        })
        return self.request('/v1/server/upgrade_plan', params, 'POST')
788557
public ArrayList<String> veeamCloudConnect_serviceName_upgrade_GET(String serviceName, OvhOffer offer) throws IOException {
		String qPath = "/order/veeamCloudConnect/{serviceName}/upgrade";
		StringBuilder sb = path(qPath, serviceName);
		query(sb, "offer", offer);
		String resp = exec(qPath, "GET", sb.toString(), null);
		return convertTo(resp, t1);
	}
163463
public static base_response update(nitro_service client, vpntrafficaction resource) throws Exception {
		vpntrafficaction updateresource = new vpntrafficaction();
		updateresource.name = resource.name;
		updateresource.apptimeout = resource.apptimeout;
		updateresource.sso = resource.sso;
		updateresource.formssoaction = resource.formssoaction;
		updateresource.fta = resource.fta;
		updateresource.wanscaler = resource.wanscaler;
		updateresource.kcdaccount = resource.kcdaccount;
		updateresource.samlssoprofile = resource.samlssoprofile;
		return updateresource.update_resource(client);
	}
1173640
public function update($componentName)
    {
        $warningMessages = array();

        $this->executeListenerHook('onComponentUpdateStarting', array($componentName));

        foreach ($this->componentsWithUpdateFile[$componentName] as $file => $fileVersion) {
            try {
                require_once $file; // prefixed by PIWIK_INCLUDE_PATH

                $className = $this->getUpdateClassName($componentName, $fileVersion);
                if (!in_array($className, $this->updatedClasses)
                    && class_exists($className, false)
                ) {
                    $this->executeListenerHook('onComponentUpdateFileStarting', array($componentName, $file, $className, $fileVersion));

                    $this->executeSingleUpdateClass($className);

                    $this->executeListenerHook('onComponentUpdateFileFinished', array($componentName, $file, $className, $fileVersion));

                    // makes sure to call Piwik\Columns\Updater only once as one call updates all dimensions at the same
                    // time for better performance
                    $this->updatedClasses[] = $className;
                }

                $this->markComponentSuccessfullyUpdated($componentName, $fileVersion);
            } catch (UpdaterErrorException $e) {
                $this->executeListenerHook('onError', array($componentName, $fileVersion, $e));
                throw $e;

            } catch (\Exception $e) {
                $warningMessages[] = $e->getMessage();

                $this->executeListenerHook('onWarning', array($componentName, $fileVersion, $e));
            }
        }

        // to debug, create core/Updates/X.php, update the core/Version.php, throw an Exception in the try, and comment the following lines
        $updatedVersion = $this->componentsWithNewVersion[$componentName][self::INDEX_NEW_VERSION];
        $this->markComponentSuccessfullyUpdated($componentName, $updatedVersion);

        $this->executeListenerHook('onComponentUpdateFinished', array($componentName, $updatedVersion, $warningMessages));
        ServerFilesGenerator::createHtAccessFiles();
        return $warningMessages;
    }
987151
protected function do_single_upgrade($fromVersion, $toVersion=null) {
		$upgradeType = self::UPGRADE_VERSION_ONLY;
		
		$versionIndex = $this->get_full_version_string($fromVersion);
		
		if(isset($this->matchingData[$versionIndex])) {
			//scripted upgrade...
			$upgradeData = $this->matchingData[$versionIndex];
			if(isset($upgradeData['target_version']) && count($upgradeData) > 1) {
				$this->newVersion = $upgradeData['target_version'];
				if(isset($upgradeData['script_name']) && isset($upgradeData['class_name']) && isset($upgradeData['call_method'])) {
					$this->do_scripted_upgrade($upgradeData);
					$toVersion = $upgradeData['target_version'];
					$upgradeType = self::UPGRADE_SCRIPTED;
				}
			}
			else {
				$this->error_handler(__METHOD__ .": target version not specified, unable to proceed with scripted upgrade for ". $versionIndex);
			}
		}
		
		$this->newVersion = $toVersion;
		$this->update_database_version($toVersion);
		
		$this->do_log("Finished upgrade to ". $this->newVersion, 'system');
		
		return $upgradeType;
	}
915601
void initializeDistributedUpgrade() throws IOException {
    if(! upgradeManager.initializeUpgrade())
      return;
    // write new upgrade state into disk
    writeAll();
    LOG.info("\n   Distributed upgrade for NameNode version "
             + upgradeManager.getUpgradeVersion() + " to current LV "
             + layoutVersion + " is initialized.");
  }
1102974
public function renameFormTab($tabName, $newTabName, $keepOrder = true)
    {
        $tabs = $this->getFormTabs();

        if (!$tabs) {
            return;
        }

        if (!isset($tabs[$tabName])) {
            throw new \Exception(sprintf('Tab %s does not exist.', $tabName));
        }
        if (isset($tabs[$newTabName])) {
            return;
        }

        if ($keepOrder) {
            $keys = array_keys($tabs);
            $keys[array_search($tabName, $keys)] = $newTabName;
            $tabs = array_combine($keys, $tabs);
        } else {
            $tabs[$newTabName] = $tabs[$tabName];
            unset($tabs[$tabName]);
        }

        $this->setFormTabs($tabs);
    }
567292
public static ns_upgrade[] upgrade(nitro_service client, ns_upgrade[] resources) throws Exception
	{
		if(resources == null)
			throw new Exception("Null resource array");
		
		
		if(resources.length == 1)
			return ((ns_upgrade[]) resources[0].perform_operation(client, "upgrade"));
		
		return ((ns_upgrade[]) perform_operation_bulk_request(client, resources, "upgrade"));
	}
561896
def upgradestep(upgrade_product, version):
    
    def wrap_func(fn):
        def wrap_func_args(context, *args):
            p = getToolByName(context, 'portal_quickinstaller').get(upgrade_product)
            setattr(p, 'installedversion', version)
            return fn(context, *args)
        return wrap_func_args
    return wrap_func