google-cloud-service_control-v1 0.2.0 → 0.4.1
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/AUTHENTICATION.md +5 -5
- data/LICENSE.md +188 -190
- data/README.md +3 -3
- data/lib/google/api/servicecontrol/v1/distribution_pb.rb +2 -0
- data/lib/google/api/servicecontrol/v1/quota_controller_pb.rb +2 -0
- data/lib/google/api/servicecontrol/v1/service_controller_pb.rb +1 -1
- data/lib/google/api/servicecontrol/v1/service_controller_services_pb.rb +4 -3
- data/lib/google/cloud/service_control/v1/quota_controller/client.rb +6 -6
- data/lib/google/cloud/service_control/v1/service_controller/client.rb +20 -11
- data/lib/google/cloud/service_control/v1/version.rb +1 -1
- data/proto_docs/google/api/distribution.rb +225 -0
- data/proto_docs/google/api/servicecontrol/v1/distribution.rb +3 -0
- data/proto_docs/google/api/servicecontrol/v1/log_entry.rb +1 -1
- data/proto_docs/google/api/servicecontrol/v1/metric_value.rb +4 -2
- data/proto_docs/google/api/servicecontrol/v1/operation.rb +9 -7
- data/proto_docs/google/api/servicecontrol/v1/quota_controller.rb +7 -2
- data/proto_docs/google/api/servicecontrol/v1/service_controller.rb +12 -6
- data/proto_docs/google/logging/type/log_severity.rb +39 -37
- metadata +17 -10
@@ -56,8 +56,10 @@ module Google
|
|
56
56
|
# @!attribute [rw] end_time
|
57
57
|
# @return [::Google::Protobuf::Timestamp]
|
58
58
|
# End time of the operation.
|
59
|
-
# Required when the operation is used in
|
60
|
-
#
|
59
|
+
# Required when the operation is used in
|
60
|
+
# {::Google::Cloud::ServiceControl::V1::ServiceController::Client#report ServiceController.Report},
|
61
|
+
# but optional when the operation is used in
|
62
|
+
# {::Google::Cloud::ServiceControl::V1::ServiceController::Client#check ServiceController.Check}.
|
61
63
|
# @!attribute [rw] labels
|
62
64
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
63
65
|
# Labels describing the operation. Only the following labels are allowed:
|
@@ -112,13 +114,13 @@ module Google
|
|
112
114
|
|
113
115
|
# Defines the importance of the data contained in the operation.
|
114
116
|
module Importance
|
115
|
-
#
|
116
|
-
#
|
117
|
+
# Allows data caching, batching, and aggregation. It provides
|
118
|
+
# higher performance with higher data loss risk.
|
117
119
|
LOW = 0
|
118
120
|
|
119
|
-
#
|
120
|
-
#
|
121
|
-
#
|
121
|
+
# Disables data aggregation to minimize data loss. It is for operations
|
122
|
+
# that contains significant monetary value or audit trail. This feature
|
123
|
+
# only applies to the client libraries.
|
122
124
|
HIGH = 1
|
123
125
|
end
|
124
126
|
end
|
@@ -63,6 +63,7 @@ module Google
|
|
63
63
|
# (1) the quota operation is performed on non-API resources.
|
64
64
|
# (2) quota_metrics is set because the caller is doing quota override.
|
65
65
|
#
|
66
|
+
#
|
66
67
|
# Example of an RPC method name:
|
67
68
|
# google.example.library.v1.LibraryService.CreateShelf
|
68
69
|
# @!attribute [rw] consumer_id
|
@@ -137,14 +138,14 @@ module Google
|
|
137
138
|
# Unimplemented. When used in AllocateQuotaRequest, this returns the
|
138
139
|
# effective quota limit(s) in the response, and no quota check will be
|
139
140
|
# performed. Not supported for other requests, and even for
|
140
|
-
# AllocateQuotaRequest, this is currently supported only for
|
141
|
+
# AllocateQuotaRequest, this is currently supported only for allowlisted
|
141
142
|
# services.
|
142
143
|
QUERY_ONLY = 4
|
143
144
|
|
144
145
|
# The operation allocates quota for the amount specified in the service
|
145
146
|
# configuration or specified using the quota metrics. If the requested
|
146
147
|
# amount is higher than the available quota, request does not fail and
|
147
|
-
# remaining quota would become negative (going over the limit)
|
148
|
+
# remaining quota would become negative (going over the limit).
|
148
149
|
# Not supported for Rate Quota.
|
149
150
|
ADJUST_ONLY = 5
|
150
151
|
end
|
@@ -190,6 +191,10 @@ module Google
|
|
190
191
|
# @!attribute [rw] description
|
191
192
|
# @return [::String]
|
192
193
|
# Free-form text that provides details on the cause of the error.
|
194
|
+
# @!attribute [rw] status
|
195
|
+
# @return [::Google::Rpc::Status]
|
196
|
+
# Contains additional information about the quota error.
|
197
|
+
# If available, `status.code` will be non zero.
|
193
198
|
class QuotaError
|
194
199
|
include ::Google::Protobuf::MessageExts
|
195
200
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -48,8 +48,9 @@ module Google
|
|
48
48
|
# Response message for the Check method.
|
49
49
|
# @!attribute [rw] operation_id
|
50
50
|
# @return [::String]
|
51
|
-
# The same operation_id value used in the
|
52
|
-
# Used for logging
|
51
|
+
# The same operation_id value used in the
|
52
|
+
# {::Google::Cloud::ServiceControl::V1::CheckRequest CheckRequest}. Used for logging
|
53
|
+
# and diagnostics purposes.
|
53
54
|
# @!attribute [rw] check_errors
|
54
55
|
# @return [::Array<::Google::Cloud::ServiceControl::V1::CheckError>]
|
55
56
|
# Indicate the decision of the check.
|
@@ -148,7 +149,8 @@ module Google
|
|
148
149
|
#
|
149
150
|
# There is no limit on the number of operations in the same ReportRequest,
|
150
151
|
# however the ReportRequest size should be no larger than 1MB. See
|
151
|
-
# {::Google::Cloud::ServiceControl::V1::ReportResponse#report_errors ReportResponse.report_errors}
|
152
|
+
# {::Google::Cloud::ServiceControl::V1::ReportResponse#report_errors ReportResponse.report_errors}
|
153
|
+
# for partial failure behavior.
|
152
154
|
# @!attribute [rw] service_config_id
|
153
155
|
# @return [::String]
|
154
156
|
# Specifies which version of service config should be used to process the
|
@@ -188,13 +190,17 @@ module Google
|
|
188
190
|
include ::Google::Protobuf::MessageExts
|
189
191
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
190
192
|
|
191
|
-
# Represents the processing error of one
|
193
|
+
# Represents the processing error of one
|
194
|
+
# {::Google::Cloud::ServiceControl::V1::Operation Operation} in the request.
|
192
195
|
# @!attribute [rw] operation_id
|
193
196
|
# @return [::String]
|
194
|
-
# The
|
197
|
+
# The
|
198
|
+
# {::Google::Cloud::ServiceControl::V1::Operation#operation_id Operation.operation_id}
|
199
|
+
# value from the request.
|
195
200
|
# @!attribute [rw] status
|
196
201
|
# @return [::Google::Rpc::Status]
|
197
|
-
# Details of the error when processing the
|
202
|
+
# Details of the error when processing the
|
203
|
+
# {::Google::Cloud::ServiceControl::V1::Operation Operation}.
|
198
204
|
class ReportError
|
199
205
|
include ::Google::Protobuf::MessageExts
|
200
206
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -18,51 +18,53 @@
|
|
18
18
|
|
19
19
|
|
20
20
|
module Google
|
21
|
-
module
|
22
|
-
module
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
21
|
+
module Cloud
|
22
|
+
module Logging
|
23
|
+
module Type
|
24
|
+
# The severity of the event described in a log entry, expressed as one of the
|
25
|
+
# standard severity levels listed below. For your reference, the levels are
|
26
|
+
# assigned the listed numeric values. The effect of using numeric values other
|
27
|
+
# than those listed is undefined.
|
28
|
+
#
|
29
|
+
# You can filter for log entries by severity. For example, the following
|
30
|
+
# filter expression will match log entries with severities `INFO`, `NOTICE`,
|
31
|
+
# and `WARNING`:
|
32
|
+
#
|
33
|
+
# severity > DEBUG AND severity <= WARNING
|
34
|
+
#
|
35
|
+
# If you are writing log entries, you should map other severity encodings to
|
36
|
+
# one of these standard levels. For example, you might map all of Java's FINE,
|
37
|
+
# FINER, and FINEST levels to `LogSeverity.DEBUG`. You can preserve the
|
38
|
+
# original severity level in the log entry payload if you wish.
|
39
|
+
module LogSeverity
|
40
|
+
# (0) The log entry has no assigned severity level.
|
41
|
+
DEFAULT = 0
|
41
42
|
|
42
|
-
|
43
|
-
|
43
|
+
# (100) Debug or trace information.
|
44
|
+
DEBUG = 100
|
44
45
|
|
45
|
-
|
46
|
-
|
46
|
+
# (200) Routine information, such as ongoing status or performance.
|
47
|
+
INFO = 200
|
47
48
|
|
48
|
-
|
49
|
-
|
50
|
-
|
49
|
+
# (300) Normal but significant events, such as start up, shut down, or
|
50
|
+
# a configuration change.
|
51
|
+
NOTICE = 300
|
51
52
|
|
52
|
-
|
53
|
-
|
53
|
+
# (400) Warning events might cause problems.
|
54
|
+
WARNING = 400
|
54
55
|
|
55
|
-
|
56
|
-
|
56
|
+
# (500) Error events are likely to cause problems.
|
57
|
+
ERROR = 500
|
57
58
|
|
58
|
-
|
59
|
-
|
59
|
+
# (600) Critical events cause more severe problems or outages.
|
60
|
+
CRITICAL = 600
|
60
61
|
|
61
|
-
|
62
|
-
|
62
|
+
# (700) A person must take an action immediately.
|
63
|
+
ALERT = 700
|
63
64
|
|
64
|
-
|
65
|
-
|
65
|
+
# (800) One or more systems are unusable.
|
66
|
+
EMERGENCY = 800
|
67
|
+
end
|
66
68
|
end
|
67
69
|
end
|
68
70
|
end
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-service_control-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.5'
|
20
|
+
- - "<"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.5'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: google-cloud-errors
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,14 +50,14 @@ dependencies:
|
|
44
50
|
requirements:
|
45
51
|
- - "~>"
|
46
52
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.
|
53
|
+
version: 1.25.1
|
48
54
|
type: :development
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
51
57
|
requirements:
|
52
58
|
- - "~>"
|
53
59
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.
|
60
|
+
version: 1.25.1
|
55
61
|
- !ruby/object:Gem::Dependency
|
56
62
|
name: minitest
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -184,6 +190,7 @@ files:
|
|
184
190
|
- lib/google/cloud/service_control/v1/service_controller/credentials.rb
|
185
191
|
- lib/google/cloud/service_control/v1/version.rb
|
186
192
|
- proto_docs/README.md
|
193
|
+
- proto_docs/google/api/distribution.rb
|
187
194
|
- proto_docs/google/api/resource.rb
|
188
195
|
- proto_docs/google/api/servicecontrol/v1/check_error.rb
|
189
196
|
- proto_docs/google/api/servicecontrol/v1/distribution.rb
|
@@ -211,14 +218,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
211
218
|
requirements:
|
212
219
|
- - ">="
|
213
220
|
- !ruby/object:Gem::Version
|
214
|
-
version: '2.
|
221
|
+
version: '2.5'
|
215
222
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
216
223
|
requirements:
|
217
224
|
- - ">="
|
218
225
|
- !ruby/object:Gem::Version
|
219
226
|
version: '0'
|
220
227
|
requirements: []
|
221
|
-
rubygems_version: 3.2.
|
228
|
+
rubygems_version: 3.2.17
|
222
229
|
signing_key:
|
223
230
|
specification_version: 4
|
224
231
|
summary: API Client library for the Service Control API V1 API
|