google-cloud-profiler-v2 0.6.0 → 0.7.0

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: 915e5cada2490a046e490973fd899e6a2bb835328587f7d86f06825bc9c03f1c
4
+ data.tar.gz: 7fe3037b1bc866a8a6a37ab10bb90fc2e03d59fac1ceb680462f3b2a1d5134b6
5
5
  SHA512:
6
- metadata.gz: 8b8b4bb838b77119eb6772fa363448c0a128e8155f02208877b53c0d3f0841eb5b686b2843919dcfb60b29dc08d8cf28a17b8c254b74d70357336451dd5dab60
7
- data.tar.gz: 509bea7d789f7c2a6d433bd0ed2e1431281287fbee19e8c8c207713a715000944dbd3cf2d91e0d40e144497bddbb32daf47191338804d93f4bd51c7c23906c34
6
+ metadata.gz: 27b0174023a9e3297b6139f9d5dcd19d11c545e637b910e3d8067c64c618343ba0bee1759ce791af600398aa17888d8ef7792791e6f8115c4871d59898ca3de7
7
+ data.tar.gz: e5a1da610c41c99038a0e321c90e46c706cc21b1375025e88bd365793b308d20e80286a0289fed93659283591c1e073f14ec9ac49f3c49245f0f3e9ae4e39b5a
@@ -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
@@ -154,7 +154,8 @@ module Google
154
154
  credentials: credentials,
155
155
  endpoint: @config.endpoint,
156
156
  channel_args: @config.channel_args,
157
- interceptors: @config.interceptors
157
+ interceptors: @config.interceptors,
158
+ channel_pool_config: @config.channel_pool
158
159
  )
159
160
  end
160
161
 
@@ -525,7 +526,9 @@ module Google
525
526
  class Configuration
526
527
  extend ::Gapic::Config
527
528
 
528
- config_attr :endpoint, "cloudprofiler.googleapis.com", ::String
529
+ DEFAULT_ENDPOINT = "cloudprofiler.googleapis.com"
530
+
531
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
529
532
  config_attr :credentials, nil do |value|
530
533
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
531
534
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -560,6 +563,14 @@ module Google
560
563
  end
561
564
  end
562
565
 
566
+ ##
567
+ # Configuration for the channel pool
568
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
569
+ #
570
+ def channel_pool
571
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
572
+ end
573
+
563
574
  ##
564
575
  # Configuration RPC class for the ProfilerService API.
565
576
  #
@@ -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
@@ -194,6 +194,22 @@ module Google
194
194
  # @return [::Google::Cloud::Profiler::V2::Profile]
195
195
  #
196
196
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
197
+ #
198
+ # @example Basic example
199
+ # require "google/cloud/profiler/v2"
200
+ #
201
+ # # Create a client object. The client can be reused for multiple calls.
202
+ # client = Google::Cloud::Profiler::V2::ProfilerService::Rest::Client.new
203
+ #
204
+ # # Create a request. To set request fields, pass in keyword arguments.
205
+ # request = Google::Cloud::Profiler::V2::CreateProfileRequest.new
206
+ #
207
+ # # Call the create_profile method.
208
+ # result = client.create_profile request
209
+ #
210
+ # # The returned object is of type Google::Cloud::Profiler::V2::Profile.
211
+ # p result
212
+ #
197
213
  def create_profile request, options = nil
198
214
  raise ::ArgumentError, "request must be provided" if request.nil?
199
215
 
@@ -260,6 +276,22 @@ module Google
260
276
  # @return [::Google::Cloud::Profiler::V2::Profile]
261
277
  #
262
278
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
279
+ #
280
+ # @example Basic example
281
+ # require "google/cloud/profiler/v2"
282
+ #
283
+ # # Create a client object. The client can be reused for multiple calls.
284
+ # client = Google::Cloud::Profiler::V2::ProfilerService::Rest::Client.new
285
+ #
286
+ # # Create a request. To set request fields, pass in keyword arguments.
287
+ # request = Google::Cloud::Profiler::V2::CreateOfflineProfileRequest.new
288
+ #
289
+ # # Call the create_offline_profile method.
290
+ # result = client.create_offline_profile request
291
+ #
292
+ # # The returned object is of type Google::Cloud::Profiler::V2::Profile.
293
+ # p result
294
+ #
263
295
  def create_offline_profile request, options = nil
264
296
  raise ::ArgumentError, "request must be provided" if request.nil?
265
297
 
@@ -330,6 +362,22 @@ module Google
330
362
  # @return [::Google::Cloud::Profiler::V2::Profile]
331
363
  #
332
364
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
365
+ #
366
+ # @example Basic example
367
+ # require "google/cloud/profiler/v2"
368
+ #
369
+ # # Create a client object. The client can be reused for multiple calls.
370
+ # client = Google::Cloud::Profiler::V2::ProfilerService::Rest::Client.new
371
+ #
372
+ # # Create a request. To set request fields, pass in keyword arguments.
373
+ # request = Google::Cloud::Profiler::V2::UpdateProfileRequest.new
374
+ #
375
+ # # Call the update_profile method.
376
+ # result = client.update_profile request
377
+ #
378
+ # # The returned object is of type Google::Cloud::Profiler::V2::Profile.
379
+ # p result
380
+ #
333
381
  def update_profile request, options = nil
334
382
  raise ::ArgumentError, "request must be provided" if request.nil?
335
383
 
@@ -438,7 +486,9 @@ module Google
438
486
  class Configuration
439
487
  extend ::Gapic::Config
440
488
 
441
- config_attr :endpoint, "cloudprofiler.googleapis.com", ::String
489
+ DEFAULT_ENDPOINT = "cloudprofiler.googleapis.com"
490
+
491
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
442
492
  config_attr :credentials, nil do |value|
443
493
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
444
494
  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.7.0"
25
25
  end
26
26
  end
27
27
  end
@@ -66,6 +66,20 @@ module Google
66
66
  # a non-empty value will be returned. The user will not be aware of what
67
67
  # non-empty value to expect.
68
68
  NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
69
83
  end
70
84
  end
71
85
  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.7.0
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-09-12 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.20.0
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.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -212,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
212
212
  - !ruby/object:Gem::Version
213
213
  version: '0'
214
214
  requirements: []
215
- rubygems_version: 3.4.2
215
+ rubygems_version: 3.4.19
216
216
  signing_key:
217
217
  specification_version: 4
218
218
  summary: Manages continuous profiling information.