public class ServiceControl.Services
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
ServiceControl.Services.AllocateQuota |
class |
ServiceControl.Services.Check |
class |
ServiceControl.Services.Report |
Constructor and Description |
---|
Services() |
Modifier and Type | Method and Description |
---|---|
ServiceControl.Services.AllocateQuota |
allocateQuota(java.lang.String serviceName,
AllocateQuotaRequest content)
Attempts to allocate quota for the specified consumer.
|
ServiceControl.Services.Check |
check(java.lang.String serviceName,
CheckRequest content)
Checks whether an operation on a service should be allowed to proceed based on the configuration
of the service and related policies.
|
ServiceControl.Services.Report |
report(java.lang.String serviceName,
ReportRequest content)
Reports operation results to Google Service Control, such as logs and metrics.
|
public ServiceControl.Services.AllocateQuota allocateQuota(java.lang.String serviceName, AllocateQuotaRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote
operation.serviceName
- Name of the service as specified in the service configuration. For example,
`"pubsub.googleapis.com"`.
See google.api.Service for the definition of a service name.content
- the AllocateQuotaRequest
java.io.IOException
public ServiceControl.Services.Check check(java.lang.String serviceName, CheckRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.serviceName
- The service name as specified in its service configuration. For example,
`"pubsub.googleapis.com"`.
See
[google.api.Service](https://cloud.google.com/service-
management/reference/rpc/google.api#google.api.Service)
for the definition of a service
name.content
- the CheckRequest
java.io.IOException
public ServiceControl.Services.Report report(java.lang.String serviceName, ReportRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.serviceName
- The service name as specified in its service configuration. For example,
`"pubsub.googleapis.com"`.
See
[google.api.Service](https://cloud.google.com/service-
management/reference/rpc/google.api#google.api.Service)
for the definition of a service
name.content
- the ReportRequest
java.io.IOException