public static final class VersionsGrpc.VersionsStub extends io.grpc.stub.AbstractStub<VersionsGrpc.VersionsStub>
Manages versions of a service.
Modifier and Type | Method and Description |
---|---|
protected VersionsGrpc.VersionsStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
void |
createVersion(CreateVersionRequest request,
io.grpc.stub.StreamObserver<Operation> responseObserver)
Deploys code and resource files to a new version.
|
void |
deleteVersion(DeleteVersionRequest request,
io.grpc.stub.StreamObserver<Operation> responseObserver)
Deletes an existing Version resource.
|
void |
getVersion(GetVersionRequest request,
io.grpc.stub.StreamObserver<Version> responseObserver)
Gets the specified Version resource.
|
void |
listVersions(ListVersionsRequest request,
io.grpc.stub.StreamObserver<ListVersionsResponse> responseObserver)
Lists the versions of a service.
|
void |
updateVersion(UpdateVersionRequest request,
io.grpc.stub.StreamObserver<Operation> responseObserver)
Updates the specified Version resource.
|
protected VersionsGrpc.VersionsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build
in class io.grpc.stub.AbstractStub<VersionsGrpc.VersionsStub>
public void listVersions(ListVersionsRequest request, io.grpc.stub.StreamObserver<ListVersionsResponse> responseObserver)
Lists the versions of a service.
public void getVersion(GetVersionRequest request, io.grpc.stub.StreamObserver<Version> responseObserver)
Gets the specified Version resource. By default, only a `BASIC_VIEW` will be returned. Specify the `FULL_VIEW` parameter to get the full resource.
public void createVersion(CreateVersionRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
Deploys code and resource files to a new version.
public void updateVersion(UpdateVersionRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
Updates the specified Version resource. You can specify the following fields depending on the App Engine environment and type of scaling that the version resource uses: * [`serving_status`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.serving_status): For Version resources that use basic scaling, manual scaling, or run in the App Engine flexible environment. * [`instance_class`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.instance_class): For Version resources that run in the App Engine standard environment. * [`automatic_scaling.min_idle_instances`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine standard environment. * [`automatic_scaling.max_idle_instances`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine standard environment.
public void deleteVersion(DeleteVersionRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
Deletes an existing Version resource.