google-cloud-debugger 0.35.1 → 0.36.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: 1272f5fce54e43e739353ec21554ed97127b0f730b3dc769ef8c2c0ccad4baa8
4
- data.tar.gz: 87704356330bbee47099700009e15065954c88fb8754a8c4c9816b7f9f728654
3
+ metadata.gz: f48f60bfac19b01bf730298af7c8b9aa4b69904ceef59e701425e0968243a7e0
4
+ data.tar.gz: 3bb6fb7c0ecb3c8dc171a12e1c42f5fb42da135362d3579658682f018b3b8a17
5
5
  SHA512:
6
- metadata.gz: 919d09cd0e2cbcdaaddc686991afa6649604c6051177e2613dd0697694a8eabd648e39b09c9106034364f61ceb71a33467799b7af60b738d38ff612e9f1a3615
7
- data.tar.gz: 2b606d56e690ef932b4988d8a300334a77395068c76d25a1b2be7dda9632e5a17e7409c012d745b04a0a9f026f28bad46fcf583c4cb521c9451c865b0cfad055
6
+ metadata.gz: d01a4be423f55a36ff6793884a03759392e60654a9c99d282ed18266c74dbd64767c7f4cc80ed7e010a15634bf0cfdf02c9cb1337392cc4d95cbadb77a7849f3
7
+ data.tar.gz: 2151bda590cd1406d3e7746e6823ec0e0d3f13f31e41a437c1d92c7c67050a6b4f8d823efc978135062b2eb97b8fe9f0bfb9e7fa175e3b36ebb2e390eb2c6d0b
@@ -1,5 +1,35 @@
1
1
  # Release History
2
2
 
3
+ ### 0.36.3 / 2020-07-06
4
+
5
+ #### Bug Fixes
6
+
7
+ * Fix segfaults on Ruby 2.7
8
+
9
+ ### 0.36.2 / 2020-05-28
10
+
11
+ #### Documentation
12
+
13
+ * Fix a few broken links
14
+
15
+ ### 0.36.1 / 2020-05-19
16
+
17
+ #### Bug Fixes
18
+
19
+ * Adjusted some default timeout and retry settings
20
+
21
+ ### 0.36.0 / 2020-03-11
22
+
23
+ #### Features
24
+
25
+ * Support separate project setting for quota/billing
26
+
27
+ ### 0.35.2 / 2020-01-23
28
+
29
+ #### Documentation
30
+
31
+ * Update copyright year
32
+
3
33
  ### 0.35.1 / 2019-11-06
4
34
 
5
35
  #### Bug Fixes
@@ -24,14 +24,8 @@ improved, *please* create a new issue on GitHub so we can talk about it.
24
24
 
25
25
  - [New issue][gh-ruby]
26
26
 
27
- Or, you can ask questions on the [Google Cloud Platform Slack][slack-ruby]. You
28
- can use the "ruby" channel for general Ruby questions, or use the
29
- "google-cloud-ruby" channel if you have questions about this gem in particular.
30
-
31
27
  [so-ruby]: http://stackoverflow.com/questions/tagged/google-cloud-platform+ruby+debugger
32
28
 
33
- [gh-search-ruby]: https://github.com/googlecloudplatform/google-cloud-ruby/issues?q=label%3A%22api%3A+debugger%22
34
-
35
- [gh-ruby]: https://github.com/googlecloudplatform/google-cloud-ruby/issues/new
29
+ [gh-search-ruby]: https://github.com/googleapis/google-cloud-ruby/issues?q=label%3A%22api%3A+debugger%22
36
30
 
37
- [slack-ruby]: https://gcp-slack.appspot.com/
31
+ [gh-ruby]: https://github.com/googleapis/google-cloud-ruby/issues/new
@@ -208,25 +208,19 @@ line_trace_callback(rb_event_flag_t event, VALUE data, VALUE obj, ID mid, VALUE
208
208
  static VALUE
209
209
  disable_line_trace_for_thread(VALUE thread)
210
210
  {
211
- VALUE thread_variables_hash;
212
211
  VALUE line_trace_set;
213
- ID locals_id;
214
212
  ID line_trace_thread_id;
215
- VALUE line_trace_thread_flag;
216
213
 
217
- CONST_ID(locals_id, "locals");
218
214
  CONST_ID(line_trace_thread_id, "gcloud_line_trace_set");
219
- line_trace_thread_flag = ID2SYM(line_trace_thread_id);
220
215
 
221
216
  if (!RTEST(thread)) {
222
217
  thread = rb_thread_current();
223
218
  }
224
- thread_variables_hash = rb_ivar_get(thread, locals_id);
225
- line_trace_set = rb_hash_aref(thread_variables_hash, line_trace_thread_flag);
219
+ line_trace_set = rb_ivar_get(thread, line_trace_thread_id);
226
220
 
227
221
  if (RTEST(line_trace_set)) {
228
222
  rb_thread_remove_event_hook(thread, line_trace_callback);
229
- rb_hash_aset(thread_variables_hash, line_trace_thread_flag, Qfalse);
223
+ rb_ivar_set(thread, line_trace_thread_id, Qfalse);
230
224
  }
231
225
 
232
226
  return Qnil;
@@ -241,23 +235,17 @@ static VALUE
241
235
  enable_line_trace_for_thread(VALUE self)
242
236
  {
243
237
  VALUE current_thread;
244
- VALUE thread_variables_hash;
245
238
  VALUE line_trace_set;
246
- ID locals_id;
247
239
  ID line_trace_thread_id;
248
- VALUE line_trace_thread_flag;
249
240
 
250
- CONST_ID(locals_id, "locals");
251
241
  CONST_ID(line_trace_thread_id, "gcloud_line_trace_set");
252
- line_trace_thread_flag = ID2SYM(line_trace_thread_id);
253
242
 
254
243
  current_thread = rb_thread_current();
255
- thread_variables_hash = rb_ivar_get(current_thread, locals_id);
256
- line_trace_set = rb_hash_aref(thread_variables_hash, line_trace_thread_flag);
244
+ line_trace_set = rb_ivar_get(current_thread, line_trace_thread_id);
257
245
 
258
246
  if (!RTEST(line_trace_set)) {
259
247
  rb_thread_add_event_hook(current_thread, line_trace_callback, RUBY_EVENT_LINE, self);
260
- rb_hash_aset(thread_variables_hash, line_trace_thread_flag, Qtrue);
248
+ rb_ivar_set(current_thread, line_trace_thread_id, Qtrue);
261
249
  }
262
250
 
263
251
  return Qnil;
@@ -331,25 +319,19 @@ return_trace_callback(void *data, rb_trace_arg_t *trace_arg)
331
319
  static VALUE
332
320
  disable_return_trace_for_thread(VALUE thread)
333
321
  {
334
- VALUE thread_variables_hash;
335
322
  VALUE return_trace_set;
336
- ID locals_id;
337
323
  ID return_trace_thread_id;
338
- VALUE return_trace_thread_flag;
339
324
 
340
- CONST_ID(locals_id, "locals");
341
325
  CONST_ID(return_trace_thread_id, "gcloud_return_trace_set");
342
- return_trace_thread_flag = ID2SYM(return_trace_thread_id);
343
326
 
344
327
  if (!RTEST(thread)) {
345
328
  thread = rb_thread_current();
346
329
  }
347
- thread_variables_hash = rb_ivar_get(thread, locals_id);
348
- return_trace_set = rb_hash_aref(thread_variables_hash, return_trace_thread_flag);
330
+ return_trace_set = rb_ivar_get(thread, return_trace_thread_id);
349
331
 
350
332
  if (RTEST(return_trace_set)) {
351
333
  rb_thread_remove_event_hook(thread, (rb_event_hook_func_t)return_trace_callback);
352
- rb_hash_aset(thread_variables_hash, return_trace_thread_flag, Qfalse);
334
+ rb_ivar_set(thread, return_trace_thread_id, Qfalse);
353
335
  }
354
336
 
355
337
  return Qnil;
@@ -364,24 +346,17 @@ static VALUE
364
346
  enable_return_trace_for_thread(VALUE self)
365
347
  {
366
348
  VALUE current_thread;
367
- VALUE thread_variables_hash;
368
349
  VALUE return_trace_set;
369
-
370
- ID locals_id;
371
350
  ID return_trace_thread_id;
372
- VALUE return_trace_thread_flag;
373
351
 
374
- CONST_ID(locals_id, "locals");
375
352
  CONST_ID(return_trace_thread_id, "gcloud_return_trace_set");
376
- return_trace_thread_flag = ID2SYM(return_trace_thread_id);
377
353
 
378
354
  current_thread = rb_thread_current();
379
- thread_variables_hash = rb_ivar_get(current_thread, locals_id);
380
- return_trace_set = rb_hash_aref(thread_variables_hash, return_trace_thread_flag);
355
+ return_trace_set = rb_ivar_get(current_thread, return_trace_thread_id);
381
356
 
382
357
  if (!RTEST(return_trace_set)) {
383
358
  rb_thread_add_event_hook2(current_thread, (rb_event_hook_func_t)return_trace_callback, RETURN_TRACEPOINT_EVENTS, self, RUBY_EVENT_HOOK_FLAG_RAW_ARG | RUBY_EVENT_HOOK_FLAG_SAFE);
384
- rb_hash_aset(thread_variables_hash, return_trace_thread_flag, Qtrue);
359
+ rb_ivar_set(current_thread, return_trace_thread_id, Qtrue);
385
360
  }
386
361
 
387
362
  return Qnil;
@@ -89,7 +89,7 @@ module Google
89
89
  ##
90
90
  # @private Predefined regex. Saves time during runtime.
91
91
  FUNC_CALL_FLAG_BLACKLIST_REGEX =
92
- /<callinfo!.+#{FUNC_CALL_FLAG_BLACKLIST.join '|'}/.freeze
92
+ /<call(info|data)!.+#{FUNC_CALL_FLAG_BLACKLIST.join '|'}/.freeze
93
93
 
94
94
  ##
95
95
  # @private Predefined regex. Saves time during runtime.
@@ -1,4 +1,4 @@
1
- # Copyright 2019 Google LLC
1
+ # Copyright 2020 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -22,7 +22,7 @@ module Google
22
22
  # rubocop:disable LineLength
23
23
 
24
24
  ##
25
- # # Ruby Client for Stackdriver Debugger API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
25
+ # # Ruby Client for Stackdriver Debugger API
26
26
  #
27
27
  # [Stackdriver Debugger API][Product Documentation]:
28
28
  # Examines the call stack and variables of a running application without
@@ -1,4 +1,4 @@
1
- # Copyright 2019 Google LLC
1
+ # Copyright 2020 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -156,6 +156,9 @@ module Google
156
156
  google_api_client.freeze
157
157
 
158
158
  headers = { :"x-goog-api-client" => google_api_client }
159
+ if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
160
+ headers[:"x-goog-user-project"] = credentials.quota_project_id
161
+ end
159
162
  headers.merge!(metadata) unless metadata.nil?
160
163
  client_config_file = Pathname.new(__dir__).join(
161
164
  "controller2_client_config.json"
@@ -13,9 +13,9 @@
13
13
  "initial_retry_delay_millis": 100,
14
14
  "retry_delay_multiplier": 1.3,
15
15
  "max_retry_delay_millis": 60000,
16
- "initial_rpc_timeout_millis": 20000,
16
+ "initial_rpc_timeout_millis": 60000,
17
17
  "rpc_timeout_multiplier": 1.0,
18
- "max_rpc_timeout_millis": 20000,
18
+ "max_rpc_timeout_millis": 60000,
19
19
  "total_timeout_millis": 600000
20
20
  }
21
21
  },
@@ -1,4 +1,4 @@
1
- # Copyright 2019 Google LLC
1
+ # Copyright 2020 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2019 Google LLC
1
+ # Copyright 2020 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -148,6 +148,9 @@ module Google
148
148
  google_api_client.freeze
149
149
 
150
150
  headers = { :"x-goog-api-client" => google_api_client }
151
+ if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
152
+ headers[:"x-goog-user-project"] = credentials.quota_project_id
153
+ end
151
154
  headers.merge!(metadata) unless metadata.nil?
152
155
  client_config_file = Pathname.new(__dir__).join(
153
156
  "debugger2_client_config.json"
@@ -13,9 +13,9 @@
13
13
  "initial_retry_delay_millis": 100,
14
14
  "retry_delay_multiplier": 1.3,
15
15
  "max_retry_delay_millis": 60000,
16
- "initial_rpc_timeout_millis": 20000,
16
+ "initial_rpc_timeout_millis": 60000,
17
17
  "rpc_timeout_multiplier": 1.0,
18
- "max_rpc_timeout_millis": 20000,
18
+ "max_rpc_timeout_millis": 60000,
19
19
  "total_timeout_millis": 600000
20
20
  }
21
21
  },
@@ -1,4 +1,4 @@
1
- # Copyright 2019 Google LLC
1
+ # Copyright 2020 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2019 Google LLC
1
+ # Copyright 2020 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2019 Google LLC
1
+ # Copyright 2020 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2019 Google LLC
1
+ # Copyright 2020 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2019 Google LLC
1
+ # Copyright 2020 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2019 Google LLC
1
+ # Copyright 2020 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Debugger
19
- VERSION = "0.35.1".freeze
19
+ VERSION = "0.36.3".freeze
20
20
  end
21
21
  end
22
22
  end
@@ -37,14 +37,14 @@ end
37
37
  module Google
38
38
  module Devtools
39
39
  module Clouddebugger
40
- module V2
41
- RegisterDebuggeeRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.RegisterDebuggeeRequest").msgclass
42
- RegisterDebuggeeResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.RegisterDebuggeeResponse").msgclass
43
- ListActiveBreakpointsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.ListActiveBreakpointsRequest").msgclass
44
- ListActiveBreakpointsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.ListActiveBreakpointsResponse").msgclass
45
- UpdateActiveBreakpointRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.UpdateActiveBreakpointRequest").msgclass
46
- UpdateActiveBreakpointResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.UpdateActiveBreakpointResponse").msgclass
47
- end
48
40
  end
49
41
  end
50
42
  end
43
+ module Google::Devtools::Clouddebugger::V2
44
+ RegisterDebuggeeRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.RegisterDebuggeeRequest").msgclass
45
+ RegisterDebuggeeResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.RegisterDebuggeeResponse").msgclass
46
+ ListActiveBreakpointsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.ListActiveBreakpointsRequest").msgclass
47
+ ListActiveBreakpointsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.ListActiveBreakpointsResponse").msgclass
48
+ UpdateActiveBreakpointRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.UpdateActiveBreakpointRequest").msgclass
49
+ UpdateActiveBreakpointResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.UpdateActiveBreakpointResponse").msgclass
50
+ end
@@ -1,5 +1,5 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: google/devtools/clouddebugger/v2/controller.proto for package 'google.devtools.clouddebugger.v2'
2
+ # Source: google/devtools/clouddebugger/v2/controller.proto for package 'Google::Cloud::Debugger::V2'
3
3
  # Original file comments:
4
4
  # Copyright 2019 Google LLC.
5
5
  #
@@ -24,75 +24,75 @@ require 'google/devtools/clouddebugger/v2/controller_pb'
24
24
  module Google
25
25
  module Devtools
26
26
  module Clouddebugger
27
- module V2
28
- module Controller2
29
- # The Controller service provides the API for orchestrating a collection of
30
- # debugger agents to perform debugging tasks. These agents are each attached
31
- # to a process of an application which may include one or more replicas.
32
- #
33
- # The debugger agents register with the Controller to identify the application
34
- # being debugged, the Debuggee. All agents that register with the same data,
35
- # represent the same Debuggee, and are assigned the same `debuggee_id`.
36
- #
37
- # The debugger agents call the Controller to retrieve the list of active
38
- # Breakpoints. Agents with the same `debuggee_id` get the same breakpoints
39
- # list. An agent that can fulfill the breakpoint request updates the
40
- # Controller with the breakpoint result. The controller selects the first
41
- # result received and discards the rest of the results.
42
- # Agents that poll again for active breakpoints will no longer have
43
- # the completed breakpoint in the list and should remove that breakpoint from
44
- # their attached process.
45
- #
46
- # The Controller service does not provide a way to retrieve the results of
47
- # a completed breakpoint. This functionality is available using the Debugger
48
- # service.
49
- class Service
50
-
51
- include GRPC::GenericService
27
+ end
28
+ end
29
+ end
30
+ module Google::Devtools::Clouddebugger::V2
31
+ module Controller2
32
+ # The Controller service provides the API for orchestrating a collection of
33
+ # debugger agents to perform debugging tasks. These agents are each attached
34
+ # to a process of an application which may include one or more replicas.
35
+ #
36
+ # The debugger agents register with the Controller to identify the application
37
+ # being debugged, the Debuggee. All agents that register with the same data,
38
+ # represent the same Debuggee, and are assigned the same `debuggee_id`.
39
+ #
40
+ # The debugger agents call the Controller to retrieve the list of active
41
+ # Breakpoints. Agents with the same `debuggee_id` get the same breakpoints
42
+ # list. An agent that can fulfill the breakpoint request updates the
43
+ # Controller with the breakpoint result. The controller selects the first
44
+ # result received and discards the rest of the results.
45
+ # Agents that poll again for active breakpoints will no longer have
46
+ # the completed breakpoint in the list and should remove that breakpoint from
47
+ # their attached process.
48
+ #
49
+ # The Controller service does not provide a way to retrieve the results of
50
+ # a completed breakpoint. This functionality is available using the Debugger
51
+ # service.
52
+ class Service
52
53
 
53
- self.marshal_class_method = :encode
54
- self.unmarshal_class_method = :decode
55
- self.service_name = 'google.devtools.clouddebugger.v2.Controller2'
54
+ include GRPC::GenericService
56
55
 
57
- # Registers the debuggee with the controller service.
58
- #
59
- # All agents attached to the same application must call this method with
60
- # exactly the same request content to get back the same stable `debuggee_id`.
61
- # Agents should call this method again whenever `google.rpc.Code.NOT_FOUND`
62
- # is returned from any controller method.
63
- #
64
- # This protocol allows the controller service to disable debuggees, recover
65
- # from data loss, or change the `debuggee_id` format. Agents must handle
66
- # `debuggee_id` value changing upon re-registration.
67
- rpc :RegisterDebuggee, RegisterDebuggeeRequest, RegisterDebuggeeResponse
68
- # Returns the list of all active breakpoints for the debuggee.
69
- #
70
- # The breakpoint specification (`location`, `condition`, and `expressions`
71
- # fields) is semantically immutable, although the field values may
72
- # change. For example, an agent may update the location line number
73
- # to reflect the actual line where the breakpoint was set, but this
74
- # doesn't change the breakpoint semantics.
75
- #
76
- # This means that an agent does not need to check if a breakpoint has changed
77
- # when it encounters the same breakpoint on a successive call.
78
- # Moreover, an agent should remember the breakpoints that are completed
79
- # until the controller removes them from the active list to avoid
80
- # setting those breakpoints again.
81
- rpc :ListActiveBreakpoints, ListActiveBreakpointsRequest, ListActiveBreakpointsResponse
82
- # Updates the breakpoint state or mutable fields.
83
- # The entire Breakpoint message must be sent back to the controller service.
84
- #
85
- # Updates to active breakpoint fields are only allowed if the new value
86
- # does not change the breakpoint specification. Updates to the `location`,
87
- # `condition` and `expressions` fields should not alter the breakpoint
88
- # semantics. These may only make changes such as canonicalizing a value
89
- # or snapping the location to the correct line of code.
90
- rpc :UpdateActiveBreakpoint, UpdateActiveBreakpointRequest, UpdateActiveBreakpointResponse
91
- end
56
+ self.marshal_class_method = :encode
57
+ self.unmarshal_class_method = :decode
58
+ self.service_name = 'google.devtools.clouddebugger.v2.Controller2'
92
59
 
93
- Stub = Service.rpc_stub_class
94
- end
95
- end
60
+ # Registers the debuggee with the controller service.
61
+ #
62
+ # All agents attached to the same application must call this method with
63
+ # exactly the same request content to get back the same stable `debuggee_id`.
64
+ # Agents should call this method again whenever `google.rpc.Code.NOT_FOUND`
65
+ # is returned from any controller method.
66
+ #
67
+ # This protocol allows the controller service to disable debuggees, recover
68
+ # from data loss, or change the `debuggee_id` format. Agents must handle
69
+ # `debuggee_id` value changing upon re-registration.
70
+ rpc :RegisterDebuggee, RegisterDebuggeeRequest, RegisterDebuggeeResponse
71
+ # Returns the list of all active breakpoints for the debuggee.
72
+ #
73
+ # The breakpoint specification (`location`, `condition`, and `expressions`
74
+ # fields) is semantically immutable, although the field values may
75
+ # change. For example, an agent may update the location line number
76
+ # to reflect the actual line where the breakpoint was set, but this
77
+ # doesn't change the breakpoint semantics.
78
+ #
79
+ # This means that an agent does not need to check if a breakpoint has changed
80
+ # when it encounters the same breakpoint on a successive call.
81
+ # Moreover, an agent should remember the breakpoints that are completed
82
+ # until the controller removes them from the active list to avoid
83
+ # setting those breakpoints again.
84
+ rpc :ListActiveBreakpoints, ListActiveBreakpointsRequest, ListActiveBreakpointsResponse
85
+ # Updates the breakpoint state or mutable fields.
86
+ # The entire Breakpoint message must be sent back to the controller service.
87
+ #
88
+ # Updates to active breakpoint fields are only allowed if the new value
89
+ # does not change the breakpoint specification. Updates to the `location`,
90
+ # `condition` and `expressions` fields should not alter the breakpoint
91
+ # semantics. These may only make changes such as canonicalizing a value
92
+ # or snapping the location to the correct line of code.
93
+ rpc :UpdateActiveBreakpoint, UpdateActiveBreakpointRequest, UpdateActiveBreakpointResponse
96
94
  end
95
+
96
+ Stub = Service.rpc_stub_class
97
97
  end
98
98
  end
@@ -91,18 +91,18 @@ end
91
91
  module Google
92
92
  module Devtools
93
93
  module Clouddebugger
94
- module V2
95
- FormatMessage = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.FormatMessage").msgclass
96
- StatusMessage = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.StatusMessage").msgclass
97
- StatusMessage::Reference = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.StatusMessage.Reference").enummodule
98
- SourceLocation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.SourceLocation").msgclass
99
- Variable = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.Variable").msgclass
100
- StackFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.StackFrame").msgclass
101
- Breakpoint = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.Breakpoint").msgclass
102
- Breakpoint::Action = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.Breakpoint.Action").enummodule
103
- Breakpoint::LogLevel = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.Breakpoint.LogLevel").enummodule
104
- Debuggee = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.Debuggee").msgclass
105
- end
106
94
  end
107
95
  end
108
96
  end
97
+ module Google::Devtools::Clouddebugger::V2
98
+ FormatMessage = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.FormatMessage").msgclass
99
+ StatusMessage = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.StatusMessage").msgclass
100
+ StatusMessage::Reference = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.StatusMessage.Reference").enummodule
101
+ SourceLocation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.SourceLocation").msgclass
102
+ Variable = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.Variable").msgclass
103
+ StackFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.StackFrame").msgclass
104
+ Breakpoint = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.Breakpoint").msgclass
105
+ Breakpoint::Action = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.Breakpoint.Action").enummodule
106
+ Breakpoint::LogLevel = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.Breakpoint.LogLevel").enummodule
107
+ Debuggee = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.Debuggee").msgclass
108
+ end
@@ -60,18 +60,18 @@ end
60
60
  module Google
61
61
  module Devtools
62
62
  module Clouddebugger
63
- module V2
64
- SetBreakpointRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.SetBreakpointRequest").msgclass
65
- SetBreakpointResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.SetBreakpointResponse").msgclass
66
- GetBreakpointRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.GetBreakpointRequest").msgclass
67
- GetBreakpointResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.GetBreakpointResponse").msgclass
68
- DeleteBreakpointRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.DeleteBreakpointRequest").msgclass
69
- ListBreakpointsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.ListBreakpointsRequest").msgclass
70
- ListBreakpointsRequest::BreakpointActionValue = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.ListBreakpointsRequest.BreakpointActionValue").msgclass
71
- ListBreakpointsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.ListBreakpointsResponse").msgclass
72
- ListDebuggeesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.ListDebuggeesRequest").msgclass
73
- ListDebuggeesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.ListDebuggeesResponse").msgclass
74
- end
75
63
  end
76
64
  end
77
65
  end
66
+ module Google::Devtools::Clouddebugger::V2
67
+ SetBreakpointRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.SetBreakpointRequest").msgclass
68
+ SetBreakpointResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.SetBreakpointResponse").msgclass
69
+ GetBreakpointRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.GetBreakpointRequest").msgclass
70
+ GetBreakpointResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.GetBreakpointResponse").msgclass
71
+ DeleteBreakpointRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.DeleteBreakpointRequest").msgclass
72
+ ListBreakpointsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.ListBreakpointsRequest").msgclass
73
+ ListBreakpointsRequest::BreakpointActionValue = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.ListBreakpointsRequest.BreakpointActionValue").msgclass
74
+ ListBreakpointsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.ListBreakpointsResponse").msgclass
75
+ ListDebuggeesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.ListDebuggeesRequest").msgclass
76
+ ListDebuggeesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouddebugger.v2.ListDebuggeesResponse").msgclass
77
+ end
@@ -1,5 +1,5 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: google/devtools/clouddebugger/v2/debugger.proto for package 'google.devtools.clouddebugger.v2'
2
+ # Source: google/devtools/clouddebugger/v2/debugger.proto for package 'Google::Cloud::Debugger::V2'
3
3
  # Original file comments:
4
4
  # Copyright 2019 Google LLC.
5
5
  #
@@ -24,43 +24,43 @@ require 'google/devtools/clouddebugger/v2/debugger_pb'
24
24
  module Google
25
25
  module Devtools
26
26
  module Clouddebugger
27
- module V2
28
- module Debugger2
29
- # The Debugger service provides the API that allows users to collect run-time
30
- # information from a running application, without stopping or slowing it down
31
- # and without modifying its state. An application may include one or
32
- # more replicated processes performing the same work.
33
- #
34
- # A debugged application is represented using the Debuggee concept. The
35
- # Debugger service provides a way to query for available debuggees, but does
36
- # not provide a way to create one. A debuggee is created using the Controller
37
- # service, usually by running a debugger agent with the application.
38
- #
39
- # The Debugger service enables the client to set one or more Breakpoints on a
40
- # Debuggee and collect the results of the set Breakpoints.
41
- class Service
42
-
43
- include GRPC::GenericService
27
+ end
28
+ end
29
+ end
30
+ module Google::Devtools::Clouddebugger::V2
31
+ module Debugger2
32
+ # The Debugger service provides the API that allows users to collect run-time
33
+ # information from a running application, without stopping or slowing it down
34
+ # and without modifying its state. An application may include one or
35
+ # more replicated processes performing the same work.
36
+ #
37
+ # A debugged application is represented using the Debuggee concept. The
38
+ # Debugger service provides a way to query for available debuggees, but does
39
+ # not provide a way to create one. A debuggee is created using the Controller
40
+ # service, usually by running a debugger agent with the application.
41
+ #
42
+ # The Debugger service enables the client to set one or more Breakpoints on a
43
+ # Debuggee and collect the results of the set Breakpoints.
44
+ class Service
44
45
 
45
- self.marshal_class_method = :encode
46
- self.unmarshal_class_method = :decode
47
- self.service_name = 'google.devtools.clouddebugger.v2.Debugger2'
46
+ include GRPC::GenericService
48
47
 
49
- # Sets the breakpoint to the debuggee.
50
- rpc :SetBreakpoint, SetBreakpointRequest, SetBreakpointResponse
51
- # Gets breakpoint information.
52
- rpc :GetBreakpoint, GetBreakpointRequest, GetBreakpointResponse
53
- # Deletes the breakpoint from the debuggee.
54
- rpc :DeleteBreakpoint, DeleteBreakpointRequest, Google::Protobuf::Empty
55
- # Lists all breakpoints for the debuggee.
56
- rpc :ListBreakpoints, ListBreakpointsRequest, ListBreakpointsResponse
57
- # Lists all the debuggees that the user has access to.
58
- rpc :ListDebuggees, ListDebuggeesRequest, ListDebuggeesResponse
59
- end
48
+ self.marshal_class_method = :encode
49
+ self.unmarshal_class_method = :decode
50
+ self.service_name = 'google.devtools.clouddebugger.v2.Debugger2'
60
51
 
61
- Stub = Service.rpc_stub_class
62
- end
63
- end
52
+ # Sets the breakpoint to the debuggee.
53
+ rpc :SetBreakpoint, SetBreakpointRequest, SetBreakpointResponse
54
+ # Gets breakpoint information.
55
+ rpc :GetBreakpoint, GetBreakpointRequest, GetBreakpointResponse
56
+ # Deletes the breakpoint from the debuggee.
57
+ rpc :DeleteBreakpoint, DeleteBreakpointRequest, Google::Protobuf::Empty
58
+ # Lists all breakpoints for the debuggee.
59
+ rpc :ListBreakpoints, ListBreakpointsRequest, ListBreakpointsResponse
60
+ # Lists all the debuggees that the user has access to.
61
+ rpc :ListDebuggees, ListDebuggeesRequest, ListDebuggeesResponse
64
62
  end
63
+
64
+ Stub = Service.rpc_stub_class
65
65
  end
66
66
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-debugger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.35.1
4
+ version: 0.36.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Heng Xiong
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-07 00:00:00.000000000 Z
11
+ date: 2020-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: binding_of_caller
@@ -154,14 +154,14 @@ dependencies:
154
154
  requirements:
155
155
  - - "~>"
156
156
  - !ruby/object:Gem::Version
157
- version: '5.10'
157
+ version: '5.14'
158
158
  type: :development
159
159
  prerelease: false
160
160
  version_requirements: !ruby/object:Gem::Requirement
161
161
  requirements:
162
162
  - - "~>"
163
163
  - !ruby/object:Gem::Version
164
- version: '5.10'
164
+ version: '5.14'
165
165
  - !ruby/object:Gem::Dependency
166
166
  name: minitest-autotest
167
167
  requirement: !ruby/object:Gem::Requirement
@@ -404,7 +404,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
404
404
  - !ruby/object:Gem::Version
405
405
  version: '0'
406
406
  requirements: []
407
- rubygems_version: 3.0.6
407
+ rubygems_version: 3.1.3
408
408
  signing_key:
409
409
  specification_version: 4
410
410
  summary: API Client and instrumentation library for Stackdriver Debugger