mirror of
https://github.com/google/nomulus.git
synced 2025-05-30 01:10:14 +02:00
This change renames directories in preparation for the great package rename. The repository is now in a broken state because the code itself hasn't been updated. However this should ensure that git correctly preserves history for each file.
75 lines
2.7 KiB
Text
75 lines
2.7 KiB
Text
{namespace domain.registry.tools autoescape="strict"}
|
|
|
|
/**
|
|
* Domain allocate request.
|
|
*/
|
|
{template .create}
|
|
{@param name: string}
|
|
{@param period: int}
|
|
{@param registrant: string}
|
|
{@param contacts: map<string, string>}
|
|
{@param authInfo: string}
|
|
{@param applicationRoid: string}
|
|
{@param applicationTime: string}
|
|
{@param? clTrid: string}
|
|
{@param? nameservers: list<string>}
|
|
{@param? smdId: string}
|
|
{@param? launchNotice: map<string, string>}
|
|
{@param? dsRecords: list<map<string, any>>}
|
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
|
|
<command>
|
|
<create>
|
|
<domain:create xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
|
|
<domain:name>{$name}</domain:name>
|
|
<domain:period unit="y">{$period}</domain:period>
|
|
{if isNonnull($nameservers) and length($nameservers) > 0}
|
|
<domain:ns>
|
|
{foreach $nameserver in $nameservers}
|
|
<domain:hostObj>{$nameserver}</domain:hostObj>
|
|
{/foreach}
|
|
</domain:ns>
|
|
{/if}
|
|
<domain:registrant>{$registrant}</domain:registrant>
|
|
{foreach $type in keys($contacts)}
|
|
<domain:contact type="{$type}">{$contacts[$type]}</domain:contact>
|
|
{/foreach}
|
|
<domain:authInfo>
|
|
<domain:pw>{$authInfo}</domain:pw>
|
|
</domain:authInfo>
|
|
</domain:create>
|
|
</create>
|
|
<extension>
|
|
<allocate:create xmlns:allocate="urn:google:params:xml:ns:allocate-1.0">
|
|
<allocate:applicationRoid>{$applicationRoid}</allocate:applicationRoid>
|
|
<allocate:applicationTime>{$applicationTime}</allocate:applicationTime>
|
|
{if isNonnull($smdId)}
|
|
<allocate:smdId>{$smdId}</allocate:smdId>
|
|
{/if}
|
|
{if isNonnull($launchNotice)}
|
|
<allocate:notice xmlns:launch="urn:ietf:params:xml:ns:launch-1.0">
|
|
<launch:noticeID>{$launchNotice['noticeId']}</launch:noticeID>
|
|
<launch:notAfter>{$launchNotice['expirationTime']}</launch:notAfter>
|
|
<launch:acceptedDate>{$launchNotice['acceptedTime']}</launch:acceptedDate>
|
|
</allocate:notice>
|
|
{/if}
|
|
</allocate:create>
|
|
{if isNonnull($dsRecords) and length($dsRecords) > 0}
|
|
<secDNS:create xmlns:secDNS="urn:ietf:params:xml:ns:secDNS-1.1">
|
|
{foreach $dsRecord in $dsRecords}
|
|
<secDNS:dsData>
|
|
<secDNS:keyTag>{$dsRecord['keyTag']}</secDNS:keyTag>
|
|
<secDNS:alg>{$dsRecord['algorithm']}</secDNS:alg>
|
|
<secDNS:digestType>{$dsRecord['digestType']}</secDNS:digestType>
|
|
<secDNS:digest>{$dsRecord['digest']}</secDNS:digest>
|
|
</secDNS:dsData>
|
|
{/foreach}
|
|
</secDNS:create>
|
|
{/if}
|
|
</extension>
|
|
{if isNonnull($clTrid)}
|
|
<clTRID>{$clTrid}</clTRID>
|
|
{/if}
|
|
</command>
|
|
</epp>
|
|
{/template}
|