1
0
mirror of https://github.com/google/nomulus synced 2026-01-08 23:23:32 +00: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:
jianglai
2017-03-20 13:07:45 -07:00
committed by Ben McIlwain
parent 620d698479
commit a958d0a6c3
3 changed files with 43 additions and 0 deletions

View File

@@ -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());