google-cloud-profiler-v2 0.6.0 → 0.6.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: a6d6b32ab98ae36436ed32dfcf8cea7efb4154a0536df4eede2274a41801ffd1
4
- data.tar.gz: ddf81644c830d3ae76ee0709b8f22c909e3bde55107f6b670e015851239a3551
3
+ metadata.gz: 7012406eaad4e2846aa59929a0215ea15bb2965a134bcddaa85d1a00a56e3502
4
+ data.tar.gz: 2d6c52c534c7ea0d27bade6f39ab11c9533521047d23653de4ac97f62c567e30
5
5
  SHA512:
6
- metadata.gz: 8b8b4bb838b77119eb6772fa363448c0a128e8155f02208877b53c0d3f0841eb5b686b2843919dcfb60b29dc08d8cf28a17b8c254b74d70357336451dd5dab60
7
- data.tar.gz: 509bea7d789f7c2a6d433bd0ed2e1431281287fbee19e8c8c207713a715000944dbd3cf2d91e0d40e144497bddbb32daf47191338804d93f4bd51c7c23906c34
6
+ metadata.gz: c78f3d0ecef40eaad84b28d14050cff2c4209d5dc084f846c8a55cd844bdcfddb35f380859263ac4ae3cd30d9c9ed0899b8720a651d259f7158599e95fd28eb9
7
+ data.tar.gz: d84dda227e89d43e6ac6ad792064fd46dedf493137d873bff795b287ae00573c4447a1bc0c3caf70414bf74e068bd54f3169834f0c83824faae1f130df961bb7
@@ -139,7 +139,7 @@ module Google
139
139
  credentials = @config.credentials
140
140
  # Use self-signed JWT if the endpoint is unchanged from default,
141
141
  # but only if the default endpoint does not have a region prefix.
142
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
142
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
143
143
  !@config.endpoint.split(".").first.include?("-")
144
144
  credentials ||= Credentials.default scope: @config.scope,
145
145
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -525,7 +525,9 @@ module Google
525
525
  class Configuration
526
526
  extend ::Gapic::Config
527
527
 
528
- config_attr :endpoint, "cloudprofiler.googleapis.com", ::String
528
+ DEFAULT_ENDPOINT = "cloudprofiler.googleapis.com"
529
+
530
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
529
531
  config_attr :credentials, nil do |value|
530
532
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
531
533
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -135,7 +135,7 @@ module Google
135
135
  credentials = @config.credentials
136
136
  # Use self-signed JWT if the endpoint is unchanged from default,
137
137
  # but only if the default endpoint does not have a region prefix.
138
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
138
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
139
139
  !@config.endpoint.split(".").first.include?("-")
140
140
  credentials ||= Credentials.default scope: @config.scope,
141
141
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -438,7 +438,9 @@ module Google
438
438
  class Configuration
439
439
  extend ::Gapic::Config
440
440
 
441
- config_attr :endpoint, "cloudprofiler.googleapis.com", ::String
441
+ DEFAULT_ENDPOINT = "cloudprofiler.googleapis.com"
442
+
443
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
442
444
  config_attr :credentials, nil do |value|
443
445
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
444
446
  allowed.any? { |klass| klass === value }
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_create_profile_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_create_offline_profile_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_update_profile_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Profiler
23
23
  module V2
24
- VERSION = "0.6.0"
24
+ VERSION = "0.6.1"
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.6.0
4
+ version: 0.6.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: 2023-06-01 00:00:00.000000000 Z
11
+ date: 2023-06-06 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.0
19
+ version: 0.19.1
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.19.0
29
+ version: 0.19.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a