google-cloud-service_control-v1 1.7.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/README.md +2 -6
- data/lib/google/api/servicecontrol/v1/check_error_pb.rb +1 -1
- data/lib/google/api/servicecontrol/v1/distribution_pb.rb +1 -1
- data/lib/google/api/servicecontrol/v1/metric_value_pb.rb +1 -1
- data/lib/google/api/servicecontrol/v1/operation_pb.rb +1 -1
- data/lib/google/api/servicecontrol/v1/quota_controller_pb.rb +2 -2
- data/lib/google/api/servicecontrol/v1/quota_controller_services_pb.rb +2 -2
- data/lib/google/api/servicecontrol/v1/service_controller_pb.rb +1 -1
- data/lib/google/api/servicecontrol/v1/service_controller_services_pb.rb +5 -4
- data/lib/google/cloud/service_control/v1/quota_controller/client.rb +4 -3
- data/lib/google/cloud/service_control/v1/quota_controller/credentials.rb +1 -1
- data/lib/google/cloud/service_control/v1/quota_controller/rest/client.rb +4 -3
- data/lib/google/cloud/service_control/v1/quota_controller/rest/service_stub.rb +1 -1
- data/lib/google/cloud/service_control/v1/quota_controller/rest.rb +2 -2
- data/lib/google/cloud/service_control/v1/quota_controller.rb +2 -2
- data/lib/google/cloud/service_control/v1/rest.rb +1 -1
- data/lib/google/cloud/service_control/v1/service_controller/client.rb +5 -4
- data/lib/google/cloud/service_control/v1/service_controller/credentials.rb +1 -1
- data/lib/google/cloud/service_control/v1/service_controller/rest/client.rb +5 -4
- data/lib/google/cloud/service_control/v1/service_controller/rest/service_stub.rb +1 -1
- data/lib/google/cloud/service_control/v1/service_controller/rest.rb +3 -2
- data/lib/google/cloud/service_control/v1/service_controller.rb +3 -2
- data/lib/google/cloud/service_control/v1/version.rb +1 -1
- data/lib/google/cloud/service_control/v1.rb +1 -1
- data/lib/google-cloud-service_control-v1.rb +1 -1
- data/proto_docs/README.md +1 -1
- data/proto_docs/google/api/client.rb +1 -1
- data/proto_docs/google/api/distribution.rb +1 -1
- data/proto_docs/google/api/launch_stage.rb +1 -1
- data/proto_docs/google/api/resource.rb +1 -1
- data/proto_docs/google/api/servicecontrol/v1/check_error.rb +9 -5
- data/proto_docs/google/api/servicecontrol/v1/distribution.rb +2 -2
- data/proto_docs/google/api/servicecontrol/v1/http_request.rb +2 -2
- data/proto_docs/google/api/servicecontrol/v1/log_entry.rb +1 -1
- data/proto_docs/google/api/servicecontrol/v1/metric_value.rb +9 -6
- data/proto_docs/google/api/servicecontrol/v1/operation.rb +17 -1
- data/proto_docs/google/api/servicecontrol/v1/quota_controller.rb +10 -7
- data/proto_docs/google/api/servicecontrol/v1/service_controller.rb +1 -1
- data/proto_docs/google/logging/type/log_severity.rb +1 -1
- data/proto_docs/google/protobuf/any.rb +1 -1
- data/proto_docs/google/protobuf/duration.rb +1 -1
- data/proto_docs/google/protobuf/struct.rb +1 -1
- data/proto_docs/google/protobuf/timestamp.rb +8 -7
- data/proto_docs/google/rpc/status.rb +1 -1
- metadata +7 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e491a11186a02f1e8cb375d35c55475536f9898d9cdd2999fad7fb043edba6e5
|
|
4
|
+
data.tar.gz: d8b2711217daa9dd303ac46b24aec59e986bcb229c34bed1f37f7af1a8e9dbd1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8bebfd0f64af4eaa3b79ab372c90d9acf4218af8f8c590a21a80eba4577427ec109abc230198a6521f5b95633f2b99f0052be89997ae50e0950381e8e7d4ca0a
|
|
7
|
+
data.tar.gz: 63eb405d64104f9a77d5cb721c16c817439b267225e895f06c5a1cd5edd35840d4fa9812cd3ae5e3541b5241858ac142d804285b16e397e34fb55a6e4aa82753
|
data/.yardopts
CHANGED
data/README.md
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
# Ruby Client for the Service Control
|
|
1
|
+
# Ruby Client for the Service Control V1 API
|
|
2
2
|
|
|
3
3
|
Provides admission control and telemetry reporting for services integrated with Service Infrastructure.
|
|
4
4
|
|
|
5
|
-
The Service Control API provides control plane functionality to managed services, such as logging, monitoring, and status checks.
|
|
6
5
|
|
|
7
6
|
https://github.com/googleapis/google-cloud-ruby
|
|
8
7
|
|
|
9
8
|
This gem is a _versioned_ client. It provides basic client classes for a
|
|
10
|
-
specific version of the Service Control
|
|
9
|
+
specific version of the Service Control V1 API. Most users should consider using
|
|
11
10
|
the main client gem,
|
|
12
11
|
[google-cloud-service_control](https://rubygems.org/gems/google-cloud-service_control).
|
|
13
12
|
See the section below titled *Which client should I use?* for more information.
|
|
@@ -40,9 +39,6 @@ response = client.allocate_quota request
|
|
|
40
39
|
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-service_control-v1/latest)
|
|
41
40
|
for class and method documentation.
|
|
42
41
|
|
|
43
|
-
See also the [Product Documentation](https://cloud.google.com/service-infrastructure/docs/overview/)
|
|
44
|
-
for general usage information.
|
|
45
|
-
|
|
46
42
|
## Debug Logging
|
|
47
43
|
|
|
48
44
|
This library comes with opt-in Debug Logging that can help you troubleshoot
|
|
@@ -7,7 +7,7 @@ require 'google/protobuf'
|
|
|
7
7
|
require 'google/rpc/status_pb'
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
descriptor_data = "\n.google/api/servicecontrol/v1/check_error.proto\x12\x1cgoogle.api.servicecontrol.v1\x1a\x17google/rpc/status.proto\"\xae\x05\n\nCheckError\x12;\n\x04\x63ode\x18\x01 \x01(\x0e\x32-.google.api.servicecontrol.v1.CheckError.Code\x12\x0f\n\x07subject\x18\x04 \x01(\t\x12\x0e\n\x06\x64\x65tail\x18\x02 \x01(\t\x12\"\n\x06status\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\"\x9d\x04\n\x04\x43ode\x12\x1a\n\x16\x45RROR_CODE_UNSPECIFIED\x10\x00\x12\r\n\tNOT_FOUND\x10\x05\x12\x15\n\x11PERMISSION_DENIED\x10\x07\x12\x16\n\x12RESOURCE_EXHAUSTED\x10\x08\x12\x19\n\x15SERVICE_NOT_ACTIVATED\x10h\x12\x14\n\x10\x42ILLING_DISABLED\x10k\x12\x13\n\x0fPROJECT_DELETED\x10l\x12\x13\n\x0fPROJECT_INVALID\x10r\x12\x14\n\x10\x43ONSUMER_INVALID\x10}\x12\x16\n\x12IP_ADDRESS_BLOCKED\x10m\x12\x13\n\x0fREFERER_BLOCKED\x10n\x12\x16\n\x12\x43LIENT_APP_BLOCKED\x10o\x12\x16\n\x12\x41PI_TARGET_BLOCKED\x10z\x12\x13\n\x0f\x41PI_KEY_INVALID\x10i\x12\x13\n\x0f\x41PI_KEY_EXPIRED\x10p\x12\x15\n\x11\x41PI_KEY_NOT_FOUND\x10q\x12\x16\n\x12INVALID_CREDENTIAL\x10{\x12!\n\x1cNAMESPACE_LOOKUP_UNAVAILABLE\x10\xac\x02\x12\x1f\n\x1aSERVICE_STATUS_UNAVAILABLE\x10\xad\x02\x12\x1f\n\x1a\x42ILLING_STATUS_UNAVAILABLE\x10\xae\x02\x12/\n*CLOUD_RESOURCE_MANAGER_BACKEND_UNAVAILABLE\x10\xb1\x02\x42\
|
|
10
|
+
descriptor_data = "\n.google/api/servicecontrol/v1/check_error.proto\x12\x1cgoogle.api.servicecontrol.v1\x1a\x17google/rpc/status.proto\"\xae\x05\n\nCheckError\x12;\n\x04\x63ode\x18\x01 \x01(\x0e\x32-.google.api.servicecontrol.v1.CheckError.Code\x12\x0f\n\x07subject\x18\x04 \x01(\t\x12\x0e\n\x06\x64\x65tail\x18\x02 \x01(\t\x12\"\n\x06status\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\"\x9d\x04\n\x04\x43ode\x12\x1a\n\x16\x45RROR_CODE_UNSPECIFIED\x10\x00\x12\r\n\tNOT_FOUND\x10\x05\x12\x15\n\x11PERMISSION_DENIED\x10\x07\x12\x16\n\x12RESOURCE_EXHAUSTED\x10\x08\x12\x19\n\x15SERVICE_NOT_ACTIVATED\x10h\x12\x14\n\x10\x42ILLING_DISABLED\x10k\x12\x13\n\x0fPROJECT_DELETED\x10l\x12\x13\n\x0fPROJECT_INVALID\x10r\x12\x14\n\x10\x43ONSUMER_INVALID\x10}\x12\x16\n\x12IP_ADDRESS_BLOCKED\x10m\x12\x13\n\x0fREFERER_BLOCKED\x10n\x12\x16\n\x12\x43LIENT_APP_BLOCKED\x10o\x12\x16\n\x12\x41PI_TARGET_BLOCKED\x10z\x12\x13\n\x0f\x41PI_KEY_INVALID\x10i\x12\x13\n\x0f\x41PI_KEY_EXPIRED\x10p\x12\x15\n\x11\x41PI_KEY_NOT_FOUND\x10q\x12\x16\n\x12INVALID_CREDENTIAL\x10{\x12!\n\x1cNAMESPACE_LOOKUP_UNAVAILABLE\x10\xac\x02\x12\x1f\n\x1aSERVICE_STATUS_UNAVAILABLE\x10\xad\x02\x12\x1f\n\x1a\x42ILLING_STATUS_UNAVAILABLE\x10\xae\x02\x12/\n*CLOUD_RESOURCE_MANAGER_BACKEND_UNAVAILABLE\x10\xb1\x02\x42\xe7\x01\n com.google.api.servicecontrol.v1B\x0f\x43heckErrorProtoP\x01ZJcloud.google.com/go/servicecontrol/apiv1/servicecontrolpb;servicecontrolpb\xaa\x02\x1eGoogle.Cloud.ServiceControl.V1\xca\x02\x1eGoogle\\Cloud\\ServiceControl\\V1\xea\x02!Google::Cloud::ServiceControl::V1b\x06proto3"
|
|
11
11
|
|
|
12
12
|
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
13
13
|
pool.add_serialized_file(descriptor_data)
|
|
@@ -7,7 +7,7 @@ require 'google/protobuf'
|
|
|
7
7
|
require 'google/api/distribution_pb'
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
descriptor_data = "\n/google/api/servicecontrol/v1/distribution.proto\x12\x1cgoogle.api.servicecontrol.v1\x1a\x1dgoogle/api/distribution.proto\"\x9e\x05\n\x0c\x44istribution\x12\r\n\x05\x63ount\x18\x01 \x01(\x03\x12\x0c\n\x04mean\x18\x02 \x01(\x01\x12\x0f\n\x07minimum\x18\x03 \x01(\x01\x12\x0f\n\x07maximum\x18\x04 \x01(\x01\x12 \n\x18sum_of_squared_deviation\x18\x05 \x01(\x01\x12\x15\n\rbucket_counts\x18\x06 \x03(\x03\x12R\n\x0elinear_buckets\x18\x07 \x01(\x0b\x32\x38.google.api.servicecontrol.v1.Distribution.LinearBucketsH\x00\x12\\\n\x13\x65xponential_buckets\x18\x08 \x01(\x0b\x32=.google.api.servicecontrol.v1.Distribution.ExponentialBucketsH\x00\x12V\n\x10\x65xplicit_buckets\x18\t \x01(\x0b\x32:.google.api.servicecontrol.v1.Distribution.ExplicitBucketsH\x00\x12\x34\n\texemplars\x18\n \x03(\x0b\x32!.google.api.Distribution.Exemplar\x1aJ\n\rLinearBuckets\x12\x1a\n\x12num_finite_buckets\x18\x01 \x01(\x05\x12\r\n\x05width\x18\x02 \x01(\x01\x12\x0e\n\x06offset\x18\x03 \x01(\x01\x1aV\n\x12\x45xponentialBuckets\x12\x1a\n\x12num_finite_buckets\x18\x01 \x01(\x05\x12\x15\n\rgrowth_factor\x18\x02 \x01(\x01\x12\r\n\x05scale\x18\x03 \x01(\x01\x1a!\n\x0f\x45xplicitBuckets\x12\x0e\n\x06\x62ounds\x18\x01 \x03(\x01\x42\x0f\n\rbucket_optionB\
|
|
10
|
+
descriptor_data = "\n/google/api/servicecontrol/v1/distribution.proto\x12\x1cgoogle.api.servicecontrol.v1\x1a\x1dgoogle/api/distribution.proto\"\x9e\x05\n\x0c\x44istribution\x12\r\n\x05\x63ount\x18\x01 \x01(\x03\x12\x0c\n\x04mean\x18\x02 \x01(\x01\x12\x0f\n\x07minimum\x18\x03 \x01(\x01\x12\x0f\n\x07maximum\x18\x04 \x01(\x01\x12 \n\x18sum_of_squared_deviation\x18\x05 \x01(\x01\x12\x15\n\rbucket_counts\x18\x06 \x03(\x03\x12R\n\x0elinear_buckets\x18\x07 \x01(\x0b\x32\x38.google.api.servicecontrol.v1.Distribution.LinearBucketsH\x00\x12\\\n\x13\x65xponential_buckets\x18\x08 \x01(\x0b\x32=.google.api.servicecontrol.v1.Distribution.ExponentialBucketsH\x00\x12V\n\x10\x65xplicit_buckets\x18\t \x01(\x0b\x32:.google.api.servicecontrol.v1.Distribution.ExplicitBucketsH\x00\x12\x34\n\texemplars\x18\n \x03(\x0b\x32!.google.api.Distribution.Exemplar\x1aJ\n\rLinearBuckets\x12\x1a\n\x12num_finite_buckets\x18\x01 \x01(\x05\x12\r\n\x05width\x18\x02 \x01(\x01\x12\x0e\n\x06offset\x18\x03 \x01(\x01\x1aV\n\x12\x45xponentialBuckets\x12\x1a\n\x12num_finite_buckets\x18\x01 \x01(\x05\x12\x15\n\rgrowth_factor\x18\x02 \x01(\x01\x12\r\n\x05scale\x18\x03 \x01(\x01\x1a!\n\x0f\x45xplicitBuckets\x12\x0e\n\x06\x62ounds\x18\x01 \x03(\x01\x42\x0f\n\rbucket_optionB\xe9\x01\n com.google.api.servicecontrol.v1B\x11\x44istributionProtoP\x01ZJcloud.google.com/go/servicecontrol/apiv1/servicecontrolpb;servicecontrolpb\xaa\x02\x1eGoogle.Cloud.ServiceControl.V1\xca\x02\x1eGoogle\\Cloud\\ServiceControl\\V1\xea\x02!Google::Cloud::ServiceControl::V1b\x06proto3"
|
|
11
11
|
|
|
12
12
|
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
13
13
|
pool.add_serialized_file(descriptor_data)
|
|
@@ -8,7 +8,7 @@ require 'google/api/servicecontrol/v1/distribution_pb'
|
|
|
8
8
|
require 'google/protobuf/timestamp_pb'
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
descriptor_data = "\n/google/api/servicecontrol/v1/metric_value.proto\x12\x1cgoogle.api.servicecontrol.v1\x1a/google/api/servicecontrol/v1/distribution.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x91\x03\n\x0bMetricValue\x12\x45\n\x06labels\x18\x01 \x03(\x0b\x32\x35.google.api.servicecontrol.v1.MetricValue.LabelsEntry\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\nbool_value\x18\x04 \x01(\x08H\x00\x12\x15\n\x0bint64_value\x18\x05 \x01(\x03H\x00\x12\x16\n\x0c\x64ouble_value\x18\x06 \x01(\x01H\x00\x12\x16\n\x0cstring_value\x18\x07 \x01(\tH\x00\x12H\n\x12\x64istribution_value\x18\x08 \x01(\x0b\x32*.google.api.servicecontrol.v1.DistributionH\x00\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x07\n\x05value\"g\n\x0eMetricValueSet\x12\x13\n\x0bmetric_name\x18\x01 \x01(\t\x12@\n\rmetric_values\x18\x02 \x03(\x0b\x32).google.api.servicecontrol.v1.MetricValueB\
|
|
11
|
+
descriptor_data = "\n/google/api/servicecontrol/v1/metric_value.proto\x12\x1cgoogle.api.servicecontrol.v1\x1a/google/api/servicecontrol/v1/distribution.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x91\x03\n\x0bMetricValue\x12\x45\n\x06labels\x18\x01 \x03(\x0b\x32\x35.google.api.servicecontrol.v1.MetricValue.LabelsEntry\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\nbool_value\x18\x04 \x01(\x08H\x00\x12\x15\n\x0bint64_value\x18\x05 \x01(\x03H\x00\x12\x16\n\x0c\x64ouble_value\x18\x06 \x01(\x01H\x00\x12\x16\n\x0cstring_value\x18\x07 \x01(\tH\x00\x12H\n\x12\x64istribution_value\x18\x08 \x01(\x0b\x32*.google.api.servicecontrol.v1.DistributionH\x00\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x07\n\x05value\"g\n\x0eMetricValueSet\x12\x13\n\x0bmetric_name\x18\x01 \x01(\t\x12@\n\rmetric_values\x18\x02 \x03(\x0b\x32).google.api.servicecontrol.v1.MetricValueB\xeb\x01\n com.google.api.servicecontrol.v1B\x13MetricValueSetProtoP\x01ZJcloud.google.com/go/servicecontrol/apiv1/servicecontrolpb;servicecontrolpb\xaa\x02\x1eGoogle.Cloud.ServiceControl.V1\xca\x02\x1eGoogle\\Cloud\\ServiceControl\\V1\xea\x02!Google::Cloud::ServiceControl::V1b\x06proto3"
|
|
12
12
|
|
|
13
13
|
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
14
14
|
pool.add_serialized_file(descriptor_data)
|
|
@@ -10,7 +10,7 @@ require 'google/protobuf/any_pb'
|
|
|
10
10
|
require 'google/protobuf/timestamp_pb'
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
descriptor_data = "\n,google/api/servicecontrol/v1/operation.proto\x12\x1cgoogle.api.servicecontrol.v1\x1a,google/api/servicecontrol/v1/log_entry.proto\x1a/google/api/servicecontrol/v1/metric_value.proto\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\
|
|
13
|
+
descriptor_data = "\n,google/api/servicecontrol/v1/operation.proto\x12\x1cgoogle.api.servicecontrol.v1\x1a,google/api/servicecontrol/v1/log_entry.proto\x1a/google/api/servicecontrol/v1/metric_value.proto\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xba\x05\n\tOperation\x12\x14\n\x0coperation_id\x18\x01 \x01(\t\x12\x16\n\x0eoperation_name\x18\x02 \x01(\t\x12\x13\n\x0b\x63onsumer_id\x18\x03 \x01(\t\x12.\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x43\n\x06labels\x18\x06 \x03(\x0b\x32\x33.google.api.servicecontrol.v1.Operation.LabelsEntry\x12G\n\x11metric_value_sets\x18\x07 \x03(\x0b\x32,.google.api.servicecontrol.v1.MetricValueSet\x12;\n\x0blog_entries\x18\x08 \x03(\x0b\x32&.google.api.servicecontrol.v1.LogEntry\x12\x46\n\nimportance\x18\x0b \x01(\x0e\x32\x32.google.api.servicecontrol.v1.Operation.Importance\x12L\n\x0buser_labels\x18\x0c \x03(\x0b\x32\x37.google.api.servicecontrol.v1.Operation.UserLabelsEntry\x12(\n\nextensions\x18\x10 \x03(\x0b\x32\x14.google.protobuf.Any\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x31\n\x0fUserLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x1f\n\nImportance\x12\x07\n\x03LOW\x10\x00\x12\x08\n\x04HIGH\x10\x01\x42\xe6\x01\n com.google.api.servicecontrol.v1B\x0eOperationProtoP\x01ZJcloud.google.com/go/servicecontrol/apiv1/servicecontrolpb;servicecontrolpb\xaa\x02\x1eGoogle.Cloud.ServiceControl.V1\xca\x02\x1eGoogle\\Cloud\\ServiceControl\\V1\xea\x02!Google::Cloud::ServiceControl::V1b\x06proto3"
|
|
14
14
|
|
|
15
15
|
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
16
16
|
pool.add_serialized_file(descriptor_data)
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
require 'google/protobuf'
|
|
6
6
|
|
|
7
7
|
require 'google/api/annotations_pb'
|
|
8
|
+
require 'google/api/client_pb'
|
|
8
9
|
require 'google/api/servicecontrol/v1/metric_value_pb'
|
|
9
10
|
require 'google/rpc/status_pb'
|
|
10
|
-
require 'google/api/client_pb'
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
descriptor_data = "\n3google/api/servicecontrol/v1/quota_controller.proto\x12\x1cgoogle.api.servicecontrol.v1\x1a\x1cgoogle/api/annotations.proto\x1a/google/api/servicecontrol/v1/metric_value.proto\x1a\x17google/rpc/status.proto\
|
|
13
|
+
descriptor_data = "\n3google/api/servicecontrol/v1/quota_controller.proto\x12\x1cgoogle.api.servicecontrol.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a/google/api/servicecontrol/v1/metric_value.proto\x1a\x17google/rpc/status.proto\"\x91\x01\n\x14\x41llocateQuotaRequest\x12\x14\n\x0cservice_name\x18\x01 \x01(\t\x12H\n\x12\x61llocate_operation\x18\x02 \x01(\x0b\x32,.google.api.servicecontrol.v1.QuotaOperation\x12\x19\n\x11service_config_id\x18\x04 \x01(\t\"\xc6\x03\n\x0eQuotaOperation\x12\x14\n\x0coperation_id\x18\x01 \x01(\t\x12\x13\n\x0bmethod_name\x18\x02 \x01(\t\x12\x13\n\x0b\x63onsumer_id\x18\x03 \x01(\t\x12H\n\x06labels\x18\x04 \x03(\x0b\x32\x38.google.api.servicecontrol.v1.QuotaOperation.LabelsEntry\x12\x43\n\rquota_metrics\x18\x05 \x03(\x0b\x32,.google.api.servicecontrol.v1.MetricValueSet\x12J\n\nquota_mode\x18\x06 \x01(\x0e\x32\x36.google.api.servicecontrol.v1.QuotaOperation.QuotaMode\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"j\n\tQuotaMode\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\n\n\x06NORMAL\x10\x01\x12\x0f\n\x0b\x42\x45ST_EFFORT\x10\x02\x12\x0e\n\nCHECK_ONLY\x10\x03\x12\x0e\n\nQUERY_ONLY\x10\x04\x12\x0f\n\x0b\x41\x44JUST_ONLY\x10\x05\"\xd0\x01\n\x15\x41llocateQuotaResponse\x12\x14\n\x0coperation_id\x18\x01 \x01(\t\x12\x41\n\x0f\x61llocate_errors\x18\x02 \x03(\x0b\x32(.google.api.servicecontrol.v1.QuotaError\x12\x43\n\rquota_metrics\x18\x03 \x03(\x0b\x32,.google.api.servicecontrol.v1.MetricValueSet\x12\x19\n\x11service_config_id\x18\x04 \x01(\t\"\x9c\x02\n\nQuotaError\x12;\n\x04\x63ode\x18\x01 \x01(\x0e\x32-.google.api.servicecontrol.v1.QuotaError.Code\x12\x0f\n\x07subject\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\"\n\x06status\x18\x04 \x01(\x0b\x32\x12.google.rpc.Status\"\x86\x01\n\x04\x43ode\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x16\n\x12RESOURCE_EXHAUSTED\x10\x08\x12\x16\n\x12\x42ILLING_NOT_ACTIVE\x10k\x12\x13\n\x0fPROJECT_DELETED\x10l\x12\x13\n\x0f\x41PI_KEY_INVALID\x10i\x12\x13\n\x0f\x41PI_KEY_EXPIRED\x10p2\xc5\x02\n\x0fQuotaController\x12\xae\x01\n\rAllocateQuota\x12\x32.google.api.servicecontrol.v1.AllocateQuotaRequest\x1a\x33.google.api.servicecontrol.v1.AllocateQuotaResponse\"4\x82\xd3\xe4\x93\x02.\")/v1/services/{service_name}:allocateQuota:\x01*\x1a\x80\x01\xca\x41\x1dservicecontrol.googleapis.com\xd2\x41]https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/servicecontrolB\xec\x01\n com.google.api.servicecontrol.v1B\x14QuotaControllerProtoP\x01ZJcloud.google.com/go/servicecontrol/apiv1/servicecontrolpb;servicecontrolpb\xaa\x02\x1eGoogle.Cloud.ServiceControl.V1\xca\x02\x1eGoogle\\Cloud\\ServiceControl\\V1\xea\x02!Google::Cloud::ServiceControl::V1b\x06proto3"
|
|
14
14
|
|
|
15
15
|
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
16
16
|
pool.add_serialized_file(descriptor_data)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
2
|
# Source: google/api/servicecontrol/v1/quota_controller.proto for package 'Google.Cloud.ServiceControl.V1'
|
|
3
3
|
# Original file comments:
|
|
4
|
-
# Copyright
|
|
4
|
+
# Copyright 2026 Google LLC
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
# you may not use this file except in compliance with the License.
|
|
@@ -24,7 +24,7 @@ module Google
|
|
|
24
24
|
module ServiceControl
|
|
25
25
|
module V1
|
|
26
26
|
module QuotaController
|
|
27
|
-
# [Google Quota Control API](/service-control/overview)
|
|
27
|
+
# [Google Quota Control API](https://cloud.google.com/service-control/overview)
|
|
28
28
|
#
|
|
29
29
|
# Allows clients to allocate and release quota against a [managed
|
|
30
30
|
# service](https://cloud.google.com/service-management/reference/rpc/google.api/servicemanagement.v1#google.api.servicemanagement.v1.ManagedService).
|
|
@@ -11,7 +11,7 @@ require 'google/api/servicecontrol/v1/operation_pb'
|
|
|
11
11
|
require 'google/rpc/status_pb'
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
descriptor_data = "\n5google/api/servicecontrol/v1/service_controller.proto\x12\x1cgoogle.api.servicecontrol.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a.google/api/servicecontrol/v1/check_error.proto\x1a,google/api/servicecontrol/v1/operation.proto\x1a\x17google/rpc/status.proto\"{\n\x0c\x43heckRequest\x12\x14\n\x0cservice_name\x18\x01 \x01(\t\x12:\n\toperation\x18\x02 \x01(\x0b\x32\'.google.api.servicecontrol.v1.Operation\x12\x19\n\x11service_config_id\x18\x04 \x01(\t\"\xfc\x04\n\rCheckResponse\x12\x14\n\x0coperation_id\x18\x01 \x01(\t\x12>\n\x0c\x63heck_errors\x18\x02 \x03(\x0b\x32(.google.api.servicecontrol.v1.CheckError\x12\x19\n\x11service_config_id\x18\x05 \x01(\t\x12\x1a\n\x12service_rollout_id\x18\x0b \x01(\t\x12I\n\ncheck_info\x18\x06 \x01(\x0b\x32\x35.google.api.servicecontrol.v1.CheckResponse.CheckInfo\x1a\x8b\x01\n\tCheckInfo\x12\x18\n\x10unused_arguments\x18\x01 \x03(\t\x12O\n\rconsumer_info\x18\x02 \x01(\x0b\x32\x38.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo\x12\x13\n\x0b\x61pi_key_uid\x18\x05 \x01(\t\x1a\x84\x02\n\x0c\x43onsumerInfo\x12\x16\n\x0eproject_number\x18\x01 \x01(\x03\x12S\n\x04type\x18\x02 \x01(\x0e\x32\x45.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType\x12\x17\n\x0f\x63onsumer_number\x18\x03 \x01(\x03\"n\n\x0c\x43onsumerType\x12\x1d\n\x19\x43ONSUMER_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PROJECT\x10\x01\x12\n\n\x06\x46OLDER\x10\x02\x12\x10\n\x0cORGANIZATION\x10\x03\x12\x14\n\x10SERVICE_SPECIFIC\x10\x04\"}\n\rReportRequest\x12\x14\n\x0cservice_name\x18\x01 \x01(\t\x12;\n\noperations\x18\x02 \x03(\x0b\x32\'.google.api.servicecontrol.v1.Operation\x12\x19\n\x11service_config_id\x18\x03 \x01(\t\"\xe1\x01\n\x0eReportResponse\x12O\n\rreport_errors\x18\x01 \x03(\x0b\x32\x38.google.api.servicecontrol.v1.ReportResponse.ReportError\x12\x19\n\x11service_config_id\x18\x02 \x01(\t\x12\x1a\n\x12service_rollout_id\x18\x04 \x01(\t\x1aG\n\x0bReportError\x12\x14\n\x0coperation_id\x18\x01 \x01(\t\x12\"\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status2\xbc\x03\n\x11ServiceController\x12\x8e\x01\n\x05\x43heck\x12*.google.api.servicecontrol.v1.CheckRequest\x1a+.google.api.servicecontrol.v1.CheckResponse\",\x82\xd3\xe4\x93\x02&\"!/v1/services/{service_name}:check:\x01*\x12\x92\x01\n\x06Report\x12+.google.api.servicecontrol.v1.ReportRequest\x1a,.google.api.servicecontrol.v1.ReportResponse\"-\x82\xd3\xe4\x93\x02\'\"\"/v1/services/{service_name}:report:\x01*\x1a\x80\x01\xca\x41\x1dservicecontrol.googleapis.com\xd2\x41]https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/servicecontrolB\
|
|
14
|
+
descriptor_data = "\n5google/api/servicecontrol/v1/service_controller.proto\x12\x1cgoogle.api.servicecontrol.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a.google/api/servicecontrol/v1/check_error.proto\x1a,google/api/servicecontrol/v1/operation.proto\x1a\x17google/rpc/status.proto\"{\n\x0c\x43heckRequest\x12\x14\n\x0cservice_name\x18\x01 \x01(\t\x12:\n\toperation\x18\x02 \x01(\x0b\x32\'.google.api.servicecontrol.v1.Operation\x12\x19\n\x11service_config_id\x18\x04 \x01(\t\"\xfc\x04\n\rCheckResponse\x12\x14\n\x0coperation_id\x18\x01 \x01(\t\x12>\n\x0c\x63heck_errors\x18\x02 \x03(\x0b\x32(.google.api.servicecontrol.v1.CheckError\x12\x19\n\x11service_config_id\x18\x05 \x01(\t\x12\x1a\n\x12service_rollout_id\x18\x0b \x01(\t\x12I\n\ncheck_info\x18\x06 \x01(\x0b\x32\x35.google.api.servicecontrol.v1.CheckResponse.CheckInfo\x1a\x8b\x01\n\tCheckInfo\x12\x18\n\x10unused_arguments\x18\x01 \x03(\t\x12O\n\rconsumer_info\x18\x02 \x01(\x0b\x32\x38.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo\x12\x13\n\x0b\x61pi_key_uid\x18\x05 \x01(\t\x1a\x84\x02\n\x0c\x43onsumerInfo\x12\x16\n\x0eproject_number\x18\x01 \x01(\x03\x12S\n\x04type\x18\x02 \x01(\x0e\x32\x45.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType\x12\x17\n\x0f\x63onsumer_number\x18\x03 \x01(\x03\"n\n\x0c\x43onsumerType\x12\x1d\n\x19\x43ONSUMER_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PROJECT\x10\x01\x12\n\n\x06\x46OLDER\x10\x02\x12\x10\n\x0cORGANIZATION\x10\x03\x12\x14\n\x10SERVICE_SPECIFIC\x10\x04\"}\n\rReportRequest\x12\x14\n\x0cservice_name\x18\x01 \x01(\t\x12;\n\noperations\x18\x02 \x03(\x0b\x32\'.google.api.servicecontrol.v1.Operation\x12\x19\n\x11service_config_id\x18\x03 \x01(\t\"\xe1\x01\n\x0eReportResponse\x12O\n\rreport_errors\x18\x01 \x03(\x0b\x32\x38.google.api.servicecontrol.v1.ReportResponse.ReportError\x12\x19\n\x11service_config_id\x18\x02 \x01(\t\x12\x1a\n\x12service_rollout_id\x18\x04 \x01(\t\x1aG\n\x0bReportError\x12\x14\n\x0coperation_id\x18\x01 \x01(\t\x12\"\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status2\xbc\x03\n\x11ServiceController\x12\x8e\x01\n\x05\x43heck\x12*.google.api.servicecontrol.v1.CheckRequest\x1a+.google.api.servicecontrol.v1.CheckResponse\",\x82\xd3\xe4\x93\x02&\"!/v1/services/{service_name}:check:\x01*\x12\x92\x01\n\x06Report\x12+.google.api.servicecontrol.v1.ReportRequest\x1a,.google.api.servicecontrol.v1.ReportResponse\"-\x82\xd3\xe4\x93\x02\'\"\"/v1/services/{service_name}:report:\x01*\x1a\x80\x01\xca\x41\x1dservicecontrol.googleapis.com\xd2\x41]https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/servicecontrolB\xee\x01\n com.google.api.servicecontrol.v1B\x16ServiceControllerProtoP\x01ZJcloud.google.com/go/servicecontrol/apiv1/servicecontrolpb;servicecontrolpb\xaa\x02\x1eGoogle.Cloud.ServiceControl.V1\xca\x02\x1eGoogle\\Cloud\\ServiceControl\\V1\xea\x02!Google::Cloud::ServiceControl::V1b\x06proto3"
|
|
15
15
|
|
|
16
16
|
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
17
17
|
pool.add_serialized_file(descriptor_data)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
2
|
# Source: google/api/servicecontrol/v1/service_controller.proto for package 'Google.Cloud.ServiceControl.V1'
|
|
3
3
|
# Original file comments:
|
|
4
|
-
# Copyright
|
|
4
|
+
# Copyright 2026 Google LLC
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
# you may not use this file except in compliance with the License.
|
|
@@ -24,7 +24,8 @@ module Google
|
|
|
24
24
|
module ServiceControl
|
|
25
25
|
module V1
|
|
26
26
|
module ServiceController
|
|
27
|
-
# [Google Service Control
|
|
27
|
+
# [Google Service Control
|
|
28
|
+
# API](https://cloud.google.com/service-control/overview)
|
|
28
29
|
#
|
|
29
30
|
# Lets clients check and report operations against a [managed
|
|
30
31
|
# service](https://cloud.google.com/service-management/reference/rpc/google.api/servicemanagement.v1#google.api.servicemanagement.v1.ManagedService).
|
|
@@ -47,8 +48,8 @@ module Google
|
|
|
47
48
|
# propagation, therefore callers MUST NOT depend on the `Check` method having
|
|
48
49
|
# the latest policy information.
|
|
49
50
|
#
|
|
50
|
-
# NOTE: the [CheckRequest][google.api.servicecontrol.v1.CheckRequest] has
|
|
51
|
-
#
|
|
51
|
+
# NOTE: the [CheckRequest][google.api.servicecontrol.v1.CheckRequest] has the
|
|
52
|
+
# size limit (wire-format byte size) of 1MB.
|
|
52
53
|
#
|
|
53
54
|
# This method requires the `servicemanagement.services.check` permission
|
|
54
55
|
# on the specified service. For more information, see
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -27,7 +27,7 @@ module Google
|
|
|
27
27
|
##
|
|
28
28
|
# Client for the QuotaController service.
|
|
29
29
|
#
|
|
30
|
-
# [Google Quota Control API](/service-control/overview)
|
|
30
|
+
# [Google Quota Control API](https://cloud.google.com/service-control/overview)
|
|
31
31
|
#
|
|
32
32
|
# Allows clients to allocate and release quota against a [managed
|
|
33
33
|
# service](https://cloud.google.com/service-management/reference/rpc/google.api/servicemanagement.v1#google.api.servicemanagement.v1.ManagedService).
|
|
@@ -216,7 +216,8 @@ module Google
|
|
|
216
216
|
# Name of the service as specified in the service configuration. For example,
|
|
217
217
|
# `"pubsub.googleapis.com"`.
|
|
218
218
|
#
|
|
219
|
-
# See [google.api.Service][google.api.Service] for the definition of a
|
|
219
|
+
# See [google.api.Service][google.api.Service] for the definition of a
|
|
220
|
+
# service name.
|
|
220
221
|
# @param allocate_operation [::Google::Cloud::ServiceControl::V1::QuotaOperation, ::Hash]
|
|
221
222
|
# Operation that describes the quota allocation.
|
|
222
223
|
# @param service_config_id [::String]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -29,7 +29,7 @@ module Google
|
|
|
29
29
|
##
|
|
30
30
|
# REST client for the QuotaController service.
|
|
31
31
|
#
|
|
32
|
-
# [Google Quota Control API](/service-control/overview)
|
|
32
|
+
# [Google Quota Control API](https://cloud.google.com/service-control/overview)
|
|
33
33
|
#
|
|
34
34
|
# Allows clients to allocate and release quota against a [managed
|
|
35
35
|
# service](https://cloud.google.com/service-management/reference/rpc/google.api/servicemanagement.v1#google.api.servicemanagement.v1.ManagedService).
|
|
@@ -209,7 +209,8 @@ module Google
|
|
|
209
209
|
# Name of the service as specified in the service configuration. For example,
|
|
210
210
|
# `"pubsub.googleapis.com"`.
|
|
211
211
|
#
|
|
212
|
-
# See [google.api.Service][google.api.Service] for the definition of a
|
|
212
|
+
# See [google.api.Service][google.api.Service] for the definition of a
|
|
213
|
+
# service name.
|
|
213
214
|
# @param allocate_operation [::Google::Cloud::ServiceControl::V1::QuotaOperation, ::Hash]
|
|
214
215
|
# Operation that describes the quota allocation.
|
|
215
216
|
# @param service_config_id [::String]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -30,7 +30,7 @@ module Google
|
|
|
30
30
|
module ServiceControl
|
|
31
31
|
module V1
|
|
32
32
|
##
|
|
33
|
-
# [Google Quota Control API](/service-control/overview)
|
|
33
|
+
# [Google Quota Control API](https://cloud.google.com/service-control/overview)
|
|
34
34
|
#
|
|
35
35
|
# Allows clients to allocate and release quota against a [managed
|
|
36
36
|
# service](https://cloud.google.com/service-management/reference/rpc/google.api/servicemanagement.v1#google.api.servicemanagement.v1.ManagedService).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -31,7 +31,7 @@ module Google
|
|
|
31
31
|
module ServiceControl
|
|
32
32
|
module V1
|
|
33
33
|
##
|
|
34
|
-
# [Google Quota Control API](/service-control/overview)
|
|
34
|
+
# [Google Quota Control API](https://cloud.google.com/service-control/overview)
|
|
35
35
|
#
|
|
36
36
|
# Allows clients to allocate and release quota against a [managed
|
|
37
37
|
# service](https://cloud.google.com/service-management/reference/rpc/google.api/servicemanagement.v1#google.api.servicemanagement.v1.ManagedService).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -27,7 +27,8 @@ module Google
|
|
|
27
27
|
##
|
|
28
28
|
# Client for the ServiceController service.
|
|
29
29
|
#
|
|
30
|
-
# [Google Service Control
|
|
30
|
+
# [Google Service Control
|
|
31
|
+
# API](https://cloud.google.com/service-control/overview)
|
|
31
32
|
#
|
|
32
33
|
# Lets clients check and report operations against a [managed
|
|
33
34
|
# service](https://cloud.google.com/service-management/reference/rpc/google.api/servicemanagement.v1#google.api.servicemanagement.v1.ManagedService).
|
|
@@ -203,8 +204,8 @@ module Google
|
|
|
203
204
|
# propagation, therefore callers MUST NOT depend on the `Check` method having
|
|
204
205
|
# the latest policy information.
|
|
205
206
|
#
|
|
206
|
-
# NOTE: the {::Google::Cloud::ServiceControl::V1::CheckRequest CheckRequest} has
|
|
207
|
-
#
|
|
207
|
+
# NOTE: the {::Google::Cloud::ServiceControl::V1::CheckRequest CheckRequest} has the
|
|
208
|
+
# size limit (wire-format byte size) of 1MB.
|
|
208
209
|
#
|
|
209
210
|
# This method requires the `servicemanagement.services.check` permission
|
|
210
211
|
# on the specified service. For more information, see
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -29,7 +29,8 @@ module Google
|
|
|
29
29
|
##
|
|
30
30
|
# REST client for the ServiceController service.
|
|
31
31
|
#
|
|
32
|
-
# [Google Service Control
|
|
32
|
+
# [Google Service Control
|
|
33
|
+
# API](https://cloud.google.com/service-control/overview)
|
|
33
34
|
#
|
|
34
35
|
# Lets clients check and report operations against a [managed
|
|
35
36
|
# service](https://cloud.google.com/service-management/reference/rpc/google.api/servicemanagement.v1#google.api.servicemanagement.v1.ManagedService).
|
|
@@ -196,8 +197,8 @@ module Google
|
|
|
196
197
|
# propagation, therefore callers MUST NOT depend on the `Check` method having
|
|
197
198
|
# the latest policy information.
|
|
198
199
|
#
|
|
199
|
-
# NOTE: the {::Google::Cloud::ServiceControl::V1::CheckRequest CheckRequest} has
|
|
200
|
-
#
|
|
200
|
+
# NOTE: the {::Google::Cloud::ServiceControl::V1::CheckRequest CheckRequest} has the
|
|
201
|
+
# size limit (wire-format byte size) of 1MB.
|
|
201
202
|
#
|
|
202
203
|
# This method requires the `servicemanagement.services.check` permission
|
|
203
204
|
# on the specified service. For more information, see
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -30,7 +30,8 @@ module Google
|
|
|
30
30
|
module ServiceControl
|
|
31
31
|
module V1
|
|
32
32
|
##
|
|
33
|
-
# [Google Service Control
|
|
33
|
+
# [Google Service Control
|
|
34
|
+
# API](https://cloud.google.com/service-control/overview)
|
|
34
35
|
#
|
|
35
36
|
# Lets clients check and report operations against a [managed
|
|
36
37
|
# service](https://cloud.google.com/service-management/reference/rpc/google.api/servicemanagement.v1#google.api.servicemanagement.v1.ManagedService).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -31,7 +31,8 @@ module Google
|
|
|
31
31
|
module ServiceControl
|
|
32
32
|
module V1
|
|
33
33
|
##
|
|
34
|
-
# [Google Service Control
|
|
34
|
+
# [Google Service Control
|
|
35
|
+
# API](https://cloud.google.com/service-control/overview)
|
|
35
36
|
#
|
|
36
37
|
# Lets clients check and report operations against a [managed
|
|
37
38
|
# service](https://cloud.google.com/service-management/reference/rpc/google.api/servicemanagement.v1#google.api.servicemanagement.v1.ManagedService).
|
data/proto_docs/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -48,18 +48,22 @@ module Google
|
|
|
48
48
|
|
|
49
49
|
# Error codes for Check responses.
|
|
50
50
|
module Code
|
|
51
|
-
# This is
|
|
51
|
+
# This is the default value if error code is not explicitly set.
|
|
52
|
+
# It should not be used directly.
|
|
52
53
|
ERROR_CODE_UNSPECIFIED = 0
|
|
53
54
|
|
|
54
55
|
# The consumer's project id, network container, or resource container was
|
|
55
|
-
# not found. Same as
|
|
56
|
+
# not found. Same as
|
|
57
|
+
# [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND].
|
|
56
58
|
NOT_FOUND = 5
|
|
57
59
|
|
|
58
60
|
# The consumer doesn't have access to the specified resource.
|
|
59
|
-
# Same as
|
|
61
|
+
# Same as
|
|
62
|
+
# [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
|
|
60
63
|
PERMISSION_DENIED = 7
|
|
61
64
|
|
|
62
|
-
# Quota check failed. Same as
|
|
65
|
+
# Quota check failed. Same as
|
|
66
|
+
# [google.rpc.Code.RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED].
|
|
63
67
|
RESOURCE_EXHAUSTED = 8
|
|
64
68
|
|
|
65
69
|
# The consumer hasn't activated the service.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -56,7 +56,7 @@ module Google
|
|
|
56
56
|
# The buckets are defined below in `bucket_option`. There are N buckets.
|
|
57
57
|
# `bucket_counts[0]` is the number of samples in the underflow bucket.
|
|
58
58
|
# `bucket_counts[1]` to `bucket_counts[N-1]` are the numbers of samples
|
|
59
|
-
# in each of the finite buckets. And `bucket_counts[N] is the number
|
|
59
|
+
# in each of the finite buckets. And `bucket_counts[N]` is the number
|
|
60
60
|
# of samples in the overflow bucket. See the comments of `bucket_option`
|
|
61
61
|
# below for more details.
|
|
62
62
|
#
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -61,7 +61,7 @@ module Google
|
|
|
61
61
|
# @return [::String]
|
|
62
62
|
# The referer URL of the request, as defined in
|
|
63
63
|
# [HTTP/1.1 Header Field
|
|
64
|
-
# Definitions](
|
|
64
|
+
# Definitions](https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
|
|
65
65
|
# @!attribute [rw] latency
|
|
66
66
|
# @return [::Google::Protobuf::Duration]
|
|
67
67
|
# The request processing latency on the server, from the time the request was
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -25,21 +25,24 @@ module Google
|
|
|
25
25
|
# @!attribute [rw] labels
|
|
26
26
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
|
27
27
|
# The labels describing the metric value.
|
|
28
|
-
# See comments on
|
|
29
|
-
#
|
|
30
|
-
# Note that this map must not contain
|
|
28
|
+
# See comments on
|
|
29
|
+
# {::Google::Cloud::ServiceControl::V1::Operation#labels google.api.servicecontrol.v1.Operation.labels}
|
|
30
|
+
# for the overriding relationship. Note that this map must not contain
|
|
31
|
+
# monitored resource labels.
|
|
31
32
|
# @!attribute [rw] start_time
|
|
32
33
|
# @return [::Google::Protobuf::Timestamp]
|
|
33
34
|
# The start of the time period over which this metric value's measurement
|
|
34
35
|
# applies. The time period has different semantics for different metric
|
|
35
36
|
# types (cumulative, delta, and gauge). See the metric definition
|
|
36
37
|
# documentation in the service configuration for details. If not specified,
|
|
37
|
-
# {::Google::Cloud::ServiceControl::V1::Operation#start_time google.api.servicecontrol.v1.Operation.start_time}
|
|
38
|
+
# {::Google::Cloud::ServiceControl::V1::Operation#start_time google.api.servicecontrol.v1.Operation.start_time}
|
|
39
|
+
# will be used.
|
|
38
40
|
# @!attribute [rw] end_time
|
|
39
41
|
# @return [::Google::Protobuf::Timestamp]
|
|
40
42
|
# The end of the time period over which this metric value's measurement
|
|
41
43
|
# applies. If not specified,
|
|
42
|
-
# {::Google::Cloud::ServiceControl::V1::Operation#end_time google.api.servicecontrol.v1.Operation.end_time}
|
|
44
|
+
# {::Google::Cloud::ServiceControl::V1::Operation#end_time google.api.servicecontrol.v1.Operation.end_time}
|
|
45
|
+
# will be used.
|
|
43
46
|
# @!attribute [rw] bool_value
|
|
44
47
|
# @return [::Boolean]
|
|
45
48
|
# A boolean value.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -43,6 +43,7 @@ module Google
|
|
|
43
43
|
# consumer, but not for service-initiated operations that are
|
|
44
44
|
# not related to a specific consumer.
|
|
45
45
|
#
|
|
46
|
+
#
|
|
46
47
|
# - This can be in one of the following formats:
|
|
47
48
|
# - project:PROJECT_ID,
|
|
48
49
|
# - project`_`number:PROJECT_NUMBER,
|
|
@@ -96,6 +97,12 @@ module Google
|
|
|
96
97
|
# @!attribute [rw] importance
|
|
97
98
|
# @return [::Google::Cloud::ServiceControl::V1::Operation::Importance]
|
|
98
99
|
# DO NOT USE. This is an experimental field.
|
|
100
|
+
# @!attribute [rw] user_labels
|
|
101
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
|
102
|
+
# Private Preview. This feature is only available for approved services.
|
|
103
|
+
#
|
|
104
|
+
# User defined labels for the resource that this operation is associated
|
|
105
|
+
# with.
|
|
99
106
|
# @!attribute [rw] extensions
|
|
100
107
|
# @return [::Array<::Google::Protobuf::Any>]
|
|
101
108
|
# Unimplemented.
|
|
@@ -112,6 +119,15 @@ module Google
|
|
|
112
119
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
113
120
|
end
|
|
114
121
|
|
|
122
|
+
# @!attribute [rw] key
|
|
123
|
+
# @return [::String]
|
|
124
|
+
# @!attribute [rw] value
|
|
125
|
+
# @return [::String]
|
|
126
|
+
class UserLabelsEntry
|
|
127
|
+
include ::Google::Protobuf::MessageExts
|
|
128
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
129
|
+
end
|
|
130
|
+
|
|
115
131
|
# Defines the importance of the data contained in the operation.
|
|
116
132
|
module Importance
|
|
117
133
|
# Allows data caching, batching, and aggregation. It provides
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -27,7 +27,8 @@ module Google
|
|
|
27
27
|
# Name of the service as specified in the service configuration. For example,
|
|
28
28
|
# `"pubsub.googleapis.com"`.
|
|
29
29
|
#
|
|
30
|
-
# See [google.api.Service][google.api.Service] for the definition of a
|
|
30
|
+
# See [google.api.Service][google.api.Service] for the definition of a
|
|
31
|
+
# service name.
|
|
31
32
|
# @!attribute [rw] allocate_operation
|
|
32
33
|
# @return [::Google::Cloud::ServiceControl::V1::QuotaOperation]
|
|
33
34
|
# Operation that describes the quota allocation.
|
|
@@ -44,9 +45,9 @@ module Google
|
|
|
44
45
|
# Represents information regarding a quota operation.
|
|
45
46
|
# @!attribute [rw] operation_id
|
|
46
47
|
# @return [::String]
|
|
47
|
-
# Identity of the operation.
|
|
48
|
-
# of the service that generated the operation, and
|
|
49
|
-
# case of retries.
|
|
48
|
+
# Identity of the operation. For Allocation Quota, this is expected to be
|
|
49
|
+
# unique within the scope of the service that generated the operation, and
|
|
50
|
+
# guarantees idempotency in case of retries.
|
|
50
51
|
#
|
|
51
52
|
# In order to ensure best performance and latency in the Quota backends,
|
|
52
53
|
# operation_ids are optimally associated with time, so that related
|
|
@@ -179,7 +180,8 @@ module Google
|
|
|
179
180
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
180
181
|
end
|
|
181
182
|
|
|
182
|
-
# Represents error information for
|
|
183
|
+
# Represents error information for
|
|
184
|
+
# {::Google::Cloud::ServiceControl::V1::QuotaOperation QuotaOperation}.
|
|
183
185
|
# @!attribute [rw] code
|
|
184
186
|
# @return [::Google::Cloud::ServiceControl::V1::QuotaError::Code]
|
|
185
187
|
# Error code.
|
|
@@ -209,7 +211,8 @@ module Google
|
|
|
209
211
|
UNSPECIFIED = 0
|
|
210
212
|
|
|
211
213
|
# Quota allocation failed.
|
|
212
|
-
# Same as
|
|
214
|
+
# Same as
|
|
215
|
+
# [google.rpc.Code.RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED].
|
|
213
216
|
RESOURCE_EXHAUSTED = 8
|
|
214
217
|
|
|
215
218
|
# Consumer cannot access the service because the service requires active
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -110,14 +110,15 @@ module Google
|
|
|
110
110
|
# ) to obtain a formatter capable of generating timestamps in this format.
|
|
111
111
|
# @!attribute [rw] seconds
|
|
112
112
|
# @return [::Integer]
|
|
113
|
-
# Represents seconds of UTC time since Unix epoch
|
|
114
|
-
#
|
|
115
|
-
# 9999-12-31T23:59:59Z
|
|
113
|
+
# Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must
|
|
114
|
+
# be between -315576000000 and 315576000000 inclusive (which corresponds to
|
|
115
|
+
# 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z).
|
|
116
116
|
# @!attribute [rw] nanos
|
|
117
117
|
# @return [::Integer]
|
|
118
|
-
# Non-negative fractions of a second at nanosecond resolution.
|
|
119
|
-
#
|
|
120
|
-
#
|
|
118
|
+
# Non-negative fractions of a second at nanosecond resolution. This field is
|
|
119
|
+
# the nanosecond portion of the duration, not an alternative to seconds.
|
|
120
|
+
# Negative second values with fractions must still have non-negative nanos
|
|
121
|
+
# values that count forward in time. Must be between 0 and 999,999,999
|
|
121
122
|
# inclusive.
|
|
122
123
|
class Timestamp
|
|
123
124
|
include ::Google::Protobuf::MessageExts
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-service_control-v1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -15,14 +15,14 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - "~>"
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: '1.
|
|
18
|
+
version: '1.6'
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - "~>"
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: '1.
|
|
25
|
+
version: '1.6'
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: google-cloud-errors
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -37,11 +37,10 @@ dependencies:
|
|
|
37
37
|
- - "~>"
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
39
|
version: '1.0'
|
|
40
|
-
description:
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
details.
|
|
40
|
+
description: Provides admission control and telemetry reporting for services integrated
|
|
41
|
+
with Service Infrastructure. Note that google-cloud-service_control-v1 is a version-specific
|
|
42
|
+
client library. For most uses, we recommend installing the main client library google-cloud-service_control
|
|
43
|
+
instead. See the readme for more details.
|
|
45
44
|
email: googleapis-packages@google.com
|
|
46
45
|
executables: []
|
|
47
46
|
extensions: []
|