mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 16:07:15 +02:00
Rename RemoteApiCommand to CommandWithRemoteApi
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=211521742
This commit is contained in:
parent
e43349592d
commit
8a2388f5b6
38 changed files with 40 additions and 39 deletions
|
@ -26,7 +26,7 @@ import javax.inject.Inject;
|
||||||
* Command to check the status of a Datastore backup, or "snapshot".
|
* Command to check the status of a Datastore backup, or "snapshot".
|
||||||
*/
|
*/
|
||||||
@Parameters(separators = " =", commandDescription = "Check the status of a Datastore snapshot")
|
@Parameters(separators = " =", commandDescription = "Check the status of a Datastore snapshot")
|
||||||
public class CheckSnapshotCommand implements RemoteApiCommand {
|
public class CheckSnapshotCommand implements CommandWithRemoteApi {
|
||||||
|
|
||||||
@Parameter(
|
@Parameter(
|
||||||
names = {"-s", "--snapshot"},
|
names = {"-s", "--snapshot"},
|
||||||
|
|
|
@ -20,4 +20,4 @@
|
||||||
*/
|
*/
|
||||||
package google.registry.tools;
|
package google.registry.tools;
|
||||||
|
|
||||||
interface RemoteApiCommand extends Command {}
|
interface CommandWithRemoteApi extends Command {}
|
|
@ -28,7 +28,7 @@ import org.joda.time.DateTime;
|
||||||
|
|
||||||
/** Command to show the count of active domains on a given TLD. */
|
/** Command to show the count of active domains on a given TLD. */
|
||||||
@Parameters(separators = " =", commandDescription = "Show count of domains on TLD")
|
@Parameters(separators = " =", commandDescription = "Show count of domains on TLD")
|
||||||
final class CountDomainsCommand implements RemoteApiCommand {
|
final class CountDomainsCommand implements CommandWithRemoteApi {
|
||||||
|
|
||||||
@Parameter(description = "TLD(s) to count domains on", required = true)
|
@Parameter(description = "TLD(s) to count domains on", required = true)
|
||||||
private List<String> mainParameters;
|
private List<String> mainParameters;
|
||||||
|
|
|
@ -32,7 +32,8 @@ import org.joda.time.DateTime;
|
||||||
|
|
||||||
/** A command to create a new domain via EPP. */
|
/** A command to create a new domain via EPP. */
|
||||||
@Parameters(separators = " =", commandDescription = "Create a new domain via EPP.")
|
@Parameters(separators = " =", commandDescription = "Create a new domain via EPP.")
|
||||||
final class CreateDomainCommand extends CreateOrUpdateDomainCommand implements RemoteApiCommand {
|
final class CreateDomainCommand extends CreateOrUpdateDomainCommand
|
||||||
|
implements CommandWithRemoteApi {
|
||||||
|
|
||||||
@Parameter(
|
@Parameter(
|
||||||
names = "--period",
|
names = "--period",
|
||||||
|
|
|
@ -30,7 +30,7 @@ import javax.annotation.Nullable;
|
||||||
* list is currently in use on a tld.
|
* list is currently in use on a tld.
|
||||||
*/
|
*/
|
||||||
@Parameters(separators = " =", commandDescription = "Delete a PremiumList from Datastore.")
|
@Parameters(separators = " =", commandDescription = "Delete a PremiumList from Datastore.")
|
||||||
final class DeletePremiumListCommand extends ConfirmingCommand implements RemoteApiCommand {
|
final class DeletePremiumListCommand extends ConfirmingCommand implements CommandWithRemoteApi {
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
PremiumList premiumList;
|
PremiumList premiumList;
|
||||||
|
|
|
@ -30,7 +30,7 @@ import google.registry.model.registry.Registry.TldType;
|
||||||
* <p>This command will fail if any domains are currently registered on the TLD.
|
* <p>This command will fail if any domains are currently registered on the TLD.
|
||||||
*/
|
*/
|
||||||
@Parameters(separators = " =", commandDescription = "Delete a TLD from Datastore.")
|
@Parameters(separators = " =", commandDescription = "Delete a TLD from Datastore.")
|
||||||
final class DeleteTldCommand extends ConfirmingCommand implements RemoteApiCommand {
|
final class DeleteTldCommand extends ConfirmingCommand implements CommandWithRemoteApi {
|
||||||
|
|
||||||
private Registry registry;
|
private Registry registry;
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ import javax.inject.Inject;
|
||||||
|
|
||||||
/** Command to encrypt an escrow deposit. */
|
/** Command to encrypt an escrow deposit. */
|
||||||
@Parameters(separators = " =", commandDescription = "Encrypt an escrow deposit")
|
@Parameters(separators = " =", commandDescription = "Encrypt an escrow deposit")
|
||||||
class EncryptEscrowDepositCommand implements RemoteApiCommand {
|
class EncryptEscrowDepositCommand implements CommandWithRemoteApi {
|
||||||
|
|
||||||
@Parameter(
|
@Parameter(
|
||||||
names = {"-t", "--tld"},
|
names = {"-t", "--tld"},
|
||||||
|
|
|
@ -49,7 +49,7 @@ import javax.inject.Named;
|
||||||
commandDescription =
|
commandDescription =
|
||||||
"Generates and persists the given number of AllocationTokens, printing each token to stdout."
|
"Generates and persists the given number of AllocationTokens, printing each token to stdout."
|
||||||
)
|
)
|
||||||
public class GenerateAllocationTokensCommand implements RemoteApiCommand {
|
public class GenerateAllocationTokensCommand implements CommandWithRemoteApi {
|
||||||
|
|
||||||
@Parameter(
|
@Parameter(
|
||||||
names = {"-p", "--prefix"},
|
names = {"-p", "--prefix"},
|
||||||
|
|
|
@ -51,7 +51,7 @@ import org.joda.time.DateTime;
|
||||||
|
|
||||||
/** Command to generate a report of all domain applications. */
|
/** Command to generate a report of all domain applications. */
|
||||||
@Parameters(separators = " =", commandDescription = "Generate report of all domain applications.")
|
@Parameters(separators = " =", commandDescription = "Generate report of all domain applications.")
|
||||||
final class GenerateApplicationsReportCommand implements RemoteApiCommand {
|
final class GenerateApplicationsReportCommand implements CommandWithRemoteApi {
|
||||||
|
|
||||||
@Parameter(
|
@Parameter(
|
||||||
names = {"-t", "--tld"},
|
names = {"-t", "--tld"},
|
||||||
|
|
|
@ -66,7 +66,7 @@ import org.joda.time.format.DateTimeFormatter;
|
||||||
|
|
||||||
/** Command to generate the auction data for a TLD. */
|
/** Command to generate the auction data for a TLD. */
|
||||||
@Parameters(separators = " =", commandDescription = "Generate auction data")
|
@Parameters(separators = " =", commandDescription = "Generate auction data")
|
||||||
final class GenerateAuctionDataCommand implements RemoteApiCommand {
|
final class GenerateAuctionDataCommand implements CommandWithRemoteApi {
|
||||||
|
|
||||||
@Parameter(
|
@Parameter(
|
||||||
description = "TLD(s) to generate auction data for",
|
description = "TLD(s) to generate auction data for",
|
||||||
|
|
|
@ -40,7 +40,7 @@ import org.json.simple.JSONValue;
|
||||||
|
|
||||||
/** Command to generate a report of all DNS data. */
|
/** Command to generate a report of all DNS data. */
|
||||||
@Parameters(separators = " =", commandDescription = "Generate report of all DNS data in a TLD.")
|
@Parameters(separators = " =", commandDescription = "Generate report of all DNS data in a TLD.")
|
||||||
final class GenerateDnsReportCommand implements RemoteApiCommand {
|
final class GenerateDnsReportCommand implements CommandWithRemoteApi {
|
||||||
|
|
||||||
@Parameter(
|
@Parameter(
|
||||||
names = {"-t", "--tld"},
|
names = {"-t", "--tld"},
|
||||||
|
|
|
@ -43,7 +43,7 @@ import org.joda.time.DateTime;
|
||||||
* be stored in the specified manual subdirectory of the GCS RDE bucket.
|
* be stored in the specified manual subdirectory of the GCS RDE bucket.
|
||||||
*/
|
*/
|
||||||
@Parameters(separators = " =", commandDescription = "Generate an XML escrow deposit.")
|
@Parameters(separators = " =", commandDescription = "Generate an XML escrow deposit.")
|
||||||
final class GenerateEscrowDepositCommand implements RemoteApiCommand {
|
final class GenerateEscrowDepositCommand implements CommandWithRemoteApi {
|
||||||
|
|
||||||
@Parameter(
|
@Parameter(
|
||||||
names = {"-t", "--tld"},
|
names = {"-t", "--tld"},
|
||||||
|
|
|
@ -31,7 +31,7 @@ import org.joda.time.DateTime;
|
||||||
|
|
||||||
/** Command to generate a LORDN CSV file for an entire TLD. */
|
/** Command to generate a LORDN CSV file for an entire TLD. */
|
||||||
@Parameters(separators = " =", commandDescription = "Generate LORDN CSV file")
|
@Parameters(separators = " =", commandDescription = "Generate LORDN CSV file")
|
||||||
final class GenerateLordnCommand implements RemoteApiCommand {
|
final class GenerateLordnCommand implements CommandWithRemoteApi {
|
||||||
|
|
||||||
@Parameter(
|
@Parameter(
|
||||||
names = {"-t", "--tld"},
|
names = {"-t", "--tld"},
|
||||||
|
|
|
@ -30,7 +30,7 @@ import org.joda.time.DateTime;
|
||||||
/** Command to generate a list of all applications for a given domain name(s). */
|
/** Command to generate a list of all applications for a given domain name(s). */
|
||||||
@Parameters(separators = " =",
|
@Parameters(separators = " =",
|
||||||
commandDescription = "Generate list of application IDs and sponsors for given domain name(s)")
|
commandDescription = "Generate list of application IDs and sponsors for given domain name(s)")
|
||||||
final class GetApplicationIdsCommand implements RemoteApiCommand {
|
final class GetApplicationIdsCommand implements CommandWithRemoteApi {
|
||||||
|
|
||||||
@Parameter(
|
@Parameter(
|
||||||
description = "Fully qualified domain name(s)",
|
description = "Fully qualified domain name(s)",
|
||||||
|
|
|
@ -38,7 +38,7 @@ import org.joda.time.DateTime;
|
||||||
|
|
||||||
/** Command to generate a list of all slds in a tld that have open applications. */
|
/** Command to generate a list of all slds in a tld that have open applications. */
|
||||||
@Parameters(separators = " =", commandDescription = "Generate applied-for domains list")
|
@Parameters(separators = " =", commandDescription = "Generate applied-for domains list")
|
||||||
final class GetAppliedLabelsCommand implements RemoteApiCommand {
|
final class GetAppliedLabelsCommand implements CommandWithRemoteApi {
|
||||||
|
|
||||||
@Parameter(
|
@Parameter(
|
||||||
names = {"-t", "--tld"},
|
names = {"-t", "--tld"},
|
||||||
|
|
|
@ -33,7 +33,7 @@ import java.nio.file.Paths;
|
||||||
* are currently storing in Datastore.
|
* are currently storing in Datastore.
|
||||||
*/
|
*/
|
||||||
@Parameters(separators = " =", commandDescription = "Download the current claims list")
|
@Parameters(separators = " =", commandDescription = "Download the current claims list")
|
||||||
final class GetClaimsListCommand implements RemoteApiCommand {
|
final class GetClaimsListCommand implements CommandWithRemoteApi {
|
||||||
|
|
||||||
@Parameter(
|
@Parameter(
|
||||||
names = {"-o", "--output"},
|
names = {"-o", "--output"},
|
||||||
|
|
|
@ -26,7 +26,7 @@ import org.joda.time.DateTime;
|
||||||
|
|
||||||
/** Abstract command to print one or more resources to stdout. */
|
/** Abstract command to print one or more resources to stdout. */
|
||||||
@Parameters(separators = " =")
|
@Parameters(separators = " =")
|
||||||
abstract class GetEppResourceCommand implements RemoteApiCommand {
|
abstract class GetEppResourceCommand implements CommandWithRemoteApi {
|
||||||
|
|
||||||
private final DateTime now = DateTime.now(UTC);
|
private final DateTime now = DateTime.now(UTC);
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ import org.joda.time.DateTime;
|
||||||
/** Command to show history entries. */
|
/** Command to show history entries. */
|
||||||
@Parameters(separators = " =",
|
@Parameters(separators = " =",
|
||||||
commandDescription = "Show history entries that occurred in a given time range")
|
commandDescription = "Show history entries that occurred in a given time range")
|
||||||
final class GetHistoryEntriesCommand implements RemoteApiCommand {
|
final class GetHistoryEntriesCommand implements CommandWithRemoteApi {
|
||||||
|
|
||||||
@Parameter(
|
@Parameter(
|
||||||
names = {"-a", "--after"},
|
names = {"-a", "--after"},
|
||||||
|
|
|
@ -33,7 +33,7 @@ import org.bouncycastle.openpgp.PGPKeyPair;
|
||||||
separators = " =",
|
separators = " =",
|
||||||
commandDescription = "Retrieves the value of a secret from the keyring."
|
commandDescription = "Retrieves the value of a secret from the keyring."
|
||||||
)
|
)
|
||||||
final class GetKeyringSecretCommand implements RemoteApiCommand {
|
final class GetKeyringSecretCommand implements CommandWithRemoteApi {
|
||||||
|
|
||||||
@Inject Keyring keyring;
|
@Inject Keyring keyring;
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ import java.util.List;
|
||||||
|
|
||||||
/** Command to show a registrar record. */
|
/** Command to show a registrar record. */
|
||||||
@Parameters(separators = " =", commandDescription = "Show registrar record(s)")
|
@Parameters(separators = " =", commandDescription = "Show registrar record(s)")
|
||||||
final class GetRegistrarCommand implements RemoteApiCommand {
|
final class GetRegistrarCommand implements CommandWithRemoteApi {
|
||||||
|
|
||||||
@Parameter(
|
@Parameter(
|
||||||
description = "Client identifier of the registrar account(s)",
|
description = "Client identifier of the registrar account(s)",
|
||||||
|
|
|
@ -27,7 +27,7 @@ import java.util.List;
|
||||||
* Command to get info on a Datastore resource by websafe key.
|
* Command to get info on a Datastore resource by websafe key.
|
||||||
*/
|
*/
|
||||||
@Parameters(separators = " =", commandDescription = "Fetch a Datastore resource by websafe key")
|
@Parameters(separators = " =", commandDescription = "Fetch a Datastore resource by websafe key")
|
||||||
final class GetResourceByKeyCommand implements RemoteApiCommand {
|
final class GetResourceByKeyCommand implements CommandWithRemoteApi {
|
||||||
|
|
||||||
@Parameter(
|
@Parameter(
|
||||||
description = "Websafe key string(s)",
|
description = "Websafe key string(s)",
|
||||||
|
|
|
@ -23,7 +23,7 @@ import java.util.List;
|
||||||
|
|
||||||
/** Command to show a TLD record. */
|
/** Command to show a TLD record. */
|
||||||
@Parameters(separators = " =", commandDescription = "Show TLD record(s)")
|
@Parameters(separators = " =", commandDescription = "Show TLD record(s)")
|
||||||
final class GetTldCommand implements RemoteApiCommand {
|
final class GetTldCommand implements CommandWithRemoteApi {
|
||||||
|
|
||||||
@Parameter(
|
@Parameter(
|
||||||
description = "TLD(s) to show",
|
description = "TLD(s) to show",
|
||||||
|
|
|
@ -37,7 +37,7 @@ import org.bouncycastle.openpgp.PGPPublicKey;
|
||||||
|
|
||||||
/** Command to encrypt/decrypt {@code .ghostryde} files. */
|
/** Command to encrypt/decrypt {@code .ghostryde} files. */
|
||||||
@Parameters(separators = " =", commandDescription = "Encrypt/decrypt a ghostryde file.")
|
@Parameters(separators = " =", commandDescription = "Encrypt/decrypt a ghostryde file.")
|
||||||
final class GhostrydeCommand implements RemoteApiCommand {
|
final class GhostrydeCommand implements CommandWithRemoteApi {
|
||||||
|
|
||||||
@Parameter(
|
@Parameter(
|
||||||
names = {"-e", "--encrypt"},
|
names = {"-e", "--encrypt"},
|
||||||
|
|
|
@ -31,7 +31,7 @@ import java.util.Optional;
|
||||||
|
|
||||||
/** Lists {@link Cursor} timestamps used by locking rolling cursor tasks, like in RDE. */
|
/** Lists {@link Cursor} timestamps used by locking rolling cursor tasks, like in RDE. */
|
||||||
@Parameters(separators = " =", commandDescription = "Lists cursor timestamps used by LRC tasks")
|
@Parameters(separators = " =", commandDescription = "Lists cursor timestamps used by LRC tasks")
|
||||||
final class ListCursorsCommand implements RemoteApiCommand {
|
final class ListCursorsCommand implements CommandWithRemoteApi {
|
||||||
|
|
||||||
@Parameter(names = "--type", description = "Which cursor to list.", required = true)
|
@Parameter(names = "--type", description = "Which cursor to list.", required = true)
|
||||||
private CursorType cursorType;
|
private CursorType cursorType;
|
||||||
|
|
|
@ -33,7 +33,7 @@ import org.json.simple.JSONValue;
|
||||||
*
|
*
|
||||||
* <p>The formatting is done on the server side; this class just dumps the results to the screen.
|
* <p>The formatting is done on the server side; this class just dumps the results to the screen.
|
||||||
*/
|
*/
|
||||||
abstract class ListObjectsCommand implements RemoteApiCommand, ServerSideCommand {
|
abstract class ListObjectsCommand implements ServerSideCommand {
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
@Parameter(
|
@Parameter(
|
||||||
|
|
|
@ -41,7 +41,7 @@ import java.util.Set;
|
||||||
import javax.annotation.Nullable;
|
import javax.annotation.Nullable;
|
||||||
|
|
||||||
/** A {@link ConfirmingCommand} that changes objects in Datastore. */
|
/** A {@link ConfirmingCommand} that changes objects in Datastore. */
|
||||||
public abstract class MutatingCommand extends ConfirmingCommand implements RemoteApiCommand {
|
public abstract class MutatingCommand extends ConfirmingCommand implements CommandWithRemoteApi {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A mutation of a specific entity, represented by an old and a new version of the entity.
|
* A mutation of a specific entity, represented by an old and a new version of the entity.
|
||||||
|
|
|
@ -25,7 +25,7 @@ import javax.inject.Inject;
|
||||||
|
|
||||||
/** Command to show what escrow deposits are pending generation on the server. */
|
/** Command to show what escrow deposits are pending generation on the server. */
|
||||||
@Parameters(separators = " =", commandDescription = "List pending RDE/BRDA deposits.")
|
@Parameters(separators = " =", commandDescription = "List pending RDE/BRDA deposits.")
|
||||||
final class PendingEscrowCommand implements RemoteApiCommand {
|
final class PendingEscrowCommand implements CommandWithRemoteApi {
|
||||||
|
|
||||||
private static final Ordering<PendingDeposit> SORTER =
|
private static final Ordering<PendingDeposit> SORTER =
|
||||||
new Ordering<PendingDeposit>() {
|
new Ordering<PendingDeposit>() {
|
||||||
|
|
|
@ -185,8 +185,8 @@ final class RegistryCli implements AutoCloseable, CommandRunner {
|
||||||
((CommandWithConnection) command).setConnection(getConnection());
|
((CommandWithConnection) command).setConnection(getConnection());
|
||||||
}
|
}
|
||||||
|
|
||||||
// RemoteApiCommands need to have the remote api installed to work.
|
// CommandWithRemoteApis need to have the remote api installed to work.
|
||||||
if (command instanceof RemoteApiCommand) {
|
if (command instanceof CommandWithRemoteApi) {
|
||||||
if (installer == null) {
|
if (installer == null) {
|
||||||
installer = new RemoteApiInstaller();
|
installer = new RemoteApiInstaller();
|
||||||
RemoteApiOptions options = new RemoteApiOptions();
|
RemoteApiOptions options = new RemoteApiOptions();
|
||||||
|
|
|
@ -31,7 +31,7 @@ import google.registry.model.registry.Registry;
|
||||||
* {@link RegistrarContact}.
|
* {@link RegistrarContact}.
|
||||||
*/
|
*/
|
||||||
@Parameters(commandDescription = "Re-save all environment entities.")
|
@Parameters(commandDescription = "Re-save all environment entities.")
|
||||||
final class ResaveEnvironmentEntitiesCommand implements RemoteApiCommand {
|
final class ResaveEnvironmentEntitiesCommand implements CommandWithRemoteApi {
|
||||||
|
|
||||||
private static final int BATCH_SIZE = 10;
|
private static final int BATCH_SIZE = 10;
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ import javax.inject.Inject;
|
||||||
|
|
||||||
/** Command to send ICANN notification that an escrow deposit was uploaded. */
|
/** Command to send ICANN notification that an escrow deposit was uploaded. */
|
||||||
@Parameters(separators = " =", commandDescription = "Send an ICANN report of an uploaded deposit.")
|
@Parameters(separators = " =", commandDescription = "Send an ICANN report of an uploaded deposit.")
|
||||||
final class SendEscrowReportToIcannCommand implements RemoteApiCommand {
|
final class SendEscrowReportToIcannCommand implements CommandWithRemoteApi {
|
||||||
|
|
||||||
@Parameter(
|
@Parameter(
|
||||||
description = "One or more foo-report.xml files.",
|
description = "One or more foo-report.xml files.",
|
||||||
|
|
|
@ -15,5 +15,5 @@
|
||||||
package google.registry.tools;
|
package google.registry.tools;
|
||||||
|
|
||||||
/** A command that executes on the server. */
|
/** A command that executes on the server. */
|
||||||
interface ServerSideCommand extends CommandWithConnection, RemoteApiCommand {
|
interface ServerSideCommand extends CommandWithConnection, CommandWithRemoteApi {
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,7 +42,7 @@ import org.joda.time.Duration;
|
||||||
|
|
||||||
/** Composite command to set up OT&E TLDs and accounts. */
|
/** Composite command to set up OT&E TLDs and accounts. */
|
||||||
@Parameters(separators = " =", commandDescription = "Set up OT&E TLDs and registrars")
|
@Parameters(separators = " =", commandDescription = "Set up OT&E TLDs and registrars")
|
||||||
final class SetupOteCommand extends ConfirmingCommand implements RemoteApiCommand {
|
final class SetupOteCommand extends ConfirmingCommand implements CommandWithRemoteApi {
|
||||||
|
|
||||||
// Regex: 3-14 alphanumeric characters or hyphens, the first of which must be a letter.
|
// Regex: 3-14 alphanumeric characters or hyphens, the first of which must be a letter.
|
||||||
private static final Pattern REGISTRAR_PATTERN = Pattern.compile("^[a-z][-a-z0-9]{2,13}$");
|
private static final Pattern REGISTRAR_PATTERN = Pattern.compile("^[a-z][-a-z0-9]{2,13}$");
|
||||||
|
|
|
@ -29,7 +29,7 @@ import org.joda.time.DateTime;
|
||||||
|
|
||||||
/** Command to update the claims notice on a domain application. */
|
/** Command to update the claims notice on a domain application. */
|
||||||
@Parameters(separators = " =", commandDescription = "Update the claims notice on an application.")
|
@Parameters(separators = " =", commandDescription = "Update the claims notice on an application.")
|
||||||
final class UpdateClaimsNoticeCommand implements RemoteApiCommand {
|
final class UpdateClaimsNoticeCommand implements CommandWithRemoteApi {
|
||||||
|
|
||||||
@Parameter(
|
@Parameter(
|
||||||
names = "--id",
|
names = "--id",
|
||||||
|
|
|
@ -32,7 +32,7 @@ import javax.inject.Inject;
|
||||||
separators = " =",
|
separators = " =",
|
||||||
commandDescription = "Update values of secrets in KmsKeyring."
|
commandDescription = "Update values of secrets in KmsKeyring."
|
||||||
)
|
)
|
||||||
final class UpdateKmsKeyringCommand implements RemoteApiCommand {
|
final class UpdateKmsKeyringCommand implements CommandWithRemoteApi {
|
||||||
|
|
||||||
@Inject KmsUpdater kmsUpdater;
|
@Inject KmsUpdater kmsUpdater;
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ import org.joda.time.DateTime;
|
||||||
|
|
||||||
/** Command to update the SMD on a domain application. */
|
/** Command to update the SMD on a domain application. */
|
||||||
@Parameters(separators = " =", commandDescription = "Update the SMD on an application.")
|
@Parameters(separators = " =", commandDescription = "Update the SMD on an application.")
|
||||||
final class UpdateSmdCommand implements RemoteApiCommand {
|
final class UpdateSmdCommand implements CommandWithRemoteApi {
|
||||||
|
|
||||||
@Inject DomainFlowTmchUtils tmchUtils;
|
@Inject DomainFlowTmchUtils tmchUtils;
|
||||||
@Inject UpdateSmdCommand() {}
|
@Inject UpdateSmdCommand() {}
|
||||||
|
|
|
@ -30,7 +30,7 @@ import java.util.List;
|
||||||
|
|
||||||
/** A command to upload a {@link ClaimsListShard}. */
|
/** A command to upload a {@link ClaimsListShard}. */
|
||||||
@Parameters(separators = " =", commandDescription = "Manually upload a new claims list file")
|
@Parameters(separators = " =", commandDescription = "Manually upload a new claims list file")
|
||||||
final class UploadClaimsListCommand extends ConfirmingCommand implements RemoteApiCommand {
|
final class UploadClaimsListCommand extends ConfirmingCommand implements CommandWithRemoteApi {
|
||||||
|
|
||||||
@Parameter(description = "Claims list filename")
|
@Parameter(description = "Claims list filename")
|
||||||
private List<String> mainParameters = new ArrayList<>();
|
private List<String> mainParameters = new ArrayList<>();
|
||||||
|
|
|
@ -34,7 +34,7 @@ import javax.annotation.Nullable;
|
||||||
|
|
||||||
/** A command to test registrar login credentials. */
|
/** A command to test registrar login credentials. */
|
||||||
@Parameters(separators = " =", commandDescription = "Test registrar login credentials")
|
@Parameters(separators = " =", commandDescription = "Test registrar login credentials")
|
||||||
final class ValidateLoginCredentialsCommand implements RemoteApiCommand {
|
final class ValidateLoginCredentialsCommand implements CommandWithRemoteApi {
|
||||||
|
|
||||||
@Parameter(
|
@Parameter(
|
||||||
names = {"-c", "--client"},
|
names = {"-c", "--client"},
|
||||||
|
|
|
@ -23,7 +23,7 @@ import javax.inject.Inject;
|
||||||
|
|
||||||
/** Command to execute a WHOIS query. */
|
/** Command to execute a WHOIS query. */
|
||||||
@Parameters(separators = " =", commandDescription = "Manually perform a WHOIS query")
|
@Parameters(separators = " =", commandDescription = "Manually perform a WHOIS query")
|
||||||
final class WhoisQueryCommand implements RemoteApiCommand {
|
final class WhoisQueryCommand implements CommandWithRemoteApi {
|
||||||
|
|
||||||
@Parameter(
|
@Parameter(
|
||||||
description = "WHOIS query string",
|
description = "WHOIS query string",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue