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
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: cfaf7291bf49da14b02e57d1ca81f13902911e0580c6cd7035c59f6133489994
|
4
|
+
data.tar.gz: 3173117ec8825a8951dbc9236f0fe076d49cf7ac25781cd8d940f13b546cdb61
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b92fd725011298768909fe338f63e6f2eb297c0ba32b26ad48db0ff0643f5e32dd56c688465b34992a6f42ed356a1ecb63187acf284c86c3fe713ec0c69515c9
|
7
|
+
data.tar.gz: be623d84021b0f086486a38d25b02e8166b131d6d075209be6d7e7a07d6ae87e4de76e26d76717029dc4eafde358566e255dce5084f9ada9e9d35473163cc686
|
data/.yardopts
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
--hide-void-return
|
2
|
+
--no-private
|
3
|
+
--verbose
|
4
|
+
--title=google-apis-clouddebugger_v2
|
5
|
+
--markup-provider=redcarpet
|
6
|
+
--markup=markdown
|
7
|
+
--main OVERVIEW.md
|
8
|
+
lib/google/apis/clouddebugger_v2/*.rb
|
9
|
+
lib/google/apis/clouddebugger_v2.rb
|
10
|
+
-
|
11
|
+
OVERVIEW.md
|
12
|
+
CHANGELOG.md
|
13
|
+
LICENSE.md
|
data/CHANGELOG.md
ADDED
data/LICENSE.md
ADDED
@@ -0,0 +1,202 @@
|
|
1
|
+
|
2
|
+
Apache License
|
3
|
+
Version 2.0, January 2004
|
4
|
+
http://www.apache.org/licenses/
|
5
|
+
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
7
|
+
|
8
|
+
1. Definitions.
|
9
|
+
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
12
|
+
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
14
|
+
the copyright owner that is granting the License.
|
15
|
+
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
17
|
+
other entities that control, are controlled by, or are under common
|
18
|
+
control with that entity. For the purposes of this definition,
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
20
|
+
direction or management of such entity, whether by contract or
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
23
|
+
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
25
|
+
exercising permissions granted by this License.
|
26
|
+
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
28
|
+
including but not limited to software source code, documentation
|
29
|
+
source, and configuration files.
|
30
|
+
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
32
|
+
transformation or translation of a Source form, including but
|
33
|
+
not limited to compiled object code, generated documentation,
|
34
|
+
and conversions to other media types.
|
35
|
+
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
37
|
+
Object form, made available under the License, as indicated by a
|
38
|
+
copyright notice that is included in or attached to the work
|
39
|
+
(an example is provided in the Appendix below).
|
40
|
+
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
47
|
+
the Work and Derivative Works thereof.
|
48
|
+
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
50
|
+
the original version of the Work and any modifications or additions
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
62
|
+
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
65
|
+
subsequently incorporated within the Work.
|
66
|
+
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
73
|
+
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
79
|
+
where such license applies only to those patent claims licensable
|
80
|
+
by such Contributor that are necessarily infringed by their
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
83
|
+
institute patent litigation against any entity (including a
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
86
|
+
or contributory patent infringement, then any patent licenses
|
87
|
+
granted to You under this License for that Work shall terminate
|
88
|
+
as of the date such litigation is filed.
|
89
|
+
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
92
|
+
modifications, and in Source or Object form, provided that You
|
93
|
+
meet the following conditions:
|
94
|
+
|
95
|
+
(a) You must give any other recipients of the Work or
|
96
|
+
Derivative Works a copy of this License; and
|
97
|
+
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
99
|
+
stating that You changed the files; and
|
100
|
+
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
103
|
+
attribution notices from the Source form of the Work,
|
104
|
+
excluding those notices that do not pertain to any part of
|
105
|
+
the Derivative Works; and
|
106
|
+
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
109
|
+
include a readable copy of the attribution notices contained
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
112
|
+
of the following places: within a NOTICE text file distributed
|
113
|
+
as part of the Derivative Works; within the Source form or
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
115
|
+
within a display generated by the Derivative Works, if and
|
116
|
+
wherever such third-party notices normally appear. The contents
|
117
|
+
of the NOTICE file are for informational purposes only and
|
118
|
+
do not modify the License. You may add Your own attribution
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
121
|
+
that such additional attribution notices cannot be construed
|
122
|
+
as modifying the License.
|
123
|
+
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
125
|
+
may provide additional or different license terms and conditions
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
129
|
+
the conditions stated in this License.
|
130
|
+
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
134
|
+
this License, without any additional terms or conditions.
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
136
|
+
the terms of any separate license agreement you may have executed
|
137
|
+
with Licensor regarding such Contributions.
|
138
|
+
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
141
|
+
except as required for reasonable and customary use in describing the
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
143
|
+
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
153
|
+
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
159
|
+
incidental, or consequential damages of any character arising as a
|
160
|
+
result of this License or out of the use or inability to use the
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
163
|
+
other commercial damages or losses), even if such Contributor
|
164
|
+
has been advised of the possibility of such damages.
|
165
|
+
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
169
|
+
or other liability obligations and/or rights consistent with this
|
170
|
+
License. However, in accepting such obligations, You may act only
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
175
|
+
of your accepting any such warranty or additional liability.
|
176
|
+
|
177
|
+
END OF TERMS AND CONDITIONS
|
178
|
+
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
180
|
+
|
181
|
+
To apply the Apache License to your work, attach the following
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
183
|
+
replaced with your own identifying information. (Don't include
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
185
|
+
comment syntax for the file format. We also recommend that a
|
186
|
+
file or class name and description of purpose be included on the
|
187
|
+
same "printed page" as the copyright notice for easier
|
188
|
+
identification within third-party archives.
|
189
|
+
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
191
|
+
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
193
|
+
you may not use this file except in compliance with the License.
|
194
|
+
You may obtain a copy of the License at
|
195
|
+
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
197
|
+
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
201
|
+
See the License for the specific language governing permissions and
|
202
|
+
limitations under the License.
|
data/OVERVIEW.md
ADDED
@@ -0,0 +1,96 @@
|
|
1
|
+
# Simple REST client for version V2 of the Cloud Debugger API
|
2
|
+
|
3
|
+
This is a simple client library for version V2 of the Cloud Debugger API. It provides:
|
4
|
+
|
5
|
+
* A client object that connects to the HTTP/JSON REST endpoint for the service.
|
6
|
+
* Ruby objects for data structures related to the service.
|
7
|
+
* Integration with the googleauth gem for authentication using OAuth, API keys, and service accounts.
|
8
|
+
* Control of retry, pagination, and timeouts.
|
9
|
+
|
10
|
+
Note that although this client library is supported and will continue to be updated to track changes to the service, it is otherwise considered complete and not under active development. Many Google services, especially Google Cloud Platform services, may provide a more modern client that is under more active development and improvement. See the section below titled *Which client should I use?* for more information.
|
11
|
+
|
12
|
+
## Getting started
|
13
|
+
|
14
|
+
### Before you begin
|
15
|
+
|
16
|
+
There are a few setup steps you need to complete before you can use this library:
|
17
|
+
|
18
|
+
1. If you don't already have a Google account, [sign up](https://www.google.com/accounts).
|
19
|
+
2. If you have never created a Google APIs Console project, read about [Managing Projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects) and create a project in the [Google API Console](https://console.cloud.google.com/).
|
20
|
+
3. Most APIs need to be enabled for your project. [Enable it](https://console.cloud.google.com/apis/library/clouddebugger.googleapis.com) in the console.
|
21
|
+
|
22
|
+
### Installation
|
23
|
+
|
24
|
+
Add this line to your application's Gemfile:
|
25
|
+
|
26
|
+
```ruby
|
27
|
+
gem 'google-apis-clouddebugger_v2', '~> 0.1'
|
28
|
+
```
|
29
|
+
|
30
|
+
And then execute:
|
31
|
+
|
32
|
+
```
|
33
|
+
$ bundle
|
34
|
+
```
|
35
|
+
|
36
|
+
Or install it yourself as:
|
37
|
+
|
38
|
+
```
|
39
|
+
$ gem install google-apis-clouddebugger_v2
|
40
|
+
```
|
41
|
+
|
42
|
+
### Creating a client object
|
43
|
+
|
44
|
+
Once the gem is installed, you can load the client code and instantiate a client.
|
45
|
+
|
46
|
+
```ruby
|
47
|
+
# Load the client
|
48
|
+
require "google/apis/clouddebugger_v2"
|
49
|
+
|
50
|
+
# Create a client object
|
51
|
+
client = Google::Apis::ClouddebuggerV2::CloudDebuggerService.new
|
52
|
+
|
53
|
+
# Authenticate calls
|
54
|
+
client.authentication = # ... use the googleauth gem to create credentials
|
55
|
+
```
|
56
|
+
|
57
|
+
See the class reference docs for information on the methods you can call from a client.
|
58
|
+
|
59
|
+
## Documentation
|
60
|
+
|
61
|
+
More detailed descriptions of the Google simple REST clients are available in two documents.
|
62
|
+
|
63
|
+
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
|
64
|
+
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
|
65
|
+
|
66
|
+
(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Clouddebugger service in particular.)
|
67
|
+
|
68
|
+
For reference information on specific calls in the Cloud Debugger API, see the {Google::Apis::ClouddebuggerV2::CloudDebuggerService class reference docs}.
|
69
|
+
|
70
|
+
## Which client should I use?
|
71
|
+
|
72
|
+
Google provides two types of Ruby API client libraries: **simple REST clients** and **modern clients**.
|
73
|
+
|
74
|
+
This library, `google-apis-clouddebugger_v2`, is a simple REST client. You can identify these clients by their gem names, which are always in the form `google-apis-<servicename>_<serviceversion>`. The simple REST clients connect to HTTP/JSON REST endpoints and are automatically generated from service discovery documents. They support most API functionality, but their class interfaces are sometimes awkward.
|
75
|
+
|
76
|
+
Modern clients are produced by a modern code generator, sometimes combined with hand-crafted functionality. Most modern clients connect to high-performance gRPC endpoints, although a few are backed by REST services. Modern clients are available for many Google services, especially Google Cloud Platform services, but do not yet support all the services covered by the simple clients.
|
77
|
+
|
78
|
+
Gem names for modern clients are often of the form `google-cloud-<service_name>`. (For example, [google-cloud-pubsub](https://rubygems.org/gems/google-cloud-pubsub).) Note that most modern clients also have corresponding "versioned" gems with names like `google-cloud-<service_name>-<version>`. (For example, [google-cloud-pubsub-v1](https://rubygems.org/gems/google-cloud-pubsub-v1).) The "versioned" gems can be used directly, but often provide lower-level interfaces. In most cases, the main gem is recommended.
|
79
|
+
|
80
|
+
**For most users, we recommend the modern client, if one is available.** Compared with simple clients, modern clients are generally much easier to use and more Ruby-like, support more advanced features such as streaming and long-running operations, and often provide much better performance. You may consider using a simple client instead, if a modern client is not yet available for the service you want to use, or if you are not able to use gRPC on your infrastructure.
|
81
|
+
|
82
|
+
The [product documentation](https://cloud.google.com/debugger) may provide guidance regarding the preferred client library to use.
|
83
|
+
|
84
|
+
## Supported Ruby versions
|
85
|
+
|
86
|
+
This library is supported on Ruby 2.5+.
|
87
|
+
|
88
|
+
Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Currently, this means Ruby 2.5 and later. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
|
89
|
+
|
90
|
+
## License
|
91
|
+
|
92
|
+
This library is licensed under Apache 2.0. Full license text is available in the {file:LICENSE.md LICENSE}.
|
93
|
+
|
94
|
+
## Support
|
95
|
+
|
96
|
+
Please [report bugs at the project on Github](https://github.com/google/google-api-ruby-client/issues). Don't hesitate to [ask questions](http://stackoverflow.com/questions/tagged/google-api-ruby-client) about the client or APIs on [StackOverflow](http://stackoverflow.com).
|
@@ -0,0 +1,15 @@
|
|
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/clouddebugger_v2"
|
@@ -0,0 +1,40 @@
|
|
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/clouddebugger_v2/service.rb'
|
16
|
+
require 'google/apis/clouddebugger_v2/classes.rb'
|
17
|
+
require 'google/apis/clouddebugger_v2/representations.rb'
|
18
|
+
require 'google/apis/clouddebugger_v2/gem_version.rb'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
# Cloud Debugger API
|
23
|
+
#
|
24
|
+
# Examines the call stack and variables of a running application without
|
25
|
+
# stopping or slowing it down.
|
26
|
+
#
|
27
|
+
# @see https://cloud.google.com/debugger
|
28
|
+
module ClouddebuggerV2
|
29
|
+
# Version of the Cloud Debugger API this client connects to.
|
30
|
+
# This is NOT the gem version.
|
31
|
+
VERSION = 'V2'
|
32
|
+
|
33
|
+
# View and manage your data across Google Cloud Platform services
|
34
|
+
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
35
|
+
|
36
|
+
# Use Stackdriver Debugger
|
37
|
+
AUTH_CLOUD_DEBUGGER = 'https://www.googleapis.com/auth/cloud_debugger'
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,1054 @@
|
|
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 'date'
|
16
|
+
require 'google/apis/core/base_service'
|
17
|
+
require 'google/apis/core/json_representation'
|
18
|
+
require 'google/apis/core/hashable'
|
19
|
+
require 'google/apis/errors'
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Apis
|
23
|
+
module ClouddebuggerV2
|
24
|
+
|
25
|
+
# An alias to a repo revision.
|
26
|
+
class AliasContext
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# The alias kind.
|
30
|
+
# Corresponds to the JSON property `kind`
|
31
|
+
# @return [String]
|
32
|
+
attr_accessor :kind
|
33
|
+
|
34
|
+
# The alias name.
|
35
|
+
# Corresponds to the JSON property `name`
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :name
|
38
|
+
|
39
|
+
def initialize(**args)
|
40
|
+
update!(**args)
|
41
|
+
end
|
42
|
+
|
43
|
+
# Update properties of this object
|
44
|
+
def update!(**args)
|
45
|
+
@kind = args[:kind] if args.key?(:kind)
|
46
|
+
@name = args[:name] if args.key?(:name)
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
# ------------------------------------------------------------------------------
|
51
|
+
# ## Breakpoint (the resource) Represents the breakpoint specification, status
|
52
|
+
# and results.
|
53
|
+
class Breakpoint
|
54
|
+
include Google::Apis::Core::Hashable
|
55
|
+
|
56
|
+
# Action that the agent should perform when the code at the breakpoint location
|
57
|
+
# is hit.
|
58
|
+
# Corresponds to the JSON property `action`
|
59
|
+
# @return [String]
|
60
|
+
attr_accessor :action
|
61
|
+
|
62
|
+
# The deadline for the breakpoint to stay in CANARY_ACTIVE state. The value is
|
63
|
+
# meaningless when the breakpoint is not in CANARY_ACTIVE state.
|
64
|
+
# Corresponds to the JSON property `canaryExpireTime`
|
65
|
+
# @return [String]
|
66
|
+
attr_accessor :canary_expire_time
|
67
|
+
|
68
|
+
# Condition that triggers the breakpoint. The condition is a compound boolean
|
69
|
+
# expression composed using expressions in a programming language at the source
|
70
|
+
# location.
|
71
|
+
# Corresponds to the JSON property `condition`
|
72
|
+
# @return [String]
|
73
|
+
attr_accessor :condition
|
74
|
+
|
75
|
+
# Time this breakpoint was created by the server in seconds resolution.
|
76
|
+
# Corresponds to the JSON property `createTime`
|
77
|
+
# @return [String]
|
78
|
+
attr_accessor :create_time
|
79
|
+
|
80
|
+
# Values of evaluated expressions at breakpoint time. The evaluated expressions
|
81
|
+
# appear in exactly the same order they are listed in the `expressions` field.
|
82
|
+
# The `name` field holds the original expression text, the `value` or `members`
|
83
|
+
# field holds the result of the evaluated expression. If the expression cannot
|
84
|
+
# be evaluated, the `status` inside the `Variable` will indicate an error and
|
85
|
+
# contain the error text.
|
86
|
+
# Corresponds to the JSON property `evaluatedExpressions`
|
87
|
+
# @return [Array<Google::Apis::ClouddebuggerV2::Variable>]
|
88
|
+
attr_accessor :evaluated_expressions
|
89
|
+
|
90
|
+
# List of read-only expressions to evaluate at the breakpoint location. The
|
91
|
+
# expressions are composed using expressions in the programming language at the
|
92
|
+
# source location. If the breakpoint action is `LOG`, the evaluated expressions
|
93
|
+
# are included in log statements.
|
94
|
+
# Corresponds to the JSON property `expressions`
|
95
|
+
# @return [Array<String>]
|
96
|
+
attr_accessor :expressions
|
97
|
+
|
98
|
+
# Time this breakpoint was finalized as seen by the server in seconds resolution.
|
99
|
+
# Corresponds to the JSON property `finalTime`
|
100
|
+
# @return [String]
|
101
|
+
attr_accessor :final_time
|
102
|
+
|
103
|
+
# Breakpoint identifier, unique in the scope of the debuggee.
|
104
|
+
# Corresponds to the JSON property `id`
|
105
|
+
# @return [String]
|
106
|
+
attr_accessor :id
|
107
|
+
|
108
|
+
# When true, indicates that this is a final result and the breakpoint state will
|
109
|
+
# not change from here on.
|
110
|
+
# Corresponds to the JSON property `isFinalState`
|
111
|
+
# @return [Boolean]
|
112
|
+
attr_accessor :is_final_state
|
113
|
+
alias_method :is_final_state?, :is_final_state
|
114
|
+
|
115
|
+
# A set of custom breakpoint properties, populated by the agent, to be displayed
|
116
|
+
# to the user.
|
117
|
+
# Corresponds to the JSON property `labels`
|
118
|
+
# @return [Hash<String,String>]
|
119
|
+
attr_accessor :labels
|
120
|
+
|
121
|
+
# Represents a location in the source code.
|
122
|
+
# Corresponds to the JSON property `location`
|
123
|
+
# @return [Google::Apis::ClouddebuggerV2::SourceLocation]
|
124
|
+
attr_accessor :location
|
125
|
+
|
126
|
+
# Indicates the severity of the log. Only relevant when action is `LOG`.
|
127
|
+
# Corresponds to the JSON property `logLevel`
|
128
|
+
# @return [String]
|
129
|
+
attr_accessor :log_level
|
130
|
+
|
131
|
+
# Only relevant when action is `LOG`. Defines the message to log when the
|
132
|
+
# breakpoint hits. The message may include parameter placeholders `$0`, `$1`,
|
133
|
+
# etc. These placeholders are replaced with the evaluated value of the
|
134
|
+
# appropriate expression. Expressions not referenced in `log_message_format` are
|
135
|
+
# not logged. Example: `Message received, id = $0, count = $1` with `expressions`
|
136
|
+
# = `[ message.id, message.count ]`.
|
137
|
+
# Corresponds to the JSON property `logMessageFormat`
|
138
|
+
# @return [String]
|
139
|
+
attr_accessor :log_message_format
|
140
|
+
|
141
|
+
# The stack at breakpoint time, where stack_frames[0] represents the most
|
142
|
+
# recently entered function.
|
143
|
+
# Corresponds to the JSON property `stackFrames`
|
144
|
+
# @return [Array<Google::Apis::ClouddebuggerV2::StackFrame>]
|
145
|
+
attr_accessor :stack_frames
|
146
|
+
|
147
|
+
# The current state of the breakpoint.
|
148
|
+
# Corresponds to the JSON property `state`
|
149
|
+
# @return [String]
|
150
|
+
attr_accessor :state
|
151
|
+
|
152
|
+
# Represents a contextual status message. The message can indicate an error or
|
153
|
+
# informational status, and refer to specific parts of the containing object.
|
154
|
+
# For example, the `Breakpoint.status` field can indicate an error referring to
|
155
|
+
# the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.
|
156
|
+
# Corresponds to the JSON property `status`
|
157
|
+
# @return [Google::Apis::ClouddebuggerV2::StatusMessage]
|
158
|
+
attr_accessor :status
|
159
|
+
|
160
|
+
# E-mail address of the user that created this breakpoint
|
161
|
+
# Corresponds to the JSON property `userEmail`
|
162
|
+
# @return [String]
|
163
|
+
attr_accessor :user_email
|
164
|
+
|
165
|
+
# The `variable_table` exists to aid with computation, memory and network
|
166
|
+
# traffic optimization. It enables storing a variable once and reference it from
|
167
|
+
# multiple variables, including variables stored in the `variable_table` itself.
|
168
|
+
# For example, the same `this` object, which may appear at many levels of the
|
169
|
+
# stack, can have all of its data stored once in this table. The stack frame
|
170
|
+
# variables then would hold only a reference to it. The variable `
|
171
|
+
# var_table_index` field is an index into this repeated field. The stored
|
172
|
+
# objects are nameless and get their name from the referencing variable. The
|
173
|
+
# effective variable is a merge of the referencing variable and the referenced
|
174
|
+
# variable.
|
175
|
+
# Corresponds to the JSON property `variableTable`
|
176
|
+
# @return [Array<Google::Apis::ClouddebuggerV2::Variable>]
|
177
|
+
attr_accessor :variable_table
|
178
|
+
|
179
|
+
def initialize(**args)
|
180
|
+
update!(**args)
|
181
|
+
end
|
182
|
+
|
183
|
+
# Update properties of this object
|
184
|
+
def update!(**args)
|
185
|
+
@action = args[:action] if args.key?(:action)
|
186
|
+
@canary_expire_time = args[:canary_expire_time] if args.key?(:canary_expire_time)
|
187
|
+
@condition = args[:condition] if args.key?(:condition)
|
188
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
189
|
+
@evaluated_expressions = args[:evaluated_expressions] if args.key?(:evaluated_expressions)
|
190
|
+
@expressions = args[:expressions] if args.key?(:expressions)
|
191
|
+
@final_time = args[:final_time] if args.key?(:final_time)
|
192
|
+
@id = args[:id] if args.key?(:id)
|
193
|
+
@is_final_state = args[:is_final_state] if args.key?(:is_final_state)
|
194
|
+
@labels = args[:labels] if args.key?(:labels)
|
195
|
+
@location = args[:location] if args.key?(:location)
|
196
|
+
@log_level = args[:log_level] if args.key?(:log_level)
|
197
|
+
@log_message_format = args[:log_message_format] if args.key?(:log_message_format)
|
198
|
+
@stack_frames = args[:stack_frames] if args.key?(:stack_frames)
|
199
|
+
@state = args[:state] if args.key?(:state)
|
200
|
+
@status = args[:status] if args.key?(:status)
|
201
|
+
@user_email = args[:user_email] if args.key?(:user_email)
|
202
|
+
@variable_table = args[:variable_table] if args.key?(:variable_table)
|
203
|
+
end
|
204
|
+
end
|
205
|
+
|
206
|
+
# A CloudRepoSourceContext denotes a particular revision in a cloud repo (a repo
|
207
|
+
# hosted by the Google Cloud Platform).
|
208
|
+
class CloudRepoSourceContext
|
209
|
+
include Google::Apis::Core::Hashable
|
210
|
+
|
211
|
+
# An alias to a repo revision.
|
212
|
+
# Corresponds to the JSON property `aliasContext`
|
213
|
+
# @return [Google::Apis::ClouddebuggerV2::AliasContext]
|
214
|
+
attr_accessor :alias_context
|
215
|
+
|
216
|
+
# The name of an alias (branch, tag, etc.).
|
217
|
+
# Corresponds to the JSON property `aliasName`
|
218
|
+
# @return [String]
|
219
|
+
attr_accessor :alias_name
|
220
|
+
|
221
|
+
# A unique identifier for a cloud repo.
|
222
|
+
# Corresponds to the JSON property `repoId`
|
223
|
+
# @return [Google::Apis::ClouddebuggerV2::RepoId]
|
224
|
+
attr_accessor :repo_id
|
225
|
+
|
226
|
+
# A revision ID.
|
227
|
+
# Corresponds to the JSON property `revisionId`
|
228
|
+
# @return [String]
|
229
|
+
attr_accessor :revision_id
|
230
|
+
|
231
|
+
def initialize(**args)
|
232
|
+
update!(**args)
|
233
|
+
end
|
234
|
+
|
235
|
+
# Update properties of this object
|
236
|
+
def update!(**args)
|
237
|
+
@alias_context = args[:alias_context] if args.key?(:alias_context)
|
238
|
+
@alias_name = args[:alias_name] if args.key?(:alias_name)
|
239
|
+
@repo_id = args[:repo_id] if args.key?(:repo_id)
|
240
|
+
@revision_id = args[:revision_id] if args.key?(:revision_id)
|
241
|
+
end
|
242
|
+
end
|
243
|
+
|
244
|
+
# A CloudWorkspaceId is a unique identifier for a cloud workspace. A cloud
|
245
|
+
# workspace is a place associated with a repo where modified files can be stored
|
246
|
+
# before they are committed.
|
247
|
+
class CloudWorkspaceId
|
248
|
+
include Google::Apis::Core::Hashable
|
249
|
+
|
250
|
+
# The unique name of the workspace within the repo. This is the name chosen by
|
251
|
+
# the client in the Source API's CreateWorkspace method.
|
252
|
+
# Corresponds to the JSON property `name`
|
253
|
+
# @return [String]
|
254
|
+
attr_accessor :name
|
255
|
+
|
256
|
+
# A unique identifier for a cloud repo.
|
257
|
+
# Corresponds to the JSON property `repoId`
|
258
|
+
# @return [Google::Apis::ClouddebuggerV2::RepoId]
|
259
|
+
attr_accessor :repo_id
|
260
|
+
|
261
|
+
def initialize(**args)
|
262
|
+
update!(**args)
|
263
|
+
end
|
264
|
+
|
265
|
+
# Update properties of this object
|
266
|
+
def update!(**args)
|
267
|
+
@name = args[:name] if args.key?(:name)
|
268
|
+
@repo_id = args[:repo_id] if args.key?(:repo_id)
|
269
|
+
end
|
270
|
+
end
|
271
|
+
|
272
|
+
# A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot.
|
273
|
+
class CloudWorkspaceSourceContext
|
274
|
+
include Google::Apis::Core::Hashable
|
275
|
+
|
276
|
+
# The ID of the snapshot. An empty snapshot_id refers to the most recent
|
277
|
+
# snapshot.
|
278
|
+
# Corresponds to the JSON property `snapshotId`
|
279
|
+
# @return [String]
|
280
|
+
attr_accessor :snapshot_id
|
281
|
+
|
282
|
+
# A CloudWorkspaceId is a unique identifier for a cloud workspace. A cloud
|
283
|
+
# workspace is a place associated with a repo where modified files can be stored
|
284
|
+
# before they are committed.
|
285
|
+
# Corresponds to the JSON property `workspaceId`
|
286
|
+
# @return [Google::Apis::ClouddebuggerV2::CloudWorkspaceId]
|
287
|
+
attr_accessor :workspace_id
|
288
|
+
|
289
|
+
def initialize(**args)
|
290
|
+
update!(**args)
|
291
|
+
end
|
292
|
+
|
293
|
+
# Update properties of this object
|
294
|
+
def update!(**args)
|
295
|
+
@snapshot_id = args[:snapshot_id] if args.key?(:snapshot_id)
|
296
|
+
@workspace_id = args[:workspace_id] if args.key?(:workspace_id)
|
297
|
+
end
|
298
|
+
end
|
299
|
+
|
300
|
+
# Represents the debugged application. The application may include one or more
|
301
|
+
# replicated processes executing the same code. Each of these processes is
|
302
|
+
# attached with a debugger agent, carrying out the debugging commands. Agents
|
303
|
+
# attached to the same debuggee identify themselves as such by using exactly the
|
304
|
+
# same Debuggee message value when registering.
|
305
|
+
class Debuggee
|
306
|
+
include Google::Apis::Core::Hashable
|
307
|
+
|
308
|
+
# Version ID of the agent. Schema: `domain/language-platform/vmajor.minor` (for
|
309
|
+
# example `google.com/java-gcp/v1.1`).
|
310
|
+
# Corresponds to the JSON property `agentVersion`
|
311
|
+
# @return [String]
|
312
|
+
attr_accessor :agent_version
|
313
|
+
|
314
|
+
# Used when setting breakpoint canary for this debuggee.
|
315
|
+
# Corresponds to the JSON property `canaryMode`
|
316
|
+
# @return [String]
|
317
|
+
attr_accessor :canary_mode
|
318
|
+
|
319
|
+
# Human readable description of the debuggee. Including a human-readable project
|
320
|
+
# name, environment name and version information is recommended.
|
321
|
+
# Corresponds to the JSON property `description`
|
322
|
+
# @return [String]
|
323
|
+
attr_accessor :description
|
324
|
+
|
325
|
+
# References to the locations and revisions of the source code used in the
|
326
|
+
# deployed application.
|
327
|
+
# Corresponds to the JSON property `extSourceContexts`
|
328
|
+
# @return [Array<Google::Apis::ClouddebuggerV2::ExtendedSourceContext>]
|
329
|
+
attr_accessor :ext_source_contexts
|
330
|
+
|
331
|
+
# Unique identifier for the debuggee generated by the controller service.
|
332
|
+
# Corresponds to the JSON property `id`
|
333
|
+
# @return [String]
|
334
|
+
attr_accessor :id
|
335
|
+
|
336
|
+
# If set to `true`, indicates that the agent should disable itself and detach
|
337
|
+
# from the debuggee.
|
338
|
+
# Corresponds to the JSON property `isDisabled`
|
339
|
+
# @return [Boolean]
|
340
|
+
attr_accessor :is_disabled
|
341
|
+
alias_method :is_disabled?, :is_disabled
|
342
|
+
|
343
|
+
# If set to `true`, indicates that Controller service does not detect any
|
344
|
+
# activity from the debuggee agents and the application is possibly stopped.
|
345
|
+
# Corresponds to the JSON property `isInactive`
|
346
|
+
# @return [Boolean]
|
347
|
+
attr_accessor :is_inactive
|
348
|
+
alias_method :is_inactive?, :is_inactive
|
349
|
+
|
350
|
+
# A set of custom debuggee properties, populated by the agent, to be displayed
|
351
|
+
# to the user.
|
352
|
+
# Corresponds to the JSON property `labels`
|
353
|
+
# @return [Hash<String,String>]
|
354
|
+
attr_accessor :labels
|
355
|
+
|
356
|
+
# Project the debuggee is associated with. Use project number or id when
|
357
|
+
# registering a Google Cloud Platform project.
|
358
|
+
# Corresponds to the JSON property `project`
|
359
|
+
# @return [String]
|
360
|
+
attr_accessor :project
|
361
|
+
|
362
|
+
# References to the locations and revisions of the source code used in the
|
363
|
+
# deployed application.
|
364
|
+
# Corresponds to the JSON property `sourceContexts`
|
365
|
+
# @return [Array<Google::Apis::ClouddebuggerV2::SourceContext>]
|
366
|
+
attr_accessor :source_contexts
|
367
|
+
|
368
|
+
# Represents a contextual status message. The message can indicate an error or
|
369
|
+
# informational status, and refer to specific parts of the containing object.
|
370
|
+
# For example, the `Breakpoint.status` field can indicate an error referring to
|
371
|
+
# the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.
|
372
|
+
# Corresponds to the JSON property `status`
|
373
|
+
# @return [Google::Apis::ClouddebuggerV2::StatusMessage]
|
374
|
+
attr_accessor :status
|
375
|
+
|
376
|
+
# Uniquifier to further distinguish the application. It is possible that
|
377
|
+
# different applications might have identical values in the debuggee message,
|
378
|
+
# thus, incorrectly identified as a single application by the Controller service.
|
379
|
+
# This field adds salt to further distinguish the application. Agents should
|
380
|
+
# consider seeding this field with value that identifies the code, binary,
|
381
|
+
# configuration and environment.
|
382
|
+
# Corresponds to the JSON property `uniquifier`
|
383
|
+
# @return [String]
|
384
|
+
attr_accessor :uniquifier
|
385
|
+
|
386
|
+
def initialize(**args)
|
387
|
+
update!(**args)
|
388
|
+
end
|
389
|
+
|
390
|
+
# Update properties of this object
|
391
|
+
def update!(**args)
|
392
|
+
@agent_version = args[:agent_version] if args.key?(:agent_version)
|
393
|
+
@canary_mode = args[:canary_mode] if args.key?(:canary_mode)
|
394
|
+
@description = args[:description] if args.key?(:description)
|
395
|
+
@ext_source_contexts = args[:ext_source_contexts] if args.key?(:ext_source_contexts)
|
396
|
+
@id = args[:id] if args.key?(:id)
|
397
|
+
@is_disabled = args[:is_disabled] if args.key?(:is_disabled)
|
398
|
+
@is_inactive = args[:is_inactive] if args.key?(:is_inactive)
|
399
|
+
@labels = args[:labels] if args.key?(:labels)
|
400
|
+
@project = args[:project] if args.key?(:project)
|
401
|
+
@source_contexts = args[:source_contexts] if args.key?(:source_contexts)
|
402
|
+
@status = args[:status] if args.key?(:status)
|
403
|
+
@uniquifier = args[:uniquifier] if args.key?(:uniquifier)
|
404
|
+
end
|
405
|
+
end
|
406
|
+
|
407
|
+
# A generic empty message that you can re-use to avoid defining duplicated empty
|
408
|
+
# messages in your APIs. A typical example is to use it as the request or the
|
409
|
+
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
410
|
+
# protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
|
411
|
+
# `Empty` is empty JSON object ````.
|
412
|
+
class Empty
|
413
|
+
include Google::Apis::Core::Hashable
|
414
|
+
|
415
|
+
def initialize(**args)
|
416
|
+
update!(**args)
|
417
|
+
end
|
418
|
+
|
419
|
+
# Update properties of this object
|
420
|
+
def update!(**args)
|
421
|
+
end
|
422
|
+
end
|
423
|
+
|
424
|
+
# An ExtendedSourceContext is a SourceContext combined with additional details
|
425
|
+
# describing the context.
|
426
|
+
class ExtendedSourceContext
|
427
|
+
include Google::Apis::Core::Hashable
|
428
|
+
|
429
|
+
# A SourceContext is a reference to a tree of files. A SourceContext together
|
430
|
+
# with a path point to a unique revision of a single file or directory.
|
431
|
+
# Corresponds to the JSON property `context`
|
432
|
+
# @return [Google::Apis::ClouddebuggerV2::SourceContext]
|
433
|
+
attr_accessor :context
|
434
|
+
|
435
|
+
# Labels with user defined metadata.
|
436
|
+
# Corresponds to the JSON property `labels`
|
437
|
+
# @return [Hash<String,String>]
|
438
|
+
attr_accessor :labels
|
439
|
+
|
440
|
+
def initialize(**args)
|
441
|
+
update!(**args)
|
442
|
+
end
|
443
|
+
|
444
|
+
# Update properties of this object
|
445
|
+
def update!(**args)
|
446
|
+
@context = args[:context] if args.key?(:context)
|
447
|
+
@labels = args[:labels] if args.key?(:labels)
|
448
|
+
end
|
449
|
+
end
|
450
|
+
|
451
|
+
# Represents a message with parameters.
|
452
|
+
class FormatMessage
|
453
|
+
include Google::Apis::Core::Hashable
|
454
|
+
|
455
|
+
# Format template for the message. The `format` uses placeholders `$0`, `$1`,
|
456
|
+
# etc. to reference parameters. `$$` can be used to denote the `$` character.
|
457
|
+
# Examples: * `Failed to load '$0' which helps debug $1 the first time it is
|
458
|
+
# loaded. Again, $0 is very important.` * `Please pay $$10 to use $0 instead of $
|
459
|
+
# 1.`
|
460
|
+
# Corresponds to the JSON property `format`
|
461
|
+
# @return [String]
|
462
|
+
attr_accessor :format
|
463
|
+
|
464
|
+
# Optional parameters to be embedded into the message.
|
465
|
+
# Corresponds to the JSON property `parameters`
|
466
|
+
# @return [Array<String>]
|
467
|
+
attr_accessor :parameters
|
468
|
+
|
469
|
+
def initialize(**args)
|
470
|
+
update!(**args)
|
471
|
+
end
|
472
|
+
|
473
|
+
# Update properties of this object
|
474
|
+
def update!(**args)
|
475
|
+
@format = args[:format] if args.key?(:format)
|
476
|
+
@parameters = args[:parameters] if args.key?(:parameters)
|
477
|
+
end
|
478
|
+
end
|
479
|
+
|
480
|
+
# A SourceContext referring to a Gerrit project.
|
481
|
+
class GerritSourceContext
|
482
|
+
include Google::Apis::Core::Hashable
|
483
|
+
|
484
|
+
# An alias to a repo revision.
|
485
|
+
# Corresponds to the JSON property `aliasContext`
|
486
|
+
# @return [Google::Apis::ClouddebuggerV2::AliasContext]
|
487
|
+
attr_accessor :alias_context
|
488
|
+
|
489
|
+
# The name of an alias (branch, tag, etc.).
|
490
|
+
# Corresponds to the JSON property `aliasName`
|
491
|
+
# @return [String]
|
492
|
+
attr_accessor :alias_name
|
493
|
+
|
494
|
+
# The full project name within the host. Projects may be nested, so "project/
|
495
|
+
# subproject" is a valid project name. The "repo name" is hostURI/project.
|
496
|
+
# Corresponds to the JSON property `gerritProject`
|
497
|
+
# @return [String]
|
498
|
+
attr_accessor :gerrit_project
|
499
|
+
|
500
|
+
# The URI of a running Gerrit instance.
|
501
|
+
# Corresponds to the JSON property `hostUri`
|
502
|
+
# @return [String]
|
503
|
+
attr_accessor :host_uri
|
504
|
+
|
505
|
+
# A revision (commit) ID.
|
506
|
+
# Corresponds to the JSON property `revisionId`
|
507
|
+
# @return [String]
|
508
|
+
attr_accessor :revision_id
|
509
|
+
|
510
|
+
def initialize(**args)
|
511
|
+
update!(**args)
|
512
|
+
end
|
513
|
+
|
514
|
+
# Update properties of this object
|
515
|
+
def update!(**args)
|
516
|
+
@alias_context = args[:alias_context] if args.key?(:alias_context)
|
517
|
+
@alias_name = args[:alias_name] if args.key?(:alias_name)
|
518
|
+
@gerrit_project = args[:gerrit_project] if args.key?(:gerrit_project)
|
519
|
+
@host_uri = args[:host_uri] if args.key?(:host_uri)
|
520
|
+
@revision_id = args[:revision_id] if args.key?(:revision_id)
|
521
|
+
end
|
522
|
+
end
|
523
|
+
|
524
|
+
# Response for getting breakpoint information.
|
525
|
+
class GetBreakpointResponse
|
526
|
+
include Google::Apis::Core::Hashable
|
527
|
+
|
528
|
+
# ------------------------------------------------------------------------------
|
529
|
+
# ## Breakpoint (the resource) Represents the breakpoint specification, status
|
530
|
+
# and results.
|
531
|
+
# Corresponds to the JSON property `breakpoint`
|
532
|
+
# @return [Google::Apis::ClouddebuggerV2::Breakpoint]
|
533
|
+
attr_accessor :breakpoint
|
534
|
+
|
535
|
+
def initialize(**args)
|
536
|
+
update!(**args)
|
537
|
+
end
|
538
|
+
|
539
|
+
# Update properties of this object
|
540
|
+
def update!(**args)
|
541
|
+
@breakpoint = args[:breakpoint] if args.key?(:breakpoint)
|
542
|
+
end
|
543
|
+
end
|
544
|
+
|
545
|
+
# A GitSourceContext denotes a particular revision in a third party Git
|
546
|
+
# repository (e.g. GitHub).
|
547
|
+
class GitSourceContext
|
548
|
+
include Google::Apis::Core::Hashable
|
549
|
+
|
550
|
+
# Git commit hash. required.
|
551
|
+
# Corresponds to the JSON property `revisionId`
|
552
|
+
# @return [String]
|
553
|
+
attr_accessor :revision_id
|
554
|
+
|
555
|
+
# Git repository URL.
|
556
|
+
# Corresponds to the JSON property `url`
|
557
|
+
# @return [String]
|
558
|
+
attr_accessor :url
|
559
|
+
|
560
|
+
def initialize(**args)
|
561
|
+
update!(**args)
|
562
|
+
end
|
563
|
+
|
564
|
+
# Update properties of this object
|
565
|
+
def update!(**args)
|
566
|
+
@revision_id = args[:revision_id] if args.key?(:revision_id)
|
567
|
+
@url = args[:url] if args.key?(:url)
|
568
|
+
end
|
569
|
+
end
|
570
|
+
|
571
|
+
# Response for listing active breakpoints.
|
572
|
+
class ListActiveBreakpointsResponse
|
573
|
+
include Google::Apis::Core::Hashable
|
574
|
+
|
575
|
+
# List of all active breakpoints. The fields `id` and `location` are guaranteed
|
576
|
+
# to be set on each breakpoint.
|
577
|
+
# Corresponds to the JSON property `breakpoints`
|
578
|
+
# @return [Array<Google::Apis::ClouddebuggerV2::Breakpoint>]
|
579
|
+
attr_accessor :breakpoints
|
580
|
+
|
581
|
+
# A token that can be used in the next method call to block until the list of
|
582
|
+
# breakpoints changes.
|
583
|
+
# Corresponds to the JSON property `nextWaitToken`
|
584
|
+
# @return [String]
|
585
|
+
attr_accessor :next_wait_token
|
586
|
+
|
587
|
+
# If set to `true`, indicates that there is no change to the list of active
|
588
|
+
# breakpoints and the server-selected timeout has expired. The `breakpoints`
|
589
|
+
# field would be empty and should be ignored.
|
590
|
+
# Corresponds to the JSON property `waitExpired`
|
591
|
+
# @return [Boolean]
|
592
|
+
attr_accessor :wait_expired
|
593
|
+
alias_method :wait_expired?, :wait_expired
|
594
|
+
|
595
|
+
def initialize(**args)
|
596
|
+
update!(**args)
|
597
|
+
end
|
598
|
+
|
599
|
+
# Update properties of this object
|
600
|
+
def update!(**args)
|
601
|
+
@breakpoints = args[:breakpoints] if args.key?(:breakpoints)
|
602
|
+
@next_wait_token = args[:next_wait_token] if args.key?(:next_wait_token)
|
603
|
+
@wait_expired = args[:wait_expired] if args.key?(:wait_expired)
|
604
|
+
end
|
605
|
+
end
|
606
|
+
|
607
|
+
# Response for listing breakpoints.
|
608
|
+
class ListBreakpointsResponse
|
609
|
+
include Google::Apis::Core::Hashable
|
610
|
+
|
611
|
+
# List of breakpoints matching the request. The fields `id` and `location` are
|
612
|
+
# guaranteed to be set on each breakpoint. The fields: `stack_frames`, `
|
613
|
+
# evaluated_expressions` and `variable_table` are cleared on each breakpoint
|
614
|
+
# regardless of its status.
|
615
|
+
# Corresponds to the JSON property `breakpoints`
|
616
|
+
# @return [Array<Google::Apis::ClouddebuggerV2::Breakpoint>]
|
617
|
+
attr_accessor :breakpoints
|
618
|
+
|
619
|
+
# A wait token that can be used in the next call to `list` (REST) or `
|
620
|
+
# ListBreakpoints` (RPC) to block until the list of breakpoints has changes.
|
621
|
+
# Corresponds to the JSON property `nextWaitToken`
|
622
|
+
# @return [String]
|
623
|
+
attr_accessor :next_wait_token
|
624
|
+
|
625
|
+
def initialize(**args)
|
626
|
+
update!(**args)
|
627
|
+
end
|
628
|
+
|
629
|
+
# Update properties of this object
|
630
|
+
def update!(**args)
|
631
|
+
@breakpoints = args[:breakpoints] if args.key?(:breakpoints)
|
632
|
+
@next_wait_token = args[:next_wait_token] if args.key?(:next_wait_token)
|
633
|
+
end
|
634
|
+
end
|
635
|
+
|
636
|
+
# Response for listing debuggees.
|
637
|
+
class ListDebuggeesResponse
|
638
|
+
include Google::Apis::Core::Hashable
|
639
|
+
|
640
|
+
# List of debuggees accessible to the calling user. The fields `debuggee.id` and
|
641
|
+
# `description` are guaranteed to be set. The `description` field is a human
|
642
|
+
# readable field provided by agents and can be displayed to users.
|
643
|
+
# Corresponds to the JSON property `debuggees`
|
644
|
+
# @return [Array<Google::Apis::ClouddebuggerV2::Debuggee>]
|
645
|
+
attr_accessor :debuggees
|
646
|
+
|
647
|
+
def initialize(**args)
|
648
|
+
update!(**args)
|
649
|
+
end
|
650
|
+
|
651
|
+
# Update properties of this object
|
652
|
+
def update!(**args)
|
653
|
+
@debuggees = args[:debuggees] if args.key?(:debuggees)
|
654
|
+
end
|
655
|
+
end
|
656
|
+
|
657
|
+
# Selects a repo using a Google Cloud Platform project ID (e.g. winged-cargo-31)
|
658
|
+
# and a repo name within that project.
|
659
|
+
class ProjectRepoId
|
660
|
+
include Google::Apis::Core::Hashable
|
661
|
+
|
662
|
+
# The ID of the project.
|
663
|
+
# Corresponds to the JSON property `projectId`
|
664
|
+
# @return [String]
|
665
|
+
attr_accessor :project_id
|
666
|
+
|
667
|
+
# The name of the repo. Leave empty for the default repo.
|
668
|
+
# Corresponds to the JSON property `repoName`
|
669
|
+
# @return [String]
|
670
|
+
attr_accessor :repo_name
|
671
|
+
|
672
|
+
def initialize(**args)
|
673
|
+
update!(**args)
|
674
|
+
end
|
675
|
+
|
676
|
+
# Update properties of this object
|
677
|
+
def update!(**args)
|
678
|
+
@project_id = args[:project_id] if args.key?(:project_id)
|
679
|
+
@repo_name = args[:repo_name] if args.key?(:repo_name)
|
680
|
+
end
|
681
|
+
end
|
682
|
+
|
683
|
+
# Request to register a debuggee.
|
684
|
+
class RegisterDebuggeeRequest
|
685
|
+
include Google::Apis::Core::Hashable
|
686
|
+
|
687
|
+
# Represents the debugged application. The application may include one or more
|
688
|
+
# replicated processes executing the same code. Each of these processes is
|
689
|
+
# attached with a debugger agent, carrying out the debugging commands. Agents
|
690
|
+
# attached to the same debuggee identify themselves as such by using exactly the
|
691
|
+
# same Debuggee message value when registering.
|
692
|
+
# Corresponds to the JSON property `debuggee`
|
693
|
+
# @return [Google::Apis::ClouddebuggerV2::Debuggee]
|
694
|
+
attr_accessor :debuggee
|
695
|
+
|
696
|
+
def initialize(**args)
|
697
|
+
update!(**args)
|
698
|
+
end
|
699
|
+
|
700
|
+
# Update properties of this object
|
701
|
+
def update!(**args)
|
702
|
+
@debuggee = args[:debuggee] if args.key?(:debuggee)
|
703
|
+
end
|
704
|
+
end
|
705
|
+
|
706
|
+
# Response for registering a debuggee.
|
707
|
+
class RegisterDebuggeeResponse
|
708
|
+
include Google::Apis::Core::Hashable
|
709
|
+
|
710
|
+
# A unique ID generated for the agent. Each RegisterDebuggee request will
|
711
|
+
# generate a new agent ID.
|
712
|
+
# Corresponds to the JSON property `agentId`
|
713
|
+
# @return [String]
|
714
|
+
attr_accessor :agent_id
|
715
|
+
|
716
|
+
# Represents the debugged application. The application may include one or more
|
717
|
+
# replicated processes executing the same code. Each of these processes is
|
718
|
+
# attached with a debugger agent, carrying out the debugging commands. Agents
|
719
|
+
# attached to the same debuggee identify themselves as such by using exactly the
|
720
|
+
# same Debuggee message value when registering.
|
721
|
+
# Corresponds to the JSON property `debuggee`
|
722
|
+
# @return [Google::Apis::ClouddebuggerV2::Debuggee]
|
723
|
+
attr_accessor :debuggee
|
724
|
+
|
725
|
+
def initialize(**args)
|
726
|
+
update!(**args)
|
727
|
+
end
|
728
|
+
|
729
|
+
# Update properties of this object
|
730
|
+
def update!(**args)
|
731
|
+
@agent_id = args[:agent_id] if args.key?(:agent_id)
|
732
|
+
@debuggee = args[:debuggee] if args.key?(:debuggee)
|
733
|
+
end
|
734
|
+
end
|
735
|
+
|
736
|
+
# A unique identifier for a cloud repo.
|
737
|
+
class RepoId
|
738
|
+
include Google::Apis::Core::Hashable
|
739
|
+
|
740
|
+
# Selects a repo using a Google Cloud Platform project ID (e.g. winged-cargo-31)
|
741
|
+
# and a repo name within that project.
|
742
|
+
# Corresponds to the JSON property `projectRepoId`
|
743
|
+
# @return [Google::Apis::ClouddebuggerV2::ProjectRepoId]
|
744
|
+
attr_accessor :project_repo_id
|
745
|
+
|
746
|
+
# A server-assigned, globally unique identifier.
|
747
|
+
# Corresponds to the JSON property `uid`
|
748
|
+
# @return [String]
|
749
|
+
attr_accessor :uid
|
750
|
+
|
751
|
+
def initialize(**args)
|
752
|
+
update!(**args)
|
753
|
+
end
|
754
|
+
|
755
|
+
# Update properties of this object
|
756
|
+
def update!(**args)
|
757
|
+
@project_repo_id = args[:project_repo_id] if args.key?(:project_repo_id)
|
758
|
+
@uid = args[:uid] if args.key?(:uid)
|
759
|
+
end
|
760
|
+
end
|
761
|
+
|
762
|
+
# Response for setting a breakpoint.
|
763
|
+
class SetBreakpointResponse
|
764
|
+
include Google::Apis::Core::Hashable
|
765
|
+
|
766
|
+
# ------------------------------------------------------------------------------
|
767
|
+
# ## Breakpoint (the resource) Represents the breakpoint specification, status
|
768
|
+
# and results.
|
769
|
+
# Corresponds to the JSON property `breakpoint`
|
770
|
+
# @return [Google::Apis::ClouddebuggerV2::Breakpoint]
|
771
|
+
attr_accessor :breakpoint
|
772
|
+
|
773
|
+
def initialize(**args)
|
774
|
+
update!(**args)
|
775
|
+
end
|
776
|
+
|
777
|
+
# Update properties of this object
|
778
|
+
def update!(**args)
|
779
|
+
@breakpoint = args[:breakpoint] if args.key?(:breakpoint)
|
780
|
+
end
|
781
|
+
end
|
782
|
+
|
783
|
+
# A SourceContext is a reference to a tree of files. A SourceContext together
|
784
|
+
# with a path point to a unique revision of a single file or directory.
|
785
|
+
class SourceContext
|
786
|
+
include Google::Apis::Core::Hashable
|
787
|
+
|
788
|
+
# A CloudRepoSourceContext denotes a particular revision in a cloud repo (a repo
|
789
|
+
# hosted by the Google Cloud Platform).
|
790
|
+
# Corresponds to the JSON property `cloudRepo`
|
791
|
+
# @return [Google::Apis::ClouddebuggerV2::CloudRepoSourceContext]
|
792
|
+
attr_accessor :cloud_repo
|
793
|
+
|
794
|
+
# A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot.
|
795
|
+
# Corresponds to the JSON property `cloudWorkspace`
|
796
|
+
# @return [Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext]
|
797
|
+
attr_accessor :cloud_workspace
|
798
|
+
|
799
|
+
# A SourceContext referring to a Gerrit project.
|
800
|
+
# Corresponds to the JSON property `gerrit`
|
801
|
+
# @return [Google::Apis::ClouddebuggerV2::GerritSourceContext]
|
802
|
+
attr_accessor :gerrit
|
803
|
+
|
804
|
+
# A GitSourceContext denotes a particular revision in a third party Git
|
805
|
+
# repository (e.g. GitHub).
|
806
|
+
# Corresponds to the JSON property `git`
|
807
|
+
# @return [Google::Apis::ClouddebuggerV2::GitSourceContext]
|
808
|
+
attr_accessor :git
|
809
|
+
|
810
|
+
def initialize(**args)
|
811
|
+
update!(**args)
|
812
|
+
end
|
813
|
+
|
814
|
+
# Update properties of this object
|
815
|
+
def update!(**args)
|
816
|
+
@cloud_repo = args[:cloud_repo] if args.key?(:cloud_repo)
|
817
|
+
@cloud_workspace = args[:cloud_workspace] if args.key?(:cloud_workspace)
|
818
|
+
@gerrit = args[:gerrit] if args.key?(:gerrit)
|
819
|
+
@git = args[:git] if args.key?(:git)
|
820
|
+
end
|
821
|
+
end
|
822
|
+
|
823
|
+
# Represents a location in the source code.
|
824
|
+
class SourceLocation
|
825
|
+
include Google::Apis::Core::Hashable
|
826
|
+
|
827
|
+
# Column within a line. The first column in a line as the value `1`. Agents that
|
828
|
+
# do not support setting breakpoints on specific columns ignore this field.
|
829
|
+
# Corresponds to the JSON property `column`
|
830
|
+
# @return [Fixnum]
|
831
|
+
attr_accessor :column
|
832
|
+
|
833
|
+
# Line inside the file. The first line in the file has the value `1`.
|
834
|
+
# Corresponds to the JSON property `line`
|
835
|
+
# @return [Fixnum]
|
836
|
+
attr_accessor :line
|
837
|
+
|
838
|
+
# Path to the source file within the source context of the target binary.
|
839
|
+
# Corresponds to the JSON property `path`
|
840
|
+
# @return [String]
|
841
|
+
attr_accessor :path
|
842
|
+
|
843
|
+
def initialize(**args)
|
844
|
+
update!(**args)
|
845
|
+
end
|
846
|
+
|
847
|
+
# Update properties of this object
|
848
|
+
def update!(**args)
|
849
|
+
@column = args[:column] if args.key?(:column)
|
850
|
+
@line = args[:line] if args.key?(:line)
|
851
|
+
@path = args[:path] if args.key?(:path)
|
852
|
+
end
|
853
|
+
end
|
854
|
+
|
855
|
+
# Represents a stack frame context.
|
856
|
+
class StackFrame
|
857
|
+
include Google::Apis::Core::Hashable
|
858
|
+
|
859
|
+
# Set of arguments passed to this function. Note that this might not be
|
860
|
+
# populated for all stack frames.
|
861
|
+
# Corresponds to the JSON property `arguments`
|
862
|
+
# @return [Array<Google::Apis::ClouddebuggerV2::Variable>]
|
863
|
+
attr_accessor :arguments
|
864
|
+
|
865
|
+
# Demangled function name at the call site.
|
866
|
+
# Corresponds to the JSON property `function`
|
867
|
+
# @return [String]
|
868
|
+
attr_accessor :function
|
869
|
+
|
870
|
+
# Set of local variables at the stack frame location. Note that this might not
|
871
|
+
# be populated for all stack frames.
|
872
|
+
# Corresponds to the JSON property `locals`
|
873
|
+
# @return [Array<Google::Apis::ClouddebuggerV2::Variable>]
|
874
|
+
attr_accessor :locals
|
875
|
+
|
876
|
+
# Represents a location in the source code.
|
877
|
+
# Corresponds to the JSON property `location`
|
878
|
+
# @return [Google::Apis::ClouddebuggerV2::SourceLocation]
|
879
|
+
attr_accessor :location
|
880
|
+
|
881
|
+
def initialize(**args)
|
882
|
+
update!(**args)
|
883
|
+
end
|
884
|
+
|
885
|
+
# Update properties of this object
|
886
|
+
def update!(**args)
|
887
|
+
@arguments = args[:arguments] if args.key?(:arguments)
|
888
|
+
@function = args[:function] if args.key?(:function)
|
889
|
+
@locals = args[:locals] if args.key?(:locals)
|
890
|
+
@location = args[:location] if args.key?(:location)
|
891
|
+
end
|
892
|
+
end
|
893
|
+
|
894
|
+
# Represents a contextual status message. The message can indicate an error or
|
895
|
+
# informational status, and refer to specific parts of the containing object.
|
896
|
+
# For example, the `Breakpoint.status` field can indicate an error referring to
|
897
|
+
# the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.
|
898
|
+
class StatusMessage
|
899
|
+
include Google::Apis::Core::Hashable
|
900
|
+
|
901
|
+
# Represents a message with parameters.
|
902
|
+
# Corresponds to the JSON property `description`
|
903
|
+
# @return [Google::Apis::ClouddebuggerV2::FormatMessage]
|
904
|
+
attr_accessor :description
|
905
|
+
|
906
|
+
# Distinguishes errors from informational messages.
|
907
|
+
# Corresponds to the JSON property `isError`
|
908
|
+
# @return [Boolean]
|
909
|
+
attr_accessor :is_error
|
910
|
+
alias_method :is_error?, :is_error
|
911
|
+
|
912
|
+
# Reference to which the message applies.
|
913
|
+
# Corresponds to the JSON property `refersTo`
|
914
|
+
# @return [String]
|
915
|
+
attr_accessor :refers_to
|
916
|
+
|
917
|
+
def initialize(**args)
|
918
|
+
update!(**args)
|
919
|
+
end
|
920
|
+
|
921
|
+
# Update properties of this object
|
922
|
+
def update!(**args)
|
923
|
+
@description = args[:description] if args.key?(:description)
|
924
|
+
@is_error = args[:is_error] if args.key?(:is_error)
|
925
|
+
@refers_to = args[:refers_to] if args.key?(:refers_to)
|
926
|
+
end
|
927
|
+
end
|
928
|
+
|
929
|
+
# Request to update an active breakpoint.
|
930
|
+
class UpdateActiveBreakpointRequest
|
931
|
+
include Google::Apis::Core::Hashable
|
932
|
+
|
933
|
+
# ------------------------------------------------------------------------------
|
934
|
+
# ## Breakpoint (the resource) Represents the breakpoint specification, status
|
935
|
+
# and results.
|
936
|
+
# Corresponds to the JSON property `breakpoint`
|
937
|
+
# @return [Google::Apis::ClouddebuggerV2::Breakpoint]
|
938
|
+
attr_accessor :breakpoint
|
939
|
+
|
940
|
+
def initialize(**args)
|
941
|
+
update!(**args)
|
942
|
+
end
|
943
|
+
|
944
|
+
# Update properties of this object
|
945
|
+
def update!(**args)
|
946
|
+
@breakpoint = args[:breakpoint] if args.key?(:breakpoint)
|
947
|
+
end
|
948
|
+
end
|
949
|
+
|
950
|
+
# Response for updating an active breakpoint. The message is defined to allow
|
951
|
+
# future extensions.
|
952
|
+
class UpdateActiveBreakpointResponse
|
953
|
+
include Google::Apis::Core::Hashable
|
954
|
+
|
955
|
+
def initialize(**args)
|
956
|
+
update!(**args)
|
957
|
+
end
|
958
|
+
|
959
|
+
# Update properties of this object
|
960
|
+
def update!(**args)
|
961
|
+
end
|
962
|
+
end
|
963
|
+
|
964
|
+
# Represents a variable or an argument possibly of a compound object type. Note
|
965
|
+
# how the following variables are represented: 1) A simple variable: int x = 5 `
|
966
|
+
# name: "x", value: "5", type: "int" ` // Captured variable 2) A compound object:
|
967
|
+
# struct T ` int m1; int m2; `; T x = ` 3, 7 `; ` // Captured variable name: "x"
|
968
|
+
# , type: "T", members ` name: "m1", value: "3", type: "int" `, members ` name: "
|
969
|
+
# m2", value: "7", type: "int" ` ` 3) A pointer where the pointee was captured:
|
970
|
+
# T x = ` 3, 7 `; T* p = &x; ` // Captured variable name: "p", type: "T*", value:
|
971
|
+
# "0x00500500", members ` name: "m1", value: "3", type: "int" `, members ` name:
|
972
|
+
# "m2", value: "7", type: "int" ` ` 4) A pointer where the pointee was not
|
973
|
+
# captured: T* p = new T; ` // Captured variable name: "p", type: "T*", value: "
|
974
|
+
# 0x00400400" status ` is_error: true, description ` format: "unavailable" ` ` `
|
975
|
+
# The status should describe the reason for the missing value, such as ``, ``, ``
|
976
|
+
# . Note that a null pointer should not have members. 5) An unnamed value: int*
|
977
|
+
# p = new int(7); ` // Captured variable name: "p", value: "0x00500500", type: "
|
978
|
+
# int*", members ` value: "7", type: "int" ` ` 6) An unnamed pointer where the
|
979
|
+
# pointee was not captured: int* p = new int(7); int** pp = &p; ` // Captured
|
980
|
+
# variable name: "pp", value: "0x00500500", type: "int**", members ` value: "
|
981
|
+
# 0x00400400", type: "int*" status ` is_error: true, description: ` format: "
|
982
|
+
# unavailable" ` ` ` ` ` To optimize computation, memory and network traffic,
|
983
|
+
# variables that repeat in the output multiple times can be stored once in a
|
984
|
+
# shared variable table and be referenced using the `var_table_index` field. The
|
985
|
+
# variables stored in the shared table are nameless and are essentially a
|
986
|
+
# partition of the complete variable. To reconstruct the complete variable,
|
987
|
+
# merge the referencing variable with the referenced variable. When using the
|
988
|
+
# shared variable table, the following variables: T x = ` 3, 7 `; T* p = &x; T&
|
989
|
+
# r = x; ` name: "x", var_table_index: 3, type: "T" ` // Captured variables `
|
990
|
+
# name: "p", value "0x00500500", type="T*", var_table_index: 3 ` ` name: "r",
|
991
|
+
# type="T&", var_table_index: 3 ` ` // Shared variable table entry #3: members `
|
992
|
+
# name: "m1", value: "3", type: "int" `, members ` name: "m2", value: "7", type:
|
993
|
+
# "int" ` ` Note that the pointer address is stored with the referencing
|
994
|
+
# variable and not with the referenced variable. This allows the referenced
|
995
|
+
# variable to be shared between pointers and references. The type field is
|
996
|
+
# optional. The debugger agent may or may not support it.
|
997
|
+
class Variable
|
998
|
+
include Google::Apis::Core::Hashable
|
999
|
+
|
1000
|
+
# Members contained or pointed to by the variable.
|
1001
|
+
# Corresponds to the JSON property `members`
|
1002
|
+
# @return [Array<Google::Apis::ClouddebuggerV2::Variable>]
|
1003
|
+
attr_accessor :members
|
1004
|
+
|
1005
|
+
# Name of the variable, if any.
|
1006
|
+
# Corresponds to the JSON property `name`
|
1007
|
+
# @return [String]
|
1008
|
+
attr_accessor :name
|
1009
|
+
|
1010
|
+
# Represents a contextual status message. The message can indicate an error or
|
1011
|
+
# informational status, and refer to specific parts of the containing object.
|
1012
|
+
# For example, the `Breakpoint.status` field can indicate an error referring to
|
1013
|
+
# the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.
|
1014
|
+
# Corresponds to the JSON property `status`
|
1015
|
+
# @return [Google::Apis::ClouddebuggerV2::StatusMessage]
|
1016
|
+
attr_accessor :status
|
1017
|
+
|
1018
|
+
# Variable type (e.g. `MyClass`). If the variable is split with `var_table_index`
|
1019
|
+
# , `type` goes next to `value`. The interpretation of a type is agent specific.
|
1020
|
+
# It is recommended to include the dynamic type rather than a static type of an
|
1021
|
+
# object.
|
1022
|
+
# Corresponds to the JSON property `type`
|
1023
|
+
# @return [String]
|
1024
|
+
attr_accessor :type
|
1025
|
+
|
1026
|
+
# Simple value of the variable.
|
1027
|
+
# Corresponds to the JSON property `value`
|
1028
|
+
# @return [String]
|
1029
|
+
attr_accessor :value
|
1030
|
+
|
1031
|
+
# Reference to a variable in the shared variable table. More than one variable
|
1032
|
+
# can reference the same variable in the table. The `var_table_index` field is
|
1033
|
+
# an index into `variable_table` in Breakpoint.
|
1034
|
+
# Corresponds to the JSON property `varTableIndex`
|
1035
|
+
# @return [Fixnum]
|
1036
|
+
attr_accessor :var_table_index
|
1037
|
+
|
1038
|
+
def initialize(**args)
|
1039
|
+
update!(**args)
|
1040
|
+
end
|
1041
|
+
|
1042
|
+
# Update properties of this object
|
1043
|
+
def update!(**args)
|
1044
|
+
@members = args[:members] if args.key?(:members)
|
1045
|
+
@name = args[:name] if args.key?(:name)
|
1046
|
+
@status = args[:status] if args.key?(:status)
|
1047
|
+
@type = args[:type] if args.key?(:type)
|
1048
|
+
@value = args[:value] if args.key?(:value)
|
1049
|
+
@var_table_index = args[:var_table_index] if args.key?(:var_table_index)
|
1050
|
+
end
|
1051
|
+
end
|
1052
|
+
end
|
1053
|
+
end
|
1054
|
+
end
|