mirror of
https://github.com/google/nomulus
synced 2026-09-20 23:14:44 +00:00
Add tool commands to modify TTLs on a TLD (#1985)
* Add tool commands to modify TTLs on a TLD * Small changes * Add an example to the parameter description
This commit is contained in:
@@ -785,13 +785,13 @@ public class Registry extends ImmutableObject implements Buildable, UnsafeSerial
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder setDnsNsAtl(Duration dnsNsAtl) {
|
||||
getInstance().dnsNsTtl = dnsNsAtl;
|
||||
public Builder setDnsNsTtl(Duration dnsNsTtl) {
|
||||
getInstance().dnsNsTtl = dnsNsTtl;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder setDnsDsAtl(Duration dnsDsAtl) {
|
||||
getInstance().dnsDsTtl = dnsDsAtl;
|
||||
public Builder setDnsDsTtl(Duration dnsDsTtl) {
|
||||
getInstance().dnsDsTtl = dnsDsTtl;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@@ -237,6 +237,24 @@ abstract class CreateOrUpdateTldCommand extends MutatingCommand {
|
||||
)
|
||||
Integer numDnsPublishShards;
|
||||
|
||||
@Nullable
|
||||
@Parameter(
|
||||
names = {"--dns_a_plus_aaaa_ttl"},
|
||||
description = "The time to live for DNS A and AAAA records (Ex: PT240S)")
|
||||
Duration dnsAPlusAaaaTtl;
|
||||
|
||||
@Nullable
|
||||
@Parameter(
|
||||
names = {"--dns_ns_ttl"},
|
||||
description = "The time to live for DNS NS records (Ex: PT240S)")
|
||||
Duration dnsNsTtl;
|
||||
|
||||
@Nullable
|
||||
@Parameter(
|
||||
names = {"--dns_ds_ttl"},
|
||||
description = "The time to live for DNS DS records (Ex: PT240S)")
|
||||
Duration dnsDsTtl;
|
||||
|
||||
@Nullable
|
||||
@Parameter(
|
||||
names = "--default_tokens",
|
||||
@@ -364,6 +382,9 @@ abstract class CreateOrUpdateTldCommand extends MutatingCommand {
|
||||
Optional.ofNullable(lordnUsername).ifPresent(u -> builder.setLordnUsername(u.orElse(null)));
|
||||
Optional.ofNullable(claimsPeriodEnd).ifPresent(builder::setClaimsPeriodEnd);
|
||||
Optional.ofNullable(numDnsPublishShards).ifPresent(builder::setNumDnsPublishLocks);
|
||||
Optional.ofNullable(dnsAPlusAaaaTtl).ifPresent(builder::setDnsAPlusAaaaTtl);
|
||||
Optional.ofNullable(dnsNsTtl).ifPresent(builder::setDnsNsTtl);
|
||||
Optional.ofNullable(dnsDsTtl).ifPresent(builder::setDnsDsTtl);
|
||||
|
||||
if (premiumListName != null) {
|
||||
if (premiumListName.isPresent()) {
|
||||
|
||||
Reference in New Issue
Block a user