google-cloud-debugger 0.35.2 → 0.40.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +2 -1
  3. data/CHANGELOG.md +47 -0
  4. data/OVERVIEW.md +28 -59
  5. data/TROUBLESHOOTING.md +2 -8
  6. data/ext/google/cloud/debugger/debugger_c/tracer.c +8 -33
  7. data/lib/google-cloud-debugger.rb +13 -15
  8. data/lib/google/cloud/debugger.rb +18 -16
  9. data/lib/google/cloud/debugger/breakpoint.rb +8 -8
  10. data/lib/google/cloud/debugger/breakpoint/evaluator.rb +1 -1
  11. data/lib/google/cloud/debugger/breakpoint/source_location.rb +3 -3
  12. data/lib/google/cloud/debugger/breakpoint/stack_frame.rb +5 -5
  13. data/lib/google/cloud/debugger/breakpoint/status_message.rb +4 -6
  14. data/lib/google/cloud/debugger/breakpoint/variable.rb +5 -5
  15. data/lib/google/cloud/debugger/credentials.rb +9 -6
  16. data/lib/google/cloud/debugger/debuggee.rb +4 -4
  17. data/lib/google/cloud/debugger/service.rb +25 -66
  18. data/lib/google/cloud/debugger/version.rb +1 -1
  19. metadata +12 -70
  20. data/lib/google/cloud/debugger/v2.rb +0 -243
  21. data/lib/google/cloud/debugger/v2/controller2_client.rb +0 -370
  22. data/lib/google/cloud/debugger/v2/controller2_client_config.json +0 -41
  23. data/lib/google/cloud/debugger/v2/credentials.rb +0 -42
  24. data/lib/google/cloud/debugger/v2/debugger2_client.rb +0 -478
  25. data/lib/google/cloud/debugger/v2/debugger2_client_config.json +0 -51
  26. data/lib/google/cloud/debugger/v2/doc/google/devtools/clouddebugger/v2/controller.rb +0 -91
  27. data/lib/google/cloud/debugger/v2/doc/google/devtools/clouddebugger/v2/data.rb +0 -443
  28. data/lib/google/cloud/debugger/v2/doc/google/devtools/clouddebugger/v2/debugger.rb +0 -151
  29. data/lib/google/cloud/debugger/v2/doc/google/devtools/source/v1/source_context.rb +0 -162
  30. data/lib/google/cloud/debugger/v2/doc/google/protobuf/empty.rb +0 -29
  31. data/lib/google/cloud/debugger/v2/doc/google/protobuf/timestamp.rb +0 -113
  32. data/lib/google/devtools/clouddebugger/v2/controller_pb.rb +0 -50
  33. data/lib/google/devtools/clouddebugger/v2/controller_services_pb.rb +0 -98
  34. data/lib/google/devtools/clouddebugger/v2/data_pb.rb +0 -108
  35. data/lib/google/devtools/clouddebugger/v2/debugger_pb.rb +0 -77
  36. data/lib/google/devtools/clouddebugger/v2/debugger_services_pb.rb +0 -66
  37. data/lib/google/devtools/source/v1/source_context_pb.rb +0 -90
@@ -1,41 +0,0 @@
1
- {
2
- "interfaces": {
3
- "google.devtools.clouddebugger.v2.Controller2": {
4
- "retry_codes": {
5
- "idempotent": [
6
- "DEADLINE_EXCEEDED",
7
- "UNAVAILABLE"
8
- ],
9
- "non_idempotent": []
10
- },
11
- "retry_params": {
12
- "default": {
13
- "initial_retry_delay_millis": 100,
14
- "retry_delay_multiplier": 1.3,
15
- "max_retry_delay_millis": 60000,
16
- "initial_rpc_timeout_millis": 20000,
17
- "rpc_timeout_multiplier": 1.0,
18
- "max_rpc_timeout_millis": 20000,
19
- "total_timeout_millis": 600000
20
- }
21
- },
22
- "methods": {
23
- "UpdateActiveBreakpoint": {
24
- "timeout_millis": 60000,
25
- "retry_codes_name": "idempotent",
26
- "retry_params_name": "default"
27
- },
28
- "RegisterDebuggee": {
29
- "timeout_millis": 60000,
30
- "retry_codes_name": "non_idempotent",
31
- "retry_params_name": "default"
32
- },
33
- "ListActiveBreakpoints": {
34
- "timeout_millis": 60000,
35
- "retry_codes_name": "idempotent",
36
- "retry_params_name": "default"
37
- }
38
- }
39
- }
40
- }
41
- }
@@ -1,42 +0,0 @@
1
- # Copyright 2020 Google LLC
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # https://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
-
16
- require "googleauth"
17
-
18
- module Google
19
- module Cloud
20
- module Debugger
21
- module V2
22
- class Credentials < Google::Auth::Credentials
23
- SCOPE = [
24
- "https://www.googleapis.com/auth/cloud-platform",
25
- "https://www.googleapis.com/auth/cloud_debugger"
26
- ].freeze
27
- PATH_ENV_VARS = %w(DEBUGGER_CREDENTIALS
28
- DEBUGGER_KEYFILE
29
- GOOGLE_CLOUD_CREDENTIALS
30
- GOOGLE_CLOUD_KEYFILE
31
- GCLOUD_KEYFILE)
32
- JSON_ENV_VARS = %w(DEBUGGER_CREDENTIALS_JSON
33
- DEBUGGER_KEYFILE_JSON
34
- GOOGLE_CLOUD_CREDENTIALS_JSON
35
- GOOGLE_CLOUD_KEYFILE_JSON
36
- GCLOUD_KEYFILE_JSON)
37
- DEFAULT_PATHS = ["~/.config/gcloud/application_default_credentials.json"]
38
- end
39
- end
40
- end
41
- end
42
- end
@@ -1,478 +0,0 @@
1
- # Copyright 2020 Google LLC
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # https://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
- #
15
- # EDITING INSTRUCTIONS
16
- # This file was generated from the file
17
- # https://github.com/googleapis/googleapis/blob/master/google/devtools/clouddebugger/v2/debugger.proto,
18
- # and updates to that file get reflected here through a refresh process.
19
- # For the short term, the refresh process will only be runnable by Google
20
- # engineers.
21
-
22
-
23
- require "json"
24
- require "pathname"
25
-
26
- require "google/gax"
27
-
28
- require "google/devtools/clouddebugger/v2/debugger_pb"
29
- require "google/cloud/debugger/v2/credentials"
30
- require "google/cloud/debugger/version"
31
-
32
- module Google
33
- module Cloud
34
- module Debugger
35
- module V2
36
- # The Debugger service provides the API that allows users to collect run-time
37
- # information from a running application, without stopping or slowing it down
38
- # and without modifying its state. An application may include one or
39
- # more replicated processes performing the same work.
40
- #
41
- # A debugged application is represented using the Debuggee concept. The
42
- # Debugger service provides a way to query for available debuggees, but does
43
- # not provide a way to create one. A debuggee is created using the Controller
44
- # service, usually by running a debugger agent with the application.
45
- #
46
- # The Debugger service enables the client to set one or more Breakpoints on a
47
- # Debuggee and collect the results of the set Breakpoints.
48
- #
49
- # @!attribute [r] debugger2_stub
50
- # @return [Google::Devtools::Clouddebugger::V2::Debugger2::Stub]
51
- class Debugger2Client
52
- # @private
53
- attr_reader :debugger2_stub
54
-
55
- # The default address of the service.
56
- SERVICE_ADDRESS = "clouddebugger.googleapis.com".freeze
57
-
58
- # The default port of the service.
59
- DEFAULT_SERVICE_PORT = 443
60
-
61
- # The default set of gRPC interceptors.
62
- GRPC_INTERCEPTORS = []
63
-
64
- DEFAULT_TIMEOUT = 30
65
-
66
- # The scopes needed to make gRPC calls to all of the methods defined in
67
- # this service.
68
- ALL_SCOPES = [
69
- "https://www.googleapis.com/auth/cloud-platform",
70
- "https://www.googleapis.com/auth/cloud_debugger"
71
- ].freeze
72
-
73
-
74
- # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
75
- # Provides the means for authenticating requests made by the client. This parameter can
76
- # be many types.
77
- # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
78
- # authenticating requests made by this client.
79
- # A `String` will be treated as the path to the keyfile to be used for the construction of
80
- # credentials for this client.
81
- # A `Hash` will be treated as the contents of a keyfile to be used for the construction of
82
- # credentials for this client.
83
- # A `GRPC::Core::Channel` will be used to make calls through.
84
- # A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
85
- # should already be composed with a `GRPC::Core::CallCredentials` object.
86
- # A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
87
- # metadata for requests, generally, to give OAuth credentials.
88
- # @param scopes [Array<String>]
89
- # The OAuth scopes for this service. This parameter is ignored if
90
- # an updater_proc is supplied.
91
- # @param client_config [Hash]
92
- # A Hash for call options for each method. See
93
- # Google::Gax#construct_settings for the structure of
94
- # this data. Falls back to the default config if not specified
95
- # or the specified config is missing data points.
96
- # @param timeout [Numeric]
97
- # The default timeout, in seconds, for calls made through this client.
98
- # @param metadata [Hash]
99
- # Default metadata to be sent with each request. This can be overridden on a per call basis.
100
- # @param service_address [String]
101
- # Override for the service hostname, or `nil` to leave as the default.
102
- # @param service_port [Integer]
103
- # Override for the service port, or `nil` to leave as the default.
104
- # @param exception_transformer [Proc]
105
- # An optional proc that intercepts any exceptions raised during an API call to inject
106
- # custom error handling.
107
- def initialize \
108
- credentials: nil,
109
- scopes: ALL_SCOPES,
110
- client_config: {},
111
- timeout: DEFAULT_TIMEOUT,
112
- metadata: nil,
113
- service_address: nil,
114
- service_port: nil,
115
- exception_transformer: nil,
116
- lib_name: nil,
117
- lib_version: ""
118
- # These require statements are intentionally placed here to initialize
119
- # the gRPC module only when it's required.
120
- # See https://github.com/googleapis/toolkit/issues/446
121
- require "google/gax/grpc"
122
- require "google/devtools/clouddebugger/v2/debugger_services_pb"
123
-
124
- credentials ||= Google::Cloud::Debugger::V2::Credentials.default
125
-
126
- if credentials.is_a?(String) || credentials.is_a?(Hash)
127
- updater_proc = Google::Cloud::Debugger::V2::Credentials.new(credentials).updater_proc
128
- end
129
- if credentials.is_a?(GRPC::Core::Channel)
130
- channel = credentials
131
- end
132
- if credentials.is_a?(GRPC::Core::ChannelCredentials)
133
- chan_creds = credentials
134
- end
135
- if credentials.is_a?(Proc)
136
- updater_proc = credentials
137
- end
138
- if credentials.is_a?(Google::Auth::Credentials)
139
- updater_proc = credentials.updater_proc
140
- end
141
-
142
- package_version = Google::Cloud::Debugger::VERSION
143
-
144
- google_api_client = "gl-ruby/#{RUBY_VERSION}"
145
- google_api_client << " #{lib_name}/#{lib_version}" if lib_name
146
- google_api_client << " gapic/#{package_version} gax/#{Google::Gax::VERSION}"
147
- google_api_client << " grpc/#{GRPC::VERSION}"
148
- google_api_client.freeze
149
-
150
- headers = { :"x-goog-api-client" => google_api_client }
151
- headers.merge!(metadata) unless metadata.nil?
152
- client_config_file = Pathname.new(__dir__).join(
153
- "debugger2_client_config.json"
154
- )
155
- defaults = client_config_file.open do |f|
156
- Google::Gax.construct_settings(
157
- "google.devtools.clouddebugger.v2.Debugger2",
158
- JSON.parse(f.read),
159
- client_config,
160
- Google::Gax::Grpc::STATUS_CODE_NAMES,
161
- timeout,
162
- errors: Google::Gax::Grpc::API_ERRORS,
163
- metadata: headers
164
- )
165
- end
166
-
167
- # Allow overriding the service path/port in subclasses.
168
- service_path = service_address || self.class::SERVICE_ADDRESS
169
- port = service_port || self.class::DEFAULT_SERVICE_PORT
170
- interceptors = self.class::GRPC_INTERCEPTORS
171
- @debugger2_stub = Google::Gax::Grpc.create_stub(
172
- service_path,
173
- port,
174
- chan_creds: chan_creds,
175
- channel: channel,
176
- updater_proc: updater_proc,
177
- scopes: scopes,
178
- interceptors: interceptors,
179
- &Google::Devtools::Clouddebugger::V2::Debugger2::Stub.method(:new)
180
- )
181
-
182
- @delete_breakpoint = Google::Gax.create_api_call(
183
- @debugger2_stub.method(:delete_breakpoint),
184
- defaults["delete_breakpoint"],
185
- exception_transformer: exception_transformer
186
- )
187
- @set_breakpoint = Google::Gax.create_api_call(
188
- @debugger2_stub.method(:set_breakpoint),
189
- defaults["set_breakpoint"],
190
- exception_transformer: exception_transformer,
191
- params_extractor: proc do |request|
192
- {'debuggee_id' => request.debuggee_id}
193
- end
194
- )
195
- @get_breakpoint = Google::Gax.create_api_call(
196
- @debugger2_stub.method(:get_breakpoint),
197
- defaults["get_breakpoint"],
198
- exception_transformer: exception_transformer
199
- )
200
- @list_breakpoints = Google::Gax.create_api_call(
201
- @debugger2_stub.method(:list_breakpoints),
202
- defaults["list_breakpoints"],
203
- exception_transformer: exception_transformer,
204
- params_extractor: proc do |request|
205
- {'debuggee_id' => request.debuggee_id}
206
- end
207
- )
208
- @list_debuggees = Google::Gax.create_api_call(
209
- @debugger2_stub.method(:list_debuggees),
210
- defaults["list_debuggees"],
211
- exception_transformer: exception_transformer
212
- )
213
- end
214
-
215
- # Service calls
216
-
217
- # Deletes the breakpoint from the debuggee.
218
- #
219
- # @param debuggee_id [String]
220
- # Required. ID of the debuggee whose breakpoint to delete.
221
- # @param breakpoint_id [String]
222
- # Required. ID of the breakpoint to delete.
223
- # @param client_version [String]
224
- # Required. The client version making the call.
225
- # Schema: `domain/type/version` (e.g., `google.com/intellij/v1`).
226
- # @param options [Google::Gax::CallOptions]
227
- # Overrides the default settings for this call, e.g, timeout,
228
- # retries, etc.
229
- # @yield [result, operation] Access the result along with the RPC operation
230
- # @yieldparam result []
231
- # @yieldparam operation [GRPC::ActiveCall::Operation]
232
- # @raise [Google::Gax::GaxError] if the RPC is aborted.
233
- # @example
234
- # require "google/cloud/debugger/v2"
235
- #
236
- # debugger2_client = Google::Cloud::Debugger::V2::Debugger2.new
237
- #
238
- # # TODO: Initialize `debuggee_id`:
239
- # debuggee_id = ''
240
- #
241
- # # TODO: Initialize `breakpoint_id`:
242
- # breakpoint_id = ''
243
- #
244
- # # TODO: Initialize `client_version`:
245
- # client_version = ''
246
- # debugger2_client.delete_breakpoint(debuggee_id, breakpoint_id, client_version)
247
-
248
- def delete_breakpoint \
249
- debuggee_id,
250
- breakpoint_id,
251
- client_version,
252
- options: nil,
253
- &block
254
- req = {
255
- debuggee_id: debuggee_id,
256
- breakpoint_id: breakpoint_id,
257
- client_version: client_version
258
- }.delete_if { |_, v| v.nil? }
259
- req = Google::Gax::to_proto(req, Google::Devtools::Clouddebugger::V2::DeleteBreakpointRequest)
260
- @delete_breakpoint.call(req, options, &block)
261
- nil
262
- end
263
-
264
- # Sets the breakpoint to the debuggee.
265
- #
266
- # @param debuggee_id [String]
267
- # Required. ID of the debuggee where the breakpoint is to be set.
268
- # @param breakpoint [Google::Devtools::Clouddebugger::V2::Breakpoint | Hash]
269
- # Required. Breakpoint specification to set.
270
- # The field `location` of the breakpoint must be set.
271
- # A hash of the same form as `Google::Devtools::Clouddebugger::V2::Breakpoint`
272
- # can also be provided.
273
- # @param client_version [String]
274
- # Required. The client version making the call.
275
- # Schema: `domain/type/version` (e.g., `google.com/intellij/v1`).
276
- # @param options [Google::Gax::CallOptions]
277
- # Overrides the default settings for this call, e.g, timeout,
278
- # retries, etc.
279
- # @yield [result, operation] Access the result along with the RPC operation
280
- # @yieldparam result [Google::Devtools::Clouddebugger::V2::SetBreakpointResponse]
281
- # @yieldparam operation [GRPC::ActiveCall::Operation]
282
- # @return [Google::Devtools::Clouddebugger::V2::SetBreakpointResponse]
283
- # @raise [Google::Gax::GaxError] if the RPC is aborted.
284
- # @example
285
- # require "google/cloud/debugger/v2"
286
- #
287
- # debugger2_client = Google::Cloud::Debugger::V2::Debugger2.new
288
- #
289
- # # TODO: Initialize `debuggee_id`:
290
- # debuggee_id = ''
291
- #
292
- # # TODO: Initialize `breakpoint`:
293
- # breakpoint = {}
294
- #
295
- # # TODO: Initialize `client_version`:
296
- # client_version = ''
297
- # response = debugger2_client.set_breakpoint(debuggee_id, breakpoint, client_version)
298
-
299
- def set_breakpoint \
300
- debuggee_id,
301
- breakpoint,
302
- client_version,
303
- options: nil,
304
- &block
305
- req = {
306
- debuggee_id: debuggee_id,
307
- breakpoint: breakpoint,
308
- client_version: client_version
309
- }.delete_if { |_, v| v.nil? }
310
- req = Google::Gax::to_proto(req, Google::Devtools::Clouddebugger::V2::SetBreakpointRequest)
311
- @set_breakpoint.call(req, options, &block)
312
- end
313
-
314
- # Gets breakpoint information.
315
- #
316
- # @param debuggee_id [String]
317
- # Required. ID of the debuggee whose breakpoint to get.
318
- # @param breakpoint_id [String]
319
- # Required. ID of the breakpoint to get.
320
- # @param client_version [String]
321
- # Required. The client version making the call.
322
- # Schema: `domain/type/version` (e.g., `google.com/intellij/v1`).
323
- # @param options [Google::Gax::CallOptions]
324
- # Overrides the default settings for this call, e.g, timeout,
325
- # retries, etc.
326
- # @yield [result, operation] Access the result along with the RPC operation
327
- # @yieldparam result [Google::Devtools::Clouddebugger::V2::GetBreakpointResponse]
328
- # @yieldparam operation [GRPC::ActiveCall::Operation]
329
- # @return [Google::Devtools::Clouddebugger::V2::GetBreakpointResponse]
330
- # @raise [Google::Gax::GaxError] if the RPC is aborted.
331
- # @example
332
- # require "google/cloud/debugger/v2"
333
- #
334
- # debugger2_client = Google::Cloud::Debugger::V2::Debugger2.new
335
- #
336
- # # TODO: Initialize `debuggee_id`:
337
- # debuggee_id = ''
338
- #
339
- # # TODO: Initialize `breakpoint_id`:
340
- # breakpoint_id = ''
341
- #
342
- # # TODO: Initialize `client_version`:
343
- # client_version = ''
344
- # response = debugger2_client.get_breakpoint(debuggee_id, breakpoint_id, client_version)
345
-
346
- def get_breakpoint \
347
- debuggee_id,
348
- breakpoint_id,
349
- client_version,
350
- options: nil,
351
- &block
352
- req = {
353
- debuggee_id: debuggee_id,
354
- breakpoint_id: breakpoint_id,
355
- client_version: client_version
356
- }.delete_if { |_, v| v.nil? }
357
- req = Google::Gax::to_proto(req, Google::Devtools::Clouddebugger::V2::GetBreakpointRequest)
358
- @get_breakpoint.call(req, options, &block)
359
- end
360
-
361
- # Lists all breakpoints for the debuggee.
362
- #
363
- # @param debuggee_id [String]
364
- # Required. ID of the debuggee whose breakpoints to list.
365
- # @param client_version [String]
366
- # Required. The client version making the call.
367
- # Schema: `domain/type/version` (e.g., `google.com/intellij/v1`).
368
- # @param include_all_users [true, false]
369
- # When set to `true`, the response includes the list of breakpoints set by
370
- # any user. Otherwise, it includes only breakpoints set by the caller.
371
- # @param include_inactive [true, false]
372
- # When set to `true`, the response includes active and inactive
373
- # breakpoints. Otherwise, it includes only active breakpoints.
374
- # @param action [Google::Devtools::Clouddebugger::V2::ListBreakpointsRequest::BreakpointActionValue | Hash]
375
- # When set, the response includes only breakpoints with the specified action.
376
- # A hash of the same form as `Google::Devtools::Clouddebugger::V2::ListBreakpointsRequest::BreakpointActionValue`
377
- # can also be provided.
378
- # @param strip_results [true, false]
379
- # This field is deprecated. The following fields are always stripped out of
380
- # the result: `stack_frames`, `evaluated_expressions` and `variable_table`.
381
- # @param wait_token [String]
382
- # A wait token that, if specified, blocks the call until the breakpoints
383
- # list has changed, or a server selected timeout has expired. The value
384
- # should be set from the last response. The error code
385
- # `google.rpc.Code.ABORTED` (RPC) is returned on wait timeout, which
386
- # should be called again with the same `wait_token`.
387
- # @param options [Google::Gax::CallOptions]
388
- # Overrides the default settings for this call, e.g, timeout,
389
- # retries, etc.
390
- # @yield [result, operation] Access the result along with the RPC operation
391
- # @yieldparam result [Google::Devtools::Clouddebugger::V2::ListBreakpointsResponse]
392
- # @yieldparam operation [GRPC::ActiveCall::Operation]
393
- # @return [Google::Devtools::Clouddebugger::V2::ListBreakpointsResponse]
394
- # @raise [Google::Gax::GaxError] if the RPC is aborted.
395
- # @example
396
- # require "google/cloud/debugger/v2"
397
- #
398
- # debugger2_client = Google::Cloud::Debugger::V2::Debugger2.new
399
- #
400
- # # TODO: Initialize `debuggee_id`:
401
- # debuggee_id = ''
402
- #
403
- # # TODO: Initialize `client_version`:
404
- # client_version = ''
405
- # response = debugger2_client.list_breakpoints(debuggee_id, client_version)
406
-
407
- def list_breakpoints \
408
- debuggee_id,
409
- client_version,
410
- include_all_users: nil,
411
- include_inactive: nil,
412
- action: nil,
413
- strip_results: nil,
414
- wait_token: nil,
415
- options: nil,
416
- &block
417
- req = {
418
- debuggee_id: debuggee_id,
419
- client_version: client_version,
420
- include_all_users: include_all_users,
421
- include_inactive: include_inactive,
422
- action: action,
423
- strip_results: strip_results,
424
- wait_token: wait_token
425
- }.delete_if { |_, v| v.nil? }
426
- req = Google::Gax::to_proto(req, Google::Devtools::Clouddebugger::V2::ListBreakpointsRequest)
427
- @list_breakpoints.call(req, options, &block)
428
- end
429
-
430
- # Lists all the debuggees that the user has access to.
431
- #
432
- # @param project [String]
433
- # Required. Project number of a Google Cloud project whose debuggees to list.
434
- # @param client_version [String]
435
- # Required. The client version making the call.
436
- # Schema: `domain/type/version` (e.g., `google.com/intellij/v1`).
437
- # @param include_inactive [true, false]
438
- # When set to `true`, the result includes all debuggees. Otherwise, the
439
- # result includes only debuggees that are active.
440
- # @param options [Google::Gax::CallOptions]
441
- # Overrides the default settings for this call, e.g, timeout,
442
- # retries, etc.
443
- # @yield [result, operation] Access the result along with the RPC operation
444
- # @yieldparam result [Google::Devtools::Clouddebugger::V2::ListDebuggeesResponse]
445
- # @yieldparam operation [GRPC::ActiveCall::Operation]
446
- # @return [Google::Devtools::Clouddebugger::V2::ListDebuggeesResponse]
447
- # @raise [Google::Gax::GaxError] if the RPC is aborted.
448
- # @example
449
- # require "google/cloud/debugger/v2"
450
- #
451
- # debugger2_client = Google::Cloud::Debugger::V2::Debugger2.new
452
- #
453
- # # TODO: Initialize `project`:
454
- # project = ''
455
- #
456
- # # TODO: Initialize `client_version`:
457
- # client_version = ''
458
- # response = debugger2_client.list_debuggees(project, client_version)
459
-
460
- def list_debuggees \
461
- project,
462
- client_version,
463
- include_inactive: nil,
464
- options: nil,
465
- &block
466
- req = {
467
- project: project,
468
- client_version: client_version,
469
- include_inactive: include_inactive
470
- }.delete_if { |_, v| v.nil? }
471
- req = Google::Gax::to_proto(req, Google::Devtools::Clouddebugger::V2::ListDebuggeesRequest)
472
- @list_debuggees.call(req, options, &block)
473
- end
474
- end
475
- end
476
- end
477
- end
478
- end