ServiceUsageClient class

Annotations
  • @GrpcServiceName.new('google.api.serviceusage.v1beta1.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>
Enables multiple services on a project. The operation is atomic: if enabling any service fails, then the entire batch fails, and no state changes occur.
createAdminOverride(CreateAdminOverrideRequest request, {CallOptions? options}) → ResponseFuture<Operation>
Creates an admin override. An admin override is applied by an administrator of a parent folder or parent organization of the consumer receiving the override. An admin override is intended to limit the amount of quota the consumer can use out of the total quota pool allocated to all children of the folder or organization.
createConsumerOverride(CreateConsumerOverrideRequest request, {CallOptions? options}) → ResponseFuture<Operation>
Creates a consumer override. A consumer override is applied to the consumer on its own authority to limit its own quota usage. Consumer overrides cannot be used to grant more quota than would be allowed by admin overrides, producer overrides, or the default limit of the service.
deleteAdminOverride(DeleteAdminOverrideRequest request, {CallOptions? options}) → ResponseFuture<Operation>
Deletes an admin override.
deleteConsumerOverride(DeleteConsumerOverrideRequest request, {CallOptions? options}) → ResponseFuture<Operation>
Deletes a consumer override.
disableService(DisableServiceRequest request, {CallOptions? options}) → ResponseFuture<Operation>
Disables 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>
Enables a service so that it can be used with a project.
generateServiceIdentity(GenerateServiceIdentityRequest request, {CallOptions? options}) → ResponseFuture<Operation>
Generates service identity for service.
getConsumerQuotaLimit(GetConsumerQuotaLimitRequest request, {CallOptions? options}) → ResponseFuture<ConsumerQuotaLimit>
Retrieves a summary of quota information for a specific quota limit.
getConsumerQuotaMetric(GetConsumerQuotaMetricRequest request, {CallOptions? options}) → ResponseFuture<ConsumerQuotaMetric>
Retrieves a summary of quota information for a specific quota metric
getService(GetServiceRequest request, {CallOptions? options}) → ResponseFuture<Service>
Returns the service configuration and enabled state for a given service.
importAdminOverrides(ImportAdminOverridesRequest request, {CallOptions? options}) → ResponseFuture<Operation>
Creates or updates multiple admin overrides atomically, all on the same consumer, but on many different metrics or limits. The name field in the quota override message should not be set.
importConsumerOverrides(ImportConsumerOverridesRequest request, {CallOptions? options}) → ResponseFuture<Operation>
Creates or updates multiple consumer overrides atomically, all on the same consumer, but on many different metrics or limits. The name field in the quota override message should not be set.
listAdminOverrides(ListAdminOverridesRequest request, {CallOptions? options}) → ResponseFuture<ListAdminOverridesResponse>
Lists all admin overrides on this limit.
listConsumerOverrides(ListConsumerOverridesRequest request, {CallOptions? options}) → ResponseFuture<ListConsumerOverridesResponse>
Lists all consumer overrides on this limit.
listConsumerQuotaMetrics(ListConsumerQuotaMetricsRequest request, {CallOptions? options}) → ResponseFuture<ListConsumerQuotaMetricsResponse>
Retrieves a summary of all quota information visible to the service consumer, organized by service metric. Each metric includes information about all of its defined limits. Each limit includes the limit configuration (quota unit, preciseness, default value), the current effective limit value, and all of the overrides applied to the limit.
listServices(ListServicesRequest request, {CallOptions? options}) → ResponseFuture<ListServicesResponse>
Lists 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
updateAdminOverride(UpdateAdminOverrideRequest request, {CallOptions? options}) → ResponseFuture<Operation>
Updates an admin override.
updateConsumerOverride(UpdateConsumerOverrideRequest request, {CallOptions? options}) → ResponseFuture<Operation>
Updates a consumer override.

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.