google-api-client 0.9.pre3 → 0.9.pre4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (307) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -0
  3. data/CHANGELOG.md +14 -2
  4. data/Gemfile +4 -0
  5. data/MIGRATING.md +1 -1
  6. data/README.md +17 -3
  7. data/api_names.yaml +127 -14
  8. data/api_names_out.yaml +5442 -710
  9. data/bin/generate-api +16 -14
  10. data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +213 -2
  12. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +71 -0
  13. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +21 -42
  14. data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
  15. data/generated/google/apis/adexchangeseller_v2_0/service.rb +15 -29
  16. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  17. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  18. data/generated/google/apis/admin_datatransfer_v1/representations.rb +118 -0
  19. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  20. data/generated/google/apis/admin_directory_v1.rb +25 -1
  21. data/generated/google/apis/admin_directory_v1/classes.rb +718 -0
  22. data/generated/google/apis/admin_directory_v1/representations.rb +244 -0
  23. data/generated/google/apis/admin_directory_v1/service.rb +1522 -509
  24. data/generated/google/apis/admin_reports_v1.rb +1 -1
  25. data/generated/google/apis/admin_reports_v1/service.rb +5 -10
  26. data/generated/google/apis/adsense_v1_4.rb +1 -1
  27. data/generated/google/apis/adsense_v1_4/classes.rb +6 -0
  28. data/generated/google/apis/adsense_v1_4/representations.rb +1 -0
  29. data/generated/google/apis/adsense_v1_4/service.rb +40 -78
  30. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  31. data/generated/google/apis/adsensehost_v4_1/service.rb +26 -52
  32. data/generated/google/apis/analytics_v3.rb +1 -1
  33. data/generated/google/apis/analytics_v3/classes.rb +11 -13
  34. data/generated/google/apis/analytics_v3/service.rb +84 -158
  35. data/generated/google/apis/androidenterprise_v1.rb +2 -2
  36. data/generated/google/apis/androidenterprise_v1/classes.rb +276 -8
  37. data/generated/google/apis/androidenterprise_v1/representations.rb +106 -0
  38. data/generated/google/apis/androidenterprise_v1/service.rb +715 -97
  39. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  40. data/generated/google/apis/androidpublisher_v2/classes.rb +2 -2
  41. data/generated/google/apis/androidpublisher_v2/service.rb +55 -107
  42. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  43. data/generated/google/apis/appengine_v1beta4/classes.rb +1532 -0
  44. data/generated/google/apis/appengine_v1beta4/representations.rb +526 -0
  45. data/generated/google/apis/appengine_v1beta4/service.rb +476 -0
  46. data/generated/google/apis/appsactivity_v1.rb +1 -1
  47. data/generated/google/apis/appsactivity_v1/service.rb +1 -2
  48. data/generated/google/apis/appstate_v1.rb +1 -1
  49. data/generated/google/apis/appstate_v1/service.rb +6 -11
  50. data/generated/google/apis/autoscaler_v1beta2/service.rb +10 -20
  51. data/generated/google/apis/bigquery_v2.rb +4 -1
  52. data/generated/google/apis/bigquery_v2/classes.rb +231 -16
  53. data/generated/google/apis/bigquery_v2/representations.rb +62 -0
  54. data/generated/google/apis/bigquery_v2/service.rb +24 -45
  55. data/generated/google/apis/blogger_v3/service.rb +33 -66
  56. data/generated/google/apis/books_v1.rb +1 -1
  57. data/generated/google/apis/books_v1/classes.rb +441 -0
  58. data/generated/google/apis/books_v1/representations.rb +177 -0
  59. data/generated/google/apis/books_v1/service.rb +210 -90
  60. data/generated/google/apis/calendar_v3.rb +1 -1
  61. data/generated/google/apis/calendar_v3/classes.rb +34 -18
  62. data/generated/google/apis/calendar_v3/service.rb +118 -103
  63. data/generated/google/apis/civicinfo_v2.rb +1 -1
  64. data/generated/google/apis/civicinfo_v2/classes.rb +12 -3
  65. data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
  66. data/generated/google/apis/civicinfo_v2/service.rb +5 -10
  67. data/generated/google/apis/classroom_v1.rb +49 -0
  68. data/generated/google/apis/classroom_v1/classes.rb +512 -0
  69. data/generated/google/apis/classroom_v1/representations.rb +217 -0
  70. data/generated/google/apis/classroom_v1/service.rb +970 -0
  71. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  72. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  73. data/generated/google/apis/cloudbilling_v1/representations.rb +79 -0
  74. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  75. data/generated/google/apis/clouddebugger_v2.rb +41 -0
  76. data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
  77. data/generated/google/apis/clouddebugger_v2/representations.rb +410 -0
  78. data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
  79. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  80. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +6 -12
  81. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +5 -2
  82. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +173 -249
  83. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +36 -68
  84. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +293 -80
  85. data/generated/google/apis/cloudtrace_v1.rb +35 -0
  86. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  87. data/generated/google/apis/cloudtrace_v1/representations.rb +92 -0
  88. data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
  89. data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
  90. data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
  91. data/generated/google/apis/clouduseraccounts_beta/representations.rb +313 -0
  92. data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
  93. data/generated/google/apis/compute_beta.rb +49 -0
  94. data/generated/google/apis/compute_beta/classes.rb +9128 -0
  95. data/generated/google/apis/compute_beta/representations.rb +3048 -0
  96. data/generated/google/apis/compute_beta/service.rb +10154 -0
  97. data/generated/google/apis/compute_v1.rb +1 -1
  98. data/generated/google/apis/compute_v1/classes.rb +1305 -520
  99. data/generated/google/apis/compute_v1/representations.rb +122 -15
  100. data/generated/google/apis/compute_v1/service.rb +2202 -1085
  101. data/generated/google/apis/container_v1.rb +1 -1
  102. data/generated/google/apis/container_v1/classes.rb +56 -31
  103. data/generated/google/apis/container_v1/representations.rb +12 -0
  104. data/generated/google/apis/container_v1/service.rb +62 -41
  105. data/generated/google/apis/content_v2.rb +2 -2
  106. data/generated/google/apis/content_v2/classes.rb +2252 -56
  107. data/generated/google/apis/content_v2/representations.rb +917 -87
  108. data/generated/google/apis/content_v2/service.rb +680 -85
  109. data/generated/google/apis/coordinate_v1.rb +1 -1
  110. data/generated/google/apis/coordinate_v1/service.rb +16 -25
  111. data/generated/google/apis/customsearch_v1/service.rb +1 -2
  112. data/generated/google/apis/datastore_v1beta2.rb +1 -1
  113. data/generated/google/apis/datastore_v1beta2/service.rb +12 -18
  114. data/generated/google/apis/deploymentmanager_v2.rb +44 -0
  115. data/generated/google/apis/deploymentmanager_v2/classes.rb +1089 -0
  116. data/generated/google/apis/deploymentmanager_v2/representations.rb +422 -0
  117. data/generated/google/apis/deploymentmanager_v2/service.rb +857 -0
  118. data/generated/google/apis/deploymentmanager_v2beta2.rb +5 -2
  119. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +22 -3
  120. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +3 -0
  121. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +14 -27
  122. data/generated/google/apis/dfareporting_v2_1.rb +1 -1
  123. data/generated/google/apis/dfareporting_v2_1/classes.rb +29 -14
  124. data/generated/google/apis/dfareporting_v2_1/service.rb +196 -389
  125. data/generated/google/apis/discovery_v1/classes.rb +7 -0
  126. data/generated/google/apis/discovery_v1/representations.rb +1 -0
  127. data/generated/google/apis/discovery_v1/service.rb +2 -4
  128. data/generated/google/apis/dns_v1.rb +4 -1
  129. data/generated/google/apis/dns_v1/service.rb +9 -18
  130. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  131. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +9 -2
  132. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +1 -0
  133. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -16
  134. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  135. data/generated/google/apis/doubleclicksearch_v2/classes.rb +15 -6
  136. data/generated/google/apis/doubleclicksearch_v2/representations.rb +1 -0
  137. data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -23
  138. data/generated/google/apis/drive_v2.rb +1 -1
  139. data/generated/google/apis/drive_v2/classes.rb +73 -30
  140. data/generated/google/apis/drive_v2/representations.rb +14 -0
  141. data/generated/google/apis/drive_v2/service.rb +139 -135
  142. data/generated/google/apis/drive_v3.rb +55 -0
  143. data/generated/google/apis/drive_v3/classes.rb +1534 -0
  144. data/generated/google/apis/drive_v3/representations.rb +497 -0
  145. data/generated/google/apis/drive_v3/service.rb +1541 -0
  146. data/generated/google/apis/fitness_v1.rb +1 -1
  147. data/generated/google/apis/fitness_v1/service.rb +14 -27
  148. data/generated/google/apis/fusiontables_v2/service.rb +40 -73
  149. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  150. data/generated/google/apis/games_configuration_v1configuration/service.rb +14 -27
  151. data/generated/google/apis/games_management_v1management.rb +37 -0
  152. data/generated/google/apis/games_management_v1management/classes.rb +524 -0
  153. data/generated/google/apis/games_management_v1management/representations.rb +231 -0
  154. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  155. data/generated/google/apis/games_v1.rb +1 -1
  156. data/generated/google/apis/games_v1/classes.rb +39 -0
  157. data/generated/google/apis/games_v1/representations.rb +14 -0
  158. data/generated/google/apis/games_v1/service.rb +93 -109
  159. data/generated/google/apis/gan_v1beta1/service.rb +10 -20
  160. data/generated/google/apis/genomics_v1.rb +5 -3
  161. data/generated/google/apis/genomics_v1/classes.rb +519 -200
  162. data/generated/google/apis/genomics_v1/representations.rb +126 -13
  163. data/generated/google/apis/genomics_v1/service.rb +392 -236
  164. data/generated/google/apis/gmail_v1.rb +4 -1
  165. data/generated/google/apis/gmail_v1/service.rb +39 -71
  166. data/generated/google/apis/groupsmigration_v1/service.rb +2 -3
  167. data/generated/google/apis/groupssettings_v1/service.rb +3 -6
  168. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  169. data/generated/google/apis/identitytoolkit_v3/classes.rb +125 -0
  170. data/generated/google/apis/identitytoolkit_v3/representations.rb +37 -0
  171. data/generated/google/apis/identitytoolkit_v3/service.rb +44 -24
  172. data/generated/google/apis/kgsearch_v1.rb +32 -0
  173. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  174. data/generated/google/apis/kgsearch_v1/representations.rb +39 -0
  175. data/generated/google/apis/kgsearch_v1/service.rb +111 -0
  176. data/generated/google/apis/licensing_v1.rb +1 -1
  177. data/generated/google/apis/licensing_v1/service.rb +7 -14
  178. data/generated/google/apis/logging_v1beta3.rb +16 -4
  179. data/generated/google/apis/logging_v1beta3/classes.rb +620 -46
  180. data/generated/google/apis/logging_v1beta3/representations.rb +144 -0
  181. data/generated/google/apis/logging_v1beta3/service.rb +435 -104
  182. data/generated/google/apis/manager_v1beta2.rb +3 -0
  183. data/generated/google/apis/manager_v1beta2/service.rb +8 -16
  184. data/generated/google/apis/mapsengine_v1.rb +1 -1
  185. data/generated/google/apis/mapsengine_v1/service.rb +85 -162
  186. data/generated/google/apis/mirror_v1.rb +1 -1
  187. data/generated/google/apis/mirror_v1/service.rb +28 -52
  188. data/generated/google/apis/oauth2_v2.rb +1 -1
  189. data/generated/google/apis/oauth2_v2/service.rb +4 -8
  190. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -2
  191. data/generated/google/apis/partners_v2.rb +32 -0
  192. data/generated/google/apis/partners_v2/classes.rb +942 -0
  193. data/generated/google/apis/partners_v2/representations.rb +402 -0
  194. data/generated/google/apis/partners_v2/service.rb +400 -0
  195. data/generated/google/apis/plus_domains_v1.rb +1 -1
  196. data/generated/google/apis/plus_domains_v1/classes.rb +207 -0
  197. data/generated/google/apis/plus_domains_v1/representations.rb +114 -0
  198. data/generated/google/apis/plus_domains_v1/service.rb +21 -41
  199. data/generated/google/apis/plus_v1.rb +1 -1
  200. data/generated/google/apis/plus_v1/classes.rb +207 -0
  201. data/generated/google/apis/plus_v1/representations.rb +114 -0
  202. data/generated/google/apis/plus_v1/service.rb +11 -56
  203. data/generated/google/apis/prediction_v1_6.rb +1 -1
  204. data/generated/google/apis/prediction_v1_6/service.rb +8 -16
  205. data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
  206. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
  207. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +274 -0
  208. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
  209. data/generated/google/apis/pubsub_v1.rb +37 -0
  210. data/generated/google/apis/pubsub_v1/classes.rb +614 -0
  211. data/generated/google/apis/pubsub_v1/representations.rb +281 -0
  212. data/generated/google/apis/pubsub_v1/service.rb +774 -0
  213. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  214. data/generated/google/apis/pubsub_v1beta2/classes.rb +78 -283
  215. data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -85
  216. data/generated/google/apis/pubsub_v1beta2/service.rb +79 -87
  217. data/generated/google/apis/qpx_express_v1/service.rb +1 -2
  218. data/generated/google/apis/replicapool_v1beta2.rb +3 -0
  219. data/generated/google/apis/replicapool_v1beta2/service.rb +12 -24
  220. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -1
  221. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +46 -2
  222. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +16 -0
  223. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +58 -18
  224. data/generated/google/apis/reseller_v1.rb +1 -1
  225. data/generated/google/apis/reseller_v1/classes.rb +19 -1
  226. data/generated/google/apis/reseller_v1/representations.rb +1 -0
  227. data/generated/google/apis/reseller_v1/service.rb +16 -30
  228. data/generated/google/apis/resourceviews_v1beta2.rb +3 -0
  229. data/generated/google/apis/resourceviews_v1beta2/service.rb +16 -27
  230. data/generated/google/apis/script_v1.rb +61 -0
  231. data/generated/google/apis/script_v1/classes.rb +259 -0
  232. data/generated/google/apis/script_v1/representations.rb +106 -0
  233. data/generated/google/apis/script_v1/service.rb +98 -0
  234. data/generated/google/apis/site_verification_v1.rb +1 -1
  235. data/generated/google/apis/site_verification_v1/service.rb +8 -15
  236. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  237. data/generated/google/apis/sqladmin_v1beta4/classes.rb +186 -2
  238. data/generated/google/apis/sqladmin_v1beta4/representations.rb +70 -0
  239. data/generated/google/apis/sqladmin_v1beta4/service.rb +166 -75
  240. data/generated/google/apis/storage_v1.rb +5 -2
  241. data/generated/google/apis/storage_v1/classes.rb +47 -4
  242. data/generated/google/apis/storage_v1/representations.rb +18 -0
  243. data/generated/google/apis/storage_v1/service.rb +77 -94
  244. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  245. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  246. data/generated/google/apis/storagetransfer_v1/representations.rb +370 -0
  247. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  248. data/generated/google/apis/tagmanager_v1.rb +1 -1
  249. data/generated/google/apis/tagmanager_v1/classes.rb +189 -31
  250. data/generated/google/apis/tagmanager_v1/representations.rb +69 -15
  251. data/generated/google/apis/tagmanager_v1/service.rb +114 -275
  252. data/generated/google/apis/taskqueue_v1beta2/service.rb +8 -16
  253. data/generated/google/apis/tasks_v1/service.rb +14 -28
  254. data/generated/google/apis/translate_v2/service.rb +3 -6
  255. data/generated/google/apis/urlshortener_v1/service.rb +3 -6
  256. data/generated/google/apis/webmasters_v3.rb +3 -3
  257. data/generated/google/apis/webmasters_v3/classes.rb +4 -4
  258. data/generated/google/apis/webmasters_v3/service.rb +16 -30
  259. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  260. data/generated/google/apis/youtube_analytics_v1/classes.rb +6 -0
  261. data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -0
  262. data/generated/google/apis/youtube_analytics_v1/service.rb +16 -21
  263. data/generated/google/apis/youtube_v3.rb +1 -1
  264. data/generated/google/apis/youtube_v3/classes.rb +111 -78
  265. data/generated/google/apis/youtube_v3/representations.rb +2 -0
  266. data/generated/google/apis/youtube_v3/service.rb +78 -246
  267. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  268. data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
  269. data/generated/google/apis/youtubereporting_v1/representations.rb +128 -0
  270. data/generated/google/apis/youtubereporting_v1/service.rb +364 -0
  271. data/google-api-client.gemspec +3 -3
  272. data/lib/google/api_client/auth/installed_app.rb +2 -2
  273. data/lib/google/api_client/auth/key_utils.rb +1 -0
  274. data/lib/google/api_client/auth/storage.rb +1 -0
  275. data/lib/google/api_client/auth/storages/file_store.rb +1 -0
  276. data/lib/google/api_client/auth/storages/redis_store.rb +1 -0
  277. data/lib/google/api_client/client_secrets.rb +4 -5
  278. data/lib/google/apis/core/api_command.rb +2 -2
  279. data/lib/google/apis/core/base_service.rb +1 -0
  280. data/lib/google/apis/core/batch.rb +25 -8
  281. data/lib/google/apis/core/download.rb +1 -1
  282. data/lib/google/apis/core/http_command.rb +24 -12
  283. data/lib/google/apis/core/multipart.rb +20 -6
  284. data/lib/google/apis/core/upload.rb +11 -4
  285. data/lib/google/apis/generator/annotator.rb +29 -10
  286. data/lib/google/apis/generator/helpers.rb +1 -1
  287. data/lib/google/apis/generator/templates/_method.tmpl +5 -6
  288. data/lib/google/apis/options.rb +7 -3
  289. data/lib/google/apis/version.rb +1 -1
  290. data/samples/calendar/calendar.rb +1 -1
  291. data/samples/drive/drive.rb +9 -2
  292. data/samples/pubsub/pubsub.rb +5 -6
  293. data/samples/translate/translate.rb +1 -5
  294. data/script/generate +20 -5
  295. data/spec/fixtures/files/child/.gitignore +0 -0
  296. data/spec/fixtures/files/invalid.json +1 -0
  297. data/spec/google/api_client/client_secrets_spec.rb +38 -1
  298. data/spec/google/apis/core/batch_spec.rb +22 -8
  299. data/spec/google/apis/core/download_spec.rb +13 -0
  300. data/spec/google/apis/core/http_command_spec.rb +26 -9
  301. data/spec/google/apis/core/upload_spec.rb +65 -17
  302. data/spec/google/apis/options_spec.rb +8 -0
  303. data/spec/integration_tests/adsense_spec.rb +28 -0
  304. data/spec/integration_tests/pubsub_spec.rb +3 -3
  305. data/spec/spec_helper.rb +5 -1
  306. data/third_party/hurley_patches.rb +103 -0
  307. metadata +87 -7
@@ -0,0 +1,41 @@
1
+ # Copyright 2015 Google Inc.
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
+
19
+ module Google
20
+ module Apis
21
+ # Google Cloud Debugger API
22
+ #
23
+ # Lets you examine the stack and variables of your running application without
24
+ # stopping or slowing it down.
25
+ #
26
+ # @see https://cloud.google.com/tools/cloud-debugger
27
+ module ClouddebuggerV2
28
+ VERSION = 'V2'
29
+ REVISION = '20151123'
30
+
31
+ # View and manage your data across Google Cloud Platform services
32
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
33
+
34
+ # Manage cloud debugger
35
+ AUTH_CLOUD_DEBUGGER = 'https://www.googleapis.com/auth/cloud_debugger'
36
+
37
+ # Manage active breakpoints in cloud debugger
38
+ AUTH_CLOUD_DEBUGLETCONTROLLER = 'https://www.googleapis.com/auth/cloud_debugletcontroller'
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,1004 @@
1
+ # Copyright 2015 Google Inc.
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
+ # Request to register a debuggee.
26
+ class RegisterDebuggeeRequest
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Represents the application to debug. The application may include one or more
30
+ # replicated processes executing the same code. Each of these processes is
31
+ # attached with a debugger agent, carrying out the debugging commands. The
32
+ # agents attached to the same debuggee are identified by using exactly the same
33
+ # field values when registering.
34
+ # Corresponds to the JSON property `debuggee`
35
+ # @return [Google::Apis::ClouddebuggerV2::Debuggee]
36
+ attr_accessor :debuggee
37
+
38
+ def initialize(**args)
39
+ update!(**args)
40
+ end
41
+
42
+ # Update properties of this object
43
+ def update!(**args)
44
+ @debuggee = args[:debuggee] unless args[:debuggee].nil?
45
+ end
46
+ end
47
+
48
+ # Represents the application to debug. The application may include one or more
49
+ # replicated processes executing the same code. Each of these processes is
50
+ # attached with a debugger agent, carrying out the debugging commands. The
51
+ # agents attached to the same debuggee are identified by using exactly the same
52
+ # field values when registering.
53
+ class Debuggee
54
+ include Google::Apis::Core::Hashable
55
+
56
+ # Unique identifier for the debuggee generated by the controller service.
57
+ # Corresponds to the JSON property `id`
58
+ # @return [String]
59
+ attr_accessor :id
60
+
61
+ # Project the debuggee is associated with. Use the project number when
62
+ # registering a Google Cloud Platform project.
63
+ # Corresponds to the JSON property `project`
64
+ # @return [String]
65
+ attr_accessor :project
66
+
67
+ # Debuggee uniquifier within the project. Any string that identifies the
68
+ # application within the project can be used. Including environment and version
69
+ # or build IDs is recommended.
70
+ # Corresponds to the JSON property `uniquifier`
71
+ # @return [String]
72
+ attr_accessor :uniquifier
73
+
74
+ # Human readable description of the debuggee. Including a human-readable project
75
+ # name, environment name and version information is recommended.
76
+ # Corresponds to the JSON property `description`
77
+ # @return [String]
78
+ attr_accessor :description
79
+
80
+ # If set to `true`, indicates that the debuggee is considered as inactive by the
81
+ # Controller service.
82
+ # Corresponds to the JSON property `isInactive`
83
+ # @return [Boolean]
84
+ attr_accessor :is_inactive
85
+ alias_method :is_inactive?, :is_inactive
86
+
87
+ # Version ID of the agent release. The version ID is structured as following: `
88
+ # domain/type/vmajor.minor` (for example `google.com/gcp-java/v1.1`).
89
+ # Corresponds to the JSON property `agentVersion`
90
+ # @return [String]
91
+ attr_accessor :agent_version
92
+
93
+ # If set to `true`, indicates that the agent should disable itself and detach
94
+ # from the debuggee.
95
+ # Corresponds to the JSON property `isDisabled`
96
+ # @return [Boolean]
97
+ attr_accessor :is_disabled
98
+ alias_method :is_disabled?, :is_disabled
99
+
100
+ # Represents a contextual status message. The message can indicate an error or
101
+ # informational status, and refer to specific parts of the containing object.
102
+ # For example, the `Breakpoint.status` field can indicate an error referring to
103
+ # the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.
104
+ # Corresponds to the JSON property `status`
105
+ # @return [Google::Apis::ClouddebuggerV2::StatusMessage]
106
+ attr_accessor :status
107
+
108
+ # References to the locations and revisions of the source code used in the
109
+ # deployed application. NOTE: This field is deprecated. Consumers should use `
110
+ # ext_source_contexts` if it is not empty. Debug agents should populate both
111
+ # this field and `ext_source_contexts`.
112
+ # Corresponds to the JSON property `sourceContexts`
113
+ # @return [Array<Google::Apis::ClouddebuggerV2::SourceContext>]
114
+ attr_accessor :source_contexts
115
+
116
+ # References to the locations and revisions of the source code used in the
117
+ # deployed application. Contexts describing a remote repo related to the source
118
+ # code have a `category` label of `remote_repo`. Source snapshot source contexts
119
+ # have a `category` of `snapshot`.
120
+ # Corresponds to the JSON property `extSourceContexts`
121
+ # @return [Array<Google::Apis::ClouddebuggerV2::ExtendedSourceContext>]
122
+ attr_accessor :ext_source_contexts
123
+
124
+ # A set of custom debuggee properties, populated by the agent, to be displayed
125
+ # to the user.
126
+ # Corresponds to the JSON property `labels`
127
+ # @return [Hash<String,String>]
128
+ attr_accessor :labels
129
+
130
+ def initialize(**args)
131
+ update!(**args)
132
+ end
133
+
134
+ # Update properties of this object
135
+ def update!(**args)
136
+ @id = args[:id] unless args[:id].nil?
137
+ @project = args[:project] unless args[:project].nil?
138
+ @uniquifier = args[:uniquifier] unless args[:uniquifier].nil?
139
+ @description = args[:description] unless args[:description].nil?
140
+ @is_inactive = args[:is_inactive] unless args[:is_inactive].nil?
141
+ @agent_version = args[:agent_version] unless args[:agent_version].nil?
142
+ @is_disabled = args[:is_disabled] unless args[:is_disabled].nil?
143
+ @status = args[:status] unless args[:status].nil?
144
+ @source_contexts = args[:source_contexts] unless args[:source_contexts].nil?
145
+ @ext_source_contexts = args[:ext_source_contexts] unless args[:ext_source_contexts].nil?
146
+ @labels = args[:labels] unless args[:labels].nil?
147
+ end
148
+ end
149
+
150
+ # Represents a contextual status message. The message can indicate an error or
151
+ # informational status, and refer to specific parts of the containing object.
152
+ # For example, the `Breakpoint.status` field can indicate an error referring to
153
+ # the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.
154
+ class StatusMessage
155
+ include Google::Apis::Core::Hashable
156
+
157
+ # Distinguishes errors from informational messages.
158
+ # Corresponds to the JSON property `isError`
159
+ # @return [Boolean]
160
+ attr_accessor :is_error
161
+ alias_method :is_error?, :is_error
162
+
163
+ # Reference to which the message applies.
164
+ # Corresponds to the JSON property `refersTo`
165
+ # @return [String]
166
+ attr_accessor :refers_to
167
+
168
+ # Represents a message with parameters.
169
+ # Corresponds to the JSON property `description`
170
+ # @return [Google::Apis::ClouddebuggerV2::FormatMessage]
171
+ attr_accessor :description
172
+
173
+ def initialize(**args)
174
+ update!(**args)
175
+ end
176
+
177
+ # Update properties of this object
178
+ def update!(**args)
179
+ @is_error = args[:is_error] unless args[:is_error].nil?
180
+ @refers_to = args[:refers_to] unless args[:refers_to].nil?
181
+ @description = args[:description] unless args[:description].nil?
182
+ end
183
+ end
184
+
185
+ # Represents a message with parameters.
186
+ class FormatMessage
187
+ include Google::Apis::Core::Hashable
188
+
189
+ # Format template for the message. The `format` uses placeholders `$0`, `$1`,
190
+ # etc. to reference parameters. `$$` can be used to denote the `$` character.
191
+ # Examples: * `Failed to load '$0' which helps debug $1 the first time it is
192
+ # loaded. Again, $0 is very important.` * `Please pay $$10 to use $0 instead of $
193
+ # 1.`
194
+ # Corresponds to the JSON property `format`
195
+ # @return [String]
196
+ attr_accessor :format
197
+
198
+ # Optional parameters to be embedded into the message.
199
+ # Corresponds to the JSON property `parameters`
200
+ # @return [Array<String>]
201
+ attr_accessor :parameters
202
+
203
+ def initialize(**args)
204
+ update!(**args)
205
+ end
206
+
207
+ # Update properties of this object
208
+ def update!(**args)
209
+ @format = args[:format] unless args[:format].nil?
210
+ @parameters = args[:parameters] unless args[:parameters].nil?
211
+ end
212
+ end
213
+
214
+ # A SourceContext is a reference to a tree of files. A SourceContext together
215
+ # with a path point to a unique revision of a single file or directory.
216
+ class SourceContext
217
+ include Google::Apis::Core::Hashable
218
+
219
+ # A CloudRepoSourceContext denotes a particular revision in a cloud repo (a repo
220
+ # hosted by the Google Cloud Platform).
221
+ # Corresponds to the JSON property `cloudRepo`
222
+ # @return [Google::Apis::ClouddebuggerV2::CloudRepoSourceContext]
223
+ attr_accessor :cloud_repo
224
+
225
+ # A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot.
226
+ # Corresponds to the JSON property `cloudWorkspace`
227
+ # @return [Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext]
228
+ attr_accessor :cloud_workspace
229
+
230
+ # A SourceContext referring to a Gerrit project.
231
+ # Corresponds to the JSON property `gerrit`
232
+ # @return [Google::Apis::ClouddebuggerV2::GerritSourceContext]
233
+ attr_accessor :gerrit
234
+
235
+ # A GitSourceContext denotes a particular revision in a third party Git
236
+ # repository (e.g. GitHub).
237
+ # Corresponds to the JSON property `git`
238
+ # @return [Google::Apis::ClouddebuggerV2::GitSourceContext]
239
+ attr_accessor :git
240
+
241
+ def initialize(**args)
242
+ update!(**args)
243
+ end
244
+
245
+ # Update properties of this object
246
+ def update!(**args)
247
+ @cloud_repo = args[:cloud_repo] unless args[:cloud_repo].nil?
248
+ @cloud_workspace = args[:cloud_workspace] unless args[:cloud_workspace].nil?
249
+ @gerrit = args[:gerrit] unless args[:gerrit].nil?
250
+ @git = args[:git] unless args[:git].nil?
251
+ end
252
+ end
253
+
254
+ # A CloudRepoSourceContext denotes a particular revision in a cloud repo (a repo
255
+ # hosted by the Google Cloud Platform).
256
+ class CloudRepoSourceContext
257
+ include Google::Apis::Core::Hashable
258
+
259
+ # A unique identifier for a cloud repo.
260
+ # Corresponds to the JSON property `repoId`
261
+ # @return [Google::Apis::ClouddebuggerV2::RepoId]
262
+ attr_accessor :repo_id
263
+
264
+ # A revision ID.
265
+ # Corresponds to the JSON property `revisionId`
266
+ # @return [String]
267
+ attr_accessor :revision_id
268
+
269
+ # The name of an alias (branch, tag, etc.).
270
+ # Corresponds to the JSON property `aliasName`
271
+ # @return [String]
272
+ attr_accessor :alias_name
273
+
274
+ # An alias to a repo revision.
275
+ # Corresponds to the JSON property `aliasContext`
276
+ # @return [Google::Apis::ClouddebuggerV2::AliasContext]
277
+ attr_accessor :alias_context
278
+
279
+ def initialize(**args)
280
+ update!(**args)
281
+ end
282
+
283
+ # Update properties of this object
284
+ def update!(**args)
285
+ @repo_id = args[:repo_id] unless args[:repo_id].nil?
286
+ @revision_id = args[:revision_id] unless args[:revision_id].nil?
287
+ @alias_name = args[:alias_name] unless args[:alias_name].nil?
288
+ @alias_context = args[:alias_context] unless args[:alias_context].nil?
289
+ end
290
+ end
291
+
292
+ # A unique identifier for a cloud repo.
293
+ class RepoId
294
+ include Google::Apis::Core::Hashable
295
+
296
+ # Selects a repo using a Google Cloud Platform project ID (e.g. winged-cargo-31)
297
+ # and a repo name within that project.
298
+ # Corresponds to the JSON property `projectRepoId`
299
+ # @return [Google::Apis::ClouddebuggerV2::ProjectRepoId]
300
+ attr_accessor :project_repo_id
301
+
302
+ # A server-assigned, globally unique identifier.
303
+ # Corresponds to the JSON property `uid`
304
+ # @return [String]
305
+ attr_accessor :uid
306
+
307
+ def initialize(**args)
308
+ update!(**args)
309
+ end
310
+
311
+ # Update properties of this object
312
+ def update!(**args)
313
+ @project_repo_id = args[:project_repo_id] unless args[:project_repo_id].nil?
314
+ @uid = args[:uid] unless args[:uid].nil?
315
+ end
316
+ end
317
+
318
+ # Selects a repo using a Google Cloud Platform project ID (e.g. winged-cargo-31)
319
+ # and a repo name within that project.
320
+ class ProjectRepoId
321
+ include Google::Apis::Core::Hashable
322
+
323
+ # The ID of the project.
324
+ # Corresponds to the JSON property `projectId`
325
+ # @return [String]
326
+ attr_accessor :project_id
327
+
328
+ # The name of the repo. Leave empty for the default repo.
329
+ # Corresponds to the JSON property `repoName`
330
+ # @return [String]
331
+ attr_accessor :repo_name
332
+
333
+ def initialize(**args)
334
+ update!(**args)
335
+ end
336
+
337
+ # Update properties of this object
338
+ def update!(**args)
339
+ @project_id = args[:project_id] unless args[:project_id].nil?
340
+ @repo_name = args[:repo_name] unless args[:repo_name].nil?
341
+ end
342
+ end
343
+
344
+ # An alias to a repo revision.
345
+ class AliasContext
346
+ include Google::Apis::Core::Hashable
347
+
348
+ # The alias kind.
349
+ # Corresponds to the JSON property `kind`
350
+ # @return [String]
351
+ attr_accessor :kind
352
+
353
+ # The alias name.
354
+ # Corresponds to the JSON property `name`
355
+ # @return [String]
356
+ attr_accessor :name
357
+
358
+ def initialize(**args)
359
+ update!(**args)
360
+ end
361
+
362
+ # Update properties of this object
363
+ def update!(**args)
364
+ @kind = args[:kind] unless args[:kind].nil?
365
+ @name = args[:name] unless args[:name].nil?
366
+ end
367
+ end
368
+
369
+ # A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot.
370
+ class CloudWorkspaceSourceContext
371
+ include Google::Apis::Core::Hashable
372
+
373
+ # A CloudWorkspaceId is a unique identifier for a cloud workspace. A cloud
374
+ # workspace is a place associated with a repo where modified files can be stored
375
+ # before they are committed.
376
+ # Corresponds to the JSON property `workspaceId`
377
+ # @return [Google::Apis::ClouddebuggerV2::CloudWorkspaceId]
378
+ attr_accessor :workspace_id
379
+
380
+ # The ID of the snapshot. An empty snapshot_id refers to the most recent
381
+ # snapshot.
382
+ # Corresponds to the JSON property `snapshotId`
383
+ # @return [String]
384
+ attr_accessor :snapshot_id
385
+
386
+ def initialize(**args)
387
+ update!(**args)
388
+ end
389
+
390
+ # Update properties of this object
391
+ def update!(**args)
392
+ @workspace_id = args[:workspace_id] unless args[:workspace_id].nil?
393
+ @snapshot_id = args[:snapshot_id] unless args[:snapshot_id].nil?
394
+ end
395
+ end
396
+
397
+ # A CloudWorkspaceId is a unique identifier for a cloud workspace. A cloud
398
+ # workspace is a place associated with a repo where modified files can be stored
399
+ # before they are committed.
400
+ class CloudWorkspaceId
401
+ include Google::Apis::Core::Hashable
402
+
403
+ # A unique identifier for a cloud repo.
404
+ # Corresponds to the JSON property `repoId`
405
+ # @return [Google::Apis::ClouddebuggerV2::RepoId]
406
+ attr_accessor :repo_id
407
+
408
+ # The unique name of the workspace within the repo. This is the name chosen by
409
+ # the client in the Source API's CreateWorkspace method.
410
+ # Corresponds to the JSON property `name`
411
+ # @return [String]
412
+ attr_accessor :name
413
+
414
+ def initialize(**args)
415
+ update!(**args)
416
+ end
417
+
418
+ # Update properties of this object
419
+ def update!(**args)
420
+ @repo_id = args[:repo_id] unless args[:repo_id].nil?
421
+ @name = args[:name] unless args[:name].nil?
422
+ end
423
+ end
424
+
425
+ # A SourceContext referring to a Gerrit project.
426
+ class GerritSourceContext
427
+ include Google::Apis::Core::Hashable
428
+
429
+ # The URI of a running Gerrit instance.
430
+ # Corresponds to the JSON property `hostUri`
431
+ # @return [String]
432
+ attr_accessor :host_uri
433
+
434
+ # The full project name within the host. Projects may be nested, so "project/
435
+ # subproject" is a valid project name. The "repo name" is hostURI/project.
436
+ # Corresponds to the JSON property `gerritProject`
437
+ # @return [String]
438
+ attr_accessor :gerrit_project
439
+
440
+ # A revision (commit) ID.
441
+ # Corresponds to the JSON property `revisionId`
442
+ # @return [String]
443
+ attr_accessor :revision_id
444
+
445
+ # The name of an alias (branch, tag, etc.).
446
+ # Corresponds to the JSON property `aliasName`
447
+ # @return [String]
448
+ attr_accessor :alias_name
449
+
450
+ # An alias to a repo revision.
451
+ # Corresponds to the JSON property `aliasContext`
452
+ # @return [Google::Apis::ClouddebuggerV2::AliasContext]
453
+ attr_accessor :alias_context
454
+
455
+ def initialize(**args)
456
+ update!(**args)
457
+ end
458
+
459
+ # Update properties of this object
460
+ def update!(**args)
461
+ @host_uri = args[:host_uri] unless args[:host_uri].nil?
462
+ @gerrit_project = args[:gerrit_project] unless args[:gerrit_project].nil?
463
+ @revision_id = args[:revision_id] unless args[:revision_id].nil?
464
+ @alias_name = args[:alias_name] unless args[:alias_name].nil?
465
+ @alias_context = args[:alias_context] unless args[:alias_context].nil?
466
+ end
467
+ end
468
+
469
+ # A GitSourceContext denotes a particular revision in a third party Git
470
+ # repository (e.g. GitHub).
471
+ class GitSourceContext
472
+ include Google::Apis::Core::Hashable
473
+
474
+ # Git repository URL.
475
+ # Corresponds to the JSON property `url`
476
+ # @return [String]
477
+ attr_accessor :url
478
+
479
+ # Git commit hash. required.
480
+ # Corresponds to the JSON property `revisionId`
481
+ # @return [String]
482
+ attr_accessor :revision_id
483
+
484
+ def initialize(**args)
485
+ update!(**args)
486
+ end
487
+
488
+ # Update properties of this object
489
+ def update!(**args)
490
+ @url = args[:url] unless args[:url].nil?
491
+ @revision_id = args[:revision_id] unless args[:revision_id].nil?
492
+ end
493
+ end
494
+
495
+ # An ExtendedSourceContext is a SourceContext combined with additional details
496
+ # describing the context.
497
+ class ExtendedSourceContext
498
+ include Google::Apis::Core::Hashable
499
+
500
+ # A SourceContext is a reference to a tree of files. A SourceContext together
501
+ # with a path point to a unique revision of a single file or directory.
502
+ # Corresponds to the JSON property `context`
503
+ # @return [Google::Apis::ClouddebuggerV2::SourceContext]
504
+ attr_accessor :context
505
+
506
+ # Labels with user defined metadata.
507
+ # Corresponds to the JSON property `labels`
508
+ # @return [Hash<String,String>]
509
+ attr_accessor :labels
510
+
511
+ def initialize(**args)
512
+ update!(**args)
513
+ end
514
+
515
+ # Update properties of this object
516
+ def update!(**args)
517
+ @context = args[:context] unless args[:context].nil?
518
+ @labels = args[:labels] unless args[:labels].nil?
519
+ end
520
+ end
521
+
522
+ # Response for registering a debuggee.
523
+ class RegisterDebuggeeResponse
524
+ include Google::Apis::Core::Hashable
525
+
526
+ # Represents the application to debug. The application may include one or more
527
+ # replicated processes executing the same code. Each of these processes is
528
+ # attached with a debugger agent, carrying out the debugging commands. The
529
+ # agents attached to the same debuggee are identified by using exactly the same
530
+ # field values when registering.
531
+ # Corresponds to the JSON property `debuggee`
532
+ # @return [Google::Apis::ClouddebuggerV2::Debuggee]
533
+ attr_accessor :debuggee
534
+
535
+ def initialize(**args)
536
+ update!(**args)
537
+ end
538
+
539
+ # Update properties of this object
540
+ def update!(**args)
541
+ @debuggee = args[:debuggee] unless args[:debuggee].nil?
542
+ end
543
+ end
544
+
545
+ # Response for listing active breakpoints.
546
+ class ListActiveBreakpointsResponse
547
+ include Google::Apis::Core::Hashable
548
+
549
+ # List of all active breakpoints. The fields `id` and `location` are guaranteed
550
+ # to be set on each breakpoint.
551
+ # Corresponds to the JSON property `breakpoints`
552
+ # @return [Array<Google::Apis::ClouddebuggerV2::Breakpoint>]
553
+ attr_accessor :breakpoints
554
+
555
+ # A wait token that can be used in the next method call to block until the list
556
+ # of breakpoints changes.
557
+ # Corresponds to the JSON property `nextWaitToken`
558
+ # @return [String]
559
+ attr_accessor :next_wait_token
560
+
561
+ # The `wait_expired` field is set to true by the server when the request times
562
+ # out and the field `success_on_timeout` is set to true.
563
+ # Corresponds to the JSON property `waitExpired`
564
+ # @return [Boolean]
565
+ attr_accessor :wait_expired
566
+ alias_method :wait_expired?, :wait_expired
567
+
568
+ def initialize(**args)
569
+ update!(**args)
570
+ end
571
+
572
+ # Update properties of this object
573
+ def update!(**args)
574
+ @breakpoints = args[:breakpoints] unless args[:breakpoints].nil?
575
+ @next_wait_token = args[:next_wait_token] unless args[:next_wait_token].nil?
576
+ @wait_expired = args[:wait_expired] unless args[:wait_expired].nil?
577
+ end
578
+ end
579
+
580
+ # Represents the breakpoint specification, status and results.
581
+ class Breakpoint
582
+ include Google::Apis::Core::Hashable
583
+
584
+ # Breakpoint identifier, unique in the scope of the debuggee.
585
+ # Corresponds to the JSON property `id`
586
+ # @return [String]
587
+ attr_accessor :id
588
+
589
+ # Action that the agent should perform when the code at the breakpoint location
590
+ # is hit.
591
+ # Corresponds to the JSON property `action`
592
+ # @return [String]
593
+ attr_accessor :action
594
+
595
+ # Represents a location in the source code.
596
+ # Corresponds to the JSON property `location`
597
+ # @return [Google::Apis::ClouddebuggerV2::SourceLocation]
598
+ attr_accessor :location
599
+
600
+ # Condition that triggers the breakpoint. The condition is a compound boolean
601
+ # expression composed using expressions in a programming language at the source
602
+ # location.
603
+ # Corresponds to the JSON property `condition`
604
+ # @return [String]
605
+ attr_accessor :condition
606
+
607
+ # List of read-only expressions to evaluate at the breakpoint location. The
608
+ # expressions are composed using expressions in the programming language at the
609
+ # source location. If the breakpoint action is `LOG`, the evaluated expressions
610
+ # are included in log statements.
611
+ # Corresponds to the JSON property `expressions`
612
+ # @return [Array<String>]
613
+ attr_accessor :expressions
614
+
615
+ # Only relevant when action is `LOG`. Defines the message to log when the
616
+ # breakpoint hits. The message may include parameter placeholders `$0`, `$1`,
617
+ # etc. These placeholders are replaced with the evaluated value of the
618
+ # appropriate expression. Expressions not referenced in `log_message_format` are
619
+ # not logged. Example: `Message received, id = $0, count = $1` with `expressions`
620
+ # = `[ message.id, message.count ]`.
621
+ # Corresponds to the JSON property `logMessageFormat`
622
+ # @return [String]
623
+ attr_accessor :log_message_format
624
+
625
+ # Indicates the severity of the log. Only relevant when action is `LOG`.
626
+ # Corresponds to the JSON property `logLevel`
627
+ # @return [String]
628
+ attr_accessor :log_level
629
+
630
+ # When true, indicates that this is a final result and the breakpoint state will
631
+ # not change from here on.
632
+ # Corresponds to the JSON property `isFinalState`
633
+ # @return [Boolean]
634
+ attr_accessor :is_final_state
635
+ alias_method :is_final_state?, :is_final_state
636
+
637
+ # Time this breakpoint was created by the server in seconds resolution.
638
+ # Corresponds to the JSON property `createTime`
639
+ # @return [String]
640
+ attr_accessor :create_time
641
+
642
+ # Time this breakpoint was finalized as seen by the server in seconds resolution.
643
+ # Corresponds to the JSON property `finalTime`
644
+ # @return [String]
645
+ attr_accessor :final_time
646
+
647
+ # E-mail address of the user that created this breakpoint
648
+ # Corresponds to the JSON property `userEmail`
649
+ # @return [String]
650
+ attr_accessor :user_email
651
+
652
+ # Represents a contextual status message. The message can indicate an error or
653
+ # informational status, and refer to specific parts of the containing object.
654
+ # For example, the `Breakpoint.status` field can indicate an error referring to
655
+ # the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.
656
+ # Corresponds to the JSON property `status`
657
+ # @return [Google::Apis::ClouddebuggerV2::StatusMessage]
658
+ attr_accessor :status
659
+
660
+ # The stack at breakpoint time.
661
+ # Corresponds to the JSON property `stackFrames`
662
+ # @return [Array<Google::Apis::ClouddebuggerV2::StackFrame>]
663
+ attr_accessor :stack_frames
664
+
665
+ # Values of evaluated expressions at breakpoint time. The evaluated expressions
666
+ # appear in exactly the same order they are listed in the `expressions` field.
667
+ # The `name` field holds the original expression text, the `value` or `members`
668
+ # field holds the result of the evaluated expression. If the expression cannot
669
+ # be evaluated, the `status` inside the `Variable` will indicate an error and
670
+ # contain the error text.
671
+ # Corresponds to the JSON property `evaluatedExpressions`
672
+ # @return [Array<Google::Apis::ClouddebuggerV2::Variable>]
673
+ attr_accessor :evaluated_expressions
674
+
675
+ # The `variable_table` exists to aid with computation, memory and network
676
+ # traffic optimization. It enables storing a variable once and reference it from
677
+ # multiple variables, including variables stored in the `variable_table` itself.
678
+ # For example, the same `this` object, which may appear at many levels of the
679
+ # stack, can have all of its data stored once in this table. The stack frame
680
+ # variables then would hold only a reference to it. The variable `
681
+ # var_table_index` field is an index into this repeated field. The stored
682
+ # objects are nameless and get their name from the referencing variable. The
683
+ # effective variable is a merge of the referencing veariable and the referenced
684
+ # variable.
685
+ # Corresponds to the JSON property `variableTable`
686
+ # @return [Array<Google::Apis::ClouddebuggerV2::Variable>]
687
+ attr_accessor :variable_table
688
+
689
+ def initialize(**args)
690
+ update!(**args)
691
+ end
692
+
693
+ # Update properties of this object
694
+ def update!(**args)
695
+ @id = args[:id] unless args[:id].nil?
696
+ @action = args[:action] unless args[:action].nil?
697
+ @location = args[:location] unless args[:location].nil?
698
+ @condition = args[:condition] unless args[:condition].nil?
699
+ @expressions = args[:expressions] unless args[:expressions].nil?
700
+ @log_message_format = args[:log_message_format] unless args[:log_message_format].nil?
701
+ @log_level = args[:log_level] unless args[:log_level].nil?
702
+ @is_final_state = args[:is_final_state] unless args[:is_final_state].nil?
703
+ @create_time = args[:create_time] unless args[:create_time].nil?
704
+ @final_time = args[:final_time] unless args[:final_time].nil?
705
+ @user_email = args[:user_email] unless args[:user_email].nil?
706
+ @status = args[:status] unless args[:status].nil?
707
+ @stack_frames = args[:stack_frames] unless args[:stack_frames].nil?
708
+ @evaluated_expressions = args[:evaluated_expressions] unless args[:evaluated_expressions].nil?
709
+ @variable_table = args[:variable_table] unless args[:variable_table].nil?
710
+ end
711
+ end
712
+
713
+ # Represents a location in the source code.
714
+ class SourceLocation
715
+ include Google::Apis::Core::Hashable
716
+
717
+ # Path to the source file within the source context of the target binary.
718
+ # Corresponds to the JSON property `path`
719
+ # @return [String]
720
+ attr_accessor :path
721
+
722
+ # Line inside the file. The first line in the file has the value `1`.
723
+ # Corresponds to the JSON property `line`
724
+ # @return [Fixnum]
725
+ attr_accessor :line
726
+
727
+ def initialize(**args)
728
+ update!(**args)
729
+ end
730
+
731
+ # Update properties of this object
732
+ def update!(**args)
733
+ @path = args[:path] unless args[:path].nil?
734
+ @line = args[:line] unless args[:line].nil?
735
+ end
736
+ end
737
+
738
+ # Represents a stack frame context.
739
+ class StackFrame
740
+ include Google::Apis::Core::Hashable
741
+
742
+ # Demangled function name at the call site.
743
+ # Corresponds to the JSON property `function`
744
+ # @return [String]
745
+ attr_accessor :function
746
+
747
+ # Represents a location in the source code.
748
+ # Corresponds to the JSON property `location`
749
+ # @return [Google::Apis::ClouddebuggerV2::SourceLocation]
750
+ attr_accessor :location
751
+
752
+ # Set of arguments passed to this function. Note that this might not be
753
+ # populated for all stack frames.
754
+ # Corresponds to the JSON property `arguments`
755
+ # @return [Array<Google::Apis::ClouddebuggerV2::Variable>]
756
+ attr_accessor :arguments
757
+
758
+ # Set of local variables at the stack frame location. Note that this might not
759
+ # be populated for all stack frames.
760
+ # Corresponds to the JSON property `locals`
761
+ # @return [Array<Google::Apis::ClouddebuggerV2::Variable>]
762
+ attr_accessor :locals
763
+
764
+ def initialize(**args)
765
+ update!(**args)
766
+ end
767
+
768
+ # Update properties of this object
769
+ def update!(**args)
770
+ @function = args[:function] unless args[:function].nil?
771
+ @location = args[:location] unless args[:location].nil?
772
+ @arguments = args[:arguments] unless args[:arguments].nil?
773
+ @locals = args[:locals] unless args[:locals].nil?
774
+ end
775
+ end
776
+
777
+ # Represents a variable or an argument possibly of a compound object type. Note
778
+ # how the following variables are represented: 1) A simple variable: int x = 5 `
779
+ # name: "x", value: "5", type: "int" ` // Captured variable 2) A compound object:
780
+ # struct T ` int m1; int m2; `; T x = ` 3, 7 `; ` // Captured variable name: "x"
781
+ # , type: "T", members ` name: "m1", value: "3", type: "int" `, members ` name: "
782
+ # m2", value: "7", type: "int" ` ` 3) A pointer where the pointee was captured:
783
+ # T x = ` 3, 7 `; T* p = &x; ` // Captured variable name: "p", type: "T*", value:
784
+ # "0x00500500", members ` name: "m1", value: "3", type: "int" `, members ` name:
785
+ # "m2", value: "7", type: "int" ` ` 4) A pointer where the pointee was not
786
+ # captured: T* p = new T; ` // Captured variable name: "p", type: "T*", value: "
787
+ # 0x00400400" status ` is_error: true, description ` format: "unavailable" ` ` `
788
+ # The status should describe the reason for the missing value, such as ``, ``, `
789
+ # `. Note that a null pointer should not have members. 5) An unnamed value: int*
790
+ # p = new int(7); ` // Captured variable name: "p", value: "0x00500500", type: "
791
+ # int*", members ` value: "7", type: "int" ` ` 6) An unnamed pointer where the
792
+ # pointee was not captured: int* p = new int(7); int** pp = &p; ` // Captured
793
+ # variable name: "pp", value: "0x00500500", type: "int**", members ` value: "
794
+ # 0x00400400", type: "int*" status ` is_error: true, description: ` format: "
795
+ # unavailable" ` ` ` ` ` To optimize computation, memory and network traffic,
796
+ # variables that repeat in the output multiple times can be stored once in a
797
+ # shared variable table and be referenced using the `var_table_index` field. The
798
+ # variables stored in the shared table are nameless and are essentially a
799
+ # partition of the complete variable. To reconstruct the complete variable,
800
+ # merge the referencing variable with the referenced variable. When using the
801
+ # shared variable table, the following variables: T x = ` 3, 7 `; T* p = &x; T&
802
+ # r = x; ` name: "x", var_table_index: 3, type: "T" ` // Captured variables `
803
+ # name: "p", value "0x00500500", type="T*", var_table_index: 3 ` ` name: "r",
804
+ # type="T&", var_table_index: 3 ` ` // Shared variable table entry #3: members `
805
+ # name: "m1", value: "3", type: "int" `, members ` name: "m2", value: "7", type:
806
+ # "int" ` ` Note that the pointer address is stored with the referencing
807
+ # variable and not with the referenced variable. This allows the referenced
808
+ # variable to be shared between pointers and references. The type field is
809
+ # optional. The debugger agent may or may not support it.
810
+ class Variable
811
+ include Google::Apis::Core::Hashable
812
+
813
+ # Name of the variable, if any.
814
+ # Corresponds to the JSON property `name`
815
+ # @return [String]
816
+ attr_accessor :name
817
+
818
+ # Simple value of the variable.
819
+ # Corresponds to the JSON property `value`
820
+ # @return [String]
821
+ attr_accessor :value
822
+
823
+ # Variable type (e.g. `MyClass`). If the variable is split with `var_table_index`
824
+ # , `type` goes next to `value`. The interpretation of a type is agent specific.
825
+ # It is recommended to include the dynamic type rather than a static type of an
826
+ # object.
827
+ # Corresponds to the JSON property `type`
828
+ # @return [String]
829
+ attr_accessor :type
830
+
831
+ # Members contained or pointed to by the variable.
832
+ # Corresponds to the JSON property `members`
833
+ # @return [Array<Google::Apis::ClouddebuggerV2::Variable>]
834
+ attr_accessor :members
835
+
836
+ # Reference to a variable in the shared variable table. More than one variable
837
+ # can reference the same variable in the table. The `var_table_index` field is
838
+ # an index into `variable_table` in Breakpoint.
839
+ # Corresponds to the JSON property `varTableIndex`
840
+ # @return [Fixnum]
841
+ attr_accessor :var_table_index
842
+
843
+ # Represents a contextual status message. The message can indicate an error or
844
+ # informational status, and refer to specific parts of the containing object.
845
+ # For example, the `Breakpoint.status` field can indicate an error referring to
846
+ # the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.
847
+ # Corresponds to the JSON property `status`
848
+ # @return [Google::Apis::ClouddebuggerV2::StatusMessage]
849
+ attr_accessor :status
850
+
851
+ def initialize(**args)
852
+ update!(**args)
853
+ end
854
+
855
+ # Update properties of this object
856
+ def update!(**args)
857
+ @name = args[:name] unless args[:name].nil?
858
+ @value = args[:value] unless args[:value].nil?
859
+ @type = args[:type] unless args[:type].nil?
860
+ @members = args[:members] unless args[:members].nil?
861
+ @var_table_index = args[:var_table_index] unless args[:var_table_index].nil?
862
+ @status = args[:status] unless args[:status].nil?
863
+ end
864
+ end
865
+
866
+ # Request to update an active breakpoint.
867
+ class UpdateActiveBreakpointRequest
868
+ include Google::Apis::Core::Hashable
869
+
870
+ # Represents the breakpoint specification, status and results.
871
+ # Corresponds to the JSON property `breakpoint`
872
+ # @return [Google::Apis::ClouddebuggerV2::Breakpoint]
873
+ attr_accessor :breakpoint
874
+
875
+ def initialize(**args)
876
+ update!(**args)
877
+ end
878
+
879
+ # Update properties of this object
880
+ def update!(**args)
881
+ @breakpoint = args[:breakpoint] unless args[:breakpoint].nil?
882
+ end
883
+ end
884
+
885
+ # Response for updating an active breakpoint. The message is defined to allow
886
+ # future extensions.
887
+ class UpdateActiveBreakpointResponse
888
+ include Google::Apis::Core::Hashable
889
+
890
+ def initialize(**args)
891
+ update!(**args)
892
+ end
893
+
894
+ # Update properties of this object
895
+ def update!(**args)
896
+ end
897
+ end
898
+
899
+ # Response for setting a breakpoint.
900
+ class SetBreakpointResponse
901
+ include Google::Apis::Core::Hashable
902
+
903
+ # Represents the breakpoint specification, status and results.
904
+ # Corresponds to the JSON property `breakpoint`
905
+ # @return [Google::Apis::ClouddebuggerV2::Breakpoint]
906
+ attr_accessor :breakpoint
907
+
908
+ def initialize(**args)
909
+ update!(**args)
910
+ end
911
+
912
+ # Update properties of this object
913
+ def update!(**args)
914
+ @breakpoint = args[:breakpoint] unless args[:breakpoint].nil?
915
+ end
916
+ end
917
+
918
+ # Response for getting breakpoint information.
919
+ class GetBreakpointResponse
920
+ include Google::Apis::Core::Hashable
921
+
922
+ # Represents the breakpoint specification, status and results.
923
+ # Corresponds to the JSON property `breakpoint`
924
+ # @return [Google::Apis::ClouddebuggerV2::Breakpoint]
925
+ attr_accessor :breakpoint
926
+
927
+ def initialize(**args)
928
+ update!(**args)
929
+ end
930
+
931
+ # Update properties of this object
932
+ def update!(**args)
933
+ @breakpoint = args[:breakpoint] unless args[:breakpoint].nil?
934
+ end
935
+ end
936
+
937
+ # A generic empty message that you can re-use to avoid defining duplicated empty
938
+ # messages in your APIs. A typical example is to use it as the request or the
939
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
940
+ # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
941
+ # `Empty` is empty JSON object ````.
942
+ class Empty
943
+ include Google::Apis::Core::Hashable
944
+
945
+ def initialize(**args)
946
+ update!(**args)
947
+ end
948
+
949
+ # Update properties of this object
950
+ def update!(**args)
951
+ end
952
+ end
953
+
954
+ # Response for listing breakpoints.
955
+ class ListBreakpointsResponse
956
+ include Google::Apis::Core::Hashable
957
+
958
+ # List of all breakpoints with complete state. The fields `id` and `location`
959
+ # are guaranteed to be set on each breakpoint.
960
+ # Corresponds to the JSON property `breakpoints`
961
+ # @return [Array<Google::Apis::ClouddebuggerV2::Breakpoint>]
962
+ attr_accessor :breakpoints
963
+
964
+ # A wait token that can be used in the next call to `list` (REST) or `
965
+ # ListBreakpoints` (RPC) to block until the list of breakpoints has changes.
966
+ # Corresponds to the JSON property `nextWaitToken`
967
+ # @return [String]
968
+ attr_accessor :next_wait_token
969
+
970
+ def initialize(**args)
971
+ update!(**args)
972
+ end
973
+
974
+ # Update properties of this object
975
+ def update!(**args)
976
+ @breakpoints = args[:breakpoints] unless args[:breakpoints].nil?
977
+ @next_wait_token = args[:next_wait_token] unless args[:next_wait_token].nil?
978
+ end
979
+ end
980
+
981
+ # Response for listing debuggees.
982
+ class ListDebuggeesResponse
983
+ include Google::Apis::Core::Hashable
984
+
985
+ # List of debuggees accessible to the calling user. Note that the `description`
986
+ # field is the only human readable field that should be displayed to the user.
987
+ # The fields `debuggee.id` and `description` fields are guaranteed to be set on
988
+ # each debuggee.
989
+ # Corresponds to the JSON property `debuggees`
990
+ # @return [Array<Google::Apis::ClouddebuggerV2::Debuggee>]
991
+ attr_accessor :debuggees
992
+
993
+ def initialize(**args)
994
+ update!(**args)
995
+ end
996
+
997
+ # Update properties of this object
998
+ def update!(**args)
999
+ @debuggees = args[:debuggees] unless args[:debuggees].nil?
1000
+ end
1001
+ end
1002
+ end
1003
+ end
1004
+ end