google-apis-clouddebugger_v2 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +13 -0
- data/CHANGELOG.md +7 -0
- data/LICENSE.md +202 -0
- data/OVERVIEW.md +96 -0
- data/lib/google-apis-clouddebugger_v2.rb +15 -0
- data/lib/google/apis/clouddebugger_v2.rb +40 -0
- data/lib/google/apis/clouddebugger_v2/classes.rb +1054 -0
- data/lib/google/apis/clouddebugger_v2/gem_version.rb +28 -0
- data/lib/google/apis/clouddebugger_v2/representations.rb +470 -0
- data/lib/google/apis/clouddebugger_v2/service.rb +400 -0
- metadata +76 -0
@@ -0,0 +1,400 @@
|
|
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
|
+
# http://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
|
+
require 'google/apis/core/base_service'
|
16
|
+
require 'google/apis/core/json_representation'
|
17
|
+
require 'google/apis/core/hashable'
|
18
|
+
require 'google/apis/errors'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
module ClouddebuggerV2
|
23
|
+
# Cloud Debugger API
|
24
|
+
#
|
25
|
+
# Examines the call stack and variables of a running application without
|
26
|
+
# stopping or slowing it down.
|
27
|
+
#
|
28
|
+
# @example
|
29
|
+
# require 'google/apis/clouddebugger_v2'
|
30
|
+
#
|
31
|
+
# Clouddebugger = Google::Apis::ClouddebuggerV2 # Alias the module
|
32
|
+
# service = Clouddebugger::CloudDebuggerService.new
|
33
|
+
#
|
34
|
+
# @see https://cloud.google.com/debugger
|
35
|
+
class CloudDebuggerService < Google::Apis::Core::BaseService
|
36
|
+
# @return [String]
|
37
|
+
# API key. Your API key identifies your project and provides you with API access,
|
38
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
39
|
+
attr_accessor :key
|
40
|
+
|
41
|
+
# @return [String]
|
42
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
43
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
44
|
+
attr_accessor :quota_user
|
45
|
+
|
46
|
+
def initialize
|
47
|
+
super('https://clouddebugger.googleapis.com/', '',
|
48
|
+
client_name: 'google-apis-clouddebugger_v2',
|
49
|
+
client_version: Google::Apis::ClouddebuggerV2::GEM_VERSION)
|
50
|
+
@batch_path = 'batch'
|
51
|
+
end
|
52
|
+
|
53
|
+
# Registers the debuggee with the controller service. All agents attached to the
|
54
|
+
# same application must call this method with exactly the same request content
|
55
|
+
# to get back the same stable `debuggee_id`. Agents should call this method
|
56
|
+
# again whenever `google.rpc.Code.NOT_FOUND` is returned from any controller
|
57
|
+
# method. This protocol allows the controller service to disable debuggees,
|
58
|
+
# recover from data loss, or change the `debuggee_id` format. Agents must handle
|
59
|
+
# `debuggee_id` value changing upon re-registration.
|
60
|
+
# @param [Google::Apis::ClouddebuggerV2::RegisterDebuggeeRequest] register_debuggee_request_object
|
61
|
+
# @param [String] fields
|
62
|
+
# Selector specifying which fields to include in a partial response.
|
63
|
+
# @param [String] quota_user
|
64
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
65
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
66
|
+
# @param [Google::Apis::RequestOptions] options
|
67
|
+
# Request-specific options
|
68
|
+
#
|
69
|
+
# @yield [result, err] Result & error if block supplied
|
70
|
+
# @yieldparam result [Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse] parsed result object
|
71
|
+
# @yieldparam err [StandardError] error object if request failed
|
72
|
+
#
|
73
|
+
# @return [Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse]
|
74
|
+
#
|
75
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
76
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
77
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
78
|
+
def register_debuggee(register_debuggee_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
79
|
+
command = make_simple_command(:post, 'v2/controller/debuggees/register', options)
|
80
|
+
command.request_representation = Google::Apis::ClouddebuggerV2::RegisterDebuggeeRequest::Representation
|
81
|
+
command.request_object = register_debuggee_request_object
|
82
|
+
command.response_representation = Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse::Representation
|
83
|
+
command.response_class = Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse
|
84
|
+
command.query['fields'] = fields unless fields.nil?
|
85
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
86
|
+
execute_or_queue_command(command, &block)
|
87
|
+
end
|
88
|
+
|
89
|
+
# Returns the list of all active breakpoints for the debuggee. The breakpoint
|
90
|
+
# specification (`location`, `condition`, and `expressions` fields) is
|
91
|
+
# semantically immutable, although the field values may change. For example, an
|
92
|
+
# agent may update the location line number to reflect the actual line where the
|
93
|
+
# breakpoint was set, but this doesn't change the breakpoint semantics. This
|
94
|
+
# means that an agent does not need to check if a breakpoint has changed when it
|
95
|
+
# encounters the same breakpoint on a successive call. Moreover, an agent should
|
96
|
+
# remember the breakpoints that are completed until the controller removes them
|
97
|
+
# from the active list to avoid setting those breakpoints again.
|
98
|
+
# @param [String] debuggee_id
|
99
|
+
# Required. Identifies the debuggee.
|
100
|
+
# @param [String] agent_id
|
101
|
+
# Identifies the agent. This is the ID returned in the RegisterDebuggee response.
|
102
|
+
# @param [Boolean] success_on_timeout
|
103
|
+
# If set to `true` (recommended), returns `google.rpc.Code.OK` status and sets
|
104
|
+
# the `wait_expired` response field to `true` when the server-selected timeout
|
105
|
+
# has expired. If set to `false` (deprecated), returns `google.rpc.Code.ABORTED`
|
106
|
+
# status when the server-selected timeout has expired.
|
107
|
+
# @param [String] wait_token
|
108
|
+
# A token that, if specified, blocks the method call until the list of active
|
109
|
+
# breakpoints has changed, or a server-selected timeout has expired. The value
|
110
|
+
# should be set from the `next_wait_token` field in the last response. The
|
111
|
+
# initial value should be set to `"init"`.
|
112
|
+
# @param [String] fields
|
113
|
+
# Selector specifying which fields to include in a partial response.
|
114
|
+
# @param [String] quota_user
|
115
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
116
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
117
|
+
# @param [Google::Apis::RequestOptions] options
|
118
|
+
# Request-specific options
|
119
|
+
#
|
120
|
+
# @yield [result, err] Result & error if block supplied
|
121
|
+
# @yieldparam result [Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse] parsed result object
|
122
|
+
# @yieldparam err [StandardError] error object if request failed
|
123
|
+
#
|
124
|
+
# @return [Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse]
|
125
|
+
#
|
126
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
127
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
128
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
129
|
+
def list_controller_debuggee_breakpoints(debuggee_id, agent_id: nil, success_on_timeout: nil, wait_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
130
|
+
command = make_simple_command(:get, 'v2/controller/debuggees/{debuggeeId}/breakpoints', options)
|
131
|
+
command.response_representation = Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse::Representation
|
132
|
+
command.response_class = Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse
|
133
|
+
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
|
134
|
+
command.query['agentId'] = agent_id unless agent_id.nil?
|
135
|
+
command.query['successOnTimeout'] = success_on_timeout unless success_on_timeout.nil?
|
136
|
+
command.query['waitToken'] = wait_token unless wait_token.nil?
|
137
|
+
command.query['fields'] = fields unless fields.nil?
|
138
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
139
|
+
execute_or_queue_command(command, &block)
|
140
|
+
end
|
141
|
+
|
142
|
+
# Updates the breakpoint state or mutable fields. The entire Breakpoint message
|
143
|
+
# must be sent back to the controller service. Updates to active breakpoint
|
144
|
+
# fields are only allowed if the new value does not change the breakpoint
|
145
|
+
# specification. Updates to the `location`, `condition` and `expressions` fields
|
146
|
+
# should not alter the breakpoint semantics. These may only make changes such as
|
147
|
+
# canonicalizing a value or snapping the location to the correct line of code.
|
148
|
+
# @param [String] debuggee_id
|
149
|
+
# Required. Identifies the debuggee being debugged.
|
150
|
+
# @param [String] id
|
151
|
+
# Breakpoint identifier, unique in the scope of the debuggee.
|
152
|
+
# @param [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointRequest] update_active_breakpoint_request_object
|
153
|
+
# @param [String] fields
|
154
|
+
# Selector specifying which fields to include in a partial response.
|
155
|
+
# @param [String] quota_user
|
156
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
157
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
158
|
+
# @param [Google::Apis::RequestOptions] options
|
159
|
+
# Request-specific options
|
160
|
+
#
|
161
|
+
# @yield [result, err] Result & error if block supplied
|
162
|
+
# @yieldparam result [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse] parsed result object
|
163
|
+
# @yieldparam err [StandardError] error object if request failed
|
164
|
+
#
|
165
|
+
# @return [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse]
|
166
|
+
#
|
167
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
168
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
169
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
170
|
+
def update_active_breakpoint(debuggee_id, id, update_active_breakpoint_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
171
|
+
command = make_simple_command(:put, 'v2/controller/debuggees/{debuggeeId}/breakpoints/{id}', options)
|
172
|
+
command.request_representation = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointRequest::Representation
|
173
|
+
command.request_object = update_active_breakpoint_request_object
|
174
|
+
command.response_representation = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse::Representation
|
175
|
+
command.response_class = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse
|
176
|
+
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
|
177
|
+
command.params['id'] = id unless id.nil?
|
178
|
+
command.query['fields'] = fields unless fields.nil?
|
179
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
180
|
+
execute_or_queue_command(command, &block)
|
181
|
+
end
|
182
|
+
|
183
|
+
# Lists all the debuggees that the user has access to.
|
184
|
+
# @param [String] client_version
|
185
|
+
# Required. The client version making the call. Schema: `domain/type/version` (e.
|
186
|
+
# g., `google.com/intellij/v1`).
|
187
|
+
# @param [Boolean] include_inactive
|
188
|
+
# When set to `true`, the result includes all debuggees. Otherwise, the result
|
189
|
+
# includes only debuggees that are active.
|
190
|
+
# @param [String] project
|
191
|
+
# Required. Project number of a Google Cloud project whose debuggees to list.
|
192
|
+
# @param [String] fields
|
193
|
+
# Selector specifying which fields to include in a partial response.
|
194
|
+
# @param [String] quota_user
|
195
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
196
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
197
|
+
# @param [Google::Apis::RequestOptions] options
|
198
|
+
# Request-specific options
|
199
|
+
#
|
200
|
+
# @yield [result, err] Result & error if block supplied
|
201
|
+
# @yieldparam result [Google::Apis::ClouddebuggerV2::ListDebuggeesResponse] parsed result object
|
202
|
+
# @yieldparam err [StandardError] error object if request failed
|
203
|
+
#
|
204
|
+
# @return [Google::Apis::ClouddebuggerV2::ListDebuggeesResponse]
|
205
|
+
#
|
206
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
207
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
208
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
209
|
+
def list_debugger_debuggees(client_version: nil, include_inactive: nil, project: nil, fields: nil, quota_user: nil, options: nil, &block)
|
210
|
+
command = make_simple_command(:get, 'v2/debugger/debuggees', options)
|
211
|
+
command.response_representation = Google::Apis::ClouddebuggerV2::ListDebuggeesResponse::Representation
|
212
|
+
command.response_class = Google::Apis::ClouddebuggerV2::ListDebuggeesResponse
|
213
|
+
command.query['clientVersion'] = client_version unless client_version.nil?
|
214
|
+
command.query['includeInactive'] = include_inactive unless include_inactive.nil?
|
215
|
+
command.query['project'] = project unless project.nil?
|
216
|
+
command.query['fields'] = fields unless fields.nil?
|
217
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
218
|
+
execute_or_queue_command(command, &block)
|
219
|
+
end
|
220
|
+
|
221
|
+
# Deletes the breakpoint from the debuggee.
|
222
|
+
# @param [String] debuggee_id
|
223
|
+
# Required. ID of the debuggee whose breakpoint to delete.
|
224
|
+
# @param [String] breakpoint_id
|
225
|
+
# Required. ID of the breakpoint to delete.
|
226
|
+
# @param [String] client_version
|
227
|
+
# Required. The client version making the call. Schema: `domain/type/version` (e.
|
228
|
+
# g., `google.com/intellij/v1`).
|
229
|
+
# @param [String] fields
|
230
|
+
# Selector specifying which fields to include in a partial response.
|
231
|
+
# @param [String] quota_user
|
232
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
233
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
234
|
+
# @param [Google::Apis::RequestOptions] options
|
235
|
+
# Request-specific options
|
236
|
+
#
|
237
|
+
# @yield [result, err] Result & error if block supplied
|
238
|
+
# @yieldparam result [Google::Apis::ClouddebuggerV2::Empty] parsed result object
|
239
|
+
# @yieldparam err [StandardError] error object if request failed
|
240
|
+
#
|
241
|
+
# @return [Google::Apis::ClouddebuggerV2::Empty]
|
242
|
+
#
|
243
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
244
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
245
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
246
|
+
def delete_debugger_debuggee_breakpoint(debuggee_id, breakpoint_id, client_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
247
|
+
command = make_simple_command(:delete, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}', options)
|
248
|
+
command.response_representation = Google::Apis::ClouddebuggerV2::Empty::Representation
|
249
|
+
command.response_class = Google::Apis::ClouddebuggerV2::Empty
|
250
|
+
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
|
251
|
+
command.params['breakpointId'] = breakpoint_id unless breakpoint_id.nil?
|
252
|
+
command.query['clientVersion'] = client_version unless client_version.nil?
|
253
|
+
command.query['fields'] = fields unless fields.nil?
|
254
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
255
|
+
execute_or_queue_command(command, &block)
|
256
|
+
end
|
257
|
+
|
258
|
+
# Gets breakpoint information.
|
259
|
+
# @param [String] debuggee_id
|
260
|
+
# Required. ID of the debuggee whose breakpoint to get.
|
261
|
+
# @param [String] breakpoint_id
|
262
|
+
# Required. ID of the breakpoint to get.
|
263
|
+
# @param [String] client_version
|
264
|
+
# Required. The client version making the call. Schema: `domain/type/version` (e.
|
265
|
+
# g., `google.com/intellij/v1`).
|
266
|
+
# @param [String] fields
|
267
|
+
# Selector specifying which fields to include in a partial response.
|
268
|
+
# @param [String] quota_user
|
269
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
270
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
271
|
+
# @param [Google::Apis::RequestOptions] options
|
272
|
+
# Request-specific options
|
273
|
+
#
|
274
|
+
# @yield [result, err] Result & error if block supplied
|
275
|
+
# @yieldparam result [Google::Apis::ClouddebuggerV2::GetBreakpointResponse] parsed result object
|
276
|
+
# @yieldparam err [StandardError] error object if request failed
|
277
|
+
#
|
278
|
+
# @return [Google::Apis::ClouddebuggerV2::GetBreakpointResponse]
|
279
|
+
#
|
280
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
281
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
282
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
283
|
+
def get_debugger_debuggee_breakpoint(debuggee_id, breakpoint_id, client_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
284
|
+
command = make_simple_command(:get, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}', options)
|
285
|
+
command.response_representation = Google::Apis::ClouddebuggerV2::GetBreakpointResponse::Representation
|
286
|
+
command.response_class = Google::Apis::ClouddebuggerV2::GetBreakpointResponse
|
287
|
+
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
|
288
|
+
command.params['breakpointId'] = breakpoint_id unless breakpoint_id.nil?
|
289
|
+
command.query['clientVersion'] = client_version unless client_version.nil?
|
290
|
+
command.query['fields'] = fields unless fields.nil?
|
291
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
292
|
+
execute_or_queue_command(command, &block)
|
293
|
+
end
|
294
|
+
|
295
|
+
# Lists all breakpoints for the debuggee.
|
296
|
+
# @param [String] debuggee_id
|
297
|
+
# Required. ID of the debuggee whose breakpoints to list.
|
298
|
+
# @param [String] action_value
|
299
|
+
# Only breakpoints with the specified action will pass the filter.
|
300
|
+
# @param [String] client_version
|
301
|
+
# Required. The client version making the call. Schema: `domain/type/version` (e.
|
302
|
+
# g., `google.com/intellij/v1`).
|
303
|
+
# @param [Boolean] include_all_users
|
304
|
+
# When set to `true`, the response includes the list of breakpoints set by any
|
305
|
+
# user. Otherwise, it includes only breakpoints set by the caller.
|
306
|
+
# @param [Boolean] include_inactive
|
307
|
+
# When set to `true`, the response includes active and inactive breakpoints.
|
308
|
+
# Otherwise, it includes only active breakpoints.
|
309
|
+
# @param [Boolean] strip_results
|
310
|
+
# This field is deprecated. The following fields are always stripped out of the
|
311
|
+
# result: `stack_frames`, `evaluated_expressions` and `variable_table`.
|
312
|
+
# @param [String] wait_token
|
313
|
+
# A wait token that, if specified, blocks the call until the breakpoints list
|
314
|
+
# has changed, or a server selected timeout has expired. The value should be set
|
315
|
+
# from the last response. The error code `google.rpc.Code.ABORTED` (RPC) is
|
316
|
+
# returned on wait timeout, which should be called again with the same `
|
317
|
+
# wait_token`.
|
318
|
+
# @param [String] fields
|
319
|
+
# Selector specifying which fields to include in a partial response.
|
320
|
+
# @param [String] quota_user
|
321
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
322
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
323
|
+
# @param [Google::Apis::RequestOptions] options
|
324
|
+
# Request-specific options
|
325
|
+
#
|
326
|
+
# @yield [result, err] Result & error if block supplied
|
327
|
+
# @yieldparam result [Google::Apis::ClouddebuggerV2::ListBreakpointsResponse] parsed result object
|
328
|
+
# @yieldparam err [StandardError] error object if request failed
|
329
|
+
#
|
330
|
+
# @return [Google::Apis::ClouddebuggerV2::ListBreakpointsResponse]
|
331
|
+
#
|
332
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
333
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
334
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
335
|
+
def list_debugger_debuggee_breakpoints(debuggee_id, action_value: nil, client_version: nil, include_all_users: nil, include_inactive: nil, strip_results: nil, wait_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
336
|
+
command = make_simple_command(:get, 'v2/debugger/debuggees/{debuggeeId}/breakpoints', options)
|
337
|
+
command.response_representation = Google::Apis::ClouddebuggerV2::ListBreakpointsResponse::Representation
|
338
|
+
command.response_class = Google::Apis::ClouddebuggerV2::ListBreakpointsResponse
|
339
|
+
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
|
340
|
+
command.query['action.value'] = action_value unless action_value.nil?
|
341
|
+
command.query['clientVersion'] = client_version unless client_version.nil?
|
342
|
+
command.query['includeAllUsers'] = include_all_users unless include_all_users.nil?
|
343
|
+
command.query['includeInactive'] = include_inactive unless include_inactive.nil?
|
344
|
+
command.query['stripResults'] = strip_results unless strip_results.nil?
|
345
|
+
command.query['waitToken'] = wait_token unless wait_token.nil?
|
346
|
+
command.query['fields'] = fields unless fields.nil?
|
347
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
348
|
+
execute_or_queue_command(command, &block)
|
349
|
+
end
|
350
|
+
|
351
|
+
# Sets the breakpoint to the debuggee.
|
352
|
+
# @param [String] debuggee_id
|
353
|
+
# Required. ID of the debuggee where the breakpoint is to be set.
|
354
|
+
# @param [Google::Apis::ClouddebuggerV2::Breakpoint] breakpoint_object
|
355
|
+
# @param [String] canary_option
|
356
|
+
# The canary option set by the user upon setting breakpoint.
|
357
|
+
# @param [String] client_version
|
358
|
+
# Required. The client version making the call. Schema: `domain/type/version` (e.
|
359
|
+
# g., `google.com/intellij/v1`).
|
360
|
+
# @param [String] fields
|
361
|
+
# Selector specifying which fields to include in a partial response.
|
362
|
+
# @param [String] quota_user
|
363
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
364
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
365
|
+
# @param [Google::Apis::RequestOptions] options
|
366
|
+
# Request-specific options
|
367
|
+
#
|
368
|
+
# @yield [result, err] Result & error if block supplied
|
369
|
+
# @yieldparam result [Google::Apis::ClouddebuggerV2::SetBreakpointResponse] parsed result object
|
370
|
+
# @yieldparam err [StandardError] error object if request failed
|
371
|
+
#
|
372
|
+
# @return [Google::Apis::ClouddebuggerV2::SetBreakpointResponse]
|
373
|
+
#
|
374
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
375
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
376
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
377
|
+
def set_debugger_debuggee_breakpoint(debuggee_id, breakpoint_object = nil, canary_option: nil, client_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
378
|
+
command = make_simple_command(:post, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/set', options)
|
379
|
+
command.request_representation = Google::Apis::ClouddebuggerV2::Breakpoint::Representation
|
380
|
+
command.request_object = breakpoint_object
|
381
|
+
command.response_representation = Google::Apis::ClouddebuggerV2::SetBreakpointResponse::Representation
|
382
|
+
command.response_class = Google::Apis::ClouddebuggerV2::SetBreakpointResponse
|
383
|
+
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
|
384
|
+
command.query['canaryOption'] = canary_option unless canary_option.nil?
|
385
|
+
command.query['clientVersion'] = client_version unless client_version.nil?
|
386
|
+
command.query['fields'] = fields unless fields.nil?
|
387
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
388
|
+
execute_or_queue_command(command, &block)
|
389
|
+
end
|
390
|
+
|
391
|
+
protected
|
392
|
+
|
393
|
+
def apply_command_defaults(command)
|
394
|
+
command.query['key'] = key unless key.nil?
|
395
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
396
|
+
end
|
397
|
+
end
|
398
|
+
end
|
399
|
+
end
|
400
|
+
end
|
metadata
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: google-apis-clouddebugger_v2
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Google LLC
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2021-01-08 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: google-apis-core
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.1'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.1'
|
27
|
+
description: This is the simple REST client for Cloud Debugger API V2. Simple REST
|
28
|
+
clients are Ruby client libraries that provide access to Google services via their
|
29
|
+
HTTP REST API endpoints. These libraries are generated and updated automatically
|
30
|
+
based on the discovery documents published by the service, and they handle most
|
31
|
+
concerns such as authentication, pagination, retry, timeouts, and logging. You can
|
32
|
+
use this client to access the Cloud Debugger API, but note that some services may
|
33
|
+
provide a separate modern client that is easier to use.
|
34
|
+
email: googleapis-packages@google.com
|
35
|
+
executables: []
|
36
|
+
extensions: []
|
37
|
+
extra_rdoc_files: []
|
38
|
+
files:
|
39
|
+
- ".yardopts"
|
40
|
+
- CHANGELOG.md
|
41
|
+
- LICENSE.md
|
42
|
+
- OVERVIEW.md
|
43
|
+
- lib/google-apis-clouddebugger_v2.rb
|
44
|
+
- lib/google/apis/clouddebugger_v2.rb
|
45
|
+
- lib/google/apis/clouddebugger_v2/classes.rb
|
46
|
+
- lib/google/apis/clouddebugger_v2/gem_version.rb
|
47
|
+
- lib/google/apis/clouddebugger_v2/representations.rb
|
48
|
+
- lib/google/apis/clouddebugger_v2/service.rb
|
49
|
+
homepage: https://github.com/google/google-api-ruby-client
|
50
|
+
licenses:
|
51
|
+
- Apache-2.0
|
52
|
+
metadata:
|
53
|
+
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
|
+
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-clouddebugger_v2/CHANGELOG.md
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-clouddebugger_v2/v0.1.0
|
56
|
+
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-clouddebugger_v2
|
57
|
+
post_install_message:
|
58
|
+
rdoc_options: []
|
59
|
+
require_paths:
|
60
|
+
- lib
|
61
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
62
|
+
requirements:
|
63
|
+
- - ">="
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '2.4'
|
66
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0'
|
71
|
+
requirements: []
|
72
|
+
rubygems_version: 3.1.4
|
73
|
+
signing_key:
|
74
|
+
specification_version: 4
|
75
|
+
summary: Simple REST client for Cloud Debugger API V2
|
76
|
+
test_files: []
|