mirror of
https://github.com/google/nomulus.git
synced 2025-07-23 19:20:44 +02:00
Add Java changes for new breakglass_mode column on Tld (#2053)
* Add Java changes for new breakglass_mode column on Tld * Add generated sql schema
This commit is contained in:
parent
6b54b69163
commit
cf1a148208
2 changed files with 13 additions and 0 deletions
|
@ -475,6 +475,9 @@ public class Tld extends ImmutableObject implements Buildable, UnsafeSerializabl
|
||||||
/** An allowlist of hosts allowed to be used on domains on this TLD (ignored if empty). */
|
/** An allowlist of hosts allowed to be used on domains on this TLD (ignored if empty). */
|
||||||
@Nullable Set<String> allowedFullyQualifiedHostNames;
|
@Nullable Set<String> allowedFullyQualifiedHostNames;
|
||||||
|
|
||||||
|
@Column(nullable = false)
|
||||||
|
boolean breakglassMode = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* References to allocation tokens that can be used on the TLD if no other token is passed in on a
|
* References to allocation tokens that can be used on the TLD if no other token is passed in on a
|
||||||
* domain create.
|
* domain create.
|
||||||
|
@ -701,6 +704,10 @@ public class Tld extends ImmutableObject implements Buildable, UnsafeSerializabl
|
||||||
return nullToEmptyImmutableCopy(idnTables);
|
return nullToEmptyImmutableCopy(idnTables);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean getBreakglassMode() {
|
||||||
|
return breakglassMode;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Builder asBuilder() {
|
public Builder asBuilder() {
|
||||||
return new Builder(clone(this));
|
return new Builder(clone(this));
|
||||||
|
@ -1004,6 +1011,11 @@ public class Tld extends ImmutableObject implements Buildable, UnsafeSerializabl
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Builder setBreakglassMode(boolean breakglassMode) {
|
||||||
|
getInstance().breakglassMode = breakglassMode;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Tld build() {
|
public Tld build() {
|
||||||
final Tld instance = getInstance();
|
final Tld instance = getInstance();
|
||||||
|
|
|
@ -704,6 +704,7 @@
|
||||||
anchor_tenant_add_grace_period_length interval not null,
|
anchor_tenant_add_grace_period_length interval not null,
|
||||||
auto_renew_grace_period_length interval not null,
|
auto_renew_grace_period_length interval not null,
|
||||||
automatic_transfer_length interval not null,
|
automatic_transfer_length interval not null,
|
||||||
|
breakglass_mode boolean not null,
|
||||||
claims_period_end timestamptz not null,
|
claims_period_end timestamptz not null,
|
||||||
create_billing_cost_amount numeric(19, 2),
|
create_billing_cost_amount numeric(19, 2),
|
||||||
create_billing_cost_currency text,
|
create_billing_cost_currency text,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue