Class Versions
- java.lang.Object
-
- com.google.cloud.tools.appengine.operations.Versions
-
public class Versions extends Object
Run various gcloud versions commands.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete(VersionsSelectionConfiguration configuration)
Deletes a specified version or versions.void
list(VersionsListConfiguration configuration)
Lists the versions for a service, or every version of every service if no service is specified.void
start(VersionsSelectionConfiguration configuration)
Starts serving a specific version or versions.void
stop(VersionsSelectionConfiguration configuration)
Stops serving a specific version or versions.
-
-
-
Method Detail
-
start
public void start(VersionsSelectionConfiguration configuration) throws AppEngineException
Starts serving a specific version or versions.- Throws:
CloudSdkNotFoundException
- when the Cloud SDK is not installed where expectedCloudSdkOutOfDateException
- when the installed Cloud SDK is too oldAppEngineException
-
stop
public void stop(VersionsSelectionConfiguration configuration) throws AppEngineException
Stops serving a specific version or versions.- Throws:
CloudSdkNotFoundException
- when the Cloud SDK is not installed where expectedCloudSdkOutOfDateException
- when the installed Cloud SDK is too oldAppEngineException
-
delete
public void delete(VersionsSelectionConfiguration configuration) throws AppEngineException
Deletes a specified version or versions.- Throws:
CloudSdkNotFoundException
- when the Cloud SDK is not installed where expectedCloudSdkOutOfDateException
- when the installed Cloud SDK is too oldAppEngineException
-
list
public void list(VersionsListConfiguration configuration) throws AppEngineException
Lists the versions for a service, or every version of every service if no service is specified.- Throws:
CloudSdkNotFoundException
- when the Cloud SDK is not installed where expectedCloudSdkOutOfDateException
- when the installed Cloud SDK is too oldAppEngineException
-
-