ServiceUsageClient class

Enables services that service consumers want to use on Google Cloud Platform, lists the available or enabled services, or disables services that service consumers no longer use.

See Service Usage API

Annotations
  • @GrpcServiceName.new('google.api.serviceusage.v1.ServiceUsage')

Constructors

ServiceUsageClient(ClientChannel channel, {CallOptions? options, Iterable<ClientInterceptor>? interceptors})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

$createCall<Q, R>(ClientMethod<Q, R> method, Stream<Q> requests, {CallOptions? options}) → ClientCall<Q, R>
inherited
$createStreamingCall<Q, R>(ClientMethod<Q, R> method, Stream<Q> requests, {CallOptions? options}) → ResponseStream<R>
inherited
$createUnaryCall<Q, R>(ClientMethod<Q, R> method, Q request, {CallOptions? options}) → ResponseFuture<R>
inherited
batchEnableServices(BatchEnableServicesRequest request, {CallOptions? options}) → ResponseFuture<Operation>
Enable multiple services on a project. The operation is atomic: if enabling any service fails, then the entire batch fails, and no state changes occur. To enable a single service, use the EnableService method instead.
batchGetServices(BatchGetServicesRequest request, {CallOptions? options}) → ResponseFuture<BatchGetServicesResponse>
Returns the service configurations and enabled states for a given list of services.
disableService(DisableServiceRequest request, {CallOptions? options}) → ResponseFuture<Operation>
Disable a service so that it can no longer be used with a project. This prevents unintended usage that may cause unexpected billing charges or security leaks.
enableService(EnableServiceRequest request, {CallOptions? options}) → ResponseFuture<Operation>
Enable a service so that it can be used with a project.
getService(GetServiceRequest request, {CallOptions? options}) → ResponseFuture<Service>
Returns the service configuration and enabled state for a given service.
listServices(ListServicesRequest request, {CallOptions? options}) → ResponseFuture<ListServicesResponse>
List all services available to the specified project, and the current state of those services with respect to the project. The list includes all public services, all services for which the calling user has the servicemanagement.services.bind permission, and all services that have already been enabled on the project. The list can be filtered to only include services in a specific state, for example to only include services enabled on the project.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

defaultHost → const String
The hostname for this service.
oauthScopes → const List<String>
OAuth scopes needed for the client.