Class ServiceManagerGrpc.ServiceManagerStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractAsyncStub<ServiceManagerGrpc.ServiceManagerStub>
-
- com.google.api.servicemanagement.v1.ServiceManagerGrpc.ServiceManagerStub
-
- Enclosing class:
- ServiceManagerGrpc
public static final class ServiceManagerGrpc.ServiceManagerStub extends io.grpc.stub.AbstractAsyncStub<ServiceManagerGrpc.ServiceManagerStub>
A stub to allow clients to do asynchronous rpc calls to service ServiceManager.[Google Service Management API](https://cloud.google.com/service-infrastructure/docs/overview)
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ServiceManagerGrpc.ServiceManagerStub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
void
createService(CreateServiceRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Creates a new managed service.void
createServiceConfig(CreateServiceConfigRequest request, io.grpc.stub.StreamObserver<com.google.api.Service> responseObserver)
Creates a new service configuration (version) for a managed service.void
createServiceRollout(CreateServiceRolloutRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Creates a new service configuration rollout.void
deleteService(DeleteServiceRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Deletes a managed service.void
generateConfigReport(GenerateConfigReportRequest request, io.grpc.stub.StreamObserver<GenerateConfigReportResponse> responseObserver)
Generates and returns a report (errors, warnings and changes from existing configurations) associated with GenerateConfigReportRequest.new_value If GenerateConfigReportRequest.old_value is specified, GenerateConfigReportRequest will contain a single ChangeReport based on the comparison between GenerateConfigReportRequest.new_value and GenerateConfigReportRequest.old_value.void
getService(GetServiceRequest request, io.grpc.stub.StreamObserver<ManagedService> responseObserver)
Gets a managed service.void
getServiceConfig(GetServiceConfigRequest request, io.grpc.stub.StreamObserver<com.google.api.Service> responseObserver)
Gets a service configuration (version) for a managed service.void
getServiceRollout(GetServiceRolloutRequest request, io.grpc.stub.StreamObserver<Rollout> responseObserver)
Gets a service configuration [rollout][google.api.servicemanagement.v1.Rollout].void
listServiceConfigs(ListServiceConfigsRequest request, io.grpc.stub.StreamObserver<ListServiceConfigsResponse> responseObserver)
Lists the history of the service configuration for a managed service, from the newest to the oldest.void
listServiceRollouts(ListServiceRolloutsRequest request, io.grpc.stub.StreamObserver<ListServiceRolloutsResponse> responseObserver)
Lists the history of the service configuration rollouts for a managed service, from the newest to the oldest.void
listServices(ListServicesRequest request, io.grpc.stub.StreamObserver<ListServicesResponse> responseObserver)
Lists managed services.void
submitConfigSource(SubmitConfigSourceRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Creates a new service configuration (version) for a managed service based on user-supplied configuration source files (for example: OpenAPI Specification).void
undeleteService(UndeleteServiceRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Revives a previously deleted managed service.
-
-
-
Method Detail
-
build
protected ServiceManagerGrpc.ServiceManagerStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<ServiceManagerGrpc.ServiceManagerStub>
-
listServices
public void listServices(ListServicesRequest request, io.grpc.stub.StreamObserver<ListServicesResponse> responseObserver)
Lists managed services. Returns all public services. For authenticated users, also returns all services the calling user has "servicemanagement.services.get" permission for.
-
getService
public void getService(GetServiceRequest request, io.grpc.stub.StreamObserver<ManagedService> responseObserver)
Gets a managed service. Authentication is required unless the service is public.
-
createService
public void createService(CreateServiceRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Creates a new managed service. A managed service is immutable, and is subject to mandatory 30-day data retention. You cannot move a service or recreate it within 30 days after deletion. One producer project can own no more than 500 services. For security and reliability purposes, a production service should be hosted in a dedicated producer project. Operation<response: ManagedService>
-
deleteService
public void deleteService(DeleteServiceRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Deletes a managed service. This method will change the service to the `Soft-Delete` state for 30 days. Within this period, service producers may call [UndeleteService][google.api.servicemanagement.v1.ServiceManager.UndeleteService] to restore the service. After 30 days, the service will be permanently deleted. Operation<response: google.protobuf.Empty>
-
undeleteService
public void undeleteService(UndeleteServiceRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Revives a previously deleted managed service. The method restores the service using the configuration at the time the service was deleted. The target service must exist and must have been deleted within the last 30 days. Operation<response: UndeleteServiceResponse>
-
listServiceConfigs
public void listServiceConfigs(ListServiceConfigsRequest request, io.grpc.stub.StreamObserver<ListServiceConfigsResponse> responseObserver)
Lists the history of the service configuration for a managed service, from the newest to the oldest.
-
getServiceConfig
public void getServiceConfig(GetServiceConfigRequest request, io.grpc.stub.StreamObserver<com.google.api.Service> responseObserver)
Gets a service configuration (version) for a managed service.
-
createServiceConfig
public void createServiceConfig(CreateServiceConfigRequest request, io.grpc.stub.StreamObserver<com.google.api.Service> responseObserver)
Creates a new service configuration (version) for a managed service. This method only stores the service configuration. To roll out the service configuration to backend systems please call [CreateServiceRollout][google.api.servicemanagement.v1.ServiceManager.CreateServiceRollout]. Only the 100 most recent service configurations and ones referenced by existing rollouts are kept for each service. The rest will be deleted eventually.
-
submitConfigSource
public void submitConfigSource(SubmitConfigSourceRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Creates a new service configuration (version) for a managed service based on user-supplied configuration source files (for example: OpenAPI Specification). This method stores the source configurations as well as the generated service configuration. To rollout the service configuration to other services, please call [CreateServiceRollout][google.api.servicemanagement.v1.ServiceManager.CreateServiceRollout]. Only the 100 most recent configuration sources and ones referenced by existing service configurtions are kept for each service. The rest will be deleted eventually. Operation<response: SubmitConfigSourceResponse>
-
listServiceRollouts
public void listServiceRollouts(ListServiceRolloutsRequest request, io.grpc.stub.StreamObserver<ListServiceRolloutsResponse> responseObserver)
Lists the history of the service configuration rollouts for a managed service, from the newest to the oldest.
-
getServiceRollout
public void getServiceRollout(GetServiceRolloutRequest request, io.grpc.stub.StreamObserver<Rollout> responseObserver)
Gets a service configuration [rollout][google.api.servicemanagement.v1.Rollout].
-
createServiceRollout
public void createServiceRollout(CreateServiceRolloutRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Creates a new service configuration rollout. Based on rollout, the Google Service Management will roll out the service configurations to different backend services. For example, the logging configuration will be pushed to Google Cloud Logging. Please note that any previous pending and running Rollouts and associated Operations will be automatically cancelled so that the latest Rollout will not be blocked by previous Rollouts. Only the 100 most recent (in any state) and the last 10 successful (if not already part of the set of 100 most recent) rollouts are kept for each service. The rest will be deleted eventually. Operation<response: Rollout>
-
generateConfigReport
public void generateConfigReport(GenerateConfigReportRequest request, io.grpc.stub.StreamObserver<GenerateConfigReportResponse> responseObserver)
Generates and returns a report (errors, warnings and changes from existing configurations) associated with GenerateConfigReportRequest.new_value If GenerateConfigReportRequest.old_value is specified, GenerateConfigReportRequest will contain a single ChangeReport based on the comparison between GenerateConfigReportRequest.new_value and GenerateConfigReportRequest.old_value. If GenerateConfigReportRequest.old_value is not specified, this method will compare GenerateConfigReportRequest.new_value with the last pushed service configuration.
-
-