google-cloud-service_control-v1 0.3.0 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 98fb5a5dbfe8fd3eddb3ee33f4254bceff066197eb7d37f78c83a3421c053d26
4
- data.tar.gz: 5c759ccceb2643bfb2cfd3bcbbe214680f7fee19236f3867e65c3d103a9d864e
3
+ metadata.gz: 8ea831c1f63209cbaec472f94a00828fdd085235dd66c76d917c7a9dd1652c97
4
+ data.tar.gz: 13833c33ea1b8057babff047d686ddf0709fcdf794029c44ee1fbd7911f465bc
5
5
  SHA512:
6
- metadata.gz: b39c1650f6bddf7b6e4d41813c36a8142f331051b592dc811e3dc147a5dfbc69064e5989a4a1c6b123e0d7890af01167a1079faf3cca3b057664e10416e55e81
7
- data.tar.gz: c458b2e3eb95a3db92045efe72e833509b4781d11c9ee318e8ea1d4eae5e41ed8a44fc652ae1c5b701f2a8dddd9b0102772597c48663994e011d4415bf49dd19
6
+ metadata.gz: f1408630d3d07ac0d39248722f1ecb924991cb2b65bf24425156c7f5c5452af6da1a5d0a322011104f31aee127ef22a118938dc7a7ee47272e4ac40ab97d48c5
7
+ data.tar.gz: f2db43851d63c3e313447604b895b7737f053ba9eb37951337f463b2083135537a42240a3157cfaf9c78a15caf45ff3a881744f176421a3e6fa65a3e025bd350
data/AUTHENTICATION.md CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-service_control-v1
66
66
  checks for credentials are configured on the service Credentials class (such as
67
67
  {::Google::Cloud::ServiceControl::V1::QuotaController::Credentials}):
68
68
 
69
- 1. `SERVICE_CONTROL_CREDENTIALS` - Path to JSON file, or JSON contents
70
- 2. `SERVICE_CONTROL_KEYFILE` - Path to JSON file, or JSON contents
71
- 3. `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
- 4. `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
- 5. `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
69
+ * `SERVICE_CONTROL_CREDENTIALS` - Path to JSON file, or JSON contents
70
+ * `SERVICE_CONTROL_KEYFILE` - Path to JSON file, or JSON contents
71
+ * `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
+ * `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
+ * `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
74
74
 
75
75
  ```ruby
76
76
  require "google/cloud/service_control/v1"
@@ -82,8 +82,8 @@ client = ::Google::Cloud::ServiceControl::V1::QuotaController::Client.new
82
82
 
83
83
  ### Configuration
84
84
 
85
- The **Credentials JSON** can be configured instead of placing them in
86
- environment variables. Either on an individual client initialization:
85
+ The path to the **Credentials JSON** file can be configured instead of storing
86
+ it in an environment variable. Either on an individual client initialization:
87
87
 
88
88
  ```ruby
89
89
  require "google/cloud/service_control/v1"
@@ -93,7 +93,7 @@ client = ::Google::Cloud::ServiceControl::V1::QuotaController::Client.new do |co
93
93
  end
94
94
  ```
95
95
 
96
- Or configured globally for all clients:
96
+ Or globally for all clients:
97
97
 
98
98
  ```ruby
99
99
  require "google/cloud/service_control/v1"
data/README.md CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
33
33
  require "google/cloud/service_control/v1"
34
34
 
35
35
  client = ::Google::Cloud::ServiceControl::V1::QuotaController::Client.new
36
- request = my_create_request
36
+ request = ::Google::Cloud::ServiceControl::V1::AllocateQuotaRequest.new # (request fields as keyword arguments...)
37
37
  response = client.allocate_quota request
38
38
  ```
39
39
 
@@ -3,6 +3,7 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
+ require 'google/api/distribution_pb'
6
7
  Google::Protobuf::DescriptorPool.generated_pool.build do
7
8
  add_file("google/api/servicecontrol/v1/distribution.proto", :syntax => :proto3) do
8
9
  add_message "google.api.servicecontrol.v1.Distribution" do
@@ -12,6 +13,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
12
13
  optional :maximum, :double, 4
13
14
  optional :sum_of_squared_deviation, :double, 5
14
15
  repeated :bucket_counts, :int64, 6
16
+ repeated :exemplars, :message, 10, "google.api.Distribution.Exemplar"
15
17
  oneof :bucket_option do
16
18
  optional :linear_buckets, :message, 7, "google.api.servicecontrol.v1.Distribution.LinearBuckets"
17
19
  optional :exponential_buckets, :message, 8, "google.api.servicecontrol.v1.Distribution.ExponentialBuckets"
@@ -5,6 +5,7 @@ require 'google/protobuf'
5
5
 
6
6
  require 'google/api/annotations_pb'
7
7
  require 'google/api/servicecontrol/v1/metric_value_pb'
8
+ require 'google/rpc/status_pb'
8
9
  require 'google/api/client_pb'
9
10
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
11
  add_file("google/api/servicecontrol/v1/quota_controller.proto", :syntax => :proto3) do
@@ -39,6 +40,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
39
40
  optional :code, :enum, 1, "google.api.servicecontrol.v1.QuotaError.Code"
40
41
  optional :subject, :string, 2
41
42
  optional :description, :string, 3
43
+ optional :status, :message, 4, "google.rpc.Status"
42
44
  end
43
45
  add_enum "google.api.servicecontrol.v1.QuotaError.Code" do
44
46
  value :UNSPECIFIED, 0
@@ -4,11 +4,11 @@
4
4
  require 'google/protobuf'
5
5
 
6
6
  require 'google/api/annotations_pb'
7
+ require 'google/api/client_pb'
7
8
  require 'google/api/servicecontrol/v1/check_error_pb'
8
9
  require 'google/api/servicecontrol/v1/operation_pb'
9
10
  require 'google/protobuf/timestamp_pb'
10
11
  require 'google/rpc/status_pb'
11
- require 'google/api/client_pb'
12
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
13
13
  add_file("google/api/servicecontrol/v1/service_controller.proto", :syntax => :proto3) do
14
14
  add_message "google.api.servicecontrol.v1.CheckRequest" do
@@ -47,7 +47,8 @@ module Google
47
47
  # propagation, therefore callers MUST NOT depend on the `Check` method having
48
48
  # the latest policy information.
49
49
  #
50
- # NOTE: the [CheckRequest][google.api.servicecontrol.v1.CheckRequest] has the size limit of 64KB.
50
+ # NOTE: the [CheckRequest][google.api.servicecontrol.v1.CheckRequest] has
51
+ # the size limit (wire-format byte size) of 1MB.
51
52
  #
52
53
  # This method requires the `servicemanagement.services.check` permission
53
54
  # on the specified service. For more information, see
@@ -62,8 +63,8 @@ module Google
62
63
  # the aggregation time window to avoid data loss risk more than 0.01%
63
64
  # for business and compliance reasons.
64
65
  #
65
- # NOTE: the [ReportRequest][google.api.servicecontrol.v1.ReportRequest] has the size limit (wire-format byte size) of
66
- # 1MB.
66
+ # NOTE: the [ReportRequest][google.api.servicecontrol.v1.ReportRequest] has
67
+ # the size limit (wire-format byte size) of 1MB.
67
68
  #
68
69
  # This method requires the `servicemanagement.services.report` permission
69
70
  # on the specified service. For more information, see
@@ -134,7 +134,7 @@ module Google
134
134
  !@config.endpoint.split(".").first.include?("-")
135
135
  credentials ||= Credentials.default scope: @config.scope,
136
136
  enable_self_signed_jwt: enable_self_signed_jwt
137
- if credentials.is_a?(String) || credentials.is_a?(Hash)
137
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
138
138
  credentials = Credentials.new credentials, scope: @config.scope
139
139
  end
140
140
  @quota_project_id = @config.quota_project
@@ -66,6 +66,13 @@ module Google
66
66
  end
67
67
  default_config = Client::Configuration.new parent_config
68
68
 
69
+ default_config.rpcs.check.timeout = 5.0
70
+ default_config.rpcs.check.retry_policy = {
71
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
72
+ }
73
+
74
+ default_config.rpcs.report.timeout = 16.0
75
+
69
76
  default_config
70
77
  end
71
78
  yield @configure if block_given?
@@ -134,7 +141,7 @@ module Google
134
141
  !@config.endpoint.split(".").first.include?("-")
135
142
  credentials ||= Credentials.default scope: @config.scope,
136
143
  enable_self_signed_jwt: enable_self_signed_jwt
137
- if credentials.is_a?(String) || credentials.is_a?(Hash)
144
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
138
145
  credentials = Credentials.new credentials, scope: @config.scope
139
146
  end
140
147
  @quota_project_id = @config.quota_project
@@ -163,7 +170,8 @@ module Google
163
170
  # propagation, therefore callers MUST NOT depend on the `Check` method having
164
171
  # the latest policy information.
165
172
  #
166
- # NOTE: the {::Google::Cloud::ServiceControl::V1::CheckRequest CheckRequest} has the size limit of 64KB.
173
+ # NOTE: the {::Google::Cloud::ServiceControl::V1::CheckRequest CheckRequest} has
174
+ # the size limit (wire-format byte size) of 1MB.
167
175
  #
168
176
  # This method requires the `servicemanagement.services.check` permission
169
177
  # on the specified service. For more information, see
@@ -255,8 +263,8 @@ module Google
255
263
  # the aggregation time window to avoid data loss risk more than 0.01%
256
264
  # for business and compliance reasons.
257
265
  #
258
- # NOTE: the {::Google::Cloud::ServiceControl::V1::ReportRequest ReportRequest} has the size limit (wire-format byte size) of
259
- # 1MB.
266
+ # NOTE: the {::Google::Cloud::ServiceControl::V1::ReportRequest ReportRequest} has
267
+ # the size limit (wire-format byte size) of 1MB.
260
268
  #
261
269
  # This method requires the `servicemanagement.services.report` permission
262
270
  # on the specified service. For more information, see
@@ -294,7 +302,8 @@ module Google
294
302
  #
295
303
  # There is no limit on the number of operations in the same ReportRequest,
296
304
  # however the ReportRequest size should be no larger than 1MB. See
297
- # {::Google::Cloud::ServiceControl::V1::ReportResponse#report_errors ReportResponse.report_errors} for partial failure behavior.
305
+ # {::Google::Cloud::ServiceControl::V1::ReportResponse#report_errors ReportResponse.report_errors}
306
+ # for partial failure behavior.
298
307
  # @param service_config_id [::String]
299
308
  # Specifies which version of service config should be used to process the
300
309
  # request.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ServiceControl
23
23
  module V1
24
- VERSION = "0.3.0"
24
+ VERSION = "0.4.2"
25
25
  end
26
26
  end
27
27
  end
@@ -0,0 +1,225 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Api
22
+ # `Distribution` contains summary statistics for a population of values. It
23
+ # optionally contains a histogram representing the distribution of those values
24
+ # across a set of buckets.
25
+ #
26
+ # The summary statistics are the count, mean, sum of the squared deviation from
27
+ # the mean, the minimum, and the maximum of the set of population of values.
28
+ # The histogram is based on a sequence of buckets and gives a count of values
29
+ # that fall into each bucket. The boundaries of the buckets are given either
30
+ # explicitly or by formulas for buckets of fixed or exponentially increasing
31
+ # widths.
32
+ #
33
+ # Although it is not forbidden, it is generally a bad idea to include
34
+ # non-finite values (infinities or NaNs) in the population of values, as this
35
+ # will render the `mean` and `sum_of_squared_deviation` fields meaningless.
36
+ # @!attribute [rw] count
37
+ # @return [::Integer]
38
+ # The number of values in the population. Must be non-negative. This value
39
+ # must equal the sum of the values in `bucket_counts` if a histogram is
40
+ # provided.
41
+ # @!attribute [rw] mean
42
+ # @return [::Float]
43
+ # The arithmetic mean of the values in the population. If `count` is zero
44
+ # then this field must be zero.
45
+ # @!attribute [rw] sum_of_squared_deviation
46
+ # @return [::Float]
47
+ # The sum of squared deviations from the mean of the values in the
48
+ # population. For values x_i this is:
49
+ #
50
+ # Sum[i=1..n]((x_i - mean)^2)
51
+ #
52
+ # Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition
53
+ # describes Welford's method for accumulating this sum in one pass.
54
+ #
55
+ # If `count` is zero then this field must be zero.
56
+ # @!attribute [rw] range
57
+ # @return [::Google::Api::Distribution::Range]
58
+ # If specified, contains the range of the population values. The field
59
+ # must not be present if the `count` is zero.
60
+ # @!attribute [rw] bucket_options
61
+ # @return [::Google::Api::Distribution::BucketOptions]
62
+ # Defines the histogram bucket boundaries. If the distribution does not
63
+ # contain a histogram, then omit this field.
64
+ # @!attribute [rw] bucket_counts
65
+ # @return [::Array<::Integer>]
66
+ # The number of values in each bucket of the histogram, as described in
67
+ # `bucket_options`. If the distribution does not have a histogram, then omit
68
+ # this field. If there is a histogram, then the sum of the values in
69
+ # `bucket_counts` must equal the value in the `count` field of the
70
+ # distribution.
71
+ #
72
+ # If present, `bucket_counts` should contain N values, where N is the number
73
+ # of buckets specified in `bucket_options`. If you supply fewer than N
74
+ # values, the remaining values are assumed to be 0.
75
+ #
76
+ # The order of the values in `bucket_counts` follows the bucket numbering
77
+ # schemes described for the three bucket types. The first value must be the
78
+ # count for the underflow bucket (number 0). The next N-2 values are the
79
+ # counts for the finite buckets (number 1 through N-2). The N'th value in
80
+ # `bucket_counts` is the count for the overflow bucket (number N-1).
81
+ # @!attribute [rw] exemplars
82
+ # @return [::Array<::Google::Api::Distribution::Exemplar>]
83
+ # Must be in increasing order of `value` field.
84
+ class Distribution
85
+ include ::Google::Protobuf::MessageExts
86
+ extend ::Google::Protobuf::MessageExts::ClassMethods
87
+
88
+ # The range of the population values.
89
+ # @!attribute [rw] min
90
+ # @return [::Float]
91
+ # The minimum of the population values.
92
+ # @!attribute [rw] max
93
+ # @return [::Float]
94
+ # The maximum of the population values.
95
+ class Range
96
+ include ::Google::Protobuf::MessageExts
97
+ extend ::Google::Protobuf::MessageExts::ClassMethods
98
+ end
99
+
100
+ # `BucketOptions` describes the bucket boundaries used to create a histogram
101
+ # for the distribution. The buckets can be in a linear sequence, an
102
+ # exponential sequence, or each bucket can be specified explicitly.
103
+ # `BucketOptions` does not include the number of values in each bucket.
104
+ #
105
+ # A bucket has an inclusive lower bound and exclusive upper bound for the
106
+ # values that are counted for that bucket. The upper bound of a bucket must
107
+ # be strictly greater than the lower bound. The sequence of N buckets for a
108
+ # distribution consists of an underflow bucket (number 0), zero or more
109
+ # finite buckets (number 1 through N - 2) and an overflow bucket (number N -
110
+ # 1). The buckets are contiguous: the lower bound of bucket i (i > 0) is the
111
+ # same as the upper bound of bucket i - 1. The buckets span the whole range
112
+ # of finite values: lower bound of the underflow bucket is -infinity and the
113
+ # upper bound of the overflow bucket is +infinity. The finite buckets are
114
+ # so-called because both bounds are finite.
115
+ # @!attribute [rw] linear_buckets
116
+ # @return [::Google::Api::Distribution::BucketOptions::Linear]
117
+ # The linear bucket.
118
+ # @!attribute [rw] exponential_buckets
119
+ # @return [::Google::Api::Distribution::BucketOptions::Exponential]
120
+ # The exponential buckets.
121
+ # @!attribute [rw] explicit_buckets
122
+ # @return [::Google::Api::Distribution::BucketOptions::Explicit]
123
+ # The explicit buckets.
124
+ class BucketOptions
125
+ include ::Google::Protobuf::MessageExts
126
+ extend ::Google::Protobuf::MessageExts::ClassMethods
127
+
128
+ # Specifies a linear sequence of buckets that all have the same width
129
+ # (except overflow and underflow). Each bucket represents a constant
130
+ # absolute uncertainty on the specific value in the bucket.
131
+ #
132
+ # There are `num_finite_buckets + 2` (= N) buckets. Bucket `i` has the
133
+ # following boundaries:
134
+ #
135
+ # Upper bound (0 <= i < N-1): offset + (width * i).
136
+ # Lower bound (1 <= i < N): offset + (width * (i - 1)).
137
+ # @!attribute [rw] num_finite_buckets
138
+ # @return [::Integer]
139
+ # Must be greater than 0.
140
+ # @!attribute [rw] width
141
+ # @return [::Float]
142
+ # Must be greater than 0.
143
+ # @!attribute [rw] offset
144
+ # @return [::Float]
145
+ # Lower bound of the first bucket.
146
+ class Linear
147
+ include ::Google::Protobuf::MessageExts
148
+ extend ::Google::Protobuf::MessageExts::ClassMethods
149
+ end
150
+
151
+ # Specifies an exponential sequence of buckets that have a width that is
152
+ # proportional to the value of the lower bound. Each bucket represents a
153
+ # constant relative uncertainty on a specific value in the bucket.
154
+ #
155
+ # There are `num_finite_buckets + 2` (= N) buckets. Bucket `i` has the
156
+ # following boundaries:
157
+ #
158
+ # Upper bound (0 <= i < N-1): scale * (growth_factor ^ i).
159
+ # Lower bound (1 <= i < N): scale * (growth_factor ^ (i - 1)).
160
+ # @!attribute [rw] num_finite_buckets
161
+ # @return [::Integer]
162
+ # Must be greater than 0.
163
+ # @!attribute [rw] growth_factor
164
+ # @return [::Float]
165
+ # Must be greater than 1.
166
+ # @!attribute [rw] scale
167
+ # @return [::Float]
168
+ # Must be greater than 0.
169
+ class Exponential
170
+ include ::Google::Protobuf::MessageExts
171
+ extend ::Google::Protobuf::MessageExts::ClassMethods
172
+ end
173
+
174
+ # Specifies a set of buckets with arbitrary widths.
175
+ #
176
+ # There are `size(bounds) + 1` (= N) buckets. Bucket `i` has the following
177
+ # boundaries:
178
+ #
179
+ # Upper bound (0 <= i < N-1): bounds[i]
180
+ # Lower bound (1 <= i < N); bounds[i - 1]
181
+ #
182
+ # The `bounds` field must contain at least one element. If `bounds` has
183
+ # only one element, then there are no finite buckets, and that single
184
+ # element is the common boundary of the overflow and underflow buckets.
185
+ # @!attribute [rw] bounds
186
+ # @return [::Array<::Float>]
187
+ # The values must be monotonically increasing.
188
+ class Explicit
189
+ include ::Google::Protobuf::MessageExts
190
+ extend ::Google::Protobuf::MessageExts::ClassMethods
191
+ end
192
+ end
193
+
194
+ # Exemplars are example points that may be used to annotate aggregated
195
+ # distribution values. They are metadata that gives information about a
196
+ # particular value added to a Distribution bucket, such as a trace ID that
197
+ # was active when a value was added. They may contain further information,
198
+ # such as a example values and timestamps, origin, etc.
199
+ # @!attribute [rw] value
200
+ # @return [::Float]
201
+ # Value of the exemplar point. This value determines to which bucket the
202
+ # exemplar belongs.
203
+ # @!attribute [rw] timestamp
204
+ # @return [::Google::Protobuf::Timestamp]
205
+ # The observation (sampling) time of the above value.
206
+ # @!attribute [rw] attachments
207
+ # @return [::Array<::Google::Protobuf::Any>]
208
+ # Contextual information about the example value. Examples are:
209
+ #
210
+ # Trace: type.googleapis.com/google.monitoring.v3.SpanContext
211
+ #
212
+ # Literal string: type.googleapis.com/google.protobuf.StringValue
213
+ #
214
+ # Labels dropped during aggregation:
215
+ # type.googleapis.com/google.monitoring.v3.DroppedLabels
216
+ #
217
+ # There may be only a single attachment of any given message type in a
218
+ # single exemplar, and this is enforced by the system.
219
+ class Exemplar
220
+ include ::Google::Protobuf::MessageExts
221
+ extend ::Google::Protobuf::MessageExts::ClassMethods
222
+ end
223
+ end
224
+ end
225
+ end
@@ -70,6 +70,9 @@ module Google
70
70
  # @!attribute [rw] explicit_buckets
71
71
  # @return [::Google::Cloud::ServiceControl::V1::Distribution::ExplicitBuckets]
72
72
  # Buckets with arbitrary user-provided width.
73
+ # @!attribute [rw] exemplars
74
+ # @return [::Array<::Google::Api::Distribution::Exemplar>]
75
+ # Example points. Must be in increasing order of `value` field.
73
76
  class Distribution
74
77
  include ::Google::Protobuf::MessageExts
75
78
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -31,7 +31,7 @@ module Google
31
31
  # The time the event described by the log entry occurred. If
32
32
  # omitted, defaults to operation start time.
33
33
  # @!attribute [rw] severity
34
- # @return [::Google::Logging::Type::LogSeverity]
34
+ # @return [::Google::Cloud::Logging::Type::LogSeverity]
35
35
  # The severity of the log entry. The default value is
36
36
  # `LogSeverity.DEFAULT`.
37
37
  # @!attribute [rw] http_request
@@ -33,11 +33,13 @@ module Google
33
33
  # The start of the time period over which this metric value's measurement
34
34
  # applies. The time period has different semantics for different metric
35
35
  # types (cumulative, delta, and gauge). See the metric definition
36
- # documentation in the service configuration for details.
36
+ # 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} will be used.
37
38
  # @!attribute [rw] end_time
38
39
  # @return [::Google::Protobuf::Timestamp]
39
40
  # The end of the time period over which this metric value's measurement
40
- # applies.
41
+ # applies. If not specified,
42
+ # {::Google::Cloud::ServiceControl::V1::Operation#end_time google.api.servicecontrol.v1.Operation.end_time} will be used.
41
43
  # @!attribute [rw] bool_value
42
44
  # @return [::Boolean]
43
45
  # A boolean value.
@@ -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 {::Google::Cloud::ServiceControl::V1::ServiceController::Client#report ServiceController.Report},
60
- # but optional when the operation is used in {::Google::Cloud::ServiceControl::V1::ServiceController::Client#check ServiceController.Check}.
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
- # The API implementation may cache and aggregate the data.
116
- # The data may be lost when rare and unexpected system failures occur.
117
+ # Allows data caching, batching, and aggregation. It provides
118
+ # higher performance with higher data loss risk.
117
119
  LOW = 0
118
120
 
119
- # The API implementation doesn't cache and aggregate the data.
120
- # If the method returns successfully, it's guaranteed that the data has
121
- # been persisted in durable storage.
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 whitelisted
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 {::Google::Cloud::ServiceControl::V1::CheckRequest CheckRequest}.
52
- # Used for logging and diagnostics purposes.
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} for partial failure behavior.
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 {::Google::Cloud::ServiceControl::V1::Operation Operation} in the request.
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 {::Google::Cloud::ServiceControl::V1::Operation#operation_id Operation.operation_id} value from the request.
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 {::Google::Cloud::ServiceControl::V1::Operation Operation}.
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 Logging
22
- module Type
23
- # The severity of the event described in a log entry, expressed as one of the
24
- # standard severity levels listed below. For your reference, the levels are
25
- # assigned the listed numeric values. The effect of using numeric values other
26
- # than those listed is undefined.
27
- #
28
- # You can filter for log entries by severity. For example, the following
29
- # filter expression will match log entries with severities `INFO`, `NOTICE`,
30
- # and `WARNING`:
31
- #
32
- # severity > DEBUG AND severity <= WARNING
33
- #
34
- # If you are writing log entries, you should map other severity encodings to
35
- # one of these standard levels. For example, you might map all of Java's FINE,
36
- # FINER, and FINEST levels to `LogSeverity.DEBUG`. You can preserve the
37
- # original severity level in the log entry payload if you wish.
38
- module LogSeverity
39
- # (0) The log entry has no assigned severity level.
40
- DEFAULT = 0
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
- # (100) Debug or trace information.
43
- DEBUG = 100
43
+ # (100) Debug or trace information.
44
+ DEBUG = 100
44
45
 
45
- # (200) Routine information, such as ongoing status or performance.
46
- INFO = 200
46
+ # (200) Routine information, such as ongoing status or performance.
47
+ INFO = 200
47
48
 
48
- # (300) Normal but significant events, such as start up, shut down, or
49
- # a configuration change.
50
- NOTICE = 300
49
+ # (300) Normal but significant events, such as start up, shut down, or
50
+ # a configuration change.
51
+ NOTICE = 300
51
52
 
52
- # (400) Warning events might cause problems.
53
- WARNING = 400
53
+ # (400) Warning events might cause problems.
54
+ WARNING = 400
54
55
 
55
- # (500) Error events are likely to cause problems.
56
- ERROR = 500
56
+ # (500) Error events are likely to cause problems.
57
+ ERROR = 500
57
58
 
58
- # (600) Critical events cause more severe problems or outages.
59
- CRITICAL = 600
59
+ # (600) Critical events cause more severe problems or outages.
60
+ CRITICAL = 600
60
61
 
61
- # (700) A person must take an action immediately.
62
- ALERT = 700
62
+ # (700) A person must take an action immediately.
63
+ ALERT = 700
63
64
 
64
- # (800) One or more systems are unusable.
65
- EMERGENCY = 800
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.3.0
4
+ version: 0.4.2
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-03-08 00:00:00.000000000 Z
11
+ date: 2021-07-12 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: '0.3'
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: '0.3'
32
+ version: 2.a
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: google-cloud-errors
29
35
  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
@@ -218,7 +225,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
218
225
  - !ruby/object:Gem::Version
219
226
  version: '0'
220
227
  requirements: []
221
- rubygems_version: 3.2.13
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