google-cloud-service_control-v1 0.4.1 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +3 -3
- 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/http_request_pb.rb +1 -1
- data/lib/google/api/servicecontrol/v1/log_entry_pb.rb +2 -2
- data/lib/google/api/servicecontrol/v1/metric_value_pb.rb +2 -2
- data/lib/google/api/servicecontrol/v1/operation_pb.rb +2 -2
- data/lib/google/api/servicecontrol/v1/quota_controller_pb.rb +2 -2
- data/lib/google/api/servicecontrol/v1/quota_controller_services_pb.rb +1 -1
- data/lib/google/api/servicecontrol/v1/service_controller_pb.rb +2 -2
- data/lib/google/api/servicecontrol/v1/service_controller_services_pb.rb +1 -1
- data/lib/google/cloud/service_control/v1/quota_controller/client.rb +52 -40
- data/lib/google/cloud/service_control/v1/service_controller/client.rb +75 -44
- data/lib/google/cloud/service_control/v1/version.rb +1 -1
- data/proto_docs/google/api/servicecontrol/v1/distribution.rb +4 -4
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44865b72852210f1be156d154d92ba6374b6e66f55811ca133e3858c41f7167f
|
4
|
+
data.tar.gz: 6e693e2d37fa4b9aa8129955e108f517f8106c36f64bfb4fced6006a405741cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1225c233c4a5493695f02573be1e9aad66491ef731e7ab8fcc380cbbd47ed22d9ad395852f49b9a4f0ce17bfae4391923d1d00c04ba1c31c0d77e097f07d7fce
|
7
|
+
data.tar.gz: '097cb81813729989ef6cec3d822c258394629f0142f55565a2c3dba2f992ad64a7df202496b9be5d8f916bf190c2c9c33fa789f007c4a5e4547bc5a88aad8863'
|
data/AUTHENTICATION.md
CHANGED
@@ -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
|
86
|
-
environment
|
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
|
96
|
+
Or globally for all clients:
|
97
97
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/service_control/v1"
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/api/servicecontrol/v1/check_error.proto
|
3
3
|
|
4
|
+
require 'google/rpc/status_pb'
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
require 'google/rpc/status_pb'
|
7
7
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
8
|
add_file("google/api/servicecontrol/v1/check_error.proto", :syntax => :proto3) do
|
9
9
|
add_message "google.api.servicecontrol.v1.CheckError" do
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/api/servicecontrol/v1/distribution.proto
|
3
3
|
|
4
|
+
require 'google/api/distribution_pb'
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
require 'google/api/distribution_pb'
|
7
7
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
8
|
add_file("google/api/servicecontrol/v1/distribution.proto", :syntax => :proto3) do
|
9
9
|
add_message "google.api.servicecontrol.v1.Distribution" do
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/api/servicecontrol/v1/http_request.proto
|
3
3
|
|
4
|
+
require 'google/protobuf/duration_pb'
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
require 'google/protobuf/duration_pb'
|
7
7
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
8
|
add_file("google/api/servicecontrol/v1/http_request.proto", :syntax => :proto3) do
|
9
9
|
add_message "google.api.servicecontrol.v1.HttpRequest" do
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/api/servicecontrol/v1/log_entry.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/servicecontrol/v1/http_request_pb'
|
7
5
|
require 'google/logging/type/log_severity_pb'
|
8
6
|
require 'google/protobuf/any_pb'
|
9
7
|
require 'google/protobuf/struct_pb'
|
10
8
|
require 'google/protobuf/timestamp_pb'
|
9
|
+
require 'google/protobuf'
|
10
|
+
|
11
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
12
|
add_file("google/api/servicecontrol/v1/log_entry.proto", :syntax => :proto3) do
|
13
13
|
add_message "google.api.servicecontrol.v1.LogEntry" do
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/api/servicecontrol/v1/metric_value.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/servicecontrol/v1/distribution_pb'
|
7
5
|
require 'google/protobuf/timestamp_pb'
|
6
|
+
require 'google/protobuf'
|
7
|
+
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_file("google/api/servicecontrol/v1/metric_value.proto", :syntax => :proto3) do
|
10
10
|
add_message "google.api.servicecontrol.v1.MetricValue" do
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/api/servicecontrol/v1/operation.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/servicecontrol/v1/log_entry_pb'
|
7
5
|
require 'google/api/servicecontrol/v1/metric_value_pb'
|
8
6
|
require 'google/protobuf/any_pb'
|
9
7
|
require 'google/protobuf/timestamp_pb'
|
8
|
+
require 'google/protobuf'
|
9
|
+
|
10
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
11
|
add_file("google/api/servicecontrol/v1/operation.proto", :syntax => :proto3) do
|
12
12
|
add_message "google.api.servicecontrol.v1.Operation" do
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/api/servicecontrol/v1/quota_controller.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/servicecontrol/v1/metric_value_pb'
|
8
6
|
require 'google/rpc/status_pb'
|
9
7
|
require 'google/api/client_pb'
|
8
|
+
require 'google/protobuf'
|
9
|
+
|
10
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
11
|
add_file("google/api/servicecontrol/v1/quota_controller.proto", :syntax => :proto3) do
|
12
12
|
add_message "google.api.servicecontrol.v1.AllocateQuotaRequest" do
|
@@ -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
|
@@ -1,14 +1,14 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/api/servicecontrol/v1/service_controller.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/servicecontrol/v1/check_error_pb'
|
9
7
|
require 'google/api/servicecontrol/v1/operation_pb'
|
10
8
|
require 'google/protobuf/timestamp_pb'
|
11
9
|
require 'google/rpc/status_pb'
|
10
|
+
require 'google/protobuf'
|
11
|
+
|
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
|
@@ -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
|
@@ -42,13 +42,12 @@ module Google
|
|
42
42
|
# See {::Google::Cloud::ServiceControl::V1::QuotaController::Client::Configuration}
|
43
43
|
# for a description of the configuration fields.
|
44
44
|
#
|
45
|
-
#
|
45
|
+
# @example
|
46
46
|
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
# end
|
47
|
+
# # Modify the configuration for all QuotaController clients
|
48
|
+
# ::Google::Cloud::ServiceControl::V1::QuotaController::Client.configure do |config|
|
49
|
+
# config.timeout = 10.0
|
50
|
+
# end
|
52
51
|
#
|
53
52
|
# @yield [config] Configure the Client client.
|
54
53
|
# @yieldparam config [Client::Configuration]
|
@@ -95,19 +94,15 @@ module Google
|
|
95
94
|
##
|
96
95
|
# Create a new QuotaController client object.
|
97
96
|
#
|
98
|
-
#
|
99
|
-
#
|
100
|
-
# To create a new QuotaController client with the default
|
101
|
-
# configuration:
|
97
|
+
# @example
|
102
98
|
#
|
103
|
-
#
|
99
|
+
# # Create a client using the default configuration
|
100
|
+
# client = ::Google::Cloud::ServiceControl::V1::QuotaController::Client.new
|
104
101
|
#
|
105
|
-
#
|
106
|
-
#
|
107
|
-
#
|
108
|
-
#
|
109
|
-
# config.timeout = 10.0
|
110
|
-
# end
|
102
|
+
# # Create a client using a custom configuration
|
103
|
+
# client = ::Google::Cloud::ServiceControl::V1::QuotaController::Client.new do |config|
|
104
|
+
# config.timeout = 10.0
|
105
|
+
# end
|
111
106
|
#
|
112
107
|
# @yield [config] Configure the QuotaController client.
|
113
108
|
# @yieldparam config [Client::Configuration]
|
@@ -127,10 +122,9 @@ module Google
|
|
127
122
|
|
128
123
|
# Create credentials
|
129
124
|
credentials = @config.credentials
|
130
|
-
# Use self-signed JWT if the
|
125
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
131
126
|
# but only if the default endpoint does not have a region prefix.
|
132
|
-
enable_self_signed_jwt = @config.
|
133
|
-
@config.endpoint == Client.configure.endpoint &&
|
127
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
134
128
|
!@config.endpoint.split(".").first.include?("-")
|
135
129
|
credentials ||= Credentials.default scope: @config.scope,
|
136
130
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -199,6 +193,21 @@ module Google
|
|
199
193
|
#
|
200
194
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
201
195
|
#
|
196
|
+
# @example Basic example
|
197
|
+
# require "google/cloud/service_control/v1"
|
198
|
+
#
|
199
|
+
# # Create a client object. The client can be reused for multiple calls.
|
200
|
+
# client = Google::Cloud::ServiceControl::V1::QuotaController::Client.new
|
201
|
+
#
|
202
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
203
|
+
# request = Google::Cloud::ServiceControl::V1::AllocateQuotaRequest.new
|
204
|
+
#
|
205
|
+
# # Call the allocate_quota method.
|
206
|
+
# result = client.allocate_quota request
|
207
|
+
#
|
208
|
+
# # The returned object is of type Google::Cloud::ServiceControl::V1::AllocateQuotaResponse.
|
209
|
+
# p result
|
210
|
+
#
|
202
211
|
def allocate_quota request, options = nil
|
203
212
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
204
213
|
|
@@ -216,16 +225,20 @@ module Google
|
|
216
225
|
gapic_version: ::Google::Cloud::ServiceControl::V1::VERSION
|
217
226
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
218
227
|
|
219
|
-
header_params = {
|
220
|
-
|
221
|
-
|
228
|
+
header_params = {}
|
229
|
+
if request.service_name
|
230
|
+
header_params["service_name"] = request.service_name
|
231
|
+
end
|
232
|
+
|
222
233
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
223
234
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
224
235
|
|
225
236
|
options.apply_defaults timeout: @config.rpcs.allocate_quota.timeout,
|
226
237
|
metadata: metadata,
|
227
238
|
retry_policy: @config.rpcs.allocate_quota.retry_policy
|
228
|
-
|
239
|
+
|
240
|
+
options.apply_defaults timeout: @config.timeout,
|
241
|
+
metadata: @config.metadata,
|
229
242
|
retry_policy: @config.retry_policy
|
230
243
|
|
231
244
|
@quota_controller_stub.call_rpc :allocate_quota, request, options: options do |response, operation|
|
@@ -249,22 +262,21 @@ module Google
|
|
249
262
|
# Configuration can be applied globally to all clients, or to a single client
|
250
263
|
# on construction.
|
251
264
|
#
|
252
|
-
#
|
253
|
-
#
|
254
|
-
#
|
255
|
-
# to 20 seconds,
|
256
|
-
#
|
257
|
-
#
|
258
|
-
#
|
259
|
-
#
|
260
|
-
#
|
261
|
-
#
|
262
|
-
#
|
263
|
-
#
|
264
|
-
#
|
265
|
-
#
|
266
|
-
#
|
267
|
-
# end
|
265
|
+
# @example
|
266
|
+
#
|
267
|
+
# # Modify the global config, setting the timeout for
|
268
|
+
# # allocate_quota to 20 seconds,
|
269
|
+
# # and all remaining timeouts to 10 seconds.
|
270
|
+
# ::Google::Cloud::ServiceControl::V1::QuotaController::Client.configure do |config|
|
271
|
+
# config.timeout = 10.0
|
272
|
+
# config.rpcs.allocate_quota.timeout = 20.0
|
273
|
+
# end
|
274
|
+
#
|
275
|
+
# # Apply the above configuration only to a new client.
|
276
|
+
# client = ::Google::Cloud::ServiceControl::V1::QuotaController::Client.new do |config|
|
277
|
+
# config.timeout = 10.0
|
278
|
+
# config.rpcs.allocate_quota.timeout = 20.0
|
279
|
+
# end
|
268
280
|
#
|
269
281
|
# @!attribute [rw] endpoint
|
270
282
|
# The hostname or hostname:port of the service endpoint.
|
@@ -42,13 +42,12 @@ module Google
|
|
42
42
|
# See {::Google::Cloud::ServiceControl::V1::ServiceController::Client::Configuration}
|
43
43
|
# for a description of the configuration fields.
|
44
44
|
#
|
45
|
-
#
|
45
|
+
# @example
|
46
46
|
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
# end
|
47
|
+
# # Modify the configuration for all ServiceController clients
|
48
|
+
# ::Google::Cloud::ServiceControl::V1::ServiceController::Client.configure do |config|
|
49
|
+
# config.timeout = 10.0
|
50
|
+
# end
|
52
51
|
#
|
53
52
|
# @yield [config] Configure the Client client.
|
54
53
|
# @yieldparam config [Client::Configuration]
|
@@ -102,19 +101,15 @@ module Google
|
|
102
101
|
##
|
103
102
|
# Create a new ServiceController client object.
|
104
103
|
#
|
105
|
-
#
|
106
|
-
#
|
107
|
-
# To create a new ServiceController client with the default
|
108
|
-
# configuration:
|
109
|
-
#
|
110
|
-
# client = ::Google::Cloud::ServiceControl::V1::ServiceController::Client.new
|
104
|
+
# @example
|
111
105
|
#
|
112
|
-
#
|
113
|
-
#
|
106
|
+
# # Create a client using the default configuration
|
107
|
+
# client = ::Google::Cloud::ServiceControl::V1::ServiceController::Client.new
|
114
108
|
#
|
115
|
-
#
|
116
|
-
#
|
117
|
-
#
|
109
|
+
# # Create a client using a custom configuration
|
110
|
+
# client = ::Google::Cloud::ServiceControl::V1::ServiceController::Client.new do |config|
|
111
|
+
# config.timeout = 10.0
|
112
|
+
# end
|
118
113
|
#
|
119
114
|
# @yield [config] Configure the ServiceController client.
|
120
115
|
# @yieldparam config [Client::Configuration]
|
@@ -134,10 +129,9 @@ module Google
|
|
134
129
|
|
135
130
|
# Create credentials
|
136
131
|
credentials = @config.credentials
|
137
|
-
# Use self-signed JWT if the
|
132
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
138
133
|
# but only if the default endpoint does not have a region prefix.
|
139
|
-
enable_self_signed_jwt = @config.
|
140
|
-
@config.endpoint == Client.configure.endpoint &&
|
134
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
141
135
|
!@config.endpoint.split(".").first.include?("-")
|
142
136
|
credentials ||= Credentials.default scope: @config.scope,
|
143
137
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -216,6 +210,21 @@ module Google
|
|
216
210
|
#
|
217
211
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
218
212
|
#
|
213
|
+
# @example Basic example
|
214
|
+
# require "google/cloud/service_control/v1"
|
215
|
+
#
|
216
|
+
# # Create a client object. The client can be reused for multiple calls.
|
217
|
+
# client = Google::Cloud::ServiceControl::V1::ServiceController::Client.new
|
218
|
+
#
|
219
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
220
|
+
# request = Google::Cloud::ServiceControl::V1::CheckRequest.new
|
221
|
+
#
|
222
|
+
# # Call the check method.
|
223
|
+
# result = client.check request
|
224
|
+
#
|
225
|
+
# # The returned object is of type Google::Cloud::ServiceControl::V1::CheckResponse.
|
226
|
+
# p result
|
227
|
+
#
|
219
228
|
def check request, options = nil
|
220
229
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
221
230
|
|
@@ -233,16 +242,20 @@ module Google
|
|
233
242
|
gapic_version: ::Google::Cloud::ServiceControl::V1::VERSION
|
234
243
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
235
244
|
|
236
|
-
header_params = {
|
237
|
-
|
238
|
-
|
245
|
+
header_params = {}
|
246
|
+
if request.service_name
|
247
|
+
header_params["service_name"] = request.service_name
|
248
|
+
end
|
249
|
+
|
239
250
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
240
251
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
241
252
|
|
242
253
|
options.apply_defaults timeout: @config.rpcs.check.timeout,
|
243
254
|
metadata: metadata,
|
244
255
|
retry_policy: @config.rpcs.check.retry_policy
|
245
|
-
|
256
|
+
|
257
|
+
options.apply_defaults timeout: @config.timeout,
|
258
|
+
metadata: @config.metadata,
|
246
259
|
retry_policy: @config.retry_policy
|
247
260
|
|
248
261
|
@service_controller_stub.call_rpc :check, request, options: options do |response, operation|
|
@@ -319,6 +332,21 @@ module Google
|
|
319
332
|
#
|
320
333
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
321
334
|
#
|
335
|
+
# @example Basic example
|
336
|
+
# require "google/cloud/service_control/v1"
|
337
|
+
#
|
338
|
+
# # Create a client object. The client can be reused for multiple calls.
|
339
|
+
# client = Google::Cloud::ServiceControl::V1::ServiceController::Client.new
|
340
|
+
#
|
341
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
342
|
+
# request = Google::Cloud::ServiceControl::V1::ReportRequest.new
|
343
|
+
#
|
344
|
+
# # Call the report method.
|
345
|
+
# result = client.report request
|
346
|
+
#
|
347
|
+
# # The returned object is of type Google::Cloud::ServiceControl::V1::ReportResponse.
|
348
|
+
# p result
|
349
|
+
#
|
322
350
|
def report request, options = nil
|
323
351
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
324
352
|
|
@@ -336,16 +364,20 @@ module Google
|
|
336
364
|
gapic_version: ::Google::Cloud::ServiceControl::V1::VERSION
|
337
365
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
338
366
|
|
339
|
-
header_params = {
|
340
|
-
|
341
|
-
|
367
|
+
header_params = {}
|
368
|
+
if request.service_name
|
369
|
+
header_params["service_name"] = request.service_name
|
370
|
+
end
|
371
|
+
|
342
372
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
343
373
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
344
374
|
|
345
375
|
options.apply_defaults timeout: @config.rpcs.report.timeout,
|
346
376
|
metadata: metadata,
|
347
377
|
retry_policy: @config.rpcs.report.retry_policy
|
348
|
-
|
378
|
+
|
379
|
+
options.apply_defaults timeout: @config.timeout,
|
380
|
+
metadata: @config.metadata,
|
349
381
|
retry_policy: @config.retry_policy
|
350
382
|
|
351
383
|
@service_controller_stub.call_rpc :report, request, options: options do |response, operation|
|
@@ -369,22 +401,21 @@ module Google
|
|
369
401
|
# Configuration can be applied globally to all clients, or to a single client
|
370
402
|
# on construction.
|
371
403
|
#
|
372
|
-
#
|
373
|
-
#
|
374
|
-
#
|
375
|
-
# to 20 seconds,
|
376
|
-
#
|
377
|
-
#
|
378
|
-
#
|
379
|
-
#
|
380
|
-
#
|
381
|
-
#
|
382
|
-
#
|
383
|
-
#
|
384
|
-
#
|
385
|
-
#
|
386
|
-
#
|
387
|
-
# end
|
404
|
+
# @example
|
405
|
+
#
|
406
|
+
# # Modify the global config, setting the timeout for
|
407
|
+
# # check to 20 seconds,
|
408
|
+
# # and all remaining timeouts to 10 seconds.
|
409
|
+
# ::Google::Cloud::ServiceControl::V1::ServiceController::Client.configure do |config|
|
410
|
+
# config.timeout = 10.0
|
411
|
+
# config.rpcs.check.timeout = 20.0
|
412
|
+
# end
|
413
|
+
#
|
414
|
+
# # Apply the above configuration only to a new client.
|
415
|
+
# client = ::Google::Cloud::ServiceControl::V1::ServiceController::Client.new do |config|
|
416
|
+
# config.timeout = 10.0
|
417
|
+
# config.rpcs.check.timeout = 20.0
|
418
|
+
# end
|
388
419
|
#
|
389
420
|
# @!attribute [rw] endpoint
|
390
421
|
# The hostname or hostname:port of the service endpoint.
|
@@ -25,10 +25,10 @@ module Google
|
|
25
25
|
# points. It contains the size of the population of sample points plus
|
26
26
|
# additional optional information:
|
27
27
|
#
|
28
|
-
#
|
29
|
-
#
|
30
|
-
#
|
31
|
-
#
|
28
|
+
# * the arithmetic mean of the samples
|
29
|
+
# * the minimum and maximum of the samples
|
30
|
+
# * the sum-squared-deviation of the samples, used to compute variance
|
31
|
+
# * a histogram of the values of the sample points
|
32
32
|
# @!attribute [rw] count
|
33
33
|
# @return [::Integer]
|
34
34
|
# The total number of samples in the distribution. Must be >= 0.
|
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.5
|
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-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.7'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|