Change DNS domain record.

@param $domain
@param $recordId
@param $val
@param $priority

@return mixed
181392
public function changeDNSDomainRecord($domain, $recordId, $val, $priority)
    {
        return $this->send('v-change-dns-record', $this->userName, $domain, $recordId, $val,
            $priority);
    }
376142
public function setDomain($domain)
    {
        if (strlen($domain) == 0) {
            throw new \InvalidArgumentException(sprintf('Cloud domain should not be empty'));
        }

        $this->domain = $domain;

        return $this;
    }
326008
public function deleteDomainAction(Domain $domain)
    {
        $site = $domain->getSite();
        if ($site->getPrimaryDomain() === $domain) {
            $site->setPrimaryDomain(null);
            $this->siteRepository->update($site);
        }
        $this->domainRepository->remove($domain);
        $this->addFlashMessage('The domain "%s" has been deleted.', 'Domain deleted', Message::SEVERITY_OK, [htmlspecialchars($domain)], 1412373310);
        $this->unsetLastVisitedNodeAndRedirect('edit', null, null, ['site' => $site]);
    }
572431
def delete_domain(self, domain, params=None):
        ''' 
        '''
        params = update_params(params, {'domain': domain})
        return self.request('/v1/dns/delete_domain', params, 'POST')
285984
public ZAuth configurePlain(String domain, String filename)
    {
        Objects.requireNonNull(domain, "Domain has to be supplied");
        Objects.requireNonNull(filename, "File name has to be supplied");
        return send(Mechanism.PLAIN.name(), domain, filename);
    }
504234
def update(gandi, domain, zone_id, file, record, new_record):
    
    if not zone_id:
        result = gandi.domain.info(domain)
        zone_id = result['zone_id']

    if not zone_id:
        gandi.echo('No zone records found, domain %s doesn\'t seems to be'
                   ' managed at Gandi.' % domain)
        return
    if file:
        records = file.read()
        result = gandi.record.zone_update(zone_id, records)
        return result
    elif record and new_record:
        result = gandi.record.update(zone_id, record, new_record)
        return result
    else:
        gandi.echo('You must indicate a zone file or a record.'
                   ' Use `gandi record update --help` for more information')
249834
function setDomain()
    {
        $this->domains = func_get_args();
        $this->removeDNProp('id-at-commonName');
        $this->setDNProp('id-at-commonName', $this->domains[0]);
    }
932400
public function ddns($domain,$ip='',$lineId = 1)
    {
        $arr = array(
            'domain' => $domain,
            'ip' => $ip,
            'line_id' => $lineId
        );
        //设置参数体
        $this->setData(json_encode($arr));
        //设置请求的方法
        $this->setMethod('POST');
        //初始化参数
        $this->initParam();
        //获取返回值
        return $this->response();
    }
948572
private function set_domain_results($users, $domain, $val)
        {
            if (!Arrays::is($users)) {
                $users = (array) $users;
            }
            foreach ($users as $user) {
                $this->results[$user . '@' . $domain] = $val;
            }
        }
341913
public function recordPause($recordId,$domainId,$status)
    {
        $arr = array(
            'id' => $recordId,
            'domain_id' => $domainId,
            'status' => $status
        );
        //设置参数体
        $this->setData(json_encode($arr));
        //设置URL扩展
        $this->setUrlExtend("pause");
        //设置请求的方法
        $this->setMethod('POST');
        //初始化参数
        $this->initParam();
        //获取返回值
        return $this->response();
    }
927470
def update_record(self, domain, record, data=None, priority=None,
            ttl=None, comment=None):
        
        rdict = {"id": record.id,
                "name": record.name,
                }
        pdict = {"data": data,
                "priority": priority,
                "ttl": ttl,
                "comment": comment,
                }
        utils.params_to_dict(pdict, rdict)
        return self.update_records(domain, [rdict])
951455
public function destroyRecord($domain, $recordId)
    {
        return $this->processQuery($this->buildRecordsQuery($domain, $recordId, RecordsActions::ACTION_DESTROY));
    }
1205804
def _update_record_with_id(self, identifier, rtype, content):
        """"""
        record = self._create_request_record(identifier, rtype, None, content,
                                             self._get_lexicon_option('ttl'),
                                             self._get_lexicon_option('priority'))

        self._request_modify_dns_record(record)
488584
def _request_add_dns_record(self, record):
        """"""
        return self._request_internal("Add_DNS_Record",
                                      domain=self.domain,
                                      record=record)
192297
public function setDomain( $domain )
	{
		if ( $domain == $this->getDomain() ) { return; }

		$this->_values['domain'] = (string) $domain;
		$this->setModified();
	}
236896
public function setLabel($label, $domain = null)
    {
        $this->label = $label;
        $this->setDomain($domain);

        return $this;
    }
916652
function setDomain(domain) {
    checkIsObject('domain', domain);
    checkIsString('doamin.name', domain.name);
    //test domain, domain.name
    domainsMap = domainsMap.set(domain.name, domain);
}