public class ServiceUsage.Services extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
ServiceUsage.Services.BatchEnable |
class |
ServiceUsage.Services.ConsumerQuotaMetrics
The "consumerQuotaMetrics" collection of methods.
|
class |
ServiceUsage.Services.Disable |
class |
ServiceUsage.Services.Enable |
class |
ServiceUsage.Services.GenerateServiceIdentity |
class |
ServiceUsage.Services.Get |
class |
ServiceUsage.Services.List |
| Constructor and Description |
|---|
Services() |
| Modifier and Type | Method and Description |
|---|---|
ServiceUsage.Services.BatchEnable |
batchEnable(String parent,
BatchEnableServicesRequest content)
Enables multiple services on a project.
|
ServiceUsage.Services.ConsumerQuotaMetrics |
consumerQuotaMetrics()
An accessor for creating requests from the ConsumerQuotaMetrics collection.
|
ServiceUsage.Services.Disable |
disable(String name,
DisableServiceRequest content)
Disables a service so that it can no longer be used with a project.
|
ServiceUsage.Services.Enable |
enable(String name,
EnableServiceRequest content)
Enables a service so that it can be used with a project.
|
ServiceUsage.Services.GenerateServiceIdentity |
generateServiceIdentity(String parent)
Generates service identity for service.
|
ServiceUsage.Services.Get |
get(String name)
Returns the service configuration and enabled state for a given service.
|
ServiceUsage.Services.List |
list(String parent)
Lists all services available to the specified project, and the current state of those services
with respect to the project.
|
public ServiceUsage.Services.BatchEnable batchEnable(String parent, BatchEnableServicesRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.parent - Parent to enable services on. An example name would be: `projects/123` where `123` is the project
number (not project ID). The `BatchEnableServices` method currently only supports
projects.content - the BatchEnableServicesRequestIOExceptionpublic ServiceUsage.Services.Disable disable(String name, DisableServiceRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Name of the consumer and service to disable the service on. The enable and disable methods currently
only support projects. An example name would be:
`projects/123/services/serviceusage.googleapis.com` where `123` is the project number (not
project ID).content - the DisableServiceRequestIOExceptionpublic ServiceUsage.Services.Enable enable(String name, EnableServiceRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Name of the consumer and service to enable the service on. The `EnableService` and `DisableService`
methods currently only support projects. Enabling a service requires that the service is
public or is shared with the user enabling the service. An example name would be:
`projects/123/services/serviceusage.googleapis.com` where `123` is the project number (not
project ID).content - the EnableServiceRequestIOExceptionpublic ServiceUsage.Services.GenerateServiceIdentity generateServiceIdentity(String parent) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote
operation.parent - Name of the consumer and service to generate an identity for. The `GenerateServiceIdentity` methods
currently only support projects. An example name would be:
`projects/123/services/example.googleapis.com` where `123` is the project number.IOExceptionpublic ServiceUsage.Services.Get get(String name) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Name of the consumer and service to get the `ConsumerState` for. An example name would be:
`projects/123/services/serviceusage.googleapis.com` where `123` is the project number (not
project ID).IOExceptionpublic ServiceUsage.Services.List list(String parent) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.parent - Parent to search for services on. An example name would be: `projects/123` where `123` is the
project number (not project ID).IOExceptionpublic ServiceUsage.Services.ConsumerQuotaMetrics consumerQuotaMetrics()
The typical use is:
ServiceUsage serviceusage = new ServiceUsage(...);ServiceUsage.ConsumerQuotaMetrics.List request = serviceusage.consumerQuotaMetrics().list(parameters ...)
Copyright © 2011–2021 Google. All rights reserved.