get frontend code generating and usable

This commit is contained in:
2025-02-22 17:08:26 -07:00
parent 6a8a4a13ba
commit 9fe376d3ea
101 changed files with 16455 additions and 37 deletions

View File

@ -0,0 +1,354 @@
# This file was automatically generated by BuildFileGenerator
# https://github.com/googleapis/rules_gapic/tree/master/bazel
# Most of the manual changes to this file will be overwritten.
# It's **only** allowed to change the following rule attribute values:
# - names of *_gapic_assembly_* rules
# - certain parameters of *_gapic_library rules, including but not limited to:
# * extra_protoc_parameters
# * extra_protoc_file_parameters
# The complete list of preserved parameters can be found in the source code.
# This is an API workspace, having public visibility by default makes perfect sense.
package(default_visibility = ["//visibility:public"])
##############################################################################
# Common
##############################################################################
load("@rules_proto//proto:defs.bzl", "proto_library")
load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
proto_library(
name = "serviceusage_proto",
srcs = [
"resources.proto",
"serviceusage.proto",
],
deps = [
"//google/api:annotations_proto",
"//google/api:auth_proto",
"//google/api:client_proto",
"//google/api:documentation_proto",
"//google/api:endpoint_proto",
"//google/api:field_behavior_proto",
"//google/api:monitored_resource_proto",
"//google/api:monitoring_proto",
"//google/api:quota_proto",
"//google/api:usage_proto",
"//google/longrunning:operations_proto",
"@com_google_protobuf//:api_proto",
"@com_google_protobuf//:field_mask_proto",
],
)
proto_library_with_info(
name = "serviceusage_proto_with_info",
deps = [
":serviceusage_proto",
"//google/cloud:common_resources_proto",
],
)
##############################################################################
# Java
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"java_gapic_assembly_gradle_pkg",
"java_gapic_library",
"java_gapic_test",
"java_grpc_library",
"java_proto_library",
)
java_proto_library(
name = "serviceusage_java_proto",
deps = [":serviceusage_proto"],
)
java_grpc_library(
name = "serviceusage_java_grpc",
srcs = [":serviceusage_proto"],
deps = [":serviceusage_java_proto"],
)
java_gapic_library(
name = "serviceusage_java_gapic",
srcs = [":serviceusage_proto_with_info"],
grpc_service_config = "serviceusage_grpc_service_config.json",
test_deps = [
":serviceusage_java_grpc",
],
deps = [
":serviceusage_java_proto",
],
)
java_gapic_test(
name = "serviceusage_java_gapic_test_suite",
test_classes = [
"com.google.api.serviceusage.v1beta1.ServiceUsageClientTest",
],
runtime_deps = [":serviceusage_java_gapic_test"],
)
# Open Source Packages
java_gapic_assembly_gradle_pkg(
name = "google-cloud-api-serviceusage-v1beta1-java",
deps = [
":serviceusage_java_gapic",
":serviceusage_java_grpc",
":serviceusage_java_proto",
":serviceusage_proto",
],
)
##############################################################################
# Go
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"go_gapic_assembly_pkg",
"go_gapic_library",
"go_proto_library",
"go_test",
)
go_proto_library(
name = "serviceusage_go_proto",
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
importpath = "google.golang.org/genproto/googleapis/api/serviceusage/v1beta1",
protos = [":serviceusage_proto"],
deps = [
"//google/api:annotations_go_proto",
"//google/api:monitoredres_go_proto",
"//google/api:serviceconfig_go_proto",
"//google/longrunning:longrunning_go_proto",
],
)
go_gapic_library(
name = "serviceusage_go_gapic",
srcs = [":serviceusage_proto_with_info"],
grpc_service_config = "serviceusage_grpc_service_config.json",
importpath = "cloud.google.com/go/api/serviceusage/apiv1beta1;serviceusage",
metadata = True,
service_yaml = "serviceusage_v1beta1.yaml",
deps = [
":serviceusage_go_proto",
"//google/longrunning:longrunning_go_proto",
"@com_google_cloud_go//longrunning:go_default_library",
"@com_google_cloud_go//longrunning/autogen:go_default_library",
],
)
go_test(
name = "serviceusage_go_gapic_test",
srcs = [":serviceusage_go_gapic_srcjar_test"],
embed = [":serviceusage_go_gapic"],
importpath = "cloud.google.com/go/api/serviceusage/apiv1beta1",
)
# Open Source Packages
go_gapic_assembly_pkg(
name = "gapi-cloud-api-serviceusage-v1beta1-go",
deps = [
":serviceusage_go_gapic",
":serviceusage_go_gapic_srcjar-metadata.srcjar",
":serviceusage_go_gapic_srcjar-test.srcjar",
":serviceusage_go_proto",
],
)
##############################################################################
# Python
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"py_gapic_assembly_pkg",
"py_gapic_library",
)
py_gapic_library(
name = "serviceusage_py_gapic",
srcs = [":serviceusage_proto"],
grpc_service_config = "serviceusage_grpc_service_config.json",
)
# Open Source Packages
py_gapic_assembly_pkg(
name = "api-serviceusage-v1beta1-py",
deps = [
":serviceusage_py_gapic",
],
)
##############################################################################
# PHP
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"php_gapic_assembly_pkg",
"php_gapic_library",
"php_grpc_library",
"php_proto_library",
)
php_proto_library(
name = "serviceusage_php_proto",
deps = [":serviceusage_proto"],
)
php_grpc_library(
name = "serviceusage_php_grpc",
srcs = [":serviceusage_proto"],
deps = [":serviceusage_php_proto"],
)
php_gapic_library(
name = "serviceusage_php_gapic",
srcs = [":serviceusage_proto_with_info"],
grpc_service_config = "serviceusage_grpc_service_config.json",
service_yaml = "serviceusage_v1beta1.yaml",
deps = [
":serviceusage_php_grpc",
":serviceusage_php_proto",
],
)
# Open Source Packages
php_gapic_assembly_pkg(
name = "google-cloud-api-serviceusage-v1beta1-php",
deps = [
":serviceusage_php_gapic",
":serviceusage_php_grpc",
":serviceusage_php_proto",
],
)
##############################################################################
# Node.js
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"nodejs_gapic_assembly_pkg",
"nodejs_gapic_library",
)
nodejs_gapic_library(
name = "serviceusage_nodejs_gapic",
package_name = "@google-cloud/service-usage",
src = ":serviceusage_proto_with_info",
extra_protoc_parameters = ["metadata"],
grpc_service_config = "serviceusage_grpc_service_config.json",
package = "google.api.serviceusage.v1beta1",
service_yaml = "serviceusage_v1beta1.yaml",
deps = [],
)
nodejs_gapic_assembly_pkg(
name = "api-serviceusage-v1beta1-nodejs",
deps = [
":serviceusage_nodejs_gapic",
":serviceusage_proto",
],
)
##############################################################################
# Ruby
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"ruby_cloud_gapic_library",
"ruby_gapic_assembly_pkg",
"ruby_grpc_library",
"ruby_proto_library",
)
ruby_proto_library(
name = "serviceusage_ruby_proto",
deps = [":serviceusage_proto"],
)
ruby_grpc_library(
name = "serviceusage_ruby_grpc",
srcs = [":serviceusage_proto"],
deps = [":serviceusage_ruby_proto"],
)
ruby_cloud_gapic_library(
name = "serviceusage_ruby_gapic",
srcs = [":serviceusage_proto_with_info"],
extra_protoc_parameters = [
"ruby-cloud-gem-name=google-cloud-service_usage-v1beta1",
"ruby-cloud-env-prefix=SERVICE_USAGE",
"ruby-cloud-product-url=https://cloud.google.com/service-usage/",
"ruby-cloud-api-id=serviceusage.googleapis.com",
"ruby-cloud-api-shortname=serviceusage",
],
grpc_service_config = "serviceusage_grpc_service_config.json",
ruby_cloud_description = "Service Usage is an infrastructure service of Google Cloud that lets you list and manage other APIs and services in your Cloud projects. You can list and manage Google Cloud services and their APIs, as well as services created using Cloud Endpoints.",
ruby_cloud_title = "Service Usage V1beta1",
deps = [
":serviceusage_ruby_grpc",
":serviceusage_ruby_proto",
],
)
# Open Source Packages
ruby_gapic_assembly_pkg(
name = "google-cloud-api-serviceusage-v1beta1-ruby",
deps = [
":serviceusage_ruby_gapic",
":serviceusage_ruby_grpc",
":serviceusage_ruby_proto",
],
)
##############################################################################
# C#
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"csharp_gapic_assembly_pkg",
"csharp_gapic_library",
"csharp_grpc_library",
"csharp_proto_library",
)
csharp_proto_library(
name = "serviceusage_csharp_proto",
deps = [":serviceusage_proto"],
)
csharp_grpc_library(
name = "serviceusage_csharp_grpc",
srcs = [":serviceusage_proto"],
deps = [":serviceusage_csharp_proto"],
)
csharp_gapic_library(
name = "serviceusage_csharp_gapic",
srcs = [":serviceusage_proto_with_info"],
common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
grpc_service_config = "serviceusage_grpc_service_config.json",
deps = [
":serviceusage_csharp_grpc",
":serviceusage_csharp_proto",
],
)
# Open Source Packages
csharp_gapic_assembly_pkg(
name = "google-cloud-api-serviceusage-v1beta1-csharp",
deps = [
":serviceusage_csharp_gapic",
":serviceusage_csharp_grpc",
":serviceusage_csharp_proto",
],
)
##############################################################################
# C++
##############################################################################
# Put your C++ rules here

View File

@ -0,0 +1,395 @@
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax = "proto3";
package google.api.serviceusage.v1beta1;
import "google/api/auth.proto";
import "google/api/documentation.proto";
import "google/api/endpoint.proto";
import "google/api/monitored_resource.proto";
import "google/api/monitoring.proto";
import "google/api/quota.proto";
import "google/api/usage.proto";
import "google/protobuf/api.proto";
import "google/api/annotations.proto";
option csharp_namespace = "Google.Api.ServiceUsage.V1Beta1";
option go_package = "google.golang.org/genproto/googleapis/api/serviceusage/v1beta1;serviceusage";
option java_multiple_files = true;
option java_outer_classname = "ResourcesProto";
option java_package = "com.google.api.serviceusage.v1beta1";
option php_namespace = "Google\\Api\\ServiceUsage\\V1beta1";
option ruby_package = "Google::Api::ServiceUsage::V1beta1";
// A service that is available for use by the consumer.
message Service {
// The resource name of the consumer and service.
//
// A valid name would be:
// - `projects/123/services/serviceusage.googleapis.com`
string name = 1;
// The resource name of the consumer.
//
// A valid name would be:
// - `projects/123`
string parent = 5;
// The service configuration of the available service.
// Some fields may be filtered out of the configuration in responses to
// the `ListServices` method. These fields are present only in responses to
// the `GetService` method.
ServiceConfig config = 2;
// Whether or not the service has been enabled for use by the consumer.
State state = 4;
}
// Whether or not a service has been enabled for use by a consumer.
enum State {
// The default value, which indicates that the enabled state of the service
// is unspecified or not meaningful. Currently, all consumers other than
// projects (such as folders and organizations) are always in this state.
STATE_UNSPECIFIED = 0;
// The service cannot be used by this consumer. It has either been explicitly
// disabled, or has never been enabled.
DISABLED = 1;
// The service has been explicitly enabled for use by this consumer.
ENABLED = 2;
}
// The configuration of the service.
message ServiceConfig {
// The DNS address at which this service is available.
//
// An example DNS address would be:
// `calendar.googleapis.com`.
string name = 1;
// The product title for this service.
string title = 2;
// A list of API interfaces exported by this service. Contains only the names,
// versions, and method names of the interfaces.
repeated google.protobuf.Api apis = 3;
// Additional API documentation. Contains only the summary and the
// documentation URL.
google.api.Documentation documentation = 6;
// Quota configuration.
google.api.Quota quota = 10;
// Auth configuration. Contains only the OAuth rules.
google.api.Authentication authentication = 11;
// Configuration controlling usage of this service.
google.api.Usage usage = 15;
// Configuration for network endpoints. Contains only the names and aliases
// of the endpoints.
repeated google.api.Endpoint endpoints = 18;
// Defines the monitored resources used by this service. This is required
// by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
repeated google.api.MonitoredResourceDescriptor monitored_resources = 25;
// Monitoring configuration.
// This should not include the 'producer_destinations' field.
google.api.Monitoring monitoring = 28;
}
// The operation metadata returned for the batchend services operation.
message OperationMetadata {
// The full name of the resources that this operation is directly
// associated with.
repeated string resource_names = 2;
}
// Consumer quota settings for a quota metric.
message ConsumerQuotaMetric {
// The resource name of the quota settings on this metric for this consumer.
//
// An example name would be:
// `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus`
//
// The resource name is intended to be opaque and should not be parsed for
// its component strings, since its representation could change in the future.
string name = 1;
// The name of the metric.
//
// An example name would be:
// `compute.googleapis.com/cpus`
string metric = 4;
// The display name of the metric.
//
// An example name would be:
// `CPUs`
string display_name = 2;
// The consumer quota for each quota limit defined on the metric.
repeated ConsumerQuotaLimit consumer_quota_limits = 3;
// The quota limits targeting the descendant containers of the
// consumer in request.
//
// If the consumer in request is of type `organizations`
// or `folders`, the field will list per-project limits in the metric; if the
// consumer in request is of type `project`, the field will be empty.
//
// The `quota_buckets` field of each descendant consumer quota limit will not
// be populated.
repeated ConsumerQuotaLimit descendant_consumer_quota_limits = 6;
// The units in which the metric value is reported.
string unit = 5;
}
// Consumer quota settings for a quota limit.
message ConsumerQuotaLimit {
// The resource name of the quota limit.
//
// An example name would be:
// `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
//
// The resource name is intended to be opaque and should not be parsed for
// its component strings, since its representation could change in the future.
string name = 1;
// The name of the parent metric of this limit.
//
// An example name would be:
// `compute.googleapis.com/cpus`
string metric = 8;
// The limit unit.
//
// An example unit would be
// `1/{project}/{region}`
// Note that `{project}` and `{region}` are not placeholders in this example;
// the literal characters `{` and `}` occur in the string.
string unit = 2;
// Whether this limit is precise or imprecise.
bool is_precise = 3;
// Whether admin overrides are allowed on this limit
bool allows_admin_overrides = 7;
// Summary of the enforced quota buckets, organized by quota dimension,
// ordered from least specific to most specific (for example, the global
// default bucket, with no quota dimensions, will always appear first).
repeated QuotaBucket quota_buckets = 9;
}
// Selected view of quota. Can be used to request more detailed quota
// information when retrieving quota metrics and limits.
enum QuotaView {
// No quota view specified. Requests that do not specify a quota view will
// typically default to the BASIC view.
QUOTA_VIEW_UNSPECIFIED = 0;
// Only buckets with overrides are shown in the response.
BASIC = 1;
// Include per-location buckets even if they do not have overrides.
// When the view is FULL, and a limit has regional or zonal quota, the limit
// will include buckets for all regions or zones that could support
// overrides, even if none are currently present. In some cases this will
// cause the response to become very large; callers that do not need this
// extra information should use the BASIC view instead.
FULL = 2;
}
// A quota bucket is a quota provisioning unit for a specific set of dimensions.
message QuotaBucket {
// The effective limit of this quota bucket. Equal to default_limit if there
// are no overrides.
int64 effective_limit = 1;
// The default limit of this quota bucket, as specified by the service
// configuration.
int64 default_limit = 2;
// Producer override on this quota bucket.
QuotaOverride producer_override = 3;
// Consumer override on this quota bucket.
QuotaOverride consumer_override = 4;
// Admin override on this quota bucket.
QuotaOverride admin_override = 5;
// The dimensions of this quota bucket.
//
// If this map is empty, this is the global bucket, which is the default quota
// value applied to all requests that do not have a more specific override.
//
// If this map is nonempty, the default limit, effective limit, and quota
// overrides apply only to requests that have the dimensions given in the map.
//
// For example, if the map has key `region` and value `us-east-1`, then the
// specified effective limit is only effective in that region, and the
// specified overrides apply only in that region.
map<string, string> dimensions = 6;
}
// A quota override
message QuotaOverride {
// The resource name of the override.
// This name is generated by the server when the override is created.
//
// Example names would be:
// `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d`
// `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d`
//
// The resource name is intended to be opaque and should not be parsed for
// its component strings, since its representation could change in the future.
string name = 1;
// The overriding quota limit value.
// Can be any nonnegative integer, or -1 (unlimited quota).
int64 override_value = 2;
// If this map is nonempty, then this override applies only to specific values
// for dimensions defined in the limit unit.
//
// For example, an override on a limit with the unit `1/{project}/{region}`
// could contain an entry with the key `region` and the value `us-east-1`;
// the override is only applied to quota consumed in that region.
//
// This map has the following restrictions:
//
// * Keys that are not defined in the limit's unit are not valid keys.
// Any string appearing in `{brackets}` in the unit (besides `{project}`
// or
// `{user}`) is a defined key.
// * `project` is not a valid key; the project is already specified in
// the parent resource name.
// * `user` is not a valid key; the API does not support quota overrides
// that apply only to a specific user.
// * If `region` appears as a key, its value must be a valid Cloud region.
// * If `zone` appears as a key, its value must be a valid Cloud zone.
// * If any valid key other than `region` or `zone` appears in the map, then
// all valid keys other than `region` or `zone` must also appear in the
// map.
map<string, string> dimensions = 3;
// The name of the metric to which this override applies.
//
// An example name would be:
// `compute.googleapis.com/cpus`
string metric = 4;
// The limit unit of the limit to which this override applies.
//
// An example unit would be:
// `1/{project}/{region}`
// Note that `{project}` and `{region}` are not placeholders in this example;
// the literal characters `{` and `}` occur in the string.
string unit = 5;
// The resource name of the ancestor that requested the override. For example:
// `organizations/12345` or `folders/67890`.
// Used by admin overrides only.
string admin_override_ancestor = 6;
}
// Import data embedded in the request message
message OverrideInlineSource {
// The overrides to create.
// Each override must have a value for 'metric' and 'unit', to specify
// which metric and which limit the override should be applied to.
// The 'name' field of the override does not need to be set; it is ignored.
repeated QuotaOverride overrides = 1;
}
// Enumerations of quota safety checks.
enum QuotaSafetyCheck {
// Unspecified quota safety check.
QUOTA_SAFETY_CHECK_UNSPECIFIED = 0;
// Validates that a quota mutation would not cause the consumer's effective
// limit to be lower than the consumer's quota usage.
LIMIT_DECREASE_BELOW_USAGE = 1;
// Validates that a quota mutation would not cause the consumer's effective
// limit to decrease by more than 10 percent.
LIMIT_DECREASE_PERCENTAGE_TOO_HIGH = 2;
}
// Quota policy created by quota administrator.
message AdminQuotaPolicy {
// The resource name of the policy.
// This name is generated by the server when the policy is created.
//
// Example names would be:
// `organizations/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminQuotaPolicies/4a3f2c1d`
string name = 1;
// The quota policy value.
// Can be any nonnegative integer, or -1 (unlimited quota).
int64 policy_value = 2;
//
// If this map is nonempty, then this policy applies only to specific values
// for dimensions defined in the limit unit.
//
// For example, an policy on a limit with the unit `1/{project}/{region}`
// could contain an entry with the key `region` and the value `us-east-1`;
// the policy is only applied to quota consumed in that region.
//
// This map has the following restrictions:
//
// * If `region` appears as a key, its value must be a valid Cloud region.
// * If `zone` appears as a key, its value must be a valid Cloud zone.
// * Keys other than `region` or `zone` are not valid.
map<string, string> dimensions = 3;
// The name of the metric to which this policy applies.
//
// An example name would be:
// `compute.googleapis.com/cpus`
string metric = 4;
// The limit unit of the limit to which this policy applies.
//
// An example unit would be:
// `1/{project}/{region}`
// Note that `{project}` and `{region}` are not placeholders in this example;
// the literal characters `{` and `}` occur in the string.
string unit = 5;
// The cloud resource container at which the quota policy is created. The
// format is `{container_type}/{container_number}`
string container = 6;
}
// Service identity for a service. This is the identity that service producer
// should use to access consumer resources.
message ServiceIdentity {
// The email address of the service account that a service producer would use
// to access consumer resources.
string email = 1;
// The unique and stable id of the service account.
// https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts#ServiceAccount
string unique_id = 2;
}

View File

@ -0,0 +1,787 @@
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax = "proto3";
package google.api.serviceusage.v1beta1;
import "google/api/annotations.proto";
import "google/api/client.proto";
import "google/api/field_behavior.proto";
import "google/api/serviceusage/v1beta1/resources.proto";
import "google/longrunning/operations.proto";
import "google/protobuf/field_mask.proto";
option csharp_namespace = "Google.Api.ServiceUsage.V1Beta1";
option go_package = "google.golang.org/genproto/googleapis/api/serviceusage/v1beta1;serviceusage";
option java_multiple_files = true;
option java_outer_classname = "ServiceUsageProto";
option java_package = "com.google.api.serviceusage.v1beta1";
option php_namespace = "Google\\Api\\ServiceUsage\\V1beta1";
option ruby_package = "Google::Api::ServiceUsage::V1beta1";
// [Service Usage API](https://cloud.google.com/service-usage/docs/overview)
service ServiceUsage {
option (google.api.default_host) = "serviceusage.googleapis.com";
option (google.api.oauth_scopes) =
"https://www.googleapis.com/auth/cloud-platform,"
"https://www.googleapis.com/auth/cloud-platform.read-only,"
"https://www.googleapis.com/auth/service.management";
// Enables a service so that it can be used with a project.
//
// Operation response type: `google.protobuf.Empty`
rpc EnableService(EnableServiceRequest) returns (google.longrunning.Operation) {
option deprecated = true;
option (google.api.http) = {
post: "/v1beta1/{name=*/*/services/*}:enable"
body: "*"
};
option (google.longrunning.operation_info) = {
response_type: "google.protobuf.Empty"
metadata_type: "OperationMetadata"
};
}
// 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.
//
// It is not valid to call the disable method on a service that is not
// currently enabled. Callers will receive a `FAILED_PRECONDITION` status if
// the target service is not currently enabled.
//
// Operation response type: `google.protobuf.Empty`
rpc DisableService(DisableServiceRequest) returns (google.longrunning.Operation) {
option deprecated = true;
option (google.api.http) = {
post: "/v1beta1/{name=*/*/services/*}:disable"
body: "*"
};
option (google.longrunning.operation_info) = {
response_type: "google.protobuf.Empty"
metadata_type: "OperationMetadata"
};
}
// Returns the service configuration and enabled state for a given service.
rpc GetService(GetServiceRequest) returns (Service) {
option deprecated = true;
option (google.api.http) = {
get: "/v1beta1/{name=*/*/services/*}"
};
}
// 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.
rpc ListServices(ListServicesRequest) returns (ListServicesResponse) {
option deprecated = true;
option (google.api.http) = {
get: "/v1beta1/{parent=*/*}/services"
};
}
// 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.
//
// Operation response type: `google.protobuf.Empty`
rpc BatchEnableServices(BatchEnableServicesRequest) returns (google.longrunning.Operation) {
option deprecated = true;
option (google.api.http) = {
post: "/v1beta1/{parent=*/*}/services:batchEnable"
body: "*"
};
option (google.longrunning.operation_info) = {
response_type: "google.protobuf.Empty"
metadata_type: "OperationMetadata"
};
}
// 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.
rpc ListConsumerQuotaMetrics(ListConsumerQuotaMetricsRequest) returns (ListConsumerQuotaMetricsResponse) {
option (google.api.http) = {
get: "/v1beta1/{parent=*/*/services/*}/consumerQuotaMetrics"
};
}
// Retrieves a summary of quota information for a specific quota metric
rpc GetConsumerQuotaMetric(GetConsumerQuotaMetricRequest) returns (ConsumerQuotaMetric) {
option (google.api.http) = {
get: "/v1beta1/{name=*/*/services/*/consumerQuotaMetrics/*}"
};
}
// Retrieves a summary of quota information for a specific quota limit.
rpc GetConsumerQuotaLimit(GetConsumerQuotaLimitRequest) returns (ConsumerQuotaLimit) {
option (google.api.http) = {
get: "/v1beta1/{name=*/*/services/*/consumerQuotaMetrics/*/limits/*}"
};
}
// 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.
rpc CreateAdminOverride(CreateAdminOverrideRequest) returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v1beta1/{parent=*/*/services/*/consumerQuotaMetrics/*/limits/*}/adminOverrides"
body: "override"
};
option (google.longrunning.operation_info) = {
response_type: "QuotaOverride"
metadata_type: "OperationMetadata"
};
}
// Updates an admin override.
rpc UpdateAdminOverride(UpdateAdminOverrideRequest) returns (google.longrunning.Operation) {
option (google.api.http) = {
patch: "/v1beta1/{name=*/*/services/*/consumerQuotaMetrics/*/limits/*/adminOverrides/*}"
body: "override"
};
option (google.longrunning.operation_info) = {
response_type: "QuotaOverride"
metadata_type: "OperationMetadata"
};
}
// Deletes an admin override.
rpc DeleteAdminOverride(DeleteAdminOverrideRequest) returns (google.longrunning.Operation) {
option (google.api.http) = {
delete: "/v1beta1/{name=*/*/services/*/consumerQuotaMetrics/*/limits/*/adminOverrides/*}"
};
option (google.longrunning.operation_info) = {
response_type: "google.protobuf.Empty"
metadata_type: "OperationMetadata"
};
}
// Lists all admin overrides on this limit.
rpc ListAdminOverrides(ListAdminOverridesRequest) returns (ListAdminOverridesResponse) {
option (google.api.http) = {
get: "/v1beta1/{parent=*/*/services/*/consumerQuotaMetrics/*/limits/*}/adminOverrides"
};
}
// 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.
rpc ImportAdminOverrides(ImportAdminOverridesRequest) returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v1beta1/{parent=*/*/services/*}/consumerQuotaMetrics:importAdminOverrides"
body: "*"
};
option (google.longrunning.operation_info) = {
response_type: "ImportAdminOverridesResponse"
metadata_type: "ImportAdminOverridesMetadata"
};
}
// 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.
rpc CreateConsumerOverride(CreateConsumerOverrideRequest) returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v1beta1/{parent=*/*/services/*/consumerQuotaMetrics/*/limits/*}/consumerOverrides"
body: "override"
};
option (google.longrunning.operation_info) = {
response_type: "QuotaOverride"
metadata_type: "OperationMetadata"
};
}
// Updates a consumer override.
rpc UpdateConsumerOverride(UpdateConsumerOverrideRequest) returns (google.longrunning.Operation) {
option (google.api.http) = {
patch: "/v1beta1/{name=*/*/services/*/consumerQuotaMetrics/*/limits/*/consumerOverrides/*}"
body: "override"
};
option (google.longrunning.operation_info) = {
response_type: "QuotaOverride"
metadata_type: "OperationMetadata"
};
}
// Deletes a consumer override.
rpc DeleteConsumerOverride(DeleteConsumerOverrideRequest) returns (google.longrunning.Operation) {
option (google.api.http) = {
delete: "/v1beta1/{name=*/*/services/*/consumerQuotaMetrics/*/limits/*/consumerOverrides/*}"
};
option (google.longrunning.operation_info) = {
response_type: "google.protobuf.Empty"
metadata_type: "OperationMetadata"
};
}
// Lists all consumer overrides on this limit.
rpc ListConsumerOverrides(ListConsumerOverridesRequest) returns (ListConsumerOverridesResponse) {
option (google.api.http) = {
get: "/v1beta1/{parent=*/*/services/*/consumerQuotaMetrics/*/limits/*}/consumerOverrides"
};
}
// 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.
rpc ImportConsumerOverrides(ImportConsumerOverridesRequest) returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v1beta1/{parent=*/*/services/*}/consumerQuotaMetrics:importConsumerOverrides"
body: "*"
};
option (google.longrunning.operation_info) = {
response_type: "ImportConsumerOverridesResponse"
metadata_type: "ImportConsumerOverridesMetadata"
};
}
// Generates service identity for service.
rpc GenerateServiceIdentity(GenerateServiceIdentityRequest) returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v1beta1/{parent=*/*/services/*}:generateServiceIdentity"
};
option (google.longrunning.operation_info) = {
response_type: "ServiceIdentity"
metadata_type: "google.protobuf.Empty"
};
}
}
// Request message for the `EnableService` method.
message EnableServiceRequest {
// 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).
string name = 1;
}
// Request message for the `DisableService` method.
message DisableServiceRequest {
// 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).
string name = 1;
}
// Request message for the `GetService` method.
message GetServiceRequest {
// 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).
string name = 1;
}
// Request message for the `ListServices` method.
message ListServicesRequest {
// Parent to search for services on.
//
// An example name would be:
// `projects/123`
// where `123` is the project number (not project ID).
string parent = 1;
// Requested size of the next page of data.
// Requested page size cannot exceed 200.
// If not set, the default page size is 50.
int32 page_size = 2;
// Token identifying which result to start with, which is returned by a
// previous list call.
string page_token = 3;
// Only list services that conform to the given filter.
// The allowed filter strings are `state:ENABLED` and `state:DISABLED`.
string filter = 4;
}
// Response message for the `ListServices` method.
message ListServicesResponse {
// The available services for the requested project.
repeated Service services = 1;
// Token that can be passed to `ListServices` to resume a paginated
// query.
string next_page_token = 2;
}
// Request message for the `BatchEnableServices` method.
message BatchEnableServicesRequest {
// 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.
string parent = 1;
// The identifiers of the services to enable on the project.
//
// A valid identifier would be:
// serviceusage.googleapis.com
//
// Enabling services requires that each service is public or is shared with
// the user enabling the service.
//
// Two or more services must be specified. To enable a single service,
// use the `EnableService` method instead.
//
// A single request can enable a maximum of 20 services at a time. If more
// than 20 services are specified, the request will fail, and no state changes
// will occur.
repeated string service_ids = 2;
}
// Request message for ListConsumerQuotaMetrics
message ListConsumerQuotaMetricsRequest {
// Parent of the quotas resource.
//
// Some example names would be:
// `projects/123/services/serviceconsumermanagement.googleapis.com`
// `folders/345/services/serviceconsumermanagement.googleapis.com`
// `organizations/456/services/serviceconsumermanagement.googleapis.com`
string parent = 1;
// Requested size of the next page of data.
int32 page_size = 2;
// Token identifying which result to start with; returned by a previous list
// call.
string page_token = 3;
// Specifies the level of detail for quota information in the response.
QuotaView view = 4;
}
// Response message for ListConsumerQuotaMetrics
message ListConsumerQuotaMetricsResponse {
// Quota settings for the consumer, organized by quota metric.
repeated ConsumerQuotaMetric metrics = 1;
// Token identifying which result to start with; returned by a previous list
// call.
string next_page_token = 2;
}
// Request message for GetConsumerQuotaMetric
message GetConsumerQuotaMetricRequest {
// The resource name of the quota limit.
//
// An example name would be:
// `projects/123/services/serviceusage.googleapis.com/quotas/metrics/serviceusage.googleapis.com%2Fmutate_requests`
string name = 1;
// Specifies the level of detail for quota information in the response.
QuotaView view = 2;
}
// Request message for GetConsumerQuotaLimit
message GetConsumerQuotaLimitRequest {
// The resource name of the quota limit.
//
// Use the quota limit resource name returned by previous
// ListConsumerQuotaMetrics and GetConsumerQuotaMetric API calls.
string name = 1;
// Specifies the level of detail for quota information in the response.
QuotaView view = 2;
}
// Request message for CreateAdminOverride.
message CreateAdminOverrideRequest {
// The resource name of the parent quota limit, returned by a
// ListConsumerQuotaMetrics or GetConsumerQuotaMetric call.
//
// An example name would be:
// `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
string parent = 1;
// The admin override to create.
QuotaOverride override = 2;
// Whether to force the creation of the quota override.
// Setting the force parameter to 'true' ignores all quota safety checks that
// would fail the request. QuotaSafetyCheck lists all such validations.
bool force = 3;
// The list of quota safety checks to ignore before the override mutation.
// Unlike 'force' field that ignores all the quota safety checks, the
// 'force_only' field ignores only the specified checks; other checks are
// still enforced. The 'force' and 'force_only' fields cannot both be set.
repeated QuotaSafetyCheck force_only = 4;
}
// Request message for UpdateAdminOverride.
message UpdateAdminOverrideRequest {
// The resource name of the override to update.
//
// An example name would be:
// `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d`
string name = 1;
// The new override.
// Only the override_value is updated; all other fields are ignored.
QuotaOverride override = 2;
// Whether to force the update of the quota override.
// Setting the force parameter to 'true' ignores all quota safety checks that
// would fail the request. QuotaSafetyCheck lists all such validations.
bool force = 3;
// Update only the specified fields of the override.
// If unset, all fields will be updated.
google.protobuf.FieldMask update_mask = 4;
// The list of quota safety checks to ignore before the override mutation.
// Unlike 'force' field that ignores all the quota safety checks, the
// 'force_only' field ignores only the specified checks; other checks are
// still enforced. The 'force' and 'force_only' fields cannot both be set.
repeated QuotaSafetyCheck force_only = 5;
}
// Request message for DeleteAdminOverride.
message DeleteAdminOverrideRequest {
// The resource name of the override to delete.
//
// An example name would be:
// `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d`
string name = 1;
// Whether to force the deletion of the quota override.
// Setting the force parameter to 'true' ignores all quota safety checks that
// would fail the request. QuotaSafetyCheck lists all such validations.
bool force = 2;
// The list of quota safety checks to ignore before the override mutation.
// Unlike 'force' field that ignores all the quota safety checks, the
// 'force_only' field ignores only the specified checks; other checks are
// still enforced. The 'force' and 'force_only' fields cannot both be set.
repeated QuotaSafetyCheck force_only = 3;
}
// Request message for ListAdminOverrides
message ListAdminOverridesRequest {
// The resource name of the parent quota limit, returned by a
// ListConsumerQuotaMetrics or GetConsumerQuotaMetric call.
//
// An example name would be:
// `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
string parent = 1;
// Requested size of the next page of data.
int32 page_size = 2;
// Token identifying which result to start with; returned by a previous list
// call.
string page_token = 3;
}
// Response message for ListAdminOverrides.
message ListAdminOverridesResponse {
// Admin overrides on this limit.
repeated QuotaOverride overrides = 1;
// Token identifying which result to start with; returned by a previous list
// call.
string next_page_token = 2;
}
// Response message for BatchCreateAdminOverrides
message BatchCreateAdminOverridesResponse {
// The overrides that were created.
repeated QuotaOverride overrides = 1;
}
// Request message for ImportAdminOverrides
message ImportAdminOverridesRequest {
// The resource name of the consumer.
//
// An example name would be:
// `projects/123/services/compute.googleapis.com`
string parent = 1;
// Source of import data
oneof source {
// The import data is specified in the request message itself
OverrideInlineSource inline_source = 2;
}
// Whether to force the creation of the quota overrides.
// Setting the force parameter to 'true' ignores all quota safety checks that
// would fail the request. QuotaSafetyCheck lists all such validations.
bool force = 3;
// The list of quota safety checks to ignore before the override mutation.
// Unlike 'force' field that ignores all the quota safety checks, the
// 'force_only' field ignores only the specified checks; other checks are
// still enforced. The 'force' and 'force_only' fields cannot both be set.
repeated QuotaSafetyCheck force_only = 4;
}
// Response message for ImportAdminOverrides
message ImportAdminOverridesResponse {
// The overrides that were created from the imported data.
repeated QuotaOverride overrides = 1;
}
// Metadata message that provides information such as progress,
// partial failures, and similar information on each GetOperation call
// of LRO returned by ImportAdminOverrides.
message ImportAdminOverridesMetadata {
}
// Request message for CreateConsumerOverride.
message CreateConsumerOverrideRequest {
// The resource name of the parent quota limit, returned by a
// ListConsumerQuotaMetrics or GetConsumerQuotaMetric call.
//
// An example name would be:
// `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
string parent = 1;
// The override to create.
QuotaOverride override = 2;
// Whether to force the creation of the quota override.
// Setting the force parameter to 'true' ignores all quota safety checks that
// would fail the request. QuotaSafetyCheck lists all such validations.
bool force = 3;
// The list of quota safety checks to ignore before the override mutation.
// Unlike 'force' field that ignores all the quota safety checks, the
// 'force_only' field ignores only the specified checks; other checks are
// still enforced. The 'force' and 'force_only' fields cannot both be set.
repeated QuotaSafetyCheck force_only = 4;
}
// Request message for UpdateConsumerOverride.
message UpdateConsumerOverrideRequest {
// The resource name of the override to update.
//
// An example name would be:
// `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d`
string name = 1;
// The new override.
// Only the override_value is updated; all other fields are ignored.
QuotaOverride override = 2;
// Whether to force the update of the quota override.
// Setting the force parameter to 'true' ignores all quota safety checks that
// would fail the request. QuotaSafetyCheck lists all such validations.
bool force = 3;
// Update only the specified fields of the override.
// If unset, all fields will be updated.
google.protobuf.FieldMask update_mask = 4;
// The list of quota safety checks to ignore before the override mutation.
// Unlike 'force' field that ignores all the quota safety checks, the
// 'force_only' field ignores only the specified checks; other checks are
// still enforced. The 'force' and 'force_only' fields cannot both be set.
repeated QuotaSafetyCheck force_only = 5;
}
// Request message for DeleteConsumerOverride.
message DeleteConsumerOverrideRequest {
// The resource name of the override to delete.
//
// An example name would be:
// `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d`
string name = 1;
// Whether to force the deletion of the quota override.
// Setting the force parameter to 'true' ignores all quota safety checks that
// would fail the request. QuotaSafetyCheck lists all such validations.
bool force = 2;
// The list of quota safety checks to ignore before the override mutation.
// Unlike 'force' field that ignores all the quota safety checks, the
// 'force_only' field ignores only the specified checks; other checks are
// still enforced. The 'force' and 'force_only' fields cannot both be set.
repeated QuotaSafetyCheck force_only = 3;
}
// Request message for ListConsumerOverrides
message ListConsumerOverridesRequest {
// The resource name of the parent quota limit, returned by a
// ListConsumerQuotaMetrics or GetConsumerQuotaMetric call.
//
// An example name would be:
// `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
string parent = 1;
// Requested size of the next page of data.
int32 page_size = 2;
// Token identifying which result to start with; returned by a previous list
// call.
string page_token = 3;
}
// Response message for ListConsumerOverrides.
message ListConsumerOverridesResponse {
// Consumer overrides on this limit.
repeated QuotaOverride overrides = 1;
// Token identifying which result to start with; returned by a previous list
// call.
string next_page_token = 2;
}
// Response message for BatchCreateConsumerOverrides
message BatchCreateConsumerOverridesResponse {
// The overrides that were created.
repeated QuotaOverride overrides = 1;
}
// Request message for ImportConsumerOverrides
message ImportConsumerOverridesRequest {
// The resource name of the consumer.
//
// An example name would be:
// `projects/123/services/compute.googleapis.com`
string parent = 1;
// Source of import data
oneof source {
// The import data is specified in the request message itself
OverrideInlineSource inline_source = 2;
}
// Whether to force the creation of the quota overrides.
// Setting the force parameter to 'true' ignores all quota safety checks that
// would fail the request. QuotaSafetyCheck lists all such validations.
bool force = 3;
// The list of quota safety checks to ignore before the override mutation.
// Unlike 'force' field that ignores all the quota safety checks, the
// 'force_only' field ignores only the specified checks; other checks are
// still enforced. The 'force' and 'force_only' fields cannot both be set.
repeated QuotaSafetyCheck force_only = 4;
}
// Response message for ImportConsumerOverrides
message ImportConsumerOverridesResponse {
// The overrides that were created from the imported data.
repeated QuotaOverride overrides = 1;
}
// Metadata message that provides information such as progress,
// partial failures, and similar information on each GetOperation call
// of LRO returned by ImportConsumerOverrides.
message ImportConsumerOverridesMetadata {
}
// Response message for ImportAdminQuotaPolicies
message ImportAdminQuotaPoliciesResponse {
// The policies that were created from the imported data.
repeated AdminQuotaPolicy policies = 1;
}
// Metadata message that provides information such as progress,
// partial failures, and similar information on each GetOperation call
// of LRO returned by ImportAdminQuotaPolicies.
message ImportAdminQuotaPoliciesMetadata {
}
// Metadata message that provides information such as progress,
// partial failures, and similar information on each GetOperation call
// of LRO returned by CreateAdminQuotaPolicy.
message CreateAdminQuotaPolicyMetadata {
}
// Metadata message that provides information such as progress,
// partial failures, and similar information on each GetOperation call
// of LRO returned by UpdateAdminQuotaPolicy.
message UpdateAdminQuotaPolicyMetadata {
}
// Metadata message that provides information such as progress,
// partial failures, and similar information on each GetOperation call
// of LRO returned by DeleteAdminQuotaPolicy.
message DeleteAdminQuotaPolicyMetadata {
}
// Request message for generating service identity.
message GenerateServiceIdentityRequest {
// 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.
string parent = 1;
}
// Response message for getting service identity.
message GetServiceIdentityResponse {
// Enum for service identity state.
enum IdentityState {
// Default service identity state. This value is used if the state is
// omitted.
IDENTITY_STATE_UNSPECIFIED = 0;
// Service identity has been created and can be used.
ACTIVE = 1;
}
// Service identity that service producer can use to access consumer
// resources. If exists is true, it contains email and unique_id. If exists is
// false, it contains pre-constructed email and empty unique_id.
ServiceIdentity identity = 1;
// Service identity state.
IdentityState state = 2;
}
// Metadata for the `GetServiceIdentity` method.
message GetServiceIdentityMetadata {
}

View File

@ -0,0 +1,8 @@
{
"methodConfig": [{
"name": [
{ "service": "google.api.serviceusage.v1beta1.ServiceUsage" }
],
"timeout": "5s"
}]
}

View File

@ -0,0 +1,68 @@
type: google.api.Service
config_version: 3
name: serviceusage.googleapis.com
title: Service Usage API
apis:
- name: google.api.serviceusage.v1beta1.ServiceUsage
types:
- name: google.api.serviceusage.v1beta1.BatchCreateAdminOverridesResponse
- name: google.api.serviceusage.v1beta1.BatchCreateConsumerOverridesResponse
- name: google.api.serviceusage.v1beta1.CreateAdminQuotaPolicyMetadata
- name: google.api.serviceusage.v1beta1.DeleteAdminQuotaPolicyMetadata
- name: google.api.serviceusage.v1beta1.GetServiceIdentityMetadata
- name: google.api.serviceusage.v1beta1.GetServiceIdentityResponse
- name: google.api.serviceusage.v1beta1.ImportAdminOverridesMetadata
- name: google.api.serviceusage.v1beta1.ImportAdminOverridesResponse
- name: google.api.serviceusage.v1beta1.ImportAdminQuotaPoliciesMetadata
- name: google.api.serviceusage.v1beta1.ImportAdminQuotaPoliciesResponse
- name: google.api.serviceusage.v1beta1.ImportConsumerOverridesMetadata
- name: google.api.serviceusage.v1beta1.ImportConsumerOverridesResponse
- name: google.api.serviceusage.v1beta1.OperationMetadata
- name: google.api.serviceusage.v1beta1.ServiceIdentity
- name: google.api.serviceusage.v1beta1.UpdateAdminQuotaPolicyMetadata
documentation:
summary: |-
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.
overview: |-
The Service Usage API allows *service consumers* to manage the set
of *services* they interact with. Consumers can use the Service Usage API
or the [Google Cloud Console](https://console.cloud.google.com) to enable
services in their [Google
developer
project](https://developers.google.com/console/help/new/). After a service
is enabled, its APIs become available.
## Service consumers
A service consumer is a Google developer project that has enabled and can
invoke APIs on a service. A service can have many service consumers.
backend:
rules:
- selector: 'google.api.serviceusage.v1beta1.ServiceUsage.*'
deadline: 5.0
- selector: 'google.longrunning.Operations.*'
deadline: 5.0
http:
rules:
- selector: google.longrunning.Operations.GetOperation
get: '/v1beta1/{name=operations/*}'
- selector: google.longrunning.Operations.ListOperations
get: /v1beta1/operations
authentication:
rules:
- selector: 'google.api.serviceusage.v1beta1.ServiceUsage.*'
oauth:
canonical_scopes: |-
https://www.googleapis.com/auth/cloud-platform
- selector: 'google.longrunning.Operations.*'
oauth:
canonical_scopes: |-
https://www.googleapis.com/auth/cloud-platform