mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 16:07:15 +02:00
Add a Nomulus command to set domain create restricted status
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=150665065
This commit is contained in:
parent
620d698479
commit
a958d0a6c3
3 changed files with 43 additions and 0 deletions
|
@ -204,6 +204,14 @@ abstract class CreateOrUpdateTldCommand extends MutatingCommand {
|
|||
description = "Override restrictions on reserved list naming")
|
||||
boolean overrideReservedListRules;
|
||||
|
||||
@Nullable
|
||||
@Parameter(
|
||||
names = {"--domain_create_restricted"},
|
||||
description = "If only domains with nameserver restricted reservation can be created",
|
||||
arity = 1
|
||||
)
|
||||
Boolean domainCreateRestricted;
|
||||
|
||||
@Nullable
|
||||
@Parameter(
|
||||
names = "--claims_period_end",
|
||||
|
@ -365,6 +373,10 @@ abstract class CreateOrUpdateTldCommand extends MutatingCommand {
|
|||
builder.setClaimsPeriodEnd(claimsPeriodEnd);
|
||||
}
|
||||
|
||||
if (domainCreateRestricted != null) {
|
||||
builder.setDomainCreateRestricted(domainCreateRestricted);
|
||||
}
|
||||
|
||||
if (premiumListName != null) {
|
||||
if (premiumListName.isPresent()) {
|
||||
Optional<PremiumList> premiumList = PremiumList.get(premiumListName.get());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue