public class ServiceUsage.Services extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
ServiceUsage.Services.BatchEnable |
class |
ServiceUsage.Services.BatchGet |
class |
ServiceUsage.Services.Disable |
class |
ServiceUsage.Services.Enable |
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)
Enable multiple services on a project.
|
ServiceUsage.Services.BatchGet |
batchGet(String parent)
Returns the service configurations and enabled states for a given list of services.
|
ServiceUsage.Services.Disable |
disable(String name,
DisableServiceRequest content)
Disable a service so that it can no longer be used with a project.
|
ServiceUsage.Services.Enable |
enable(String name,
EnableServiceRequest content)
Enable a service so that it can be used with a project.
|
ServiceUsage.Services.Get |
get(String name)
Returns the service configuration and enabled state for a given service.
|
ServiceUsage.Services.List |
list(String parent)
List 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. The `BatchEnableServices` method currently only supports projects.content - the BatchEnableServicesRequestIOExceptionpublic ServiceUsage.Services.BatchGet batchGet(String parent) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.parent - Parent to retrieve services from. If this is set, the parent of all of the services specified in
`names` must match this field. An example name would be: `projects/123` where `123` is the
project number. The `BatchGetServices` method currently only supports projects.IOExceptionpublic 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.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.content - the EnableServiceRequestIOExceptionpublic 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.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.IOExceptionCopyright © 2011–2021 Google. All rights reserved.