mirror of
https://github.com/google/nomulus.git
synced 2025-05-14 00:17:20 +02:00
Add ability to manually trigger contact group syncs
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=117549773
This commit is contained in:
parent
9f548674b7
commit
c8d655e416
2 changed files with 20 additions and 0 deletions
|
@ -217,6 +217,13 @@ abstract class CreateOrUpdateRegistrarCommand extends MutatingCommand {
|
|||
arity = 1)
|
||||
private Boolean blockPremiumNames;
|
||||
|
||||
@Nullable
|
||||
@Parameter(
|
||||
names = "--sync_groups",
|
||||
description = "Whether this registrar's groups should be updated at the next scheduled sync",
|
||||
arity = 1)
|
||||
private Boolean contactsRequireSyncing;
|
||||
|
||||
@Nullable
|
||||
@Parameter(
|
||||
names = "--drive_id",
|
||||
|
@ -361,6 +368,9 @@ abstract class CreateOrUpdateRegistrarCommand extends MutatingCommand {
|
|||
if (blockPremiumNames != null) {
|
||||
builder.setBlockPremiumNames(blockPremiumNames);
|
||||
}
|
||||
if (contactsRequireSyncing != null) {
|
||||
builder.setContactsRequireSyncing(contactsRequireSyncing);
|
||||
}
|
||||
// When creating a new REAL registrar or changing the type to REAL, a passcode is required.
|
||||
// Leave existing REAL registrars alone.
|
||||
if (Registrar.Type.REAL.equals(registrarType)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue