google-cloud-profiler-v2 0.2.2 → 0.2.3
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea45203b1120ad2a7bd6d6232cb77f7abfb4940a4edb341309532e9a19a224f3
|
4
|
+
data.tar.gz: 7dd18f1469fcda15edcfe6cb591d0e8875e6b971471a99931669d8b46902c1e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3874d4dc7f9703506746b64dd5c0415fa944618755fbb31b1ecb29884b5c12f665dfced39f46d815387ff3e14615371d12f64be9d669dde0e372aa38e4792638
|
7
|
+
data.tar.gz: 88ae98c022be79b60a468decb15e90a861c021bf29e8649fbf929dcb9b686cb2f4cbcb8b5af14e1b2abe1fe4bb9d3d68119f82e98b54c1b893b86824566ff69e
|
@@ -44,13 +44,12 @@ module Google
|
|
44
44
|
# See {::Google::Cloud::Profiler::V2::ProfilerService::Client::Configuration}
|
45
45
|
# for a description of the configuration fields.
|
46
46
|
#
|
47
|
-
#
|
47
|
+
# @example
|
48
48
|
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
52
|
-
#
|
53
|
-
# end
|
49
|
+
# # Modify the configuration for all ProfilerService clients
|
50
|
+
# ::Google::Cloud::Profiler::V2::ProfilerService::Client.configure do |config|
|
51
|
+
# config.timeout = 10.0
|
52
|
+
# end
|
54
53
|
#
|
55
54
|
# @yield [config] Configure the Client client.
|
56
55
|
# @yieldparam config [Client::Configuration]
|
@@ -108,19 +107,15 @@ module Google
|
|
108
107
|
##
|
109
108
|
# Create a new ProfilerService client object.
|
110
109
|
#
|
111
|
-
#
|
112
|
-
#
|
113
|
-
# To create a new ProfilerService client with the default
|
114
|
-
# configuration:
|
115
|
-
#
|
116
|
-
# client = ::Google::Cloud::Profiler::V2::ProfilerService::Client.new
|
110
|
+
# @example
|
117
111
|
#
|
118
|
-
#
|
119
|
-
#
|
112
|
+
# # Create a client using the default configuration
|
113
|
+
# client = ::Google::Cloud::Profiler::V2::ProfilerService::Client.new
|
120
114
|
#
|
121
|
-
#
|
122
|
-
#
|
123
|
-
#
|
115
|
+
# # Create a client using a custom configuration
|
116
|
+
# client = ::Google::Cloud::Profiler::V2::ProfilerService::Client.new do |config|
|
117
|
+
# config.timeout = 10.0
|
118
|
+
# end
|
124
119
|
#
|
125
120
|
# @yield [config] Configure the ProfilerService client.
|
126
121
|
# @yieldparam config [Client::Configuration]
|
@@ -140,10 +135,9 @@ module Google
|
|
140
135
|
|
141
136
|
# Create credentials
|
142
137
|
credentials = @config.credentials
|
143
|
-
# Use self-signed JWT if the
|
138
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
144
139
|
# but only if the default endpoint does not have a region prefix.
|
145
|
-
enable_self_signed_jwt = @config.
|
146
|
-
@config.endpoint == Client.configure.endpoint &&
|
140
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
147
141
|
!@config.endpoint.split(".").first.include?("-")
|
148
142
|
credentials ||= Credentials.default scope: @config.scope,
|
149
143
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -235,7 +229,9 @@ module Google
|
|
235
229
|
options.apply_defaults timeout: @config.rpcs.create_profile.timeout,
|
236
230
|
metadata: metadata,
|
237
231
|
retry_policy: @config.rpcs.create_profile.retry_policy
|
238
|
-
|
232
|
+
|
233
|
+
options.apply_defaults timeout: @config.timeout,
|
234
|
+
metadata: @config.metadata,
|
239
235
|
retry_policy: @config.retry_policy
|
240
236
|
|
241
237
|
@profiler_service_stub.call_rpc :create_profile, request, options: options do |response, operation|
|
@@ -305,7 +301,9 @@ module Google
|
|
305
301
|
options.apply_defaults timeout: @config.rpcs.create_offline_profile.timeout,
|
306
302
|
metadata: metadata,
|
307
303
|
retry_policy: @config.rpcs.create_offline_profile.retry_policy
|
308
|
-
|
304
|
+
|
305
|
+
options.apply_defaults timeout: @config.timeout,
|
306
|
+
metadata: @config.metadata,
|
309
307
|
retry_policy: @config.retry_policy
|
310
308
|
|
311
309
|
@profiler_service_stub.call_rpc :create_offline_profile, request, options: options do |response, operation|
|
@@ -379,7 +377,9 @@ module Google
|
|
379
377
|
options.apply_defaults timeout: @config.rpcs.update_profile.timeout,
|
380
378
|
metadata: metadata,
|
381
379
|
retry_policy: @config.rpcs.update_profile.retry_policy
|
382
|
-
|
380
|
+
|
381
|
+
options.apply_defaults timeout: @config.timeout,
|
382
|
+
metadata: @config.metadata,
|
383
383
|
retry_policy: @config.retry_policy
|
384
384
|
|
385
385
|
@profiler_service_stub.call_rpc :update_profile, request, options: options do |response, operation|
|
@@ -403,22 +403,21 @@ module Google
|
|
403
403
|
# Configuration can be applied globally to all clients, or to a single client
|
404
404
|
# on construction.
|
405
405
|
#
|
406
|
-
#
|
407
|
-
#
|
408
|
-
#
|
409
|
-
# to 20 seconds,
|
410
|
-
#
|
411
|
-
#
|
412
|
-
#
|
413
|
-
#
|
414
|
-
#
|
415
|
-
#
|
416
|
-
#
|
417
|
-
#
|
418
|
-
#
|
419
|
-
#
|
420
|
-
#
|
421
|
-
# end
|
406
|
+
# @example
|
407
|
+
#
|
408
|
+
# # Modify the global config, setting the timeout for
|
409
|
+
# # create_profile to 20 seconds,
|
410
|
+
# # and all remaining timeouts to 10 seconds.
|
411
|
+
# ::Google::Cloud::Profiler::V2::ProfilerService::Client.configure do |config|
|
412
|
+
# config.timeout = 10.0
|
413
|
+
# config.rpcs.create_profile.timeout = 20.0
|
414
|
+
# end
|
415
|
+
#
|
416
|
+
# # Apply the above configuration only to a new client.
|
417
|
+
# client = ::Google::Cloud::Profiler::V2::ProfilerService::Client.new do |config|
|
418
|
+
# config.timeout = 10.0
|
419
|
+
# config.rpcs.create_profile.timeout = 20.0
|
420
|
+
# end
|
422
421
|
#
|
423
422
|
# @!attribute [rw] endpoint
|
424
423
|
# The hostname or hostname:port of the service endpoint.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-profiler-v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
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-08-11 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
|