Class VersionsGrpc.VersionsStub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<VersionsGrpc.VersionsStub>
com.google.appengine.v1.VersionsGrpc.VersionsStub
Enclosing class:
VersionsGrpc

public static final class VersionsGrpc.VersionsStub extends io.grpc.stub.AbstractAsyncStub<VersionsGrpc.VersionsStub>
A stub to allow clients to do asynchronous rpc calls to service Versions.
 Manages versions of a service.
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub

    io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>>
  • Method Summary

    Modifier and Type
    Method
    Description
    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.

    Methods inherited from class io.grpc.stub.AbstractAsyncStub

    newStub, newStub

    Methods inherited from class io.grpc.stub.AbstractStub

    getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • build

      protected VersionsGrpc.VersionsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<VersionsGrpc.VersionsStub>
    • listVersions

      public void listVersions(ListVersionsRequest request, io.grpc.stub.StreamObserver<ListVersionsResponse> responseObserver)
       Lists the versions of a service.
       
    • getVersion

      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.
       
    • createVersion

      public void createVersion(CreateVersionRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Deploys code and resource files to a new version.
       
    • updateVersion

      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:
       **Standard environment**
       * [`instance_class`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.instance_class)
       *automatic scaling* in the 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)
       * [`automatic_scaling.max_idle_instances`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling)
       * [`automaticScaling.standard_scheduler_settings.max_instances`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings)
       * [`automaticScaling.standard_scheduler_settings.min_instances`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings)
       * [`automaticScaling.standard_scheduler_settings.target_cpu_utilization`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings)
       * [`automaticScaling.standard_scheduler_settings.target_throughput_utilization`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings)
       *basic scaling* or *manual scaling* in the standard environment:
       * [`serving_status`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.serving_status)
       * [`manual_scaling.instances`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#manualscaling)
       **Flexible environment**
       * [`serving_status`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.serving_status)
       *automatic scaling* in the flexible environment:
       * [`automatic_scaling.min_total_instances`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling)
       * [`automatic_scaling.max_total_instances`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling)
       * [`automatic_scaling.cool_down_period_sec`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling)
       * [`automatic_scaling.cpu_utilization.target_utilization`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling)
       *manual scaling* in the flexible environment:
       * [`manual_scaling.instances`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#manualscaling)
       
    • deleteVersion

      public void deleteVersion(DeleteVersionRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Deletes an existing Version resource.