Update the subaccount
@param string $name The name of the subaccount
@param boolean|null $enabled Specify if the subaccount should be enabled
or not. Takes a value of True or False.
@return \Plivo\Resources\ResponseUpdate
760013
public function update($name, $enabled = null)
    {
        return $this->proxyToInterface()->update(
            $this->pathParams['subAuthId'], $name, $enabled);
    }
1004273
public function setName($name)
    {
        assert(is_string($name));

        if ($this->_name !== null && $this->_name !== $name) {
            throw new ClientException('Should not update the name of an existing collection');
        }

        $this->_name = (string) $name;
    }
1112582
public function enabled($enable = null)
    {
        if (!func_num_args()) {
            return $this->_enabled;
        }
        $this->_enabled = $enable;
        return $this;
    }
1322461
public function update($enabled) {
        $data = Values::of(array('Enabled' => Serialize::booleanToString($enabled), ));

        $payload = $this->version->update(
            'POST',
            $this->uri,
            array(),
            $data
        );

        return new InstalledAddOnExtensionInstance(
            $this->version,
            $payload,
            $this->solution['installedAddOnSid'],
            $this->solution['sid']
        );
    }
1162712
protected function updateBelongsToRelation($eloquentModel, $name, $action)
    {
        if ($action == 'insert' || $action == 'update') {
            $eloquentModel->{$name}()->associate($eloquentModel->getRelation($name));
        }
    }
1240515
public function addBcc($address, $name = null)
    {
        $current = $this->getBcc();
        $current[$address] = $name;

        return $this->setBcc($current);
    }
1190465
public function setEnabled(string $enabled = "T") : CNabuDataObject
    {
        if ($enabled === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$enabled")
            );
        }
        $this->setValue('nb_site_lang_enabled', $enabled);
        
        return $this;
    }
26514
public function updatePolicy(
        PolicyUpdateData $data,
        ?string $name = null
    ): FormInterface {
        $name = $name ?: sprintf('update-policy-%s', md5(implode('/', $data->getPolicy())));

        return $this->formFactory->createNamed($name, PolicyUpdateType::class, $data);
    }
191483
protected function _update()
    {

        //encode sensitive data
        if ($sValue = $this->oxuserpayments__oxvalue->value) {
            // Function is called from inside a transaction in Category::save (see ESDEV-3804 and ESDEV-3822).
            // No need to explicitly force master here.
            $database = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();

            $sEncodedValue = $database->getOne("select encode( " . $database->quote($sValue) . ", '" . $this->getPaymentKey() . "' )");
            $this->oxuserpayments__oxvalue->setValue($sEncodedValue);
        }

        $blRet = parent::_update();

        //restore, as encoding was needed only for saving
        if ($sEncodedValue) {
            $this->oxuserpayments__oxvalue->setValue($sValue);
        }

        return $blRet;
    }
1042876
public static function Updatable ($name, $extension = null, $forced_obtain = false) {
		$access_lv = static::GetDetail($name, $extension, $forced_obtain)['access'];
		if ($access_lv === static::PHP_INI_USER) {
			return true;
		}
		if ($access_lv === static::PHP_INI_ALL) {
			return true;
		}
		return false;
	}
897541
public function rename($name)
    {
        $retval = [
            'success' => false,
            'data'    => [],
        ];

        $response = self::$httpClient->patch(
            self::$account->getMetadataUrl() . "nodes/{$this['id']}",
            [
                'headers' => [
                    'Authorization' => 'Bearer ' . self::$account->getToken()['access_token'],
                ],
                'json' => [
                    'name' => $name,
                ],
                'exceptions' => false,
            ]
        );

        $retval['data'] = json_decode((string)$response->getBody(), true);

        if ($response->getStatusCode() === 200) {
            $retval['success'] = true;
            $this->replace($retval['data']);
            $this->save();
        }

        return $retval;
    }
3704
public function update($identity, $label = null, $master = null, $status = null)
    {

        $params = array();
        if (! is_null($label)) {
            $params['label'] = $label;
        }
        if (! is_null($master)) {
            $params['master'] = $master;
        }
        if (! is_null($status)) {
            $params['status'] = $status;
        }

        return $this->_user->put('account/identity/' . $identity, $params);
    }
309014
public function updateLocation(
        LocationUpdateData $data = null,
        ?string $name = null
    ): FormInterface {
        $name = $name ?: StringUtil::fqcnToBlockPrefix(LocationUpdateType::class);

        return $this->formFactory->createNamed($name, LocationUpdateType::class, $data);
    }
1289000
public function account($name = null) {
        $name = $name ?: $this->getDefaultAccount();

        // If the connection has not been resolved yet we will resolve it now as all
        // of the connections are resolved when they are actually needed so we do
        // not make any unnecessary connection to the various queue end-points.
        if (!isset($this->accounts[$name])) {
            $this->accounts[$name] = $this->resolve($name);
        }

        return $this->accounts[$name];
    }
1117806
public function enable($name = null)
	{
		// Check if it exists. if not, bail out
		if ( ! $this->field($name))
		{
			throw new \RuntimeException('Field "'.$name.'" does not exist in this Fieldset.');
		}

		if (isset($this->disabled[$name]))
		{
			unset($this->disabled[$name]);
		}

		return $this;
	}
1286598
public function startTransaction(string $name, array $context = [], float $start = null): Transaction
    {
        // Create and Store Transaction
        $this->transactionsStore->register(
            $this->eventFactory->createTransaction($name, array_replace_recursive($this->sharedContext, $context), $start)
        );

        // Start the Transaction
        $transaction = $this->transactionsStore->fetch($name);

        if (null === $start) {
            $transaction->start();
        }

        return $transaction;
    }
987026
public function update(SettingsInterface $settings)
    {
        $request = $this->initApiRequest(
            $this->account->getApiToken(Token::API_SETTINGS),
            $this->account->getName(),
            $this->activeDomain
        );
        $request->setPath(ApiRequest::PATH_SETTINGS);
        $response = $request->put($settings);
        return self::checkResponse($request, $response);
    }