// Copyright 2016 The Nomulus Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. {namespace domain.registry.tools autoescape="strict"} /** * Domain allocate request. */ {template .create} {@param name: string} {@param period: int} {@param registrant: string} {@param contacts: map} {@param authInfo: string} {@param applicationRoid: string} {@param applicationTime: string} {@param? clTrid: string} {@param? nameservers: list} {@param? smdId: string} {@param? launchNotice: map} {@param? dsRecords: list>} {$name} {$period} {if isNonnull($nameservers) and length($nameservers) > 0} {foreach $nameserver in $nameservers} {$nameserver} {/foreach} {/if} {$registrant} {foreach $type in keys($contacts)} {$contacts[$type]} {/foreach} {$authInfo} {$applicationRoid} {$applicationTime} {if isNonnull($smdId)} {$smdId} {/if} {if isNonnull($launchNotice)} {$launchNotice['noticeId']} {$launchNotice['expirationTime']} {$launchNotice['acceptedTime']} {/if} {if isNonnull($dsRecords) and length($dsRecords) > 0} {foreach $dsRecord in $dsRecords} {$dsRecord['keyTag']} {$dsRecord['algorithm']} {$dsRecord['digestType']} {$dsRecord['digest']} {/foreach} {/if} {if isNonnull($clTrid)} {$clTrid} {/if} {/template}