google-cloud-service_control-v1 0.4.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/README.md +1 -1
- data/lib/google/api/servicecontrol/v1/quota_controller_services_pb.rb +1 -1
- data/lib/google/api/servicecontrol/v1/service_controller_services_pb.rb +1 -1
- data/lib/google/cloud/service_control/v1/quota_controller/client.rb +1 -1
- data/lib/google/cloud/service_control/v1/service_controller/client.rb +8 -1
- data/lib/google/cloud/service_control/v1/version.rb +1 -1
- data/proto_docs/google/api/distribution.rb +2 -2
- data/proto_docs/google/api/servicecontrol/v1/log_entry.rb +1 -1
- data/proto_docs/google/logging/type/log_severity.rb +39 -37
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38a9cee1ca0ac64fd0b8f8522f9a2439b64cf7269a3fa63e4a9f3cdf15491a95
|
4
|
+
data.tar.gz: aeb22666651734eadbbfbd30a53c1ca9df8d292bda2e969346555d93678d19a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91ec1c1dacdcfc01fef2ff4991310cb41a2f099aca6fcf7c2e0978dfc3728790f363c4fb74a446ba4d1c0638a746f8e324a631a76f86fd3778029c1bc6b3b4be
|
7
|
+
data.tar.gz: 560043fa4fc021aedce0672d5cba4e1e9f810b1fff3953a05fe1c983996230a2ee38f117cdde766da63ff9b55fe793fd8c68a29285faabc5476571f299202cda
|
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
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
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"
|
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 =
|
36
|
+
request = ::Google::Cloud::ServiceControl::V1::AllocateQuotaRequest.new # (request fields as keyword arguments...)
|
37
37
|
response = client.allocate_quota request
|
38
38
|
```
|
39
39
|
|
@@ -30,7 +30,7 @@ module Google
|
|
30
30
|
# service](https://cloud.google.com/service-management/reference/rpc/google.api/servicemanagement.v1#google.api.servicemanagement.v1.ManagedService).
|
31
31
|
class Service
|
32
32
|
|
33
|
-
include
|
33
|
+
include GRPC::GenericService
|
34
34
|
|
35
35
|
self.marshal_class_method = :encode
|
36
36
|
self.unmarshal_class_method = :decode
|
@@ -30,7 +30,7 @@ module Google
|
|
30
30
|
# service](https://cloud.google.com/service-management/reference/rpc/google.api/servicemanagement.v1#google.api.servicemanagement.v1.ManagedService).
|
31
31
|
class Service
|
32
32
|
|
33
|
-
include
|
33
|
+
include GRPC::GenericService
|
34
34
|
|
35
35
|
self.marshal_class_method = :encode
|
36
36
|
self.unmarshal_class_method = :decode
|
@@ -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
|
@@ -49,7 +49,7 @@ module Google
|
|
49
49
|
#
|
50
50
|
# Sum[i=1..n]((x_i - mean)^2)
|
51
51
|
#
|
52
|
-
# Knuth, "The Art of Computer Programming", Vol. 2, page
|
52
|
+
# Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition
|
53
53
|
# describes Welford's method for accumulating this sum in one pass.
|
54
54
|
#
|
55
55
|
# If `count` is zero then this field must be zero.
|
@@ -207,7 +207,7 @@ module Google
|
|
207
207
|
# @return [::Array<::Google::Protobuf::Any>]
|
208
208
|
# Contextual information about the example value. Examples are:
|
209
209
|
#
|
210
|
-
# Trace
|
210
|
+
# Trace: type.googleapis.com/google.monitoring.v3.SpanContext
|
211
211
|
#
|
212
212
|
# Literal string: type.googleapis.com/google.protobuf.StringValue
|
213
213
|
#
|
@@ -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
|
@@ -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,14 +1,14 @@
|
|
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.
|
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
|