mirror of
https://github.com/musix-org/musix-oss
synced 2025-06-17 20:15:59 +00:00
Modules
This commit is contained in:
133
node_modules/google-gax/protos/google/api/servicecontrol/v1/check_error.proto
generated
vendored
Normal file
133
node_modules/google-gax/protos/google/api/servicecontrol/v1/check_error.proto
generated
vendored
Normal file
@ -0,0 +1,133 @@
|
||||
// Copyright 2017 Google Inc.
|
||||
//
|
||||
// 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.servicecontrol.v1;
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
|
||||
option cc_enable_arenas = true;
|
||||
option go_package = "google.golang.org/genproto/googleapis/api/servicecontrol/v1;servicecontrol";
|
||||
option java_multiple_files = true;
|
||||
option java_outer_classname = "CheckErrorProto";
|
||||
option java_package = "com.google.api.servicecontrol.v1";
|
||||
|
||||
// Defines the errors to be returned in
|
||||
// [google.api.servicecontrol.v1.CheckResponse.check_errors][google.api.servicecontrol.v1.CheckResponse.check_errors].
|
||||
message CheckError {
|
||||
// Error codes for Check responses.
|
||||
enum Code {
|
||||
// This is never used in `CheckResponse`.
|
||||
ERROR_CODE_UNSPECIFIED = 0;
|
||||
|
||||
// The consumer's project id, network container, or resource container was
|
||||
// not found. Same as [google.rpc.Code.NOT_FOUND][].
|
||||
NOT_FOUND = 5;
|
||||
|
||||
// The consumer doesn't have access to the specified resource.
|
||||
// Same as [google.rpc.Code.PERMISSION_DENIED][].
|
||||
PERMISSION_DENIED = 7;
|
||||
|
||||
// Quota check failed. Same as [google.rpc.Code.RESOURCE_EXHAUSTED][].
|
||||
RESOURCE_EXHAUSTED = 8;
|
||||
|
||||
// The consumer has been flagged as an abuser.
|
||||
ABUSER_DETECTED = 103;
|
||||
|
||||
// The consumer hasn't activated the service.
|
||||
SERVICE_NOT_ACTIVATED = 104;
|
||||
|
||||
// The consumer cannot access the service because billing is disabled.
|
||||
BILLING_DISABLED = 107;
|
||||
|
||||
// The consumer's project has been marked as deleted (soft deletion).
|
||||
PROJECT_DELETED = 108;
|
||||
|
||||
// The consumer's project number or id does not represent a valid project.
|
||||
PROJECT_INVALID = 114;
|
||||
|
||||
// The IP address of the consumer is invalid for the specific consumer
|
||||
// project.
|
||||
IP_ADDRESS_BLOCKED = 109;
|
||||
|
||||
// The referer address of the consumer request is invalid for the specific
|
||||
// consumer project.
|
||||
REFERER_BLOCKED = 110;
|
||||
|
||||
// The client application of the consumer request is invalid for the
|
||||
// specific consumer project.
|
||||
CLIENT_APP_BLOCKED = 111;
|
||||
|
||||
// The API targeted by this request is invalid for the specified consumer
|
||||
// project.
|
||||
API_TARGET_BLOCKED = 122;
|
||||
|
||||
// The consumer's API key is invalid.
|
||||
API_KEY_INVALID = 105;
|
||||
|
||||
// The consumer's API Key has expired.
|
||||
API_KEY_EXPIRED = 112;
|
||||
|
||||
// The consumer's API Key was not found in config record.
|
||||
API_KEY_NOT_FOUND = 113;
|
||||
|
||||
// Request is not allowed as per security policies defined in Org Policy.
|
||||
SECURITY_POLICY_VIOLATED = 121;
|
||||
|
||||
// The credential in the request can not be verified.
|
||||
INVALID_CREDENTIAL = 123;
|
||||
|
||||
// Request is not allowed as per location policies defined in Org Policy.
|
||||
LOCATION_POLICY_VIOLATED = 124;
|
||||
|
||||
// The input consumer info does not represent a valid consumer folder or
|
||||
// organization.
|
||||
CONSUMER_INVALID = 125;
|
||||
|
||||
// NOTE: By convention, all *_UNAVAILABLE codes are required to be in the
|
||||
// 300 - 399 range.
|
||||
|
||||
// NOTE: Unless there are very special business requirements, service
|
||||
// producer should ignore the following errors. These errors should not
|
||||
// cause the rejection of client requests.
|
||||
|
||||
// The backend server for looking up project id/number is unavailable.
|
||||
NAMESPACE_LOOKUP_UNAVAILABLE = 300;
|
||||
|
||||
// The backend server for checking service status is unavailable.
|
||||
SERVICE_STATUS_UNAVAILABLE = 301;
|
||||
|
||||
// The backend server for checking billing status is unavailable.
|
||||
BILLING_STATUS_UNAVAILABLE = 302;
|
||||
|
||||
// The backend server for checking quota limits is unavailable.
|
||||
QUOTA_CHECK_UNAVAILABLE = 303;
|
||||
|
||||
// Cloud Resource Manager backend server is unavailable.
|
||||
CLOUD_RESOURCE_MANAGER_BACKEND_UNAVAILABLE = 305;
|
||||
|
||||
// Backend server for evaluating security policy is unavailable.
|
||||
SECURITY_POLICY_BACKEND_UNAVAILABLE = 306;
|
||||
|
||||
// Backend server for evaluating location policy is unavailable.
|
||||
LOCATION_POLICY_BACKEND_UNAVAILABLE = 307;
|
||||
}
|
||||
|
||||
// The error code.
|
||||
Code code = 1;
|
||||
|
||||
// Free-form text providing details on the error cause of the error.
|
||||
string detail = 2;
|
||||
}
|
158
node_modules/google-gax/protos/google/api/servicecontrol/v1/distribution.proto
generated
vendored
Normal file
158
node_modules/google-gax/protos/google/api/servicecontrol/v1/distribution.proto
generated
vendored
Normal file
@ -0,0 +1,158 @@
|
||||
// Copyright 2017 Google Inc.
|
||||
//
|
||||
// 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.servicecontrol.v1;
|
||||
|
||||
option cc_enable_arenas = true;
|
||||
option go_package = "google.golang.org/genproto/googleapis/api/servicecontrol/v1;servicecontrol";
|
||||
option java_multiple_files = true;
|
||||
option java_outer_classname = "DistributionProto";
|
||||
option java_package = "com.google.api.servicecontrol.v1";
|
||||
|
||||
// Distribution represents a frequency distribution of double-valued sample
|
||||
// points. It contains the size of the population of sample points plus
|
||||
// additional optional information:
|
||||
//
|
||||
// - the arithmetic mean of the samples
|
||||
// - the minimum and maximum of the samples
|
||||
// - the sum-squared-deviation of the samples, used to compute variance
|
||||
// - a histogram of the values of the sample points
|
||||
message Distribution {
|
||||
// Describing buckets with constant width.
|
||||
message LinearBuckets {
|
||||
// The number of finite buckets. With the underflow and overflow buckets,
|
||||
// the total number of buckets is `num_finite_buckets` + 2.
|
||||
// See comments on `bucket_options` for details.
|
||||
int32 num_finite_buckets = 1;
|
||||
|
||||
// The i'th linear bucket covers the interval
|
||||
// [offset + (i-1) * width, offset + i * width)
|
||||
// where i ranges from 1 to num_finite_buckets, inclusive.
|
||||
// Must be strictly positive.
|
||||
double width = 2;
|
||||
|
||||
// The i'th linear bucket covers the interval
|
||||
// [offset + (i-1) * width, offset + i * width)
|
||||
// where i ranges from 1 to num_finite_buckets, inclusive.
|
||||
double offset = 3;
|
||||
}
|
||||
|
||||
// Describing buckets with exponentially growing width.
|
||||
message ExponentialBuckets {
|
||||
// The number of finite buckets. With the underflow and overflow buckets,
|
||||
// the total number of buckets is `num_finite_buckets` + 2.
|
||||
// See comments on `bucket_options` for details.
|
||||
int32 num_finite_buckets = 1;
|
||||
|
||||
// The i'th exponential bucket covers the interval
|
||||
// [scale * growth_factor^(i-1), scale * growth_factor^i)
|
||||
// where i ranges from 1 to num_finite_buckets inclusive.
|
||||
// Must be larger than 1.0.
|
||||
double growth_factor = 2;
|
||||
|
||||
// The i'th exponential bucket covers the interval
|
||||
// [scale * growth_factor^(i-1), scale * growth_factor^i)
|
||||
// where i ranges from 1 to num_finite_buckets inclusive.
|
||||
// Must be > 0.
|
||||
double scale = 3;
|
||||
}
|
||||
|
||||
// Describing buckets with arbitrary user-provided width.
|
||||
message ExplicitBuckets {
|
||||
// 'bound' is a list of strictly increasing boundaries between
|
||||
// buckets. Note that a list of length N-1 defines N buckets because
|
||||
// of fenceposting. See comments on `bucket_options` for details.
|
||||
//
|
||||
// The i'th finite bucket covers the interval
|
||||
// [bound[i-1], bound[i])
|
||||
// where i ranges from 1 to bound_size() - 1. Note that there are no
|
||||
// finite buckets at all if 'bound' only contains a single element; in
|
||||
// that special case the single bound defines the boundary between the
|
||||
// underflow and overflow buckets.
|
||||
//
|
||||
// bucket number lower bound upper bound
|
||||
// i == 0 (underflow) -inf bound[i]
|
||||
// 0 < i < bound_size() bound[i-1] bound[i]
|
||||
// i == bound_size() (overflow) bound[i-1] +inf
|
||||
repeated double bounds = 1;
|
||||
}
|
||||
|
||||
// The total number of samples in the distribution. Must be >= 0.
|
||||
int64 count = 1;
|
||||
|
||||
// The arithmetic mean of the samples in the distribution. If `count` is
|
||||
// zero then this field must be zero.
|
||||
double mean = 2;
|
||||
|
||||
// The minimum of the population of values. Ignored if `count` is zero.
|
||||
double minimum = 3;
|
||||
|
||||
// The maximum of the population of values. Ignored if `count` is zero.
|
||||
double maximum = 4;
|
||||
|
||||
// The sum of squared deviations from the mean:
|
||||
// Sum[i=1..count]((x_i - mean)^2)
|
||||
// where each x_i is a sample values. If `count` is zero then this field
|
||||
// must be zero, otherwise validation of the request fails.
|
||||
double sum_of_squared_deviation = 5;
|
||||
|
||||
// The number of samples in each histogram bucket. `bucket_counts` are
|
||||
// optional. If present, they must sum to the `count` value.
|
||||
//
|
||||
// The buckets are defined below in `bucket_option`. There are N buckets.
|
||||
// `bucket_counts[0]` is the number of samples in the underflow bucket.
|
||||
// `bucket_counts[1]` to `bucket_counts[N-1]` are the numbers of samples
|
||||
// in each of the finite buckets. And `bucket_counts[N] is the number
|
||||
// of samples in the overflow bucket. See the comments of `bucket_option`
|
||||
// below for more details.
|
||||
//
|
||||
// Any suffix of trailing zeros may be omitted.
|
||||
repeated int64 bucket_counts = 6;
|
||||
|
||||
// Defines the buckets in the histogram. `bucket_option` and `bucket_counts`
|
||||
// must be both set, or both unset.
|
||||
//
|
||||
// Buckets are numbered in the range of [0, N], with a total of N+1 buckets.
|
||||
// There must be at least two buckets (a single-bucket histogram gives
|
||||
// no information that isn't already provided by `count`).
|
||||
//
|
||||
// The first bucket is the underflow bucket which has a lower bound
|
||||
// of -inf. The last bucket is the overflow bucket which has an
|
||||
// upper bound of +inf. All other buckets (if any) are called "finite"
|
||||
// buckets because they have finite lower and upper bounds. As described
|
||||
// below, there are three ways to define the finite buckets.
|
||||
//
|
||||
// (1) Buckets with constant width.
|
||||
// (2) Buckets with exponentially growing widths.
|
||||
// (3) Buckets with arbitrary user-provided widths.
|
||||
//
|
||||
// In all cases, the buckets cover the entire real number line (-inf,
|
||||
// +inf). Bucket upper bounds are exclusive and lower bounds are
|
||||
// inclusive. The upper bound of the underflow bucket is equal to the
|
||||
// lower bound of the smallest finite bucket; the lower bound of the
|
||||
// overflow bucket is equal to the upper bound of the largest finite
|
||||
// bucket.
|
||||
oneof bucket_option {
|
||||
// Buckets with constant width.
|
||||
LinearBuckets linear_buckets = 7;
|
||||
|
||||
// Buckets with exponentially growing width.
|
||||
ExponentialBuckets exponential_buckets = 8;
|
||||
|
||||
// Buckets with arbitrary user-provided width.
|
||||
ExplicitBuckets explicit_buckets = 9;
|
||||
}
|
||||
}
|
66
node_modules/google-gax/protos/google/api/servicecontrol/v1/log_entry.proto
generated
vendored
Normal file
66
node_modules/google-gax/protos/google/api/servicecontrol/v1/log_entry.proto
generated
vendored
Normal file
@ -0,0 +1,66 @@
|
||||
// Copyright 2017 Google Inc.
|
||||
//
|
||||
// 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.servicecontrol.v1;
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
import "google/logging/type/log_severity.proto";
|
||||
import "google/protobuf/any.proto";
|
||||
import "google/protobuf/struct.proto";
|
||||
import "google/protobuf/timestamp.proto";
|
||||
|
||||
option go_package = "google.golang.org/genproto/googleapis/api/servicecontrol/v1;servicecontrol";
|
||||
option java_multiple_files = true;
|
||||
option java_outer_classname = "LogEntryProto";
|
||||
option java_package = "com.google.api.servicecontrol.v1";
|
||||
|
||||
// An individual log entry.
|
||||
message LogEntry {
|
||||
// Required. The log to which this log entry belongs. Examples: `"syslog"`,
|
||||
// `"book_log"`.
|
||||
string name = 10;
|
||||
|
||||
// The time the event described by the log entry occurred. If
|
||||
// omitted, defaults to operation start time.
|
||||
google.protobuf.Timestamp timestamp = 11;
|
||||
|
||||
// The severity of the log entry. The default value is
|
||||
// `LogSeverity.DEFAULT`.
|
||||
google.logging.type.LogSeverity severity = 12;
|
||||
|
||||
// A unique ID for the log entry used for deduplication. If omitted,
|
||||
// the implementation will generate one based on operation_id.
|
||||
string insert_id = 4;
|
||||
|
||||
// A set of user-defined (key, value) data that provides additional
|
||||
// information about the log entry.
|
||||
map<string, string> labels = 13;
|
||||
|
||||
// The log entry payload, which can be one of multiple types.
|
||||
oneof payload {
|
||||
// The log entry payload, represented as a protocol buffer that is
|
||||
// expressed as a JSON object. The only accepted type currently is
|
||||
// [AuditLog][google.cloud.audit.AuditLog].
|
||||
google.protobuf.Any proto_payload = 2;
|
||||
|
||||
// The log entry payload, represented as a Unicode string (UTF-8).
|
||||
string text_payload = 3;
|
||||
|
||||
// The log entry payload, represented as a structure that
|
||||
// is expressed as a JSON object.
|
||||
google.protobuf.Struct struct_payload = 6;
|
||||
}
|
||||
}
|
78
node_modules/google-gax/protos/google/api/servicecontrol/v1/metric_value.proto
generated
vendored
Normal file
78
node_modules/google-gax/protos/google/api/servicecontrol/v1/metric_value.proto
generated
vendored
Normal file
@ -0,0 +1,78 @@
|
||||
// Copyright 2017 Google Inc.
|
||||
//
|
||||
// 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.servicecontrol.v1;
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
import "google/api/servicecontrol/v1/distribution.proto";
|
||||
import "google/protobuf/timestamp.proto";
|
||||
import "google/type/money.proto";
|
||||
|
||||
option cc_enable_arenas = true;
|
||||
option go_package = "google.golang.org/genproto/googleapis/api/servicecontrol/v1;servicecontrol";
|
||||
option java_multiple_files = true;
|
||||
option java_outer_classname = "MetricValueSetProto";
|
||||
option java_package = "com.google.api.servicecontrol.v1";
|
||||
|
||||
// Represents a single metric value.
|
||||
message MetricValue {
|
||||
// The labels describing the metric value.
|
||||
// See comments on
|
||||
// [google.api.servicecontrol.v1.Operation.labels][google.api.servicecontrol.v1.Operation.labels]
|
||||
// for the overriding relationship.
|
||||
map<string, string> labels = 1;
|
||||
|
||||
// The start of the time period over which this metric value's measurement
|
||||
// applies. The time period has different semantics for different metric
|
||||
// types (cumulative, delta, and gauge). See the metric definition
|
||||
// documentation in the service configuration for details.
|
||||
google.protobuf.Timestamp start_time = 2;
|
||||
|
||||
// The end of the time period over which this metric value's measurement
|
||||
// applies.
|
||||
google.protobuf.Timestamp end_time = 3;
|
||||
|
||||
// The value. The type of value used in the request must
|
||||
// agree with the metric definition in the service configuration, otherwise
|
||||
// the MetricValue is rejected.
|
||||
oneof value {
|
||||
// A boolean value.
|
||||
bool bool_value = 4;
|
||||
|
||||
// A signed 64-bit integer value.
|
||||
int64 int64_value = 5;
|
||||
|
||||
// A double precision floating point value.
|
||||
double double_value = 6;
|
||||
|
||||
// A text string value.
|
||||
string string_value = 7;
|
||||
|
||||
// A distribution value.
|
||||
Distribution distribution_value = 8;
|
||||
}
|
||||
}
|
||||
|
||||
// Represents a set of metric values in the same metric.
|
||||
// Each metric value in the set should have a unique combination of start time,
|
||||
// end time, and label values.
|
||||
message MetricValueSet {
|
||||
// The metric name defined in the service configuration.
|
||||
string metric_name = 1;
|
||||
|
||||
// The values in this metric.
|
||||
repeated MetricValue metric_values = 2;
|
||||
}
|
113
node_modules/google-gax/protos/google/api/servicecontrol/v1/operation.proto
generated
vendored
Normal file
113
node_modules/google-gax/protos/google/api/servicecontrol/v1/operation.proto
generated
vendored
Normal file
@ -0,0 +1,113 @@
|
||||
// Copyright 2017 Google Inc.
|
||||
//
|
||||
// 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.servicecontrol.v1;
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
import "google/api/servicecontrol/v1/log_entry.proto";
|
||||
import "google/api/servicecontrol/v1/metric_value.proto";
|
||||
import "google/protobuf/timestamp.proto";
|
||||
|
||||
option cc_enable_arenas = true;
|
||||
option go_package = "google.golang.org/genproto/googleapis/api/servicecontrol/v1;servicecontrol";
|
||||
option java_multiple_files = true;
|
||||
option java_outer_classname = "OperationProto";
|
||||
option java_package = "com.google.api.servicecontrol.v1";
|
||||
|
||||
// Represents information regarding an operation.
|
||||
message Operation {
|
||||
// Defines the importance of the data contained in the operation.
|
||||
enum Importance {
|
||||
// The API implementation may cache and aggregate the data.
|
||||
// The data may be lost when rare and unexpected system failures occur.
|
||||
LOW = 0;
|
||||
|
||||
// The API implementation doesn't cache and aggregate the data.
|
||||
// If the method returns successfully, it's guaranteed that the data has
|
||||
// been persisted in durable storage.
|
||||
HIGH = 1;
|
||||
}
|
||||
|
||||
// Identity of the operation. This must be unique within the scope of the
|
||||
// service that generated the operation. If the service calls
|
||||
// Check() and Report() on the same operation, the two calls should carry
|
||||
// the same id.
|
||||
//
|
||||
// UUID version 4 is recommended, though not required.
|
||||
// In scenarios where an operation is computed from existing information
|
||||
// and an idempotent id is desirable for deduplication purpose, UUID version 5
|
||||
// is recommended. See RFC 4122 for details.
|
||||
string operation_id = 1;
|
||||
|
||||
// Fully qualified name of the operation. Reserved for future use.
|
||||
string operation_name = 2;
|
||||
|
||||
// Identity of the consumer who is using the service.
|
||||
// This field should be filled in for the operations initiated by a
|
||||
// consumer, but not for service-initiated operations that are
|
||||
// not related to a specific consumer.
|
||||
//
|
||||
// This can be in one of the following formats:
|
||||
// project:<project_id>,
|
||||
// project_number:<project_number>,
|
||||
// api_key:<api_key>.
|
||||
string consumer_id = 3;
|
||||
|
||||
// Required. Start time of the operation.
|
||||
google.protobuf.Timestamp start_time = 4;
|
||||
|
||||
// End time of the operation.
|
||||
// Required when the operation is used in
|
||||
// [ServiceController.Report][google.api.servicecontrol.v1.ServiceController.Report],
|
||||
// but optional when the operation is used in
|
||||
// [ServiceController.Check][google.api.servicecontrol.v1.ServiceController.Check].
|
||||
google.protobuf.Timestamp end_time = 5;
|
||||
|
||||
// Labels describing the operation. Only the following labels are allowed:
|
||||
//
|
||||
// - Labels describing monitored resources as defined in
|
||||
// the service configuration.
|
||||
// - Default labels of metric values. When specified, labels defined in the
|
||||
// metric value override these default.
|
||||
// - The following labels defined by Google Cloud Platform:
|
||||
// - `cloud.googleapis.com/location` describing the location where the
|
||||
// operation happened,
|
||||
// - `servicecontrol.googleapis.com/user_agent` describing the user agent
|
||||
// of the API request,
|
||||
// - `servicecontrol.googleapis.com/service_agent` describing the service
|
||||
// used to handle the API request (e.g. ESP),
|
||||
// - `servicecontrol.googleapis.com/platform` describing the platform
|
||||
// where the API is served (e.g. GAE, GCE, GKE).
|
||||
map<string, string> labels = 6;
|
||||
|
||||
// Represents information about this operation. Each MetricValueSet
|
||||
// corresponds to a metric defined in the service configuration.
|
||||
// The data type used in the MetricValueSet must agree with
|
||||
// the data type specified in the metric definition.
|
||||
//
|
||||
// Within a single operation, it is not allowed to have more than one
|
||||
// MetricValue instances that have the same metric names and identical
|
||||
// label value combinations. If a request has such duplicated MetricValue
|
||||
// instances, the entire request is rejected with
|
||||
// an invalid argument error.
|
||||
repeated MetricValueSet metric_value_sets = 7;
|
||||
|
||||
// Represents information to be logged.
|
||||
repeated LogEntry log_entries = 8;
|
||||
|
||||
// DO NOT USE. This is an experimental field.
|
||||
Importance importance = 11;
|
||||
}
|
206
node_modules/google-gax/protos/google/api/servicecontrol/v1/quota_controller.proto
generated
vendored
Normal file
206
node_modules/google-gax/protos/google/api/servicecontrol/v1/quota_controller.proto
generated
vendored
Normal file
@ -0,0 +1,206 @@
|
||||
// Copyright 2017 Google Inc.
|
||||
//
|
||||
// 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.servicecontrol.v1;
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
import "google/api/servicecontrol/v1/metric_value.proto";
|
||||
|
||||
option cc_enable_arenas = true;
|
||||
option go_package = "google.golang.org/genproto/googleapis/api/servicecontrol/v1;servicecontrol";
|
||||
option java_multiple_files = true;
|
||||
option java_outer_classname = "QuotaControllerProto";
|
||||
option java_package = "com.google.api.servicecontrol.v1";
|
||||
|
||||
// [Google Quota Control API](/service-control/overview)
|
||||
//
|
||||
// Allows clients to allocate and release quota against a [managed
|
||||
// service](https://cloud.google.com/service-management/reference/rpc/google.api/servicemanagement.v1#google.api.servicemanagement.v1.ManagedService).
|
||||
service QuotaController {
|
||||
// Attempts to allocate quota for the specified consumer. It should be called
|
||||
// before the operation is executed.
|
||||
//
|
||||
// This method requires the `servicemanagement.services.quota`
|
||||
// permission on the specified service. For more information, see
|
||||
// [Cloud IAM](https://cloud.google.com/iam).
|
||||
//
|
||||
// **NOTE:** The client **must** fail-open on server errors `INTERNAL`,
|
||||
// `UNKNOWN`, `DEADLINE_EXCEEDED`, and `UNAVAILABLE`. To ensure system
|
||||
// reliability, the server may inject these errors to prohibit any hard
|
||||
// dependency on the quota functionality.
|
||||
rpc AllocateQuota(AllocateQuotaRequest) returns (AllocateQuotaResponse) {
|
||||
option (google.api.http) = {
|
||||
post: "/v1/services/{service_name}:allocateQuota"
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
// Request message for the AllocateQuota method.
|
||||
message AllocateQuotaRequest {
|
||||
// Name of the service as specified in the service configuration. For example,
|
||||
// `"pubsub.googleapis.com"`.
|
||||
//
|
||||
// See [google.api.Service][google.api.Service] for the definition of a
|
||||
// service name.
|
||||
string service_name = 1;
|
||||
|
||||
// Operation that describes the quota allocation.
|
||||
QuotaOperation allocate_operation = 2;
|
||||
|
||||
// Specifies which version of service configuration should be used to process
|
||||
// the request. If unspecified or no matching version can be found, the latest
|
||||
// one will be used.
|
||||
string service_config_id = 4;
|
||||
}
|
||||
|
||||
// Represents information regarding a quota operation.
|
||||
message QuotaOperation {
|
||||
// Supported quota modes.
|
||||
enum QuotaMode {
|
||||
// Guard against implicit default. Must not be used.
|
||||
UNSPECIFIED = 0;
|
||||
|
||||
// For AllocateQuota request, allocates quota for the amount specified in
|
||||
// the service configuration or specified using the quota metrics. If the
|
||||
// amount is higher than the available quota, allocation error will be
|
||||
// returned and no quota will be allocated.
|
||||
NORMAL = 1;
|
||||
|
||||
// The operation allocates quota for the amount specified in the service
|
||||
// configuration or specified using the quota metrics. If the amount is
|
||||
// higher than the available quota, request does not fail but all available
|
||||
// quota will be allocated.
|
||||
BEST_EFFORT = 2;
|
||||
|
||||
// For AllocateQuota request, only checks if there is enough quota
|
||||
// available and does not change the available quota. No lock is placed on
|
||||
// the available quota either.
|
||||
CHECK_ONLY = 3;
|
||||
}
|
||||
|
||||
// Identity of the operation. This is expected to be unique within the scope
|
||||
// of the service that generated the operation, and guarantees idempotency in
|
||||
// case of retries.
|
||||
//
|
||||
// UUID version 4 is recommended, though not required. In scenarios where an
|
||||
// operation is computed from existing information and an idempotent id is
|
||||
// desirable for deduplication purpose, UUID version 5 is recommended. See
|
||||
// RFC 4122 for details.
|
||||
string operation_id = 1;
|
||||
|
||||
// Fully qualified name of the API method for which this quota operation is
|
||||
// requested. This name is used for matching quota rules or metric rules and
|
||||
// billing status rules defined in service configuration. This field is not
|
||||
// required if the quota operation is performed on non-API resources.
|
||||
//
|
||||
// Example of an RPC method name:
|
||||
// google.example.library.v1.LibraryService.CreateShelf
|
||||
string method_name = 2;
|
||||
|
||||
// Identity of the consumer for whom this quota operation is being performed.
|
||||
//
|
||||
// This can be in one of the following formats:
|
||||
// project:<project_id>,
|
||||
// project_number:<project_number>,
|
||||
// api_key:<api_key>.
|
||||
string consumer_id = 3;
|
||||
|
||||
// Labels describing the operation.
|
||||
map<string, string> labels = 4;
|
||||
|
||||
// Represents information about this operation. Each MetricValueSet
|
||||
// corresponds to a metric defined in the service configuration.
|
||||
// The data type used in the MetricValueSet must agree with
|
||||
// the data type specified in the metric definition.
|
||||
//
|
||||
// Within a single operation, it is not allowed to have more than one
|
||||
// MetricValue instances that have the same metric names and identical
|
||||
// label value combinations. If a request has such duplicated MetricValue
|
||||
// instances, the entire request is rejected with
|
||||
// an invalid argument error.
|
||||
repeated MetricValueSet quota_metrics = 5;
|
||||
|
||||
// Quota mode for this operation.
|
||||
QuotaMode quota_mode = 6;
|
||||
}
|
||||
|
||||
// Response message for the AllocateQuota method.
|
||||
message AllocateQuotaResponse {
|
||||
// The same operation_id value used in the AllocateQuotaRequest. Used for
|
||||
// logging and diagnostics purposes.
|
||||
string operation_id = 1;
|
||||
|
||||
// Indicates the decision of the allocate.
|
||||
repeated QuotaError allocate_errors = 2;
|
||||
|
||||
// Quota metrics to indicate the result of allocation. Depending on the
|
||||
// request, one or more of the following metrics will be included:
|
||||
//
|
||||
// 1. Per quota group or per quota metric incremental usage will be specified
|
||||
// using the following delta metric :
|
||||
// "serviceruntime.googleapis.com/api/consumer/quota_used_count"
|
||||
//
|
||||
// 2. The quota limit reached condition will be specified using the following
|
||||
// boolean metric :
|
||||
// "serviceruntime.googleapis.com/quota/exceeded"
|
||||
repeated MetricValueSet quota_metrics = 3;
|
||||
|
||||
// ID of the actual config used to process the request.
|
||||
string service_config_id = 4;
|
||||
}
|
||||
|
||||
// Represents error information for
|
||||
// [QuotaOperation][google.api.servicecontrol.v1.QuotaOperation].
|
||||
message QuotaError {
|
||||
// Error codes related to project config validations are deprecated since the
|
||||
// quota controller methods do not perform these validations. Instead services
|
||||
// have to call the Check method, without quota_properties field, to perform
|
||||
// these validations before calling the quota controller methods. These
|
||||
// methods check only for project deletion to be wipe out compliant.
|
||||
enum Code {
|
||||
// This is never used.
|
||||
UNSPECIFIED = 0;
|
||||
|
||||
// Quota allocation failed.
|
||||
// Same as [google.rpc.Code.RESOURCE_EXHAUSTED][].
|
||||
RESOURCE_EXHAUSTED = 8;
|
||||
|
||||
// Consumer cannot access the service because the service requires active
|
||||
// billing.
|
||||
BILLING_NOT_ACTIVE = 107;
|
||||
|
||||
// Consumer's project has been marked as deleted (soft deletion).
|
||||
PROJECT_DELETED = 108;
|
||||
|
||||
// Specified API key is invalid.
|
||||
API_KEY_INVALID = 105;
|
||||
|
||||
// Specified API Key has expired.
|
||||
API_KEY_EXPIRED = 112;
|
||||
}
|
||||
|
||||
// Error code.
|
||||
Code code = 1;
|
||||
|
||||
// Subject to whom this error applies. See the specific enum for more details
|
||||
// on this field. For example, "clientip:<ip address of client>" or
|
||||
// "project:<Google developer project id>".
|
||||
string subject = 2;
|
||||
|
||||
// Free-form text that provides details on the cause of the error.
|
||||
string description = 3;
|
||||
}
|
204
node_modules/google-gax/protos/google/api/servicecontrol/v1/service_controller.proto
generated
vendored
Normal file
204
node_modules/google-gax/protos/google/api/servicecontrol/v1/service_controller.proto
generated
vendored
Normal file
@ -0,0 +1,204 @@
|
||||
// Copyright 2017 Google Inc.
|
||||
//
|
||||
// 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.servicecontrol.v1;
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
import "google/api/servicecontrol/v1/check_error.proto";
|
||||
import "google/api/servicecontrol/v1/operation.proto";
|
||||
import "google/rpc/status.proto";
|
||||
|
||||
option cc_enable_arenas = true;
|
||||
option go_package = "google.golang.org/genproto/googleapis/api/servicecontrol/v1;servicecontrol";
|
||||
option java_multiple_files = true;
|
||||
option java_outer_classname = "ServiceControllerProto";
|
||||
option java_package = "com.google.api.servicecontrol.v1";
|
||||
option objc_class_prefix = "GASC";
|
||||
|
||||
// [Google Service Control API](/service-control/overview)
|
||||
//
|
||||
// Lets clients check and report operations against a [managed
|
||||
// service](https://cloud.google.com/service-management/reference/rpc/google.api/servicemanagement.v1#google.api.servicemanagement.v1.ManagedService).
|
||||
service ServiceController {
|
||||
// Checks an operation with Google Service Control to decide whether
|
||||
// the given operation should proceed. It should be called before the
|
||||
// operation is executed.
|
||||
//
|
||||
// If feasible, the client should cache the check results and reuse them for
|
||||
// 60 seconds. In case of server errors, the client can rely on the cached
|
||||
// results for longer time.
|
||||
//
|
||||
// NOTE: the [CheckRequest][google.api.servicecontrol.v1.CheckRequest] has the
|
||||
// size limit of 64KB.
|
||||
//
|
||||
// This method requires the `servicemanagement.services.check` permission
|
||||
// on the specified service. For more information, see
|
||||
// [Google Cloud IAM](https://cloud.google.com/iam).
|
||||
rpc Check(CheckRequest) returns (CheckResponse) {
|
||||
option (google.api.http) = {
|
||||
post: "/v1/services/{service_name}:check"
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
|
||||
// Reports operation results to Google Service Control, such as logs and
|
||||
// metrics. It should be called after an operation is completed.
|
||||
//
|
||||
// If feasible, the client should aggregate reporting data for up to 5
|
||||
// seconds to reduce API traffic. Limiting aggregation to 5 seconds is to
|
||||
// reduce data loss during client crashes. Clients should carefully choose
|
||||
// the aggregation time window to avoid data loss risk more than 0.01%
|
||||
// for business and compliance reasons.
|
||||
//
|
||||
// NOTE: the [ReportRequest][google.api.servicecontrol.v1.ReportRequest] has
|
||||
// the size limit of 1MB.
|
||||
//
|
||||
// This method requires the `servicemanagement.services.report` permission
|
||||
// on the specified service. For more information, see
|
||||
// [Google Cloud IAM](https://cloud.google.com/iam).
|
||||
rpc Report(ReportRequest) returns (ReportResponse) {
|
||||
option (google.api.http) = {
|
||||
post: "/v1/services/{service_name}:report"
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
// Request message for the Check method.
|
||||
message CheckRequest {
|
||||
// The service name as specified in its service configuration. For example,
|
||||
// `"pubsub.googleapis.com"`.
|
||||
//
|
||||
// See
|
||||
// [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service)
|
||||
// for the definition of a service name.
|
||||
string service_name = 1;
|
||||
|
||||
// The operation to be checked.
|
||||
Operation operation = 2;
|
||||
|
||||
// Specifies which version of service configuration should be used to process
|
||||
// the request.
|
||||
//
|
||||
// If unspecified or no matching version can be found, the
|
||||
// latest one will be used.
|
||||
string service_config_id = 4;
|
||||
}
|
||||
|
||||
// Response message for the Check method.
|
||||
message CheckResponse {
|
||||
message CheckInfo {
|
||||
// Consumer info of this check.
|
||||
ConsumerInfo consumer_info = 2;
|
||||
}
|
||||
|
||||
// `ConsumerInfo` provides information about the consumer project.
|
||||
message ConsumerInfo {
|
||||
// The Google cloud project number, e.g. 1234567890. A value of 0 indicates
|
||||
// no project number is found.
|
||||
int64 project_number = 1;
|
||||
}
|
||||
|
||||
// The same operation_id value used in the
|
||||
// [CheckRequest][google.api.servicecontrol.v1.CheckRequest]. Used for logging
|
||||
// and diagnostics purposes.
|
||||
string operation_id = 1;
|
||||
|
||||
// The current service rollout id used to process the request.
|
||||
string service_rollout_id = 11;
|
||||
|
||||
// Indicate the decision of the check.
|
||||
//
|
||||
// If no check errors are present, the service should process the operation.
|
||||
// Otherwise the service should use the list of errors to determine the
|
||||
// appropriate action.
|
||||
repeated CheckError check_errors = 2;
|
||||
|
||||
// The actual config id used to process the request.
|
||||
string service_config_id = 5;
|
||||
|
||||
// Feedback data returned from the server during processing a Check request.
|
||||
CheckInfo check_info = 6;
|
||||
}
|
||||
|
||||
// Request message for the Report method.
|
||||
message ReportRequest {
|
||||
// The service name as specified in its service configuration. For example,
|
||||
// `"pubsub.googleapis.com"`.
|
||||
//
|
||||
// See
|
||||
// [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service)
|
||||
// for the definition of a service name.
|
||||
string service_name = 1;
|
||||
|
||||
// Operations to be reported.
|
||||
//
|
||||
// Typically the service should report one operation per request.
|
||||
// Putting multiple operations into a single request is allowed, but should
|
||||
// be used only when multiple operations are natually available at the time
|
||||
// of the report.
|
||||
//
|
||||
// If multiple operations are in a single request, the total request size
|
||||
// should be no larger than 1MB. See
|
||||
// [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors]
|
||||
// for partial failure behavior.
|
||||
repeated Operation operations = 2;
|
||||
|
||||
// Specifies which version of service config should be used to process the
|
||||
// request.
|
||||
//
|
||||
// If unspecified or no matching version can be found, the
|
||||
// latest one will be used.
|
||||
string service_config_id = 3;
|
||||
}
|
||||
|
||||
// Response message for the Report method.
|
||||
message ReportResponse {
|
||||
// Represents the processing error of one
|
||||
// [Operation][google.api.servicecontrol.v1.Operation] in the request.
|
||||
message ReportError {
|
||||
// The
|
||||
// [Operation.operation_id][google.api.servicecontrol.v1.Operation.operation_id]
|
||||
// value from the request.
|
||||
string operation_id = 1;
|
||||
|
||||
// Details of the error when processing the
|
||||
// [Operation][google.api.servicecontrol.v1.Operation].
|
||||
google.rpc.Status status = 2;
|
||||
}
|
||||
|
||||
// Partial failures, one for each `Operation` in the request that failed
|
||||
// processing. There are three possible combinations of the RPC status:
|
||||
//
|
||||
// 1. The combination of a successful RPC status and an empty `report_errors`
|
||||
// list indicates a complete success where all `Operations` in the
|
||||
// request are processed successfully.
|
||||
// 2. The combination of a successful RPC status and a non-empty
|
||||
// `report_errors` list indicates a partial success where some
|
||||
// `Operations` in the request succeeded. Each
|
||||
// `Operation` that failed processing has a corresponding item
|
||||
// in this list.
|
||||
// 3. A failed RPC status indicates a general non-deterministic failure.
|
||||
// When this happens, it's impossible to know which of the
|
||||
// 'Operations' in the request succeeded or failed.
|
||||
repeated ReportError report_errors = 1;
|
||||
|
||||
// The actual config id used to process the request.
|
||||
string service_config_id = 2;
|
||||
|
||||
// The current service rollout id used to process the request.
|
||||
string service_rollout_id = 4;
|
||||
}
|
Reference in New Issue
Block a user