google-cloud-service_control-v1 0.4.0 → 0.4.1

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: 0732b4d1ff73877ac53a2c6960ad250da53f58dd04b21444479e6ce0cce65ef5
4
- data.tar.gz: dad4bab2b695d40d2641a6f429df0fef83870c238494b33f70893643d75347fa
3
+ metadata.gz: 38a9cee1ca0ac64fd0b8f8522f9a2439b64cf7269a3fa63e4a9f3cdf15491a95
4
+ data.tar.gz: aeb22666651734eadbbfbd30a53c1ca9df8d292bda2e969346555d93678d19a4
5
5
  SHA512:
6
- metadata.gz: 307a2587986bcbee2272845500da58ab554114955a38ebfcb61cf9ed15528099f6b62112d11dc49042252a467234de49259f2cbe733180d110f5da2c9b0b739c
7
- data.tar.gz: 2070ec9ab085258197a87c27813eca8f6f018dd9ec193ccd5c9544d7a8bb801dc6c3fa67bc0b1eff7277035889c3e7b1ce5d31e712273d4ccd0de82102f107f2
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
- 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"
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
 
@@ -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 ::GRPC::GenericService
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 ::GRPC::GenericService
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
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ServiceControl
23
23
  module V1
24
- VERSION = "0.4.0"
24
+ VERSION = "0.4.1"
25
25
  end
26
26
  end
27
27
  end
@@ -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 323, 3rd edition
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 ID: type.googleapis.com/google.devtools.cloudtrace.v1.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 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,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.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-06-29 00:00:00.000000000 Z
11
+ date: 2021-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common