Add option --non_live_versions to set_num_instances command

This commit introduced a new flag to enable SetNumInstancesCommand to
be able to set the number of instances for all non-live versions for
a given service or for all deployed services.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=222826003
This commit is contained in:
shicong 2018-11-26 08:03:50 -08:00 committed by jianglai
parent 19b7a7b3ec
commit d20b83c820
16 changed files with 582 additions and 85 deletions

View file

@ -66,10 +66,21 @@ class AppEngineConnection {
}
enum Service {
DEFAULT,
TOOLS,
BACKEND,
PUBAPI
DEFAULT("default"),
TOOLS("tools"),
BACKEND("backend"),
PUBAPI("pubapi");
private final String serviceId;
Service(String serviceId) {
this.serviceId = serviceId;
}
/** Returns the actual service id in App Engine. */
String getServiceId() {
return serviceId;
}
}
/** Returns a copy of this connection that talks to a different service. */