google-cloud-profiler-v2 0.2.2 → 0.2.3

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: c8c483a41fa7ef21693346f2a2a28be143d2acdcb7aea99c50096845133f3f5c
4
- data.tar.gz: 5bf1470e9889fd9fa9bb5c63289eac4e43ef3c29823d948fb8619f353480f73a
3
+ metadata.gz: ea45203b1120ad2a7bd6d6232cb77f7abfb4940a4edb341309532e9a19a224f3
4
+ data.tar.gz: 7dd18f1469fcda15edcfe6cb591d0e8875e6b971471a99931669d8b46902c1e0
5
5
  SHA512:
6
- metadata.gz: 2f2f15121b7320d9f11a22a53a4e4a28266b6bbce7f9323bc5ce59841fd92679bacc670da5ebd12d653aa47910af09b6501f75e38947a4434a0ed53cbdacc48b
7
- data.tar.gz: b9626cf149c10c72db24b8edd5b14e7d166a2d356663527e62a0bcf99dbdb9d8fdb2247da92107415cb2275f6b9d6c4de8371dd62abe5def6812afee92898574
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
- # ## Example
47
+ # @example
48
48
  #
49
- # To modify the configuration for all ProfilerService clients:
50
- #
51
- # ::Google::Cloud::Profiler::V2::ProfilerService::Client.configure do |config|
52
- # config.timeout = 10.0
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
- # ## Examples
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
- # To create a new ProfilerService client with a custom
119
- # configuration:
112
+ # # Create a client using the default configuration
113
+ # client = ::Google::Cloud::Profiler::V2::ProfilerService::Client.new
120
114
  #
121
- # client = ::Google::Cloud::Profiler::V2::ProfilerService::Client.new do |config|
122
- # config.timeout = 10.0
123
- # end
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 scope and endpoint are unchanged from default,
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.scope == Client.configure.scope &&
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- # # Examples
407
- #
408
- # To modify the global config, setting the timeout for create_profile
409
- # to 20 seconds, and all remaining timeouts to 10 seconds:
410
- #
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
- # To apply the above configuration only to a new client:
417
- #
418
- # client = ::Google::Cloud::Profiler::V2::ProfilerService::Client.new do |config|
419
- # config.timeout = 10.0
420
- # config.rpcs.create_profile.timeout = 20.0
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.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Profiler
23
23
  module V2
24
- VERSION = "0.2.2"
24
+ VERSION = "0.2.3"
25
25
  end
26
26
  end
27
27
  end
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.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-07-12 00:00:00.000000000 Z
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.5'
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.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a