google-api-client 0.13.2 → 0.13.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (524) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +149 -0
  3. data/bin/generate-api +6 -2
  4. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +6 -6
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +2 -2
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1394 -1394
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +322 -322
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +449 -449
  12. data/generated/google/apis/adexchangebuyer_v1_2.rb +35 -0
  13. data/generated/google/apis/adexchangebuyer_v1_2/classes.rb +457 -0
  14. data/generated/google/apis/adexchangebuyer_v1_2/representations.rb +189 -0
  15. data/generated/google/apis/adexchangebuyer_v1_2/service.rb +329 -0
  16. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  17. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1347 -0
  18. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +498 -0
  19. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +873 -0
  20. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  21. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -1
  22. data/generated/google/apis/adexchangeseller_v1.rb +37 -0
  23. data/generated/google/apis/adexchangeseller_v1/classes.rb +557 -0
  24. data/generated/google/apis/adexchangeseller_v1/representations.rb +248 -0
  25. data/generated/google/apis/adexchangeseller_v1/service.rb +568 -0
  26. data/generated/google/apis/adexchangeseller_v1_1.rb +37 -0
  27. data/generated/google/apis/adexchangeseller_v1_1/classes.rb +842 -0
  28. data/generated/google/apis/adexchangeseller_v1_1/representations.rb +364 -0
  29. data/generated/google/apis/adexchangeseller_v1_1/service.rb +771 -0
  30. data/generated/google/apis/adexperiencereport_v1.rb +35 -0
  31. data/generated/google/apis/adexperiencereport_v1/classes.rb +138 -0
  32. data/generated/google/apis/adexperiencereport_v1/representations.rb +77 -0
  33. data/generated/google/apis/adexperiencereport_v1/service.rb +123 -0
  34. data/generated/google/apis/admin_directory_v1.rb +1 -1
  35. data/generated/google/apis/admin_directory_v1/classes.rb +60 -0
  36. data/generated/google/apis/admin_directory_v1/representations.rb +29 -0
  37. data/generated/google/apis/admin_directory_v1/service.rb +39 -0
  38. data/generated/google/apis/adsense_v1_4.rb +1 -1
  39. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  40. data/generated/google/apis/analytics_v2_4.rb +37 -0
  41. data/generated/google/apis/analytics_v2_4/classes.rb +26 -0
  42. data/generated/google/apis/analytics_v2_4/representations.rb +26 -0
  43. data/generated/google/apis/analytics_v2_4/service.rb +345 -0
  44. data/generated/google/apis/analytics_v3.rb +1 -1
  45. data/generated/google/apis/analytics_v3/classes.rb +15 -2
  46. data/generated/google/apis/analytics_v3/representations.rb +3 -0
  47. data/generated/google/apis/analyticsreporting_v4.rb +4 -4
  48. data/generated/google/apis/analyticsreporting_v4/classes.rb +891 -891
  49. data/generated/google/apis/analyticsreporting_v4/representations.rb +189 -189
  50. data/generated/google/apis/androiddeviceprovisioning_v1.rb +32 -0
  51. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +917 -0
  52. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +447 -0
  53. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +419 -0
  54. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  55. data/generated/google/apis/androidenterprise_v1/classes.rb +31 -0
  56. data/generated/google/apis/androidenterprise_v1/representations.rb +14 -0
  57. data/generated/google/apis/androidenterprise_v1/service.rb +76 -0
  58. data/generated/google/apis/androidmanagement_v1.rb +35 -0
  59. data/generated/google/apis/androidmanagement_v1/classes.rb +2039 -0
  60. data/generated/google/apis/androidmanagement_v1/representations.rb +702 -0
  61. data/generated/google/apis/androidmanagement_v1/service.rb +796 -0
  62. data/generated/google/apis/androidpublisher_v1.rb +34 -0
  63. data/generated/google/apis/androidpublisher_v1/classes.rb +67 -0
  64. data/generated/google/apis/androidpublisher_v1/representations.rb +42 -0
  65. data/generated/google/apis/androidpublisher_v1/service.rb +150 -0
  66. data/generated/google/apis/androidpublisher_v1_1.rb +34 -0
  67. data/generated/google/apis/androidpublisher_v1_1/classes.rb +123 -0
  68. data/generated/google/apis/androidpublisher_v1_1/representations.rb +60 -0
  69. data/generated/google/apis/androidpublisher_v1_1/service.rb +192 -0
  70. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  71. data/generated/google/apis/androidpublisher_v2/classes.rb +21 -0
  72. data/generated/google/apis/androidpublisher_v2/representations.rb +3 -0
  73. data/generated/google/apis/androidpublisher_v2/service.rb +6 -2
  74. data/generated/google/apis/appengine_v1.rb +4 -4
  75. data/generated/google/apis/appengine_v1/classes.rb +1519 -1474
  76. data/generated/google/apis/appengine_v1/representations.rb +351 -335
  77. data/generated/google/apis/appengine_v1/service.rb +255 -239
  78. data/generated/google/apis/appengine_v1alpha.rb +41 -0
  79. data/generated/google/apis/appengine_v1alpha/classes.rb +987 -0
  80. data/generated/google/apis/appengine_v1alpha/representations.rb +397 -0
  81. data/generated/google/apis/appengine_v1alpha/service.rb +631 -0
  82. data/generated/google/apis/appengine_v1beta.rb +41 -0
  83. data/generated/google/apis/appengine_v1beta/classes.rb +2876 -0
  84. data/generated/google/apis/appengine_v1beta/representations.rb +1138 -0
  85. data/generated/google/apis/appengine_v1beta/service.rb +1546 -0
  86. data/generated/google/apis/appengine_v1beta4.rb +41 -0
  87. data/generated/google/apis/appengine_v1beta4/classes.rb +2170 -0
  88. data/generated/google/apis/appengine_v1beta4/representations.rb +824 -0
  89. data/generated/google/apis/appengine_v1beta4/service.rb +876 -0
  90. data/generated/google/apis/appengine_v1beta5.rb +41 -0
  91. data/generated/google/apis/appengine_v1beta5/classes.rb +2168 -0
  92. data/generated/google/apis/appengine_v1beta5/representations.rb +822 -0
  93. data/generated/google/apis/appengine_v1beta5/service.rb +877 -0
  94. data/generated/google/apis/appsactivity_v1.rb +1 -1
  95. data/generated/google/apis/appstate_v1.rb +1 -1
  96. data/generated/google/apis/bigquery_v2.rb +1 -1
  97. data/generated/google/apis/bigquery_v2/classes.rb +106 -18
  98. data/generated/google/apis/bigquery_v2/representations.rb +15 -0
  99. data/generated/google/apis/bigquerydatatransfer_v1.rb +41 -0
  100. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +886 -0
  101. data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +343 -0
  102. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +1317 -0
  103. data/generated/google/apis/blogger_v2.rb +34 -0
  104. data/generated/google/apis/blogger_v2/classes.rb +947 -0
  105. data/generated/google/apis/blogger_v2/representations.rb +465 -0
  106. data/generated/google/apis/blogger_v2/service.rb +424 -0
  107. data/generated/google/apis/calendar_v3.rb +1 -1
  108. data/generated/google/apis/calendar_v3/classes.rb +4 -207
  109. data/generated/google/apis/calendar_v3/representations.rb +0 -97
  110. data/generated/google/apis/calendar_v3/service.rb +8 -4
  111. data/generated/google/apis/classroom_v1.rb +27 -27
  112. data/generated/google/apis/classroom_v1/classes.rb +1037 -926
  113. data/generated/google/apis/classroom_v1/representations.rb +294 -244
  114. data/generated/google/apis/classroom_v1/service.rb +1114 -1109
  115. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  116. data/generated/google/apis/cloudbilling_v1/classes.rb +473 -56
  117. data/generated/google/apis/cloudbilling_v1/representations.rb +176 -10
  118. data/generated/google/apis/cloudbilling_v1/service.rb +182 -89
  119. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  120. data/generated/google/apis/cloudbuild_v1/classes.rb +666 -625
  121. data/generated/google/apis/cloudbuild_v1/representations.rb +132 -116
  122. data/generated/google/apis/cloudbuild_v1/service.rb +158 -158
  123. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  124. data/generated/google/apis/clouddebugger_v2/classes.rb +637 -639
  125. data/generated/google/apis/clouddebugger_v2/representations.rb +139 -139
  126. data/generated/google/apis/clouddebugger_v2/service.rb +157 -157
  127. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  128. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +310 -310
  129. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +77 -77
  130. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +144 -144
  131. data/generated/google/apis/cloudfunctions_v1.rb +4 -1
  132. data/generated/google/apis/cloudfunctions_v1/classes.rb +265 -6
  133. data/generated/google/apis/cloudfunctions_v1/representations.rb +80 -1
  134. data/generated/google/apis/cloudfunctions_v1/service.rb +118 -0
  135. data/generated/google/apis/cloudfunctions_v1beta2.rb +35 -0
  136. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +678 -0
  137. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +264 -0
  138. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +385 -0
  139. data/generated/google/apis/cloudkms_v1.rb +1 -1
  140. data/generated/google/apis/cloudkms_v1/classes.rb +652 -622
  141. data/generated/google/apis/cloudkms_v1/representations.rb +138 -137
  142. data/generated/google/apis/cloudkms_v1/service.rb +320 -320
  143. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  144. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  145. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1129 -1129
  146. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
  147. data/generated/google/apis/cloudresourcemanager_v1/service.rb +609 -609
  148. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  149. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +404 -404
  150. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +83 -83
  151. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +328 -328
  152. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +38 -0
  153. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +819 -0
  154. data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +304 -0
  155. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +528 -0
  156. data/generated/google/apis/cloudtrace_v1.rb +5 -5
  157. data/generated/google/apis/cloudtrace_v1/classes.rb +67 -67
  158. data/generated/google/apis/cloudtrace_v1/representations.rb +21 -21
  159. data/generated/google/apis/cloudtrace_v1/service.rb +36 -36
  160. data/generated/google/apis/cloudtrace_v2.rb +43 -0
  161. data/generated/google/apis/cloudtrace_v2/classes.rb +797 -0
  162. data/generated/google/apis/cloudtrace_v2/representations.rb +353 -0
  163. data/generated/google/apis/cloudtrace_v2/service.rb +238 -0
  164. data/generated/google/apis/clouduseraccounts_alpha.rb +44 -0
  165. data/generated/google/apis/clouduseraccounts_alpha/classes.rb +1188 -0
  166. data/generated/google/apis/clouduseraccounts_alpha/representations.rb +494 -0
  167. data/generated/google/apis/clouduseraccounts_alpha/service.rb +1152 -0
  168. data/generated/google/apis/clouduseraccounts_vm_alpha.rb +44 -0
  169. data/generated/google/apis/clouduseraccounts_vm_alpha/classes.rb +1188 -0
  170. data/generated/google/apis/clouduseraccounts_vm_alpha/representations.rb +494 -0
  171. data/generated/google/apis/clouduseraccounts_vm_alpha/service.rb +1152 -0
  172. data/generated/google/apis/clouduseraccounts_vm_beta.rb +44 -0
  173. data/generated/google/apis/clouduseraccounts_vm_beta/classes.rb +845 -0
  174. data/generated/google/apis/clouduseraccounts_vm_beta/representations.rb +352 -0
  175. data/generated/google/apis/clouduseraccounts_vm_beta/service.rb +908 -0
  176. data/generated/google/apis/compute_alpha.rb +49 -0
  177. data/generated/google/apis/compute_alpha/classes.rb +23796 -0
  178. data/generated/google/apis/compute_alpha/representations.rb +9391 -0
  179. data/generated/google/apis/compute_alpha/service.rb +24188 -0
  180. data/generated/google/apis/compute_beta.rb +1 -1
  181. data/generated/google/apis/compute_beta/classes.rb +1597 -235
  182. data/generated/google/apis/compute_beta/representations.rb +477 -0
  183. data/generated/google/apis/compute_beta/service.rb +2875 -1677
  184. data/generated/google/apis/compute_v1.rb +1 -1
  185. data/generated/google/apis/compute_v1/classes.rb +319 -197
  186. data/generated/google/apis/compute_v1/representations.rb +51 -0
  187. data/generated/google/apis/compute_v1/service.rb +2057 -172
  188. data/generated/google/apis/consumersurveys_v2.rb +40 -0
  189. data/generated/google/apis/consumersurveys_v2/classes.rb +736 -0
  190. data/generated/google/apis/consumersurveys_v2/representations.rb +343 -0
  191. data/generated/google/apis/consumersurveys_v2/service.rb +478 -0
  192. data/generated/google/apis/container_v1.rb +1 -1
  193. data/generated/google/apis/container_v1/classes.rb +1072 -936
  194. data/generated/google/apis/container_v1/representations.rb +266 -202
  195. data/generated/google/apis/container_v1/service.rb +243 -243
  196. data/generated/google/apis/container_v1beta1.rb +35 -0
  197. data/generated/google/apis/container_v1beta1/classes.rb +1900 -0
  198. data/generated/google/apis/container_v1beta1/representations.rb +662 -0
  199. data/generated/google/apis/container_v1beta1/service.rb +1875 -0
  200. data/generated/google/apis/content_v2.rb +1 -1
  201. data/generated/google/apis/content_v2/classes.rb +72 -3
  202. data/generated/google/apis/content_v2/representations.rb +23 -0
  203. data/generated/google/apis/content_v2/service.rb +23 -18
  204. data/generated/google/apis/content_v2sandbox.rb +35 -0
  205. data/generated/google/apis/content_v2sandbox/classes.rb +2406 -0
  206. data/generated/google/apis/content_v2sandbox/representations.rb +1042 -0
  207. data/generated/google/apis/content_v2sandbox/service.rb +709 -0
  208. data/generated/google/apis/dataflow_v1b3.rb +5 -5
  209. data/generated/google/apis/dataflow_v1b3/classes.rb +3341 -3341
  210. data/generated/google/apis/dataflow_v1b3/representations.rb +807 -807
  211. data/generated/google/apis/dataflow_v1b3/service.rb +492 -444
  212. data/generated/google/apis/dataproc_v1.rb +1 -1
  213. data/generated/google/apis/dataproc_v1/classes.rb +1101 -1101
  214. data/generated/google/apis/dataproc_v1/representations.rb +227 -227
  215. data/generated/google/apis/dataproc_v1/service.rb +254 -254
  216. data/generated/google/apis/dataproc_v1beta2.rb +34 -0
  217. data/generated/google/apis/dataproc_v1beta2/classes.rb +1756 -0
  218. data/generated/google/apis/dataproc_v1beta2/representations.rb +675 -0
  219. data/generated/google/apis/dataproc_v1beta2/service.rb +739 -0
  220. data/generated/google/apis/datastore_v1.rb +4 -4
  221. data/generated/google/apis/datastore_v1/classes.rb +1311 -773
  222. data/generated/google/apis/datastore_v1/representations.rb +351 -148
  223. data/generated/google/apis/datastore_v1/service.rb +206 -55
  224. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  225. data/generated/google/apis/datastore_v1beta3/classes.rb +1621 -0
  226. data/generated/google/apis/datastore_v1beta3/representations.rb +715 -0
  227. data/generated/google/apis/datastore_v1beta3/service.rb +260 -0
  228. data/generated/google/apis/deploymentmanager_alpha.rb +44 -0
  229. data/generated/google/apis/deploymentmanager_alpha/classes.rb +2422 -0
  230. data/generated/google/apis/deploymentmanager_alpha/representations.rb +1054 -0
  231. data/generated/google/apis/deploymentmanager_alpha/service.rb +1883 -0
  232. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  233. data/generated/google/apis/deploymentmanager_v2/classes.rb +81 -2
  234. data/generated/google/apis/deploymentmanager_v2/representations.rb +30 -0
  235. data/generated/google/apis/deploymentmanager_v2beta.rb +44 -0
  236. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +2426 -0
  237. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +1054 -0
  238. data/generated/google/apis/deploymentmanager_v2beta/service.rb +1687 -0
  239. data/generated/google/apis/dfareporting_v2_7.rb +1 -1
  240. data/generated/google/apis/dfareporting_v2_7/classes.rb +9 -26
  241. data/generated/google/apis/dfareporting_v2_7/service.rb +1 -0
  242. data/generated/google/apis/dfareporting_v2_8.rb +1 -1
  243. data/generated/google/apis/dfareporting_v2_8/classes.rb +26 -34
  244. data/generated/google/apis/dfareporting_v2_8/representations.rb +1 -0
  245. data/generated/google/apis/dfareporting_v2_8/service.rb +1 -0
  246. data/generated/google/apis/dlp_v2beta1.rb +36 -0
  247. data/generated/google/apis/dlp_v2beta1/classes.rb +1735 -0
  248. data/generated/google/apis/dlp_v2beta1/representations.rb +879 -0
  249. data/generated/google/apis/dlp_v2beta1/service.rb +406 -0
  250. data/generated/google/apis/dns_v1.rb +1 -1
  251. data/generated/google/apis/dns_v2beta1.rb +1 -1
  252. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  253. data/generated/google/apis/drive_v2.rb +1 -1
  254. data/generated/google/apis/drive_v3.rb +1 -1
  255. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  256. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +267 -261
  257. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +73 -72
  258. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -1
  259. data/generated/google/apis/firebaserules_v1.rb +1 -1
  260. data/generated/google/apis/firebaserules_v1/classes.rb +283 -283
  261. data/generated/google/apis/firebaserules_v1/representations.rb +75 -75
  262. data/generated/google/apis/firebaserules_v1/service.rb +113 -113
  263. data/generated/google/apis/fitness_v1.rb +1 -1
  264. data/generated/google/apis/fitness_v1/classes.rb +1 -1
  265. data/generated/google/apis/fusiontables_v1.rb +37 -0
  266. data/generated/google/apis/fusiontables_v1/classes.rb +977 -0
  267. data/generated/google/apis/fusiontables_v1/representations.rb +449 -0
  268. data/generated/google/apis/fusiontables_v1/service.rb +1373 -0
  269. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  270. data/generated/google/apis/games_management_v1management.rb +1 -1
  271. data/generated/google/apis/games_v1.rb +1 -1
  272. data/generated/google/apis/genomics_v1.rb +8 -8
  273. data/generated/google/apis/genomics_v1/classes.rb +2288 -2288
  274. data/generated/google/apis/genomics_v1/representations.rb +482 -482
  275. data/generated/google/apis/genomics_v1/service.rb +966 -966
  276. data/generated/google/apis/genomics_v1alpha2.rb +40 -0
  277. data/generated/google/apis/genomics_v1alpha2/classes.rb +1207 -0
  278. data/generated/google/apis/genomics_v1alpha2/representations.rb +449 -0
  279. data/generated/google/apis/genomics_v1alpha2/service.rb +426 -0
  280. data/generated/google/apis/gmail_v1.rb +1 -1
  281. data/generated/google/apis/iam_v1.rb +1 -1
  282. data/generated/google/apis/iam_v1/classes.rb +664 -395
  283. data/generated/google/apis/iam_v1/representations.rb +194 -81
  284. data/generated/google/apis/iam_v1/service.rb +657 -92
  285. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  286. data/generated/google/apis/kgsearch_v1/classes.rb +7 -7
  287. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  288. data/generated/google/apis/kgsearch_v1/service.rb +8 -8
  289. data/generated/google/apis/language_v1.rb +4 -1
  290. data/generated/google/apis/language_v1/classes.rb +393 -393
  291. data/generated/google/apis/language_v1/representations.rb +95 -95
  292. data/generated/google/apis/language_v1/service.rb +42 -42
  293. data/generated/google/apis/language_v1beta1.rb +4 -1
  294. data/generated/google/apis/language_v1beta1/classes.rb +457 -457
  295. data/generated/google/apis/language_v1beta1/representations.rb +114 -114
  296. data/generated/google/apis/language_v1beta1/service.rb +48 -48
  297. data/generated/google/apis/language_v1beta2.rb +39 -0
  298. data/generated/google/apis/language_v1beta2/classes.rb +824 -0
  299. data/generated/google/apis/language_v1beta2/representations.rb +373 -0
  300. data/generated/google/apis/language_v1beta2/service.rb +217 -0
  301. data/generated/google/apis/logging_v2.rb +9 -9
  302. data/generated/google/apis/logging_v2/classes.rb +840 -834
  303. data/generated/google/apis/logging_v2/representations.rb +168 -167
  304. data/generated/google/apis/logging_v2/service.rb +667 -463
  305. data/generated/google/apis/logging_v2beta1.rb +9 -9
  306. data/generated/google/apis/logging_v2beta1/classes.rb +856 -850
  307. data/generated/google/apis/logging_v2beta1/representations.rb +169 -168
  308. data/generated/google/apis/logging_v2beta1/service.rb +253 -255
  309. data/generated/google/apis/manufacturers_v1.rb +1 -1
  310. data/generated/google/apis/manufacturers_v1/classes.rb +396 -389
  311. data/generated/google/apis/manufacturers_v1/representations.rb +92 -91
  312. data/generated/google/apis/manufacturers_v1/service.rb +8 -7
  313. data/generated/google/apis/ml_v1.rb +1 -1
  314. data/generated/google/apis/ml_v1/classes.rb +1487 -1676
  315. data/generated/google/apis/ml_v1/representations.rb +229 -299
  316. data/generated/google/apis/ml_v1/service.rb +359 -253
  317. data/generated/google/apis/ml_v1beta1.rb +34 -0
  318. data/generated/google/apis/ml_v1beta1/classes.rb +2396 -0
  319. data/generated/google/apis/ml_v1beta1/representations.rb +755 -0
  320. data/generated/google/apis/ml_v1beta1/service.rb +975 -0
  321. data/generated/google/apis/monitoring_v3.rb +6 -6
  322. data/generated/google/apis/monitoring_v3/classes.rb +834 -834
  323. data/generated/google/apis/monitoring_v3/representations.rb +168 -168
  324. data/generated/google/apis/monitoring_v3/service.rb +330 -330
  325. data/generated/google/apis/mybusiness_v3/classes.rb +1181 -1181
  326. data/generated/google/apis/mybusiness_v3/representations.rb +242 -242
  327. data/generated/google/apis/mybusiness_v3/service.rb +241 -241
  328. data/generated/google/apis/oauth2_v1.rb +43 -0
  329. data/generated/google/apis/oauth2_v1/classes.rb +321 -0
  330. data/generated/google/apis/oauth2_v1/representations.rb +135 -0
  331. data/generated/google/apis/oauth2_v1/service.rb +337 -0
  332. data/generated/google/apis/oauth2_v2.rb +1 -1
  333. data/generated/google/apis/oslogin_v1alpha.rb +37 -0
  334. data/generated/google/apis/oslogin_v1alpha/classes.rb +200 -0
  335. data/generated/google/apis/oslogin_v1alpha/representations.rb +105 -0
  336. data/generated/google/apis/oslogin_v1alpha/service.rb +228 -0
  337. data/generated/google/apis/pagespeedonline_v1.rb +32 -0
  338. data/generated/google/apis/pagespeedonline_v1/classes.rb +536 -0
  339. data/generated/google/apis/pagespeedonline_v1/representations.rb +257 -0
  340. data/generated/google/apis/pagespeedonline_v1/service.rb +120 -0
  341. data/generated/google/apis/partners_v2.rb +1 -1
  342. data/generated/google/apis/partners_v2/classes.rb +1512 -1512
  343. data/generated/google/apis/partners_v2/representations.rb +368 -368
  344. data/generated/google/apis/partners_v2/service.rb +596 -596
  345. data/generated/google/apis/people_v1.rb +15 -15
  346. data/generated/google/apis/people_v1/classes.rb +1384 -1383
  347. data/generated/google/apis/people_v1/representations.rb +311 -311
  348. data/generated/google/apis/people_v1/service.rb +208 -202
  349. data/generated/google/apis/playcustomapp_v1.rb +34 -0
  350. data/generated/google/apis/playcustomapp_v1/classes.rb +51 -0
  351. data/generated/google/apis/playcustomapp_v1/representations.rb +40 -0
  352. data/generated/google/apis/playcustomapp_v1/service.rb +114 -0
  353. data/generated/google/apis/playmoviespartner_v1.rb +34 -0
  354. data/generated/google/apis/playmoviespartner_v1/classes.rb +782 -0
  355. data/generated/google/apis/playmoviespartner_v1/representations.rb +191 -0
  356. data/generated/google/apis/playmoviespartner_v1/service.rb +354 -0
  357. data/generated/google/apis/plus_domains_v1.rb +1 -1
  358. data/generated/google/apis/plus_v1.rb +1 -1
  359. data/generated/google/apis/prediction_v1_2.rb +44 -0
  360. data/generated/google/apis/prediction_v1_2/classes.rb +237 -0
  361. data/generated/google/apis/prediction_v1_2/representations.rb +133 -0
  362. data/generated/google/apis/prediction_v1_2/service.rb +287 -0
  363. data/generated/google/apis/prediction_v1_3.rb +44 -0
  364. data/generated/google/apis/prediction_v1_3/classes.rb +286 -0
  365. data/generated/google/apis/prediction_v1_3/representations.rb +139 -0
  366. data/generated/google/apis/prediction_v1_3/service.rb +284 -0
  367. data/generated/google/apis/prediction_v1_4.rb +44 -0
  368. data/generated/google/apis/prediction_v1_4/classes.rb +336 -0
  369. data/generated/google/apis/prediction_v1_4/representations.rb +158 -0
  370. data/generated/google/apis/prediction_v1_4/service.rb +284 -0
  371. data/generated/google/apis/prediction_v1_5.rb +44 -0
  372. data/generated/google/apis/prediction_v1_5/classes.rb +708 -0
  373. data/generated/google/apis/prediction_v1_5/representations.rb +352 -0
  374. data/generated/google/apis/prediction_v1_5/service.rb +357 -0
  375. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  376. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +539 -539
  377. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +105 -105
  378. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +312 -312
  379. data/generated/google/apis/pubsub_v1.rb +4 -4
  380. data/generated/google/apis/pubsub_v1/classes.rb +352 -352
  381. data/generated/google/apis/pubsub_v1/representations.rb +77 -77
  382. data/generated/google/apis/pubsub_v1/service.rb +346 -346
  383. data/generated/google/apis/pubsub_v1beta1a.rb +37 -0
  384. data/generated/google/apis/pubsub_v1beta1a/classes.rb +605 -0
  385. data/generated/google/apis/pubsub_v1beta1a/representations.rb +306 -0
  386. data/generated/google/apis/pubsub_v1beta1a/service.rb +549 -0
  387. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  388. data/generated/google/apis/pubsub_v1beta2/classes.rb +679 -0
  389. data/generated/google/apis/pubsub_v1beta2/representations.rb +324 -0
  390. data/generated/google/apis/pubsub_v1beta2/service.rb +779 -0
  391. data/generated/google/apis/replicapool_v1beta1.rb +50 -0
  392. data/generated/google/apis/replicapool_v1beta1/classes.rb +918 -0
  393. data/generated/google/apis/replicapool_v1beta1/representations.rb +409 -0
  394. data/generated/google/apis/replicapool_v1beta1/service.rb +511 -0
  395. data/generated/google/apis/resourceviews_v1beta1.rb +50 -0
  396. data/generated/google/apis/resourceviews_v1beta1/classes.rb +338 -0
  397. data/generated/google/apis/resourceviews_v1beta1/representations.rb +201 -0
  398. data/generated/google/apis/resourceviews_v1beta1/service.rb +667 -0
  399. data/generated/google/apis/runtimeconfig_v1.rb +4 -4
  400. data/generated/google/apis/runtimeconfig_v1/classes.rb +118 -118
  401. data/generated/google/apis/runtimeconfig_v1/representations.rb +18 -18
  402. data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
  403. data/generated/google/apis/runtimeconfig_v1beta1.rb +40 -0
  404. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +805 -0
  405. data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +280 -0
  406. data/generated/google/apis/runtimeconfig_v1beta1/service.rb +903 -0
  407. data/generated/google/apis/safebrowsing_v4.rb +32 -0
  408. data/generated/google/apis/safebrowsing_v4/classes.rb +771 -0
  409. data/generated/google/apis/safebrowsing_v4/representations.rb +379 -0
  410. data/generated/google/apis/safebrowsing_v4/service.rb +252 -0
  411. data/generated/google/apis/script_v1.rb +19 -19
  412. data/generated/google/apis/script_v1/classes.rb +99 -157
  413. data/generated/google/apis/script_v1/representations.rb +17 -47
  414. data/generated/google/apis/script_v1/service.rb +12 -12
  415. data/generated/google/apis/searchconsole_v1.rb +1 -1
  416. data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
  417. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  418. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  419. data/generated/google/apis/servicecontrol_v1/classes.rb +1086 -1042
  420. data/generated/google/apis/servicecontrol_v1/representations.rb +216 -200
  421. data/generated/google/apis/servicecontrol_v1/service.rb +120 -114
  422. data/generated/google/apis/servicemanagement_v1.rb +7 -7
  423. data/generated/google/apis/servicemanagement_v1/classes.rb +3375 -3383
  424. data/generated/google/apis/servicemanagement_v1/representations.rb +551 -552
  425. data/generated/google/apis/servicemanagement_v1/service.rb +386 -386
  426. data/generated/google/apis/serviceuser_v1.rb +5 -5
  427. data/generated/google/apis/serviceuser_v1/classes.rb +2667 -2598
  428. data/generated/google/apis/serviceuser_v1/representations.rb +406 -389
  429. data/generated/google/apis/serviceuser_v1/service.rb +43 -43
  430. data/generated/google/apis/sheets_v4.rb +7 -7
  431. data/generated/google/apis/sheets_v4/classes.rb +5031 -5024
  432. data/generated/google/apis/sheets_v4/representations.rb +931 -930
  433. data/generated/google/apis/sheets_v4/service.rb +244 -244
  434. data/generated/google/apis/slides_v1.rb +10 -10
  435. data/generated/google/apis/slides_v1/classes.rb +2915 -2915
  436. data/generated/google/apis/slides_v1/representations.rb +698 -698
  437. data/generated/google/apis/slides_v1/service.rb +35 -35
  438. data/generated/google/apis/sourcerepo_v1.rb +3 -3
  439. data/generated/google/apis/sourcerepo_v1/classes.rb +313 -313
  440. data/generated/google/apis/sourcerepo_v1/representations.rb +77 -77
  441. data/generated/google/apis/sourcerepo_v1/service.rb +102 -102
  442. data/generated/google/apis/spanner_v1.rb +4 -4
  443. data/generated/google/apis/spanner_v1/classes.rb +2304 -2251
  444. data/generated/google/apis/spanner_v1/representations.rb +338 -323
  445. data/generated/google/apis/spanner_v1/service.rb +689 -689
  446. data/generated/google/apis/spectrum_v1explorer.rb +31 -0
  447. data/generated/google/apis/spectrum_v1explorer/classes.rb +1612 -0
  448. data/generated/google/apis/spectrum_v1explorer/representations.rb +611 -0
  449. data/generated/google/apis/spectrum_v1explorer/service.rb +285 -0
  450. data/generated/google/apis/speech_v1.rb +34 -0
  451. data/generated/google/apis/speech_v1/classes.rb +572 -0
  452. data/generated/google/apis/speech_v1/representations.rb +236 -0
  453. data/generated/google/apis/speech_v1/service.rb +277 -0
  454. data/generated/google/apis/speech_v1beta1.rb +1 -1
  455. data/generated/google/apis/speech_v1beta1/classes.rb +312 -312
  456. data/generated/google/apis/speech_v1beta1/representations.rb +48 -48
  457. data/generated/google/apis/speech_v1beta1/service.rb +46 -46
  458. data/generated/google/apis/sqladmin_v1beta3.rb +38 -0
  459. data/generated/google/apis/sqladmin_v1beta3/classes.rb +1615 -0
  460. data/generated/google/apis/sqladmin_v1beta3/representations.rb +731 -0
  461. data/generated/google/apis/sqladmin_v1beta3/service.rb +1045 -0
  462. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  463. data/generated/google/apis/sqladmin_v1beta4/classes.rb +15 -7
  464. data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
  465. data/generated/google/apis/storage_v1.rb +1 -1
  466. data/generated/google/apis/storage_v1/classes.rb +7 -6
  467. data/generated/google/apis/storage_v1/service.rb +51 -29
  468. data/generated/google/apis/storage_v1beta1.rb +40 -0
  469. data/generated/google/apis/storage_v1beta1/classes.rb +616 -0
  470. data/generated/google/apis/storage_v1beta1/representations.rb +249 -0
  471. data/generated/google/apis/storage_v1beta1/service.rb +1082 -0
  472. data/generated/google/apis/storage_v1beta2.rb +40 -0
  473. data/generated/google/apis/storage_v1beta2/classes.rb +1048 -0
  474. data/generated/google/apis/storage_v1beta2/representations.rb +425 -0
  475. data/generated/google/apis/storage_v1beta2/service.rb +1736 -0
  476. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  477. data/generated/google/apis/storagetransfer_v1/classes.rb +556 -556
  478. data/generated/google/apis/storagetransfer_v1/representations.rb +139 -139
  479. data/generated/google/apis/storagetransfer_v1/service.rb +148 -148
  480. data/generated/google/apis/streetviewpublish_v1.rb +36 -0
  481. data/generated/google/apis/streetviewpublish_v1/classes.rb +705 -0
  482. data/generated/google/apis/streetviewpublish_v1/representations.rb +296 -0
  483. data/generated/google/apis/streetviewpublish_v1/service.rb +485 -0
  484. data/generated/google/apis/taskqueue_v1beta1.rb +37 -0
  485. data/generated/google/apis/taskqueue_v1beta1/classes.rb +242 -0
  486. data/generated/google/apis/taskqueue_v1beta1/representations.rb +124 -0
  487. data/generated/google/apis/taskqueue_v1beta1/service.rb +269 -0
  488. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  489. data/generated/google/apis/toolresults_v1beta3/classes.rb +382 -4
  490. data/generated/google/apis/toolresults_v1beta3/representations.rb +139 -0
  491. data/generated/google/apis/toolresults_v1beta3/service.rb +50 -0
  492. data/generated/google/apis/toolresults_v1beta3firstparty.rb +31 -0
  493. data/generated/google/apis/toolresults_v1beta3firstparty/classes.rb +2630 -0
  494. data/generated/google/apis/toolresults_v1beta3firstparty/representations.rb +886 -0
  495. data/generated/google/apis/toolresults_v1beta3firstparty/service.rb +1288 -0
  496. data/generated/google/apis/translate_v2/classes.rb +111 -111
  497. data/generated/google/apis/translate_v2/representations.rb +49 -49
  498. data/generated/google/apis/translate_v2/service.rb +94 -94
  499. data/generated/google/apis/vault_v1.rb +31 -0
  500. data/generated/google/apis/vault_v1/classes.rb +554 -0
  501. data/generated/google/apis/vault_v1/representations.rb +318 -0
  502. data/generated/google/apis/vault_v1/service.rb +677 -0
  503. data/generated/google/apis/videointelligence_v1beta1.rb +34 -0
  504. data/generated/google/apis/videointelligence_v1beta1/classes.rb +903 -0
  505. data/generated/google/apis/videointelligence_v1beta1/representations.rb +351 -0
  506. data/generated/google/apis/videointelligence_v1beta1/service.rb +92 -0
  507. data/generated/google/apis/vision_v1.rb +4 -4
  508. data/generated/google/apis/vision_v1/classes.rb +1176 -1178
  509. data/generated/google/apis/vision_v1/representations.rb +235 -235
  510. data/generated/google/apis/webmasters_v3.rb +1 -1
  511. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  512. data/generated/google/apis/youtube_analytics_v1beta1.rb +46 -0
  513. data/generated/google/apis/youtube_analytics_v1beta1/classes.rb +337 -0
  514. data/generated/google/apis/youtube_analytics_v1beta1/representations.rb +174 -0
  515. data/generated/google/apis/youtube_analytics_v1beta1/service.rb +491 -0
  516. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  517. data/generated/google/apis/youtube_partner_v1/classes.rb +3 -3
  518. data/generated/google/apis/youtube_partner_v1/representations.rb +1 -1
  519. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  520. data/generated/google/apis/youtubereporting_v1/classes.rb +134 -134
  521. data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
  522. data/generated/google/apis/youtubereporting_v1/service.rb +131 -131
  523. data/lib/google/apis/version.rb +1 -1
  524. metadata +246 -2
@@ -27,19 +27,19 @@ module Google
27
27
  # @see https://cloud.google.com/monitoring/api/
28
28
  module MonitoringV3
29
29
  VERSION = 'V3'
30
- REVISION = '20170710'
30
+ REVISION = '20170806'
31
+
32
+ # View and manage your data across Google Cloud Platform services
33
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
31
34
 
32
35
  # View and write monitoring data for all of your Google and third-party Cloud and API projects
33
36
  AUTH_MONITORING = 'https://www.googleapis.com/auth/monitoring'
34
37
 
35
- # Publish metric data to your Google Cloud projects
36
- AUTH_MONITORING_WRITE = 'https://www.googleapis.com/auth/monitoring.write'
37
-
38
38
  # View monitoring data for all of your Google Cloud and third-party projects
39
39
  AUTH_MONITORING_READ = 'https://www.googleapis.com/auth/monitoring.read'
40
40
 
41
- # View and manage your data across Google Cloud Platform services
42
- AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
41
+ # Publish metric data to your Google Cloud projects
42
+ AUTH_MONITORING_WRITE = 'https://www.googleapis.com/auth/monitoring.write'
43
43
  end
44
44
  end
45
45
  end
@@ -22,19 +22,51 @@ module Google
22
22
  module Apis
23
23
  module MonitoringV3
24
24
 
25
- # The range of the population values.
26
- class Range
25
+ # BucketOptions describes the bucket boundaries used to create a histogram for
26
+ # the distribution. The buckets can be in a linear sequence, an exponential
27
+ # sequence, or each bucket can be specified explicitly. BucketOptions does not
28
+ # include the number of values in each bucket.A bucket has an inclusive lower
29
+ # bound and exclusive upper bound for the values that are counted for that
30
+ # bucket. The upper bound of a bucket must be strictly greater than the lower
31
+ # bound. The sequence of N buckets for a distribution consists of an underflow
32
+ # bucket (number 0), zero or more finite buckets (number 1 through N - 2) and an
33
+ # overflow bucket (number N - 1). The buckets are contiguous: the lower bound of
34
+ # bucket i (i > 0) is the same as the upper bound of bucket i - 1. The buckets
35
+ # span the whole range of finite values: lower bound of the underflow bucket is -
36
+ # infinity and the upper bound of the overflow bucket is +infinity. The finite
37
+ # buckets are so-called because both bounds are finite.
38
+ class BucketOptions
27
39
  include Google::Apis::Core::Hashable
28
40
 
29
- # The minimum of the population values.
30
- # Corresponds to the JSON property `min`
31
- # @return [Float]
32
- attr_accessor :min
41
+ # Specifies a set of buckets with arbitrary widths.There are size(bounds) + 1 (=
42
+ # N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1):
43
+ # boundsi Lower bound (1 <= i < N); boundsi - 1The bounds field must contain at
44
+ # least one element. If bounds has only one element, then there are no finite
45
+ # buckets, and that single element is the common boundary of the overflow and
46
+ # underflow buckets.
47
+ # Corresponds to the JSON property `explicitBuckets`
48
+ # @return [Google::Apis::MonitoringV3::Explicit]
49
+ attr_accessor :explicit_buckets
33
50
 
34
- # The maximum of the population values.
35
- # Corresponds to the JSON property `max`
36
- # @return [Float]
37
- attr_accessor :max
51
+ # Specifies an exponential sequence of buckets that have a width that is
52
+ # proportional to the value of the lower bound. Each bucket represents a
53
+ # constant relative uncertainty on a specific value in the bucket.There are
54
+ # num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries:
55
+ # Upper bound (0 <= i < N-1): scale * (growth_factor ^ i). Lower bound (1 <= i <
56
+ # N): scale * (growth_factor ^ (i - 1)).
57
+ # Corresponds to the JSON property `exponentialBuckets`
58
+ # @return [Google::Apis::MonitoringV3::Exponential]
59
+ attr_accessor :exponential_buckets
60
+
61
+ # Specifies a linear sequence of buckets that all have the same width (except
62
+ # overflow and underflow). Each bucket represents a constant absolute
63
+ # uncertainty on the specific value in the bucket.There are num_finite_buckets +
64
+ # 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-
65
+ # 1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1))
66
+ # .
67
+ # Corresponds to the JSON property `linearBuckets`
68
+ # @return [Google::Apis::MonitoringV3::Linear]
69
+ attr_accessor :linear_buckets
38
70
 
39
71
  def initialize(**args)
40
72
  update!(**args)
@@ -42,26 +74,57 @@ module Google
42
74
 
43
75
  # Update properties of this object
44
76
  def update!(**args)
45
- @min = args[:min] if args.key?(:min)
46
- @max = args[:max] if args.key?(:max)
77
+ @explicit_buckets = args[:explicit_buckets] if args.key?(:explicit_buckets)
78
+ @exponential_buckets = args[:exponential_buckets] if args.key?(:exponential_buckets)
79
+ @linear_buckets = args[:linear_buckets] if args.key?(:linear_buckets)
47
80
  end
48
81
  end
49
82
 
50
- # The ListGroups response.
51
- class ListGroupsResponse
83
+ # A collection of data points sent from a collectd-based plugin. See the
84
+ # collectd documentation for more information.
85
+ class CollectdPayload
52
86
  include Google::Apis::Core::Hashable
53
87
 
54
- # The groups that match the specified filters.
55
- # Corresponds to the JSON property `group`
56
- # @return [Array<Google::Apis::MonitoringV3::Group>]
57
- attr_accessor :group
88
+ # The end time of the interval.
89
+ # Corresponds to the JSON property `endTime`
90
+ # @return [String]
91
+ attr_accessor :end_time
58
92
 
59
- # If there are more results than have been returned, then this field is set to a
60
- # non-empty value. To see the additional results, use that value as pageToken in
61
- # the next call to this method.
62
- # Corresponds to the JSON property `nextPageToken`
93
+ # The measurement metadata. Example: "process_id" -> 12345
94
+ # Corresponds to the JSON property `metadata`
95
+ # @return [Hash<String,Google::Apis::MonitoringV3::TypedValue>]
96
+ attr_accessor :metadata
97
+
98
+ # The name of the plugin. Example: "disk".
99
+ # Corresponds to the JSON property `plugin`
63
100
  # @return [String]
64
- attr_accessor :next_page_token
101
+ attr_accessor :plugin
102
+
103
+ # The instance name of the plugin Example: "hdcl".
104
+ # Corresponds to the JSON property `pluginInstance`
105
+ # @return [String]
106
+ attr_accessor :plugin_instance
107
+
108
+ # The start time of the interval.
109
+ # Corresponds to the JSON property `startTime`
110
+ # @return [String]
111
+ attr_accessor :start_time
112
+
113
+ # The measurement type. Example: "memory".
114
+ # Corresponds to the JSON property `type`
115
+ # @return [String]
116
+ attr_accessor :type
117
+
118
+ # The measurement type instance. Example: "used".
119
+ # Corresponds to the JSON property `typeInstance`
120
+ # @return [String]
121
+ attr_accessor :type_instance
122
+
123
+ # The measured values during this time interval. Each value must have a
124
+ # different dataSourceName.
125
+ # Corresponds to the JSON property `values`
126
+ # @return [Array<Google::Apis::MonitoringV3::CollectdValue>]
127
+ attr_accessor :values
65
128
 
66
129
  def initialize(**args)
67
130
  update!(**args)
@@ -69,19 +132,52 @@ module Google
69
132
 
70
133
  # Update properties of this object
71
134
  def update!(**args)
72
- @group = args[:group] if args.key?(:group)
73
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
135
+ @end_time = args[:end_time] if args.key?(:end_time)
136
+ @metadata = args[:metadata] if args.key?(:metadata)
137
+ @plugin = args[:plugin] if args.key?(:plugin)
138
+ @plugin_instance = args[:plugin_instance] if args.key?(:plugin_instance)
139
+ @start_time = args[:start_time] if args.key?(:start_time)
140
+ @type = args[:type] if args.key?(:type)
141
+ @type_instance = args[:type_instance] if args.key?(:type_instance)
142
+ @values = args[:values] if args.key?(:values)
74
143
  end
75
144
  end
76
145
 
77
- # The CreateCollectdTimeSeries request.
78
- class CreateCollectdTimeSeriesRequest
146
+ # A single data point from a collectd-based plugin.
147
+ class CollectdValue
79
148
  include Google::Apis::Core::Hashable
80
149
 
81
- # The version of collectd that collected the data. Example: "5.3.0-192.el6".
82
- # Corresponds to the JSON property `collectdVersion`
150
+ # The data source for the collectd value. For example there are two data sources
151
+ # for network measurements: "rx" and "tx".
152
+ # Corresponds to the JSON property `dataSourceName`
83
153
  # @return [String]
84
- attr_accessor :collectd_version
154
+ attr_accessor :data_source_name
155
+
156
+ # The type of measurement.
157
+ # Corresponds to the JSON property `dataSourceType`
158
+ # @return [String]
159
+ attr_accessor :data_source_type
160
+
161
+ # A single strongly-typed value.
162
+ # Corresponds to the JSON property `value`
163
+ # @return [Google::Apis::MonitoringV3::TypedValue]
164
+ attr_accessor :value
165
+
166
+ def initialize(**args)
167
+ update!(**args)
168
+ end
169
+
170
+ # Update properties of this object
171
+ def update!(**args)
172
+ @data_source_name = args[:data_source_name] if args.key?(:data_source_name)
173
+ @data_source_type = args[:data_source_type] if args.key?(:data_source_type)
174
+ @value = args[:value] if args.key?(:value)
175
+ end
176
+ end
177
+
178
+ # The CreateCollectdTimeSeries request.
179
+ class CreateCollectdTimeSeriesRequest
180
+ include Google::Apis::Core::Hashable
85
181
 
86
182
  # The collectd payloads representing the time series data. You must not include
87
183
  # more than a single point for each time series, so no two payloads can have the
@@ -91,6 +187,11 @@ module Google
91
187
  # @return [Array<Google::Apis::MonitoringV3::CollectdPayload>]
92
188
  attr_accessor :collectd_payloads
93
189
 
190
+ # The version of collectd that collected the data. Example: "5.3.0-192.el6".
191
+ # Corresponds to the JSON property `collectdVersion`
192
+ # @return [String]
193
+ attr_accessor :collectd_version
194
+
94
195
  # An object representing a resource that can be used for monitoring, logging,
95
196
  # billing, or other purposes. Examples include virtual machine instances,
96
197
  # databases, and storage devices such as disks. The type field identifies a
@@ -113,32 +214,24 @@ module Google
113
214
 
114
215
  # Update properties of this object
115
216
  def update!(**args)
116
- @collectd_version = args[:collectd_version] if args.key?(:collectd_version)
117
217
  @collectd_payloads = args[:collectd_payloads] if args.key?(:collectd_payloads)
218
+ @collectd_version = args[:collectd_version] if args.key?(:collectd_version)
118
219
  @resource = args[:resource] if args.key?(:resource)
119
220
  end
120
221
  end
121
222
 
122
- # The ListGroupMembers response.
123
- class ListGroupMembersResponse
223
+ # The CreateTimeSeries request.
224
+ class CreateTimeSeriesRequest
124
225
  include Google::Apis::Core::Hashable
125
226
 
126
- # A set of monitored resources in the group.
127
- # Corresponds to the JSON property `members`
128
- # @return [Array<Google::Apis::MonitoringV3::MonitoredResource>]
129
- attr_accessor :members
130
-
131
- # If there are more results than have been returned, then this field is set to a
132
- # non-empty value. To see the additional results, use that value as pageToken in
133
- # the next call to this method.
134
- # Corresponds to the JSON property `nextPageToken`
135
- # @return [String]
136
- attr_accessor :next_page_token
137
-
138
- # The total number of elements matching this request.
139
- # Corresponds to the JSON property `totalSize`
140
- # @return [Fixnum]
141
- attr_accessor :total_size
227
+ # The new data to be added to a list of time series. Adds at most one data point
228
+ # to each of several time series. The new data point must be more recent than
229
+ # any other point in its time series. Each TimeSeries value must fully specify a
230
+ # unique time series by supplying all label values for the metric and the
231
+ # monitored resource.
232
+ # Corresponds to the JSON property `timeSeries`
233
+ # @return [Array<Google::Apis::MonitoringV3::TimeSeries>]
234
+ attr_accessor :time_series
142
235
 
143
236
  def initialize(**args)
144
237
  update!(**args)
@@ -146,98 +239,79 @@ module Google
146
239
 
147
240
  # Update properties of this object
148
241
  def update!(**args)
149
- @members = args[:members] if args.key?(:members)
150
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
151
- @total_size = args[:total_size] if args.key?(:total_size)
242
+ @time_series = args[:time_series] if args.key?(:time_series)
152
243
  end
153
244
  end
154
245
 
155
- # The ListMonitoredResourceDescriptors response.
156
- class ListMonitoredResourceDescriptorsResponse
246
+ # Distribution contains summary statistics for a population of values. It
247
+ # optionally contains a histogram representing the distribution of those values
248
+ # across a set of buckets.The summary statistics are the count, mean, sum of the
249
+ # squared deviation from the mean, the minimum, and the maximum of the set of
250
+ # population of values. The histogram is based on a sequence of buckets and
251
+ # gives a count of values that fall into each bucket. The boundaries of the
252
+ # buckets are given either explicitly or by formulas for buckets of fixed or
253
+ # exponentially increasing widths.Although it is not forbidden, it is generally
254
+ # a bad idea to include non-finite values (infinities or NaNs) in the population
255
+ # of values, as this will render the mean and sum_of_squared_deviation fields
256
+ # meaningless.
257
+ class Distribution
157
258
  include Google::Apis::Core::Hashable
158
259
 
159
- # If there are more results than have been returned, then this field is set to a
160
- # non-empty value. To see the additional results, use that value as pageToken in
161
- # the next call to this method.
162
- # Corresponds to the JSON property `nextPageToken`
163
- # @return [String]
164
- attr_accessor :next_page_token
260
+ # Required in the Stackdriver Monitoring API v3. The values for each bucket
261
+ # specified in bucket_options. The sum of the values in bucketCounts must equal
262
+ # the value in the count field of the Distribution object. The order of the
263
+ # bucket counts follows the numbering schemes described for the three bucket
264
+ # types. The underflow bucket has number 0; the finite buckets, if any, have
265
+ # numbers 1 through N-2; and the overflow bucket has number N-1. The size of
266
+ # bucket_counts must not be greater than N. If the size is less than N, then the
267
+ # remaining buckets are assigned values of zero.
268
+ # Corresponds to the JSON property `bucketCounts`
269
+ # @return [Array<Fixnum>]
270
+ attr_accessor :bucket_counts
165
271
 
166
- # The monitored resource descriptors that are available to this project and that
167
- # match filter, if present.
168
- # Corresponds to the JSON property `resourceDescriptors`
169
- # @return [Array<Google::Apis::MonitoringV3::MonitoredResourceDescriptor>]
170
- attr_accessor :resource_descriptors
272
+ # BucketOptions describes the bucket boundaries used to create a histogram for
273
+ # the distribution. The buckets can be in a linear sequence, an exponential
274
+ # sequence, or each bucket can be specified explicitly. BucketOptions does not
275
+ # include the number of values in each bucket.A bucket has an inclusive lower
276
+ # bound and exclusive upper bound for the values that are counted for that
277
+ # bucket. The upper bound of a bucket must be strictly greater than the lower
278
+ # bound. The sequence of N buckets for a distribution consists of an underflow
279
+ # bucket (number 0), zero or more finite buckets (number 1 through N - 2) and an
280
+ # overflow bucket (number N - 1). The buckets are contiguous: the lower bound of
281
+ # bucket i (i > 0) is the same as the upper bound of bucket i - 1. The buckets
282
+ # span the whole range of finite values: lower bound of the underflow bucket is -
283
+ # infinity and the upper bound of the overflow bucket is +infinity. The finite
284
+ # buckets are so-called because both bounds are finite.
285
+ # Corresponds to the JSON property `bucketOptions`
286
+ # @return [Google::Apis::MonitoringV3::BucketOptions]
287
+ attr_accessor :bucket_options
171
288
 
172
- def initialize(**args)
173
- update!(**args)
174
- end
289
+ # The number of values in the population. Must be non-negative. This value must
290
+ # equal the sum of the values in bucket_counts if a histogram is provided.
291
+ # Corresponds to the JSON property `count`
292
+ # @return [Fixnum]
293
+ attr_accessor :count
175
294
 
176
- # Update properties of this object
177
- def update!(**args)
178
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
179
- @resource_descriptors = args[:resource_descriptors] if args.key?(:resource_descriptors)
180
- end
181
- end
182
-
183
- # A collection of data points that describes the time-varying values of a metric.
184
- # A time series is identified by a combination of a fully-specified monitored
185
- # resource and a fully-specified metric. This type is used for both listing and
186
- # creating time series.
187
- class TimeSeries
188
- include Google::Apis::Core::Hashable
189
-
190
- # An object representing a resource that can be used for monitoring, logging,
191
- # billing, or other purposes. Examples include virtual machine instances,
192
- # databases, and storage devices such as disks. The type field identifies a
193
- # MonitoredResourceDescriptor object that describes the resource's schema.
194
- # Information in the labels field identifies the actual resource and its
195
- # attributes according to the schema. For example, a particular Compute Engine
196
- # VM instance could be represented by the following object, because the
197
- # MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
198
- # zone":
199
- # ` "type": "gce_instance",
200
- # "labels": ` "instance_id": "12345678901234",
201
- # "zone": "us-central1-a" ``
202
- # Corresponds to the JSON property `resource`
203
- # @return [Google::Apis::MonitoringV3::MonitoredResource]
204
- attr_accessor :resource
205
-
206
- # The metric kind of the time series. When listing time series, this metric kind
207
- # might be different from the metric kind of the associated metric if this time
208
- # series is an alignment or reduction of other time series.When creating a time
209
- # series, this field is optional. If present, it must be the same as the metric
210
- # kind of the associated metric. If the associated metric's descriptor must be
211
- # auto-created, then this field specifies the metric kind of the new descriptor
212
- # and must be either GAUGE (the default) or CUMULATIVE.
213
- # Corresponds to the JSON property `metricKind`
214
- # @return [String]
215
- attr_accessor :metric_kind
216
-
217
- # The data points of this time series. When listing time series, the order of
218
- # the points is specified by the list method.When creating a time series, this
219
- # field must contain exactly one point and the point's type must be the same as
220
- # the value type of the associated metric. If the associated metric's descriptor
221
- # must be auto-created, then the value type of the descriptor is determined by
222
- # the point's type, which must be BOOL, INT64, DOUBLE, or DISTRIBUTION.
223
- # Corresponds to the JSON property `points`
224
- # @return [Array<Google::Apis::MonitoringV3::Point>]
225
- attr_accessor :points
295
+ # The arithmetic mean of the values in the population. If count is zero then
296
+ # this field must be zero.
297
+ # Corresponds to the JSON property `mean`
298
+ # @return [Float]
299
+ attr_accessor :mean
226
300
 
227
- # A specific metric, identified by specifying values for all of the labels of a
228
- # MetricDescriptor.
229
- # Corresponds to the JSON property `metric`
230
- # @return [Google::Apis::MonitoringV3::Metric]
231
- attr_accessor :metric
301
+ # The range of the population values.
302
+ # Corresponds to the JSON property `range`
303
+ # @return [Google::Apis::MonitoringV3::Range]
304
+ attr_accessor :range
232
305
 
233
- # The value type of the time series. When listing time series, this value type
234
- # might be different from the value type of the associated metric if this time
235
- # series is an alignment or reduction of other time series.When creating a time
236
- # series, this field is optional. If present, it must be the same as the type of
237
- # the data in the points field.
238
- # Corresponds to the JSON property `valueType`
239
- # @return [String]
240
- attr_accessor :value_type
306
+ # The sum of squared deviations from the mean of the values in the population.
307
+ # For values x_i this is:
308
+ # Sum[i=1..n]((x_i - mean)^2)
309
+ # Knuth, "The Art of Computer Programming", Vol. 2, page 323, 3rd edition
310
+ # describes Welford's method for accumulating this sum in one pass.If count is
311
+ # zero then this field must be zero.
312
+ # Corresponds to the JSON property `sumOfSquaredDeviation`
313
+ # @return [Float]
314
+ attr_accessor :sum_of_squared_deviation
241
315
 
242
316
  def initialize(**args)
243
317
  update!(**args)
@@ -245,106 +319,47 @@ module Google
245
319
 
246
320
  # Update properties of this object
247
321
  def update!(**args)
248
- @resource = args[:resource] if args.key?(:resource)
249
- @metric_kind = args[:metric_kind] if args.key?(:metric_kind)
250
- @points = args[:points] if args.key?(:points)
251
- @metric = args[:metric] if args.key?(:metric)
252
- @value_type = args[:value_type] if args.key?(:value_type)
322
+ @bucket_counts = args[:bucket_counts] if args.key?(:bucket_counts)
323
+ @bucket_options = args[:bucket_options] if args.key?(:bucket_options)
324
+ @count = args[:count] if args.key?(:count)
325
+ @mean = args[:mean] if args.key?(:mean)
326
+ @range = args[:range] if args.key?(:range)
327
+ @sum_of_squared_deviation = args[:sum_of_squared_deviation] if args.key?(:sum_of_squared_deviation)
253
328
  end
254
329
  end
255
330
 
256
- # The CreateTimeSeries request.
257
- class CreateTimeSeriesRequest
331
+ # A generic empty message that you can re-use to avoid defining duplicated empty
332
+ # messages in your APIs. A typical example is to use it as the request or the
333
+ # response type of an API method. For instance:
334
+ # service Foo `
335
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
336
+ # `
337
+ # The JSON representation for Empty is empty JSON object ``.
338
+ class Empty
258
339
  include Google::Apis::Core::Hashable
259
340
 
260
- # The new data to be added to a list of time series. Adds at most one data point
261
- # to each of several time series. The new data point must be more recent than
262
- # any other point in its time series. Each TimeSeries value must fully specify a
263
- # unique time series by supplying all label values for the metric and the
264
- # monitored resource.
265
- # Corresponds to the JSON property `timeSeries`
266
- # @return [Array<Google::Apis::MonitoringV3::TimeSeries>]
267
- attr_accessor :time_series
268
-
269
341
  def initialize(**args)
270
342
  update!(**args)
271
343
  end
272
344
 
273
345
  # Update properties of this object
274
346
  def update!(**args)
275
- @time_series = args[:time_series] if args.key?(:time_series)
276
347
  end
277
348
  end
278
349
 
279
- # Distribution contains summary statistics for a population of values. It
280
- # optionally contains a histogram representing the distribution of those values
281
- # across a set of buckets.The summary statistics are the count, mean, sum of the
282
- # squared deviation from the mean, the minimum, and the maximum of the set of
283
- # population of values. The histogram is based on a sequence of buckets and
284
- # gives a count of values that fall into each bucket. The boundaries of the
285
- # buckets are given either explicitly or by formulas for buckets of fixed or
286
- # exponentially increasing widths.Although it is not forbidden, it is generally
287
- # a bad idea to include non-finite values (infinities or NaNs) in the population
288
- # of values, as this will render the mean and sum_of_squared_deviation fields
289
- # meaningless.
290
- class Distribution
350
+ # Specifies a set of buckets with arbitrary widths.There are size(bounds) + 1 (=
351
+ # N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1):
352
+ # boundsi Lower bound (1 <= i < N); boundsi - 1The bounds field must contain at
353
+ # least one element. If bounds has only one element, then there are no finite
354
+ # buckets, and that single element is the common boundary of the overflow and
355
+ # underflow buckets.
356
+ class Explicit
291
357
  include Google::Apis::Core::Hashable
292
358
 
293
- # Required in the Stackdriver Monitoring API v3. The values for each bucket
294
- # specified in bucket_options. The sum of the values in bucketCounts must equal
295
- # the value in the count field of the Distribution object. The order of the
296
- # bucket counts follows the numbering schemes described for the three bucket
297
- # types. The underflow bucket has number 0; the finite buckets, if any, have
298
- # numbers 1 through N-2; and the overflow bucket has number N-1. The size of
299
- # bucket_counts must not be greater than N. If the size is less than N, then the
300
- # remaining buckets are assigned values of zero.
301
- # Corresponds to the JSON property `bucketCounts`
302
- # @return [Array<Fixnum>]
303
- attr_accessor :bucket_counts
304
-
305
- # BucketOptions describes the bucket boundaries used to create a histogram for
306
- # the distribution. The buckets can be in a linear sequence, an exponential
307
- # sequence, or each bucket can be specified explicitly. BucketOptions does not
308
- # include the number of values in each bucket.A bucket has an inclusive lower
309
- # bound and exclusive upper bound for the values that are counted for that
310
- # bucket. The upper bound of a bucket must be strictly greater than the lower
311
- # bound. The sequence of N buckets for a distribution consists of an underflow
312
- # bucket (number 0), zero or more finite buckets (number 1 through N - 2) and an
313
- # overflow bucket (number N - 1). The buckets are contiguous: the lower bound of
314
- # bucket i (i > 0) is the same as the upper bound of bucket i - 1. The buckets
315
- # span the whole range of finite values: lower bound of the underflow bucket is -
316
- # infinity and the upper bound of the overflow bucket is +infinity. The finite
317
- # buckets are so-called because both bounds are finite.
318
- # Corresponds to the JSON property `bucketOptions`
319
- # @return [Google::Apis::MonitoringV3::BucketOptions]
320
- attr_accessor :bucket_options
321
-
322
- # The sum of squared deviations from the mean of the values in the population.
323
- # For values x_i this is:
324
- # Sum[i=1..n]((x_i - mean)^2)
325
- # Knuth, "The Art of Computer Programming", Vol. 2, page 323, 3rd edition
326
- # describes Welford's method for accumulating this sum in one pass.If count is
327
- # zero then this field must be zero.
328
- # Corresponds to the JSON property `sumOfSquaredDeviation`
329
- # @return [Float]
330
- attr_accessor :sum_of_squared_deviation
331
-
332
- # The range of the population values.
333
- # Corresponds to the JSON property `range`
334
- # @return [Google::Apis::MonitoringV3::Range]
335
- attr_accessor :range
336
-
337
- # The number of values in the population. Must be non-negative. This value must
338
- # equal the sum of the values in bucket_counts if a histogram is provided.
339
- # Corresponds to the JSON property `count`
340
- # @return [Fixnum]
341
- attr_accessor :count
342
-
343
- # The arithmetic mean of the values in the population. If count is zero then
344
- # this field must be zero.
345
- # Corresponds to the JSON property `mean`
346
- # @return [Float]
347
- attr_accessor :mean
359
+ # The values must be monotonically increasing.
360
+ # Corresponds to the JSON property `bounds`
361
+ # @return [Array<Float>]
362
+ attr_accessor :bounds
348
363
 
349
364
  def initialize(**args)
350
365
  update!(**args)
@@ -352,43 +367,33 @@ module Google
352
367
 
353
368
  # Update properties of this object
354
369
  def update!(**args)
355
- @bucket_counts = args[:bucket_counts] if args.key?(:bucket_counts)
356
- @bucket_options = args[:bucket_options] if args.key?(:bucket_options)
357
- @sum_of_squared_deviation = args[:sum_of_squared_deviation] if args.key?(:sum_of_squared_deviation)
358
- @range = args[:range] if args.key?(:range)
359
- @count = args[:count] if args.key?(:count)
360
- @mean = args[:mean] if args.key?(:mean)
370
+ @bounds = args[:bounds] if args.key?(:bounds)
361
371
  end
362
372
  end
363
373
 
364
- # An object representing a resource that can be used for monitoring, logging,
365
- # billing, or other purposes. Examples include virtual machine instances,
366
- # databases, and storage devices such as disks. The type field identifies a
367
- # MonitoredResourceDescriptor object that describes the resource's schema.
368
- # Information in the labels field identifies the actual resource and its
369
- # attributes according to the schema. For example, a particular Compute Engine
370
- # VM instance could be represented by the following object, because the
371
- # MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
372
- # zone":
373
- # ` "type": "gce_instance",
374
- # "labels": ` "instance_id": "12345678901234",
375
- # "zone": "us-central1-a" ``
376
- class MonitoredResource
374
+ # Specifies an exponential sequence of buckets that have a width that is
375
+ # proportional to the value of the lower bound. Each bucket represents a
376
+ # constant relative uncertainty on a specific value in the bucket.There are
377
+ # num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries:
378
+ # Upper bound (0 <= i < N-1): scale * (growth_factor ^ i). Lower bound (1 <= i <
379
+ # N): scale * (growth_factor ^ (i - 1)).
380
+ class Exponential
377
381
  include Google::Apis::Core::Hashable
378
382
 
379
- # Required. Values for all of the labels listed in the associated monitored
380
- # resource descriptor. For example, Compute Engine VM instances use the labels "
381
- # project_id", "instance_id", and "zone".
382
- # Corresponds to the JSON property `labels`
383
- # @return [Hash<String,String>]
384
- attr_accessor :labels
383
+ # Must be greater than 1.
384
+ # Corresponds to the JSON property `growthFactor`
385
+ # @return [Float]
386
+ attr_accessor :growth_factor
385
387
 
386
- # Required. The monitored resource type. This field must match the type field of
387
- # a MonitoredResourceDescriptor object. For example, the type of a Compute
388
- # Engine VM instance is gce_instance.
389
- # Corresponds to the JSON property `type`
390
- # @return [String]
391
- attr_accessor :type
388
+ # Must be greater than 0.
389
+ # Corresponds to the JSON property `numFiniteBuckets`
390
+ # @return [Fixnum]
391
+ attr_accessor :num_finite_buckets
392
+
393
+ # Must be greater than 0.
394
+ # Corresponds to the JSON property `scale`
395
+ # @return [Float]
396
+ attr_accessor :scale
392
397
 
393
398
  def initialize(**args)
394
399
  update!(**args)
@@ -396,85 +401,68 @@ module Google
396
401
 
397
402
  # Update properties of this object
398
403
  def update!(**args)
399
- @labels = args[:labels] if args.key?(:labels)
400
- @type = args[:type] if args.key?(:type)
404
+ @growth_factor = args[:growth_factor] if args.key?(:growth_factor)
405
+ @num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets)
406
+ @scale = args[:scale] if args.key?(:scale)
401
407
  end
402
408
  end
403
409
 
404
- # The ListMetricDescriptors response.
405
- class ListMetricDescriptorsResponse
410
+ # A single field of a message type.
411
+ class Field
406
412
  include Google::Apis::Core::Hashable
407
413
 
408
- # If there are more results than have been returned, then this field is set to a
409
- # non-empty value. To see the additional results, use that value as pageToken in
410
- # the next call to this method.
411
- # Corresponds to the JSON property `nextPageToken`
414
+ # The field cardinality.
415
+ # Corresponds to the JSON property `cardinality`
412
416
  # @return [String]
413
- attr_accessor :next_page_token
414
-
415
- # The metric descriptors that are available to the project and that match the
416
- # value of filter, if present.
417
- # Corresponds to the JSON property `metricDescriptors`
418
- # @return [Array<Google::Apis::MonitoringV3::MetricDescriptor>]
419
- attr_accessor :metric_descriptors
420
-
421
- def initialize(**args)
422
- update!(**args)
423
- end
424
-
425
- # Update properties of this object
426
- def update!(**args)
427
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
428
- @metric_descriptors = args[:metric_descriptors] if args.key?(:metric_descriptors)
429
- end
430
- end
417
+ attr_accessor :cardinality
431
418
 
432
- # An object that describes the schema of a MonitoredResource object using a type
433
- # name and a set of labels. For example, the monitored resource descriptor for
434
- # Google Compute Engine VM instances has a type of "gce_instance" and specifies
435
- # the use of the labels "instance_id" and "zone" to identify particular VM
436
- # instances.Different APIs can support different monitored resource types. APIs
437
- # generally provide a list method that returns the monitored resource
438
- # descriptors used by the API.
439
- class MonitoredResourceDescriptor
440
- include Google::Apis::Core::Hashable
419
+ # The string value of the default value of this field. Proto2 syntax only.
420
+ # Corresponds to the JSON property `defaultValue`
421
+ # @return [String]
422
+ attr_accessor :default_value
441
423
 
442
- # Required. The monitored resource type. For example, the type "
443
- # cloudsql_database" represents databases in Google Cloud SQL. The maximum
444
- # length of this value is 256 characters.
445
- # Corresponds to the JSON property `type`
424
+ # The field JSON name.
425
+ # Corresponds to the JSON property `jsonName`
446
426
  # @return [String]
447
- attr_accessor :type
427
+ attr_accessor :json_name
448
428
 
449
- # Required. A set of labels used to describe instances of this monitored
450
- # resource type. For example, an individual Google Cloud SQL database is
451
- # identified by values for the labels "database_id" and "zone".
452
- # Corresponds to the JSON property `labels`
453
- # @return [Array<Google::Apis::MonitoringV3::LabelDescriptor>]
454
- attr_accessor :labels
429
+ # The field type.
430
+ # Corresponds to the JSON property `kind`
431
+ # @return [String]
432
+ attr_accessor :kind
455
433
 
456
- # Optional. The resource name of the monitored resource descriptor: "projects/`
457
- # project_id`/monitoredResourceDescriptors/`type`" where `type` is the value of
458
- # the type field in this object and `project_id` is a project ID that provides
459
- # API-specific context for accessing the type. APIs that do not use project
460
- # information can use the resource name format "monitoredResourceDescriptors/`
461
- # type`".
434
+ # The field name.
462
435
  # Corresponds to the JSON property `name`
463
436
  # @return [String]
464
437
  attr_accessor :name
465
438
 
466
- # Optional. A detailed description of the monitored resource type that might be
467
- # used in documentation.
468
- # Corresponds to the JSON property `description`
469
- # @return [String]
470
- attr_accessor :description
439
+ # The field number.
440
+ # Corresponds to the JSON property `number`
441
+ # @return [Fixnum]
442
+ attr_accessor :number
471
443
 
472
- # Optional. A concise name for the monitored resource type that might be
473
- # displayed in user interfaces. It should be a Title Cased Noun Phrase, without
474
- # any article or other determiners. For example, "Google Cloud SQL Database".
475
- # Corresponds to the JSON property `displayName`
444
+ # The index of the field type in Type.oneofs, for message or enumeration types.
445
+ # The first type has index 1; zero means the type is not in the list.
446
+ # Corresponds to the JSON property `oneofIndex`
447
+ # @return [Fixnum]
448
+ attr_accessor :oneof_index
449
+
450
+ # The protocol buffer options.
451
+ # Corresponds to the JSON property `options`
452
+ # @return [Array<Google::Apis::MonitoringV3::Option>]
453
+ attr_accessor :options
454
+
455
+ # Whether to use alternative packed wire representation.
456
+ # Corresponds to the JSON property `packed`
457
+ # @return [Boolean]
458
+ attr_accessor :packed
459
+ alias_method :packed?, :packed
460
+
461
+ # The field type URL, without the scheme, for message or enumeration types.
462
+ # Example: "type.googleapis.com/google.protobuf.Timestamp".
463
+ # Corresponds to the JSON property `typeUrl`
476
464
  # @return [String]
477
- attr_accessor :display_name
465
+ attr_accessor :type_url
478
466
 
479
467
  def initialize(**args)
480
468
  update!(**args)
@@ -482,55 +470,73 @@ module Google
482
470
 
483
471
  # Update properties of this object
484
472
  def update!(**args)
485
- @type = args[:type] if args.key?(:type)
486
- @labels = args[:labels] if args.key?(:labels)
473
+ @cardinality = args[:cardinality] if args.key?(:cardinality)
474
+ @default_value = args[:default_value] if args.key?(:default_value)
475
+ @json_name = args[:json_name] if args.key?(:json_name)
476
+ @kind = args[:kind] if args.key?(:kind)
487
477
  @name = args[:name] if args.key?(:name)
488
- @description = args[:description] if args.key?(:description)
489
- @display_name = args[:display_name] if args.key?(:display_name)
478
+ @number = args[:number] if args.key?(:number)
479
+ @oneof_index = args[:oneof_index] if args.key?(:oneof_index)
480
+ @options = args[:options] if args.key?(:options)
481
+ @packed = args[:packed] if args.key?(:packed)
482
+ @type_url = args[:type_url] if args.key?(:type_url)
490
483
  end
491
484
  end
492
485
 
493
- # A single strongly-typed value.
494
- class TypedValue
486
+ # The description of a dynamic collection of monitored resources. Each group has
487
+ # a filter that is matched against monitored resources and their associated
488
+ # metadata. If a group's filter matches an available monitored resource, then
489
+ # that resource is a member of that group. Groups can contain any number of
490
+ # monitored resources, and each monitored resource can be a member of any number
491
+ # of groups.Groups can be nested in parent-child hierarchies. The parentName
492
+ # field identifies an optional parent for each group. If a group has a parent,
493
+ # then the only monitored resources available to be matched by the group's
494
+ # filter are the resources contained in the parent group. In other words, a
495
+ # group contains the monitored resources that match its filter and the filters
496
+ # of all the group's ancestors. A group without a parent can contain any
497
+ # monitored resource.For example, consider an infrastructure running a set of
498
+ # instances with two user-defined tags: "environment" and "role". A parent group
499
+ # has a filter, environment="production". A child of that parent group has a
500
+ # filter, role="transcoder". The parent group contains all instances in the
501
+ # production environment, regardless of their roles. The child group contains
502
+ # instances that have the transcoder role and are in the production environment.
503
+ # The monitored resources contained in a group can change at any moment,
504
+ # depending on what resources exist and what filters are associated with the
505
+ # group and its ancestors.
506
+ class Group
495
507
  include Google::Apis::Core::Hashable
496
508
 
497
- # A 64-bit double-precision floating-point number. Its magnitude is
498
- # approximately &plusmn;10<sup>&plusmn;300</sup> and it has 16 significant
499
- # digits of precision.
500
- # Corresponds to the JSON property `doubleValue`
501
- # @return [Float]
502
- attr_accessor :double_value
509
+ # A user-assigned name for this group, used only for display purposes.
510
+ # Corresponds to the JSON property `displayName`
511
+ # @return [String]
512
+ attr_accessor :display_name
503
513
 
504
- # A 64-bit integer. Its range is approximately &plusmn;9.2x10<sup>18</sup>.
505
- # Corresponds to the JSON property `int64Value`
506
- # @return [Fixnum]
507
- attr_accessor :int64_value
514
+ # The filter used to determine which monitored resources belong to this group.
515
+ # Corresponds to the JSON property `filter`
516
+ # @return [String]
517
+ attr_accessor :filter
508
518
 
509
- # Distribution contains summary statistics for a population of values. It
510
- # optionally contains a histogram representing the distribution of those values
511
- # across a set of buckets.The summary statistics are the count, mean, sum of the
512
- # squared deviation from the mean, the minimum, and the maximum of the set of
513
- # population of values. The histogram is based on a sequence of buckets and
514
- # gives a count of values that fall into each bucket. The boundaries of the
515
- # buckets are given either explicitly or by formulas for buckets of fixed or
516
- # exponentially increasing widths.Although it is not forbidden, it is generally
517
- # a bad idea to include non-finite values (infinities or NaNs) in the population
518
- # of values, as this will render the mean and sum_of_squared_deviation fields
519
- # meaningless.
520
- # Corresponds to the JSON property `distributionValue`
521
- # @return [Google::Apis::MonitoringV3::Distribution]
522
- attr_accessor :distribution_value
519
+ # If true, the members of this group are considered to be a cluster. The system
520
+ # can perform additional analysis on groups that are clusters.
521
+ # Corresponds to the JSON property `isCluster`
522
+ # @return [Boolean]
523
+ attr_accessor :is_cluster
524
+ alias_method :is_cluster?, :is_cluster
523
525
 
524
- # A variable-length string value.
525
- # Corresponds to the JSON property `stringValue`
526
+ # Output only. The name of this group. The format is "projects/`
527
+ # project_id_or_number`/groups/`group_id`". When creating a group, this field is
528
+ # ignored and a new name is created consisting of the project specified in the
529
+ # call to CreateGroup and a unique `group_id` that is generated automatically.
530
+ # Corresponds to the JSON property `name`
526
531
  # @return [String]
527
- attr_accessor :string_value
532
+ attr_accessor :name
528
533
 
529
- # A Boolean value: true or false.
530
- # Corresponds to the JSON property `boolValue`
531
- # @return [Boolean]
532
- attr_accessor :bool_value
533
- alias_method :bool_value?, :bool_value
534
+ # The name of the group's parent, if it has one. The format is "projects/`
535
+ # project_id_or_number`/groups/`group_id`". For groups with no parent,
536
+ # parentName is the empty string, "".
537
+ # Corresponds to the JSON property `parentName`
538
+ # @return [String]
539
+ attr_accessor :parent_name
534
540
 
535
541
  def initialize(**args)
536
542
  update!(**args)
@@ -538,59 +544,32 @@ module Google
538
544
 
539
545
  # Update properties of this object
540
546
  def update!(**args)
541
- @double_value = args[:double_value] if args.key?(:double_value)
542
- @int64_value = args[:int64_value] if args.key?(:int64_value)
543
- @distribution_value = args[:distribution_value] if args.key?(:distribution_value)
544
- @string_value = args[:string_value] if args.key?(:string_value)
545
- @bool_value = args[:bool_value] if args.key?(:bool_value)
547
+ @display_name = args[:display_name] if args.key?(:display_name)
548
+ @filter = args[:filter] if args.key?(:filter)
549
+ @is_cluster = args[:is_cluster] if args.key?(:is_cluster)
550
+ @name = args[:name] if args.key?(:name)
551
+ @parent_name = args[:parent_name] if args.key?(:parent_name)
546
552
  end
547
553
  end
548
554
 
549
- # A collection of data points sent from a collectd-based plugin. See the
550
- # collectd documentation for more information.
551
- class CollectdPayload
555
+ # A description of a label.
556
+ class LabelDescriptor
552
557
  include Google::Apis::Core::Hashable
553
558
 
554
- # The measurement type instance. Example: "used".
555
- # Corresponds to the JSON property `typeInstance`
556
- # @return [String]
557
- attr_accessor :type_instance
558
-
559
- # The measurement type. Example: "memory".
560
- # Corresponds to the JSON property `type`
561
- # @return [String]
562
- attr_accessor :type
563
-
564
- # The measurement metadata. Example: "process_id" -> 12345
565
- # Corresponds to the JSON property `metadata`
566
- # @return [Hash<String,Google::Apis::MonitoringV3::TypedValue>]
567
- attr_accessor :metadata
568
-
569
- # The name of the plugin. Example: "disk".
570
- # Corresponds to the JSON property `plugin`
571
- # @return [String]
572
- attr_accessor :plugin
573
-
574
- # The instance name of the plugin Example: "hdcl".
575
- # Corresponds to the JSON property `pluginInstance`
559
+ # A human-readable description for the label.
560
+ # Corresponds to the JSON property `description`
576
561
  # @return [String]
577
- attr_accessor :plugin_instance
562
+ attr_accessor :description
578
563
 
579
- # The end time of the interval.
580
- # Corresponds to the JSON property `endTime`
564
+ # The label key.
565
+ # Corresponds to the JSON property `key`
581
566
  # @return [String]
582
- attr_accessor :end_time
567
+ attr_accessor :key
583
568
 
584
- # The start time of the interval.
585
- # Corresponds to the JSON property `startTime`
569
+ # The type of data that can be assigned to the label.
570
+ # Corresponds to the JSON property `valueType`
586
571
  # @return [String]
587
- attr_accessor :start_time
588
-
589
- # The measured values during this time interval. Each value must have a
590
- # different dataSourceName.
591
- # Corresponds to the JSON property `values`
592
- # @return [Array<Google::Apis::MonitoringV3::CollectdValue>]
593
- attr_accessor :values
572
+ attr_accessor :value_type
594
573
 
595
574
  def initialize(**args)
596
575
  update!(**args)
@@ -598,14 +577,9 @@ module Google
598
577
 
599
578
  # Update properties of this object
600
579
  def update!(**args)
601
- @type_instance = args[:type_instance] if args.key?(:type_instance)
602
- @type = args[:type] if args.key?(:type)
603
- @metadata = args[:metadata] if args.key?(:metadata)
604
- @plugin = args[:plugin] if args.key?(:plugin)
605
- @plugin_instance = args[:plugin_instance] if args.key?(:plugin_instance)
606
- @end_time = args[:end_time] if args.key?(:end_time)
607
- @start_time = args[:start_time] if args.key?(:start_time)
608
- @values = args[:values] if args.key?(:values)
580
+ @description = args[:description] if args.key?(:description)
581
+ @key = args[:key] if args.key?(:key)
582
+ @value_type = args[:value_type] if args.key?(:value_type)
609
583
  end
610
584
  end
611
585
 
@@ -623,16 +597,16 @@ module Google
623
597
  # @return [Fixnum]
624
598
  attr_accessor :num_finite_buckets
625
599
 
626
- # Must be greater than 0.
627
- # Corresponds to the JSON property `width`
628
- # @return [Float]
629
- attr_accessor :width
630
-
631
600
  # Lower bound of the first bucket.
632
601
  # Corresponds to the JSON property `offset`
633
602
  # @return [Float]
634
603
  attr_accessor :offset
635
604
 
605
+ # Must be greater than 0.
606
+ # Corresponds to the JSON property `width`
607
+ # @return [Float]
608
+ attr_accessor :width
609
+
636
610
  def initialize(**args)
637
611
  update!(**args)
638
612
  end
@@ -640,50 +614,31 @@ module Google
640
614
  # Update properties of this object
641
615
  def update!(**args)
642
616
  @num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets)
643
- @width = args[:width] if args.key?(:width)
644
617
  @offset = args[:offset] if args.key?(:offset)
618
+ @width = args[:width] if args.key?(:width)
645
619
  end
646
620
  end
647
621
 
648
- # A generic empty message that you can re-use to avoid defining duplicated empty
649
- # messages in your APIs. A typical example is to use it as the request or the
650
- # response type of an API method. For instance:
651
- # service Foo `
652
- # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
653
- # `
654
- # The JSON representation for Empty is empty JSON object ``.
655
- class Empty
656
- include Google::Apis::Core::Hashable
657
-
658
- def initialize(**args)
659
- update!(**args)
660
- end
661
-
662
- # Update properties of this object
663
- def update!(**args)
664
- end
665
- end
666
-
667
- # A protocol buffer option, which can be attached to a message, field,
668
- # enumeration, etc.
669
- class Option
622
+ # The ListGroupMembers response.
623
+ class ListGroupMembersResponse
670
624
  include Google::Apis::Core::Hashable
671
625
 
672
- # The option's value packed in an Any message. If the value is a primitive, the
673
- # corresponding wrapper type defined in google/protobuf/wrappers.proto should be
674
- # used. If the value is an enum, it should be stored as an int32 value using the
675
- # google.protobuf.Int32Value type.
676
- # Corresponds to the JSON property `value`
677
- # @return [Hash<String,Object>]
678
- attr_accessor :value
626
+ # A set of monitored resources in the group.
627
+ # Corresponds to the JSON property `members`
628
+ # @return [Array<Google::Apis::MonitoringV3::MonitoredResource>]
629
+ attr_accessor :members
679
630
 
680
- # The option's name. For protobuf built-in options (options defined in
681
- # descriptor.proto), this is the short name. For example, "map_entry". For
682
- # custom options, it should be the fully-qualified name. For example, "google.
683
- # api.http".
684
- # Corresponds to the JSON property `name`
631
+ # If there are more results than have been returned, then this field is set to a
632
+ # non-empty value. To see the additional results, use that value as pageToken in
633
+ # the next call to this method.
634
+ # Corresponds to the JSON property `nextPageToken`
685
635
  # @return [String]
686
- attr_accessor :name
636
+ attr_accessor :next_page_token
637
+
638
+ # The total number of elements matching this request.
639
+ # Corresponds to the JSON property `totalSize`
640
+ # @return [Fixnum]
641
+ attr_accessor :total_size
687
642
 
688
643
  def initialize(**args)
689
644
  update!(**args)
@@ -691,24 +646,27 @@ module Google
691
646
 
692
647
  # Update properties of this object
693
648
  def update!(**args)
694
- @value = args[:value] if args.key?(:value)
695
- @name = args[:name] if args.key?(:name)
649
+ @members = args[:members] if args.key?(:members)
650
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
651
+ @total_size = args[:total_size] if args.key?(:total_size)
696
652
  end
697
653
  end
698
654
 
699
- # Specifies a set of buckets with arbitrary widths.There are size(bounds) + 1 (=
700
- # N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1):
701
- # boundsi Lower bound (1 <= i < N); boundsi - 1The bounds field must contain at
702
- # least one element. If bounds has only one element, then there are no finite
703
- # buckets, and that single element is the common boundary of the overflow and
704
- # underflow buckets.
705
- class Explicit
655
+ # The ListGroups response.
656
+ class ListGroupsResponse
706
657
  include Google::Apis::Core::Hashable
707
658
 
708
- # The values must be monotonically increasing.
709
- # Corresponds to the JSON property `bounds`
710
- # @return [Array<Float>]
711
- attr_accessor :bounds
659
+ # The groups that match the specified filters.
660
+ # Corresponds to the JSON property `group`
661
+ # @return [Array<Google::Apis::MonitoringV3::Group>]
662
+ attr_accessor :group
663
+
664
+ # If there are more results than have been returned, then this field is set to a
665
+ # non-empty value. To see the additional results, use that value as pageToken in
666
+ # the next call to this method.
667
+ # Corresponds to the JSON property `nextPageToken`
668
+ # @return [String]
669
+ attr_accessor :next_page_token
712
670
 
713
671
  def initialize(**args)
714
672
  update!(**args)
@@ -716,26 +674,27 @@ module Google
716
674
 
717
675
  # Update properties of this object
718
676
  def update!(**args)
719
- @bounds = args[:bounds] if args.key?(:bounds)
677
+ @group = args[:group] if args.key?(:group)
678
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
720
679
  end
721
680
  end
722
681
 
723
- # A time interval extending just after a start time through an end time. If the
724
- # start time is the same as the end time, then the interval represents a single
725
- # point in time.
726
- class TimeInterval
682
+ # The ListMetricDescriptors response.
683
+ class ListMetricDescriptorsResponse
727
684
  include Google::Apis::Core::Hashable
728
685
 
729
- # Optional. The beginning of the time interval. The default value for the start
730
- # time is the end time. The start time must not be later than the end time.
731
- # Corresponds to the JSON property `startTime`
732
- # @return [String]
733
- attr_accessor :start_time
686
+ # The metric descriptors that are available to the project and that match the
687
+ # value of filter, if present.
688
+ # Corresponds to the JSON property `metricDescriptors`
689
+ # @return [Array<Google::Apis::MonitoringV3::MetricDescriptor>]
690
+ attr_accessor :metric_descriptors
734
691
 
735
- # Required. The end of the time interval.
736
- # Corresponds to the JSON property `endTime`
692
+ # If there are more results than have been returned, then this field is set to a
693
+ # non-empty value. To see the additional results, use that value as pageToken in
694
+ # the next call to this method.
695
+ # Corresponds to the JSON property `nextPageToken`
737
696
  # @return [String]
738
- attr_accessor :end_time
697
+ attr_accessor :next_page_token
739
698
 
740
699
  def initialize(**args)
741
700
  update!(**args)
@@ -743,34 +702,27 @@ module Google
743
702
 
744
703
  # Update properties of this object
745
704
  def update!(**args)
746
- @start_time = args[:start_time] if args.key?(:start_time)
747
- @end_time = args[:end_time] if args.key?(:end_time)
705
+ @metric_descriptors = args[:metric_descriptors] if args.key?(:metric_descriptors)
706
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
748
707
  end
749
708
  end
750
709
 
751
- # Specifies an exponential sequence of buckets that have a width that is
752
- # proportional to the value of the lower bound. Each bucket represents a
753
- # constant relative uncertainty on a specific value in the bucket.There are
754
- # num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries:
755
- # Upper bound (0 <= i < N-1): scale * (growth_factor ^ i). Lower bound (1 <= i <
756
- # N): scale * (growth_factor ^ (i - 1)).
757
- class Exponential
710
+ # The ListMonitoredResourceDescriptors response.
711
+ class ListMonitoredResourceDescriptorsResponse
758
712
  include Google::Apis::Core::Hashable
759
713
 
760
- # Must be greater than 0.
761
- # Corresponds to the JSON property `scale`
762
- # @return [Float]
763
- attr_accessor :scale
764
-
765
- # Must be greater than 0.
766
- # Corresponds to the JSON property `numFiniteBuckets`
767
- # @return [Fixnum]
768
- attr_accessor :num_finite_buckets
714
+ # If there are more results than have been returned, then this field is set to a
715
+ # non-empty value. To see the additional results, use that value as pageToken in
716
+ # the next call to this method.
717
+ # Corresponds to the JSON property `nextPageToken`
718
+ # @return [String]
719
+ attr_accessor :next_page_token
769
720
 
770
- # Must be greater than 1.
771
- # Corresponds to the JSON property `growthFactor`
772
- # @return [Float]
773
- attr_accessor :growth_factor
721
+ # The monitored resource descriptors that are available to this project and that
722
+ # match filter, if present.
723
+ # Corresponds to the JSON property `resourceDescriptors`
724
+ # @return [Array<Google::Apis::MonitoringV3::MonitoredResourceDescriptor>]
725
+ attr_accessor :resource_descriptors
774
726
 
775
727
  def initialize(**args)
776
728
  update!(**args)
@@ -778,27 +730,26 @@ module Google
778
730
 
779
731
  # Update properties of this object
780
732
  def update!(**args)
781
- @scale = args[:scale] if args.key?(:scale)
782
- @num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets)
783
- @growth_factor = args[:growth_factor] if args.key?(:growth_factor)
733
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
734
+ @resource_descriptors = args[:resource_descriptors] if args.key?(:resource_descriptors)
784
735
  end
785
736
  end
786
737
 
787
- # A single data point in a time series.
788
- class Point
738
+ # The ListTimeSeries response.
739
+ class ListTimeSeriesResponse
789
740
  include Google::Apis::Core::Hashable
790
741
 
791
- # A time interval extending just after a start time through an end time. If the
792
- # start time is the same as the end time, then the interval represents a single
793
- # point in time.
794
- # Corresponds to the JSON property `interval`
795
- # @return [Google::Apis::MonitoringV3::TimeInterval]
796
- attr_accessor :interval
742
+ # If there are more results than have been returned, then this field is set to a
743
+ # non-empty value. To see the additional results, use that value as pageToken in
744
+ # the next call to this method.
745
+ # Corresponds to the JSON property `nextPageToken`
746
+ # @return [String]
747
+ attr_accessor :next_page_token
797
748
 
798
- # A single strongly-typed value.
799
- # Corresponds to the JSON property `value`
800
- # @return [Google::Apis::MonitoringV3::TypedValue]
801
- attr_accessor :value
749
+ # One or more time series that match the filter included in the request.
750
+ # Corresponds to the JSON property `timeSeries`
751
+ # @return [Array<Google::Apis::MonitoringV3::TimeSeries>]
752
+ attr_accessor :time_series
802
753
 
803
754
  def initialize(**args)
804
755
  update!(**args)
@@ -806,8 +757,8 @@ module Google
806
757
 
807
758
  # Update properties of this object
808
759
  def update!(**args)
809
- @interval = args[:interval] if args.key?(:interval)
810
- @value = args[:value] if args.key?(:value)
760
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
761
+ @time_series = args[:time_series] if args.key?(:time_series)
811
762
  end
812
763
  end
813
764
 
@@ -839,101 +790,115 @@ module Google
839
790
  end
840
791
  end
841
792
 
842
- # A single field of a message type.
843
- class Field
793
+ # Defines a metric type and its schema. Once a metric descriptor is created,
794
+ # deleting or altering it stops data collection and makes the metric type's
795
+ # existing data unusable.
796
+ class MetricDescriptor
844
797
  include Google::Apis::Core::Hashable
845
798
 
846
- # The field type.
847
- # Corresponds to the JSON property `kind`
848
- # @return [String]
849
- attr_accessor :kind
850
-
851
- # The field JSON name.
852
- # Corresponds to the JSON property `jsonName`
799
+ # A detailed description of the metric, which can be used in documentation.
800
+ # Corresponds to the JSON property `description`
853
801
  # @return [String]
854
- attr_accessor :json_name
855
-
856
- # The protocol buffer options.
857
- # Corresponds to the JSON property `options`
858
- # @return [Array<Google::Apis::MonitoringV3::Option>]
859
- attr_accessor :options
860
-
861
- # The index of the field type in Type.oneofs, for message or enumeration types.
862
- # The first type has index 1; zero means the type is not in the list.
863
- # Corresponds to the JSON property `oneofIndex`
864
- # @return [Fixnum]
865
- attr_accessor :oneof_index
802
+ attr_accessor :description
866
803
 
867
- # The field cardinality.
868
- # Corresponds to the JSON property `cardinality`
804
+ # A concise name for the metric, which can be displayed in user interfaces. Use
805
+ # sentence case without an ending period, for example "Request count".
806
+ # Corresponds to the JSON property `displayName`
869
807
  # @return [String]
870
- attr_accessor :cardinality
808
+ attr_accessor :display_name
871
809
 
872
- # Whether to use alternative packed wire representation.
873
- # Corresponds to the JSON property `packed`
874
- # @return [Boolean]
875
- attr_accessor :packed
876
- alias_method :packed?, :packed
810
+ # The set of labels that can be used to describe a specific instance of this
811
+ # metric type. For example, the appengine.googleapis.com/http/server/
812
+ # response_latencies metric type has a label for the HTTP response code,
813
+ # response_code, so you can look at latencies for successful responses or just
814
+ # for responses that failed.
815
+ # Corresponds to the JSON property `labels`
816
+ # @return [Array<Google::Apis::MonitoringV3::LabelDescriptor>]
817
+ attr_accessor :labels
877
818
 
878
- # The string value of the default value of this field. Proto2 syntax only.
879
- # Corresponds to the JSON property `defaultValue`
819
+ # Whether the metric records instantaneous values, changes to a value, etc. Some
820
+ # combinations of metric_kind and value_type might not be supported.
821
+ # Corresponds to the JSON property `metricKind`
880
822
  # @return [String]
881
- attr_accessor :default_value
823
+ attr_accessor :metric_kind
882
824
 
883
- # The field name.
825
+ # The resource name of the metric descriptor. Depending on the implementation,
826
+ # the name typically includes: (1) the parent resource name that defines the
827
+ # scope of the metric type or of its data; and (2) the metric's URL-encoded type,
828
+ # which also appears in the type field of this descriptor. For example,
829
+ # following is the resource name of a custom metric within the GCP project my-
830
+ # project-id:
831
+ # "projects/my-project-id/metricDescriptors/custom.googleapis.com%2Finvoice%
832
+ # 2Fpaid%2Famount"
884
833
  # Corresponds to the JSON property `name`
885
834
  # @return [String]
886
835
  attr_accessor :name
887
836
 
888
- # The field type URL, without the scheme, for message or enumeration types.
889
- # Example: "type.googleapis.com/google.protobuf.Timestamp".
890
- # Corresponds to the JSON property `typeUrl`
837
+ # The metric type, including its DNS name prefix. The type is not URL-encoded.
838
+ # All user-defined custom metric types have the DNS name custom.googleapis.com.
839
+ # Metric types should use a natural hierarchical grouping. For example:
840
+ # "custom.googleapis.com/invoice/paid/amount"
841
+ # "appengine.googleapis.com/http/server/response_latencies"
842
+ # Corresponds to the JSON property `type`
891
843
  # @return [String]
892
- attr_accessor :type_url
893
-
894
- # The field number.
895
- # Corresponds to the JSON property `number`
896
- # @return [Fixnum]
897
- attr_accessor :number
898
-
899
- def initialize(**args)
900
- update!(**args)
901
- end
902
-
903
- # Update properties of this object
904
- def update!(**args)
905
- @kind = args[:kind] if args.key?(:kind)
906
- @json_name = args[:json_name] if args.key?(:json_name)
907
- @options = args[:options] if args.key?(:options)
908
- @oneof_index = args[:oneof_index] if args.key?(:oneof_index)
909
- @cardinality = args[:cardinality] if args.key?(:cardinality)
910
- @packed = args[:packed] if args.key?(:packed)
911
- @default_value = args[:default_value] if args.key?(:default_value)
912
- @name = args[:name] if args.key?(:name)
913
- @type_url = args[:type_url] if args.key?(:type_url)
914
- @number = args[:number] if args.key?(:number)
915
- end
916
- end
917
-
918
- # A description of a label.
919
- class LabelDescriptor
920
- include Google::Apis::Core::Hashable
844
+ attr_accessor :type
921
845
 
922
- # A human-readable description for the label.
923
- # Corresponds to the JSON property `description`
846
+ # The unit in which the metric value is reported. It is only applicable if the
847
+ # value_type is INT64, DOUBLE, or DISTRIBUTION. The supported units are a subset
848
+ # of The Unified Code for Units of Measure (http://unitsofmeasure.org/ucum.html)
849
+ # standard:Basic units (UNIT)
850
+ # bit bit
851
+ # By byte
852
+ # s second
853
+ # min minute
854
+ # h hour
855
+ # d dayPrefixes (PREFIX)
856
+ # k kilo (10**3)
857
+ # M mega (10**6)
858
+ # G giga (10**9)
859
+ # T tera (10**12)
860
+ # P peta (10**15)
861
+ # E exa (10**18)
862
+ # Z zetta (10**21)
863
+ # Y yotta (10**24)
864
+ # m milli (10**-3)
865
+ # u micro (10**-6)
866
+ # n nano (10**-9)
867
+ # p pico (10**-12)
868
+ # f femto (10**-15)
869
+ # a atto (10**-18)
870
+ # z zepto (10**-21)
871
+ # y yocto (10**-24)
872
+ # Ki kibi (2**10)
873
+ # Mi mebi (2**20)
874
+ # Gi gibi (2**30)
875
+ # Ti tebi (2**40)GrammarThe grammar includes the dimensionless unit 1, such as 1/
876
+ # s.The grammar also includes these connectors:
877
+ # / division (as an infix operator, e.g. 1/s).
878
+ # . multiplication (as an infix operator, e.g. GBy.d)The grammar for a unit is
879
+ # as follows:
880
+ # Expression = Component ` "." Component ` ` "/" Component ` ;
881
+ # Component = [ PREFIX ] UNIT [ Annotation ]
882
+ # | Annotation
883
+ # | "1"
884
+ # ;
885
+ # Annotation = "`" NAME "`" ;
886
+ # Notes:
887
+ # Annotation is just a comment if it follows a UNIT and is equivalent to 1 if
888
+ # it is used alone. For examples, `requests`/s == 1/s, By`transmitted`/s == By/
889
+ # s.
890
+ # NAME is a sequence of non-blank printable ASCII characters not containing '`'
891
+ # or '`'.
892
+ # Corresponds to the JSON property `unit`
924
893
  # @return [String]
925
- attr_accessor :description
894
+ attr_accessor :unit
926
895
 
927
- # The type of data that can be assigned to the label.
896
+ # Whether the measurement is an integer, a floating-point number, etc. Some
897
+ # combinations of metric_kind and value_type might not be supported.
928
898
  # Corresponds to the JSON property `valueType`
929
899
  # @return [String]
930
900
  attr_accessor :value_type
931
901
 
932
- # The label key.
933
- # Corresponds to the JSON property `key`
934
- # @return [String]
935
- attr_accessor :key
936
-
937
902
  def initialize(**args)
938
903
  update!(**args)
939
904
  end
@@ -941,26 +906,44 @@ module Google
941
906
  # Update properties of this object
942
907
  def update!(**args)
943
908
  @description = args[:description] if args.key?(:description)
909
+ @display_name = args[:display_name] if args.key?(:display_name)
910
+ @labels = args[:labels] if args.key?(:labels)
911
+ @metric_kind = args[:metric_kind] if args.key?(:metric_kind)
912
+ @name = args[:name] if args.key?(:name)
913
+ @type = args[:type] if args.key?(:type)
914
+ @unit = args[:unit] if args.key?(:unit)
944
915
  @value_type = args[:value_type] if args.key?(:value_type)
945
- @key = args[:key] if args.key?(:key)
946
916
  end
947
917
  end
948
918
 
949
- # The ListTimeSeries response.
950
- class ListTimeSeriesResponse
919
+ # An object representing a resource that can be used for monitoring, logging,
920
+ # billing, or other purposes. Examples include virtual machine instances,
921
+ # databases, and storage devices such as disks. The type field identifies a
922
+ # MonitoredResourceDescriptor object that describes the resource's schema.
923
+ # Information in the labels field identifies the actual resource and its
924
+ # attributes according to the schema. For example, a particular Compute Engine
925
+ # VM instance could be represented by the following object, because the
926
+ # MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
927
+ # zone":
928
+ # ` "type": "gce_instance",
929
+ # "labels": ` "instance_id": "12345678901234",
930
+ # "zone": "us-central1-a" ``
931
+ class MonitoredResource
951
932
  include Google::Apis::Core::Hashable
952
933
 
953
- # One or more time series that match the filter included in the request.
954
- # Corresponds to the JSON property `timeSeries`
955
- # @return [Array<Google::Apis::MonitoringV3::TimeSeries>]
956
- attr_accessor :time_series
934
+ # Required. Values for all of the labels listed in the associated monitored
935
+ # resource descriptor. For example, Compute Engine VM instances use the labels "
936
+ # project_id", "instance_id", and "zone".
937
+ # Corresponds to the JSON property `labels`
938
+ # @return [Hash<String,String>]
939
+ attr_accessor :labels
957
940
 
958
- # If there are more results than have been returned, then this field is set to a
959
- # non-empty value. To see the additional results, use that value as pageToken in
960
- # the next call to this method.
961
- # Corresponds to the JSON property `nextPageToken`
941
+ # Required. The monitored resource type. This field must match the type field of
942
+ # a MonitoredResourceDescriptor object. For example, the type of a Compute
943
+ # Engine VM instance is gce_instance.
944
+ # Corresponds to the JSON property `type`
962
945
  # @return [String]
963
- attr_accessor :next_page_token
946
+ attr_accessor :type
964
947
 
965
948
  def initialize(**args)
966
949
  update!(**args)
@@ -968,65 +951,57 @@ module Google
968
951
 
969
952
  # Update properties of this object
970
953
  def update!(**args)
971
- @time_series = args[:time_series] if args.key?(:time_series)
972
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
954
+ @labels = args[:labels] if args.key?(:labels)
955
+ @type = args[:type] if args.key?(:type)
973
956
  end
974
957
  end
975
958
 
976
- # The description of a dynamic collection of monitored resources. Each group has
977
- # a filter that is matched against monitored resources and their associated
978
- # metadata. If a group's filter matches an available monitored resource, then
979
- # that resource is a member of that group. Groups can contain any number of
980
- # monitored resources, and each monitored resource can be a member of any number
981
- # of groups.Groups can be nested in parent-child hierarchies. The parentName
982
- # field identifies an optional parent for each group. If a group has a parent,
983
- # then the only monitored resources available to be matched by the group's
984
- # filter are the resources contained in the parent group. In other words, a
985
- # group contains the monitored resources that match its filter and the filters
986
- # of all the group's ancestors. A group without a parent can contain any
987
- # monitored resource.For example, consider an infrastructure running a set of
988
- # instances with two user-defined tags: "environment" and "role". A parent group
989
- # has a filter, environment="production". A child of that parent group has a
990
- # filter, role="transcoder". The parent group contains all instances in the
991
- # production environment, regardless of their roles. The child group contains
992
- # instances that have the transcoder role and are in the production environment.
993
- # The monitored resources contained in a group can change at any moment,
994
- # depending on what resources exist and what filters are associated with the
995
- # group and its ancestors.
996
- class Group
959
+ # An object that describes the schema of a MonitoredResource object using a type
960
+ # name and a set of labels. For example, the monitored resource descriptor for
961
+ # Google Compute Engine VM instances has a type of "gce_instance" and specifies
962
+ # the use of the labels "instance_id" and "zone" to identify particular VM
963
+ # instances.Different APIs can support different monitored resource types. APIs
964
+ # generally provide a list method that returns the monitored resource
965
+ # descriptors used by the API.
966
+ class MonitoredResourceDescriptor
997
967
  include Google::Apis::Core::Hashable
998
968
 
999
- # The name of the group's parent, if it has one. The format is "projects/`
1000
- # project_id_or_number`/groups/`group_id`". For groups with no parent,
1001
- # parentName is the empty string, "".
1002
- # Corresponds to the JSON property `parentName`
1003
- # @return [String]
1004
- attr_accessor :parent_name
1005
-
1006
- # Output only. The name of this group. The format is "projects/`
1007
- # project_id_or_number`/groups/`group_id`". When creating a group, this field is
1008
- # ignored and a new name is created consisting of the project specified in the
1009
- # call to CreateGroup and a unique `group_id` that is generated automatically.
1010
- # Corresponds to the JSON property `name`
969
+ # Optional. A detailed description of the monitored resource type that might be
970
+ # used in documentation.
971
+ # Corresponds to the JSON property `description`
1011
972
  # @return [String]
1012
- attr_accessor :name
973
+ attr_accessor :description
1013
974
 
1014
- # A user-assigned name for this group, used only for display purposes.
975
+ # Optional. A concise name for the monitored resource type that might be
976
+ # displayed in user interfaces. It should be a Title Cased Noun Phrase, without
977
+ # any article or other determiners. For example, "Google Cloud SQL Database".
1015
978
  # Corresponds to the JSON property `displayName`
1016
979
  # @return [String]
1017
980
  attr_accessor :display_name
1018
981
 
1019
- # If true, the members of this group are considered to be a cluster. The system
1020
- # can perform additional analysis on groups that are clusters.
1021
- # Corresponds to the JSON property `isCluster`
1022
- # @return [Boolean]
1023
- attr_accessor :is_cluster
1024
- alias_method :is_cluster?, :is_cluster
982
+ # Required. A set of labels used to describe instances of this monitored
983
+ # resource type. For example, an individual Google Cloud SQL database is
984
+ # identified by values for the labels "database_id" and "zone".
985
+ # Corresponds to the JSON property `labels`
986
+ # @return [Array<Google::Apis::MonitoringV3::LabelDescriptor>]
987
+ attr_accessor :labels
1025
988
 
1026
- # The filter used to determine which monitored resources belong to this group.
1027
- # Corresponds to the JSON property `filter`
989
+ # Optional. The resource name of the monitored resource descriptor: "projects/`
990
+ # project_id`/monitoredResourceDescriptors/`type`" where `type` is the value of
991
+ # the type field in this object and `project_id` is a project ID that provides
992
+ # API-specific context for accessing the type. APIs that do not use project
993
+ # information can use the resource name format "monitoredResourceDescriptors/`
994
+ # type`".
995
+ # Corresponds to the JSON property `name`
1028
996
  # @return [String]
1029
- attr_accessor :filter
997
+ attr_accessor :name
998
+
999
+ # Required. The monitored resource type. For example, the type "
1000
+ # cloudsql_database" represents databases in Google Cloud SQL. The maximum
1001
+ # length of this value is 256 characters.
1002
+ # Corresponds to the JSON property `type`
1003
+ # @return [String]
1004
+ attr_accessor :type
1030
1005
 
1031
1006
  def initialize(**args)
1032
1007
  update!(**args)
@@ -1034,48 +1009,34 @@ module Google
1034
1009
 
1035
1010
  # Update properties of this object
1036
1011
  def update!(**args)
1037
- @parent_name = args[:parent_name] if args.key?(:parent_name)
1038
- @name = args[:name] if args.key?(:name)
1012
+ @description = args[:description] if args.key?(:description)
1039
1013
  @display_name = args[:display_name] if args.key?(:display_name)
1040
- @is_cluster = args[:is_cluster] if args.key?(:is_cluster)
1041
- @filter = args[:filter] if args.key?(:filter)
1014
+ @labels = args[:labels] if args.key?(:labels)
1015
+ @name = args[:name] if args.key?(:name)
1016
+ @type = args[:type] if args.key?(:type)
1042
1017
  end
1043
1018
  end
1044
1019
 
1045
- # A protocol buffer message type.
1046
- class Type
1020
+ # A protocol buffer option, which can be attached to a message, field,
1021
+ # enumeration, etc.
1022
+ class Option
1047
1023
  include Google::Apis::Core::Hashable
1048
1024
 
1049
- # The protocol buffer options.
1050
- # Corresponds to the JSON property `options`
1051
- # @return [Array<Google::Apis::MonitoringV3::Option>]
1052
- attr_accessor :options
1053
-
1054
- # The list of fields.
1055
- # Corresponds to the JSON property `fields`
1056
- # @return [Array<Google::Apis::MonitoringV3::Field>]
1057
- attr_accessor :fields
1058
-
1059
- # The fully qualified message name.
1025
+ # The option's name. For protobuf built-in options (options defined in
1026
+ # descriptor.proto), this is the short name. For example, "map_entry". For
1027
+ # custom options, it should be the fully-qualified name. For example, "google.
1028
+ # api.http".
1060
1029
  # Corresponds to the JSON property `name`
1061
1030
  # @return [String]
1062
1031
  attr_accessor :name
1063
1032
 
1064
- # The list of types appearing in oneof definitions in this type.
1065
- # Corresponds to the JSON property `oneofs`
1066
- # @return [Array<String>]
1067
- attr_accessor :oneofs
1068
-
1069
- # SourceContext represents information about the source of a protobuf element,
1070
- # like the file in which it is defined.
1071
- # Corresponds to the JSON property `sourceContext`
1072
- # @return [Google::Apis::MonitoringV3::SourceContext]
1073
- attr_accessor :source_context
1074
-
1075
- # The source syntax.
1076
- # Corresponds to the JSON property `syntax`
1077
- # @return [String]
1078
- attr_accessor :syntax
1033
+ # The option's value packed in an Any message. If the value is a primitive, the
1034
+ # corresponding wrapper type defined in google/protobuf/wrappers.proto should be
1035
+ # used. If the value is an enum, it should be stored as an int32 value using the
1036
+ # google.protobuf.Int32Value type.
1037
+ # Corresponds to the JSON property `value`
1038
+ # @return [Hash<String,Object>]
1039
+ attr_accessor :value
1079
1040
 
1080
1041
  def initialize(**args)
1081
1042
  update!(**args)
@@ -1083,60 +1044,26 @@ module Google
1083
1044
 
1084
1045
  # Update properties of this object
1085
1046
  def update!(**args)
1086
- @options = args[:options] if args.key?(:options)
1087
- @fields = args[:fields] if args.key?(:fields)
1088
1047
  @name = args[:name] if args.key?(:name)
1089
- @oneofs = args[:oneofs] if args.key?(:oneofs)
1090
- @source_context = args[:source_context] if args.key?(:source_context)
1091
- @syntax = args[:syntax] if args.key?(:syntax)
1048
+ @value = args[:value] if args.key?(:value)
1092
1049
  end
1093
1050
  end
1094
1051
 
1095
- # BucketOptions describes the bucket boundaries used to create a histogram for
1096
- # the distribution. The buckets can be in a linear sequence, an exponential
1097
- # sequence, or each bucket can be specified explicitly. BucketOptions does not
1098
- # include the number of values in each bucket.A bucket has an inclusive lower
1099
- # bound and exclusive upper bound for the values that are counted for that
1100
- # bucket. The upper bound of a bucket must be strictly greater than the lower
1101
- # bound. The sequence of N buckets for a distribution consists of an underflow
1102
- # bucket (number 0), zero or more finite buckets (number 1 through N - 2) and an
1103
- # overflow bucket (number N - 1). The buckets are contiguous: the lower bound of
1104
- # bucket i (i > 0) is the same as the upper bound of bucket i - 1. The buckets
1105
- # span the whole range of finite values: lower bound of the underflow bucket is -
1106
- # infinity and the upper bound of the overflow bucket is +infinity. The finite
1107
- # buckets are so-called because both bounds are finite.
1108
- class BucketOptions
1052
+ # A single data point in a time series.
1053
+ class Point
1109
1054
  include Google::Apis::Core::Hashable
1110
1055
 
1111
- # Specifies an exponential sequence of buckets that have a width that is
1112
- # proportional to the value of the lower bound. Each bucket represents a
1113
- # constant relative uncertainty on a specific value in the bucket.There are
1114
- # num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries:
1115
- # Upper bound (0 <= i < N-1): scale * (growth_factor ^ i). Lower bound (1 <= i <
1116
- # N): scale * (growth_factor ^ (i - 1)).
1117
- # Corresponds to the JSON property `exponentialBuckets`
1118
- # @return [Google::Apis::MonitoringV3::Exponential]
1119
- attr_accessor :exponential_buckets
1120
-
1121
- # Specifies a set of buckets with arbitrary widths.There are size(bounds) + 1 (=
1122
- # N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1):
1123
- # boundsi Lower bound (1 <= i < N); boundsi - 1The bounds field must contain at
1124
- # least one element. If bounds has only one element, then there are no finite
1125
- # buckets, and that single element is the common boundary of the overflow and
1126
- # underflow buckets.
1127
- # Corresponds to the JSON property `explicitBuckets`
1128
- # @return [Google::Apis::MonitoringV3::Explicit]
1129
- attr_accessor :explicit_buckets
1056
+ # A time interval extending just after a start time through an end time. If the
1057
+ # start time is the same as the end time, then the interval represents a single
1058
+ # point in time.
1059
+ # Corresponds to the JSON property `interval`
1060
+ # @return [Google::Apis::MonitoringV3::TimeInterval]
1061
+ attr_accessor :interval
1130
1062
 
1131
- # Specifies a linear sequence of buckets that all have the same width (except
1132
- # overflow and underflow). Each bucket represents a constant absolute
1133
- # uncertainty on the specific value in the bucket.There are num_finite_buckets +
1134
- # 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-
1135
- # 1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1))
1136
- # .
1137
- # Corresponds to the JSON property `linearBuckets`
1138
- # @return [Google::Apis::MonitoringV3::Linear]
1139
- attr_accessor :linear_buckets
1063
+ # A single strongly-typed value.
1064
+ # Corresponds to the JSON property `value`
1065
+ # @return [Google::Apis::MonitoringV3::TypedValue]
1066
+ attr_accessor :value
1140
1067
 
1141
1068
  def initialize(**args)
1142
1069
  update!(**args)
@@ -1144,31 +1071,24 @@ module Google
1144
1071
 
1145
1072
  # Update properties of this object
1146
1073
  def update!(**args)
1147
- @exponential_buckets = args[:exponential_buckets] if args.key?(:exponential_buckets)
1148
- @explicit_buckets = args[:explicit_buckets] if args.key?(:explicit_buckets)
1149
- @linear_buckets = args[:linear_buckets] if args.key?(:linear_buckets)
1074
+ @interval = args[:interval] if args.key?(:interval)
1075
+ @value = args[:value] if args.key?(:value)
1150
1076
  end
1151
1077
  end
1152
1078
 
1153
- # A single data point from a collectd-based plugin.
1154
- class CollectdValue
1079
+ # The range of the population values.
1080
+ class Range
1155
1081
  include Google::Apis::Core::Hashable
1156
1082
 
1157
- # The type of measurement.
1158
- # Corresponds to the JSON property `dataSourceType`
1159
- # @return [String]
1160
- attr_accessor :data_source_type
1161
-
1162
- # The data source for the collectd value. For example there are two data sources
1163
- # for network measurements: "rx" and "tx".
1164
- # Corresponds to the JSON property `dataSourceName`
1165
- # @return [String]
1166
- attr_accessor :data_source_name
1083
+ # The maximum of the population values.
1084
+ # Corresponds to the JSON property `max`
1085
+ # @return [Float]
1086
+ attr_accessor :max
1167
1087
 
1168
- # A single strongly-typed value.
1169
- # Corresponds to the JSON property `value`
1170
- # @return [Google::Apis::MonitoringV3::TypedValue]
1171
- attr_accessor :value
1088
+ # The minimum of the population values.
1089
+ # Corresponds to the JSON property `min`
1090
+ # @return [Float]
1091
+ attr_accessor :min
1172
1092
 
1173
1093
  def initialize(**args)
1174
1094
  update!(**args)
@@ -1176,9 +1096,8 @@ module Google
1176
1096
 
1177
1097
  # Update properties of this object
1178
1098
  def update!(**args)
1179
- @data_source_type = args[:data_source_type] if args.key?(:data_source_type)
1180
- @data_source_name = args[:data_source_name] if args.key?(:data_source_name)
1181
- @value = args[:value] if args.key?(:value)
1099
+ @max = args[:max] if args.key?(:max)
1100
+ @min = args[:min] if args.key?(:min)
1182
1101
  end
1183
1102
  end
1184
1103
 
@@ -1203,114 +1122,141 @@ module Google
1203
1122
  end
1204
1123
  end
1205
1124
 
1206
- # Defines a metric type and its schema. Once a metric descriptor is created,
1207
- # deleting or altering it stops data collection and makes the metric type's
1208
- # existing data unusable.
1209
- class MetricDescriptor
1125
+ # A time interval extending just after a start time through an end time. If the
1126
+ # start time is the same as the end time, then the interval represents a single
1127
+ # point in time.
1128
+ class TimeInterval
1210
1129
  include Google::Apis::Core::Hashable
1211
1130
 
1212
- # Whether the metric records instantaneous values, changes to a value, etc. Some
1213
- # combinations of metric_kind and value_type might not be supported.
1214
- # Corresponds to the JSON property `metricKind`
1131
+ # Required. The end of the time interval.
1132
+ # Corresponds to the JSON property `endTime`
1215
1133
  # @return [String]
1216
- attr_accessor :metric_kind
1134
+ attr_accessor :end_time
1217
1135
 
1218
- # A concise name for the metric, which can be displayed in user interfaces. Use
1219
- # sentence case without an ending period, for example "Request count".
1220
- # Corresponds to the JSON property `displayName`
1136
+ # Optional. The beginning of the time interval. The default value for the start
1137
+ # time is the end time. The start time must not be later than the end time.
1138
+ # Corresponds to the JSON property `startTime`
1221
1139
  # @return [String]
1222
- attr_accessor :display_name
1140
+ attr_accessor :start_time
1223
1141
 
1224
- # A detailed description of the metric, which can be used in documentation.
1225
- # Corresponds to the JSON property `description`
1142
+ def initialize(**args)
1143
+ update!(**args)
1144
+ end
1145
+
1146
+ # Update properties of this object
1147
+ def update!(**args)
1148
+ @end_time = args[:end_time] if args.key?(:end_time)
1149
+ @start_time = args[:start_time] if args.key?(:start_time)
1150
+ end
1151
+ end
1152
+
1153
+ # A collection of data points that describes the time-varying values of a metric.
1154
+ # A time series is identified by a combination of a fully-specified monitored
1155
+ # resource and a fully-specified metric. This type is used for both listing and
1156
+ # creating time series.
1157
+ class TimeSeries
1158
+ include Google::Apis::Core::Hashable
1159
+
1160
+ # A specific metric, identified by specifying values for all of the labels of a
1161
+ # MetricDescriptor.
1162
+ # Corresponds to the JSON property `metric`
1163
+ # @return [Google::Apis::MonitoringV3::Metric]
1164
+ attr_accessor :metric
1165
+
1166
+ # The metric kind of the time series. When listing time series, this metric kind
1167
+ # might be different from the metric kind of the associated metric if this time
1168
+ # series is an alignment or reduction of other time series.When creating a time
1169
+ # series, this field is optional. If present, it must be the same as the metric
1170
+ # kind of the associated metric. If the associated metric's descriptor must be
1171
+ # auto-created, then this field specifies the metric kind of the new descriptor
1172
+ # and must be either GAUGE (the default) or CUMULATIVE.
1173
+ # Corresponds to the JSON property `metricKind`
1226
1174
  # @return [String]
1227
- attr_accessor :description
1175
+ attr_accessor :metric_kind
1228
1176
 
1229
- # The unit in which the metric value is reported. It is only applicable if the
1230
- # value_type is INT64, DOUBLE, or DISTRIBUTION. The supported units are a subset
1231
- # of The Unified Code for Units of Measure (http://unitsofmeasure.org/ucum.html)
1232
- # standard:Basic units (UNIT)
1233
- # bit bit
1234
- # By byte
1235
- # s second
1236
- # min minute
1237
- # h hour
1238
- # d dayPrefixes (PREFIX)
1239
- # k kilo (10**3)
1240
- # M mega (10**6)
1241
- # G giga (10**9)
1242
- # T tera (10**12)
1243
- # P peta (10**15)
1244
- # E exa (10**18)
1245
- # Z zetta (10**21)
1246
- # Y yotta (10**24)
1247
- # m milli (10**-3)
1248
- # u micro (10**-6)
1249
- # n nano (10**-9)
1250
- # p pico (10**-12)
1251
- # f femto (10**-15)
1252
- # a atto (10**-18)
1253
- # z zepto (10**-21)
1254
- # y yocto (10**-24)
1255
- # Ki kibi (2**10)
1256
- # Mi mebi (2**20)
1257
- # Gi gibi (2**30)
1258
- # Ti tebi (2**40)GrammarThe grammar includes the dimensionless unit 1, such as 1/
1259
- # s.The grammar also includes these connectors:
1260
- # / division (as an infix operator, e.g. 1/s).
1261
- # . multiplication (as an infix operator, e.g. GBy.d)The grammar for a unit is
1262
- # as follows:
1263
- # Expression = Component ` "." Component ` ` "/" Component ` ;
1264
- # Component = [ PREFIX ] UNIT [ Annotation ]
1265
- # | Annotation
1266
- # | "1"
1267
- # ;
1268
- # Annotation = "`" NAME "`" ;
1269
- # Notes:
1270
- # Annotation is just a comment if it follows a UNIT and is equivalent to 1 if
1271
- # it is used alone. For examples, `requests`/s == 1/s, By`transmitted`/s == By/
1272
- # s.
1273
- # NAME is a sequence of non-blank printable ASCII characters not containing '`'
1274
- # or '`'.
1275
- # Corresponds to the JSON property `unit`
1177
+ # The data points of this time series. When listing time series, the order of
1178
+ # the points is specified by the list method.When creating a time series, this
1179
+ # field must contain exactly one point and the point's type must be the same as
1180
+ # the value type of the associated metric. If the associated metric's descriptor
1181
+ # must be auto-created, then the value type of the descriptor is determined by
1182
+ # the point's type, which must be BOOL, INT64, DOUBLE, or DISTRIBUTION.
1183
+ # Corresponds to the JSON property `points`
1184
+ # @return [Array<Google::Apis::MonitoringV3::Point>]
1185
+ attr_accessor :points
1186
+
1187
+ # An object representing a resource that can be used for monitoring, logging,
1188
+ # billing, or other purposes. Examples include virtual machine instances,
1189
+ # databases, and storage devices such as disks. The type field identifies a
1190
+ # MonitoredResourceDescriptor object that describes the resource's schema.
1191
+ # Information in the labels field identifies the actual resource and its
1192
+ # attributes according to the schema. For example, a particular Compute Engine
1193
+ # VM instance could be represented by the following object, because the
1194
+ # MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
1195
+ # zone":
1196
+ # ` "type": "gce_instance",
1197
+ # "labels": ` "instance_id": "12345678901234",
1198
+ # "zone": "us-central1-a" ``
1199
+ # Corresponds to the JSON property `resource`
1200
+ # @return [Google::Apis::MonitoringV3::MonitoredResource]
1201
+ attr_accessor :resource
1202
+
1203
+ # The value type of the time series. When listing time series, this value type
1204
+ # might be different from the value type of the associated metric if this time
1205
+ # series is an alignment or reduction of other time series.When creating a time
1206
+ # series, this field is optional. If present, it must be the same as the type of
1207
+ # the data in the points field.
1208
+ # Corresponds to the JSON property `valueType`
1276
1209
  # @return [String]
1277
- attr_accessor :unit
1210
+ attr_accessor :value_type
1278
1211
 
1279
- # The set of labels that can be used to describe a specific instance of this
1280
- # metric type. For example, the appengine.googleapis.com/http/server/
1281
- # response_latencies metric type has a label for the HTTP response code,
1282
- # response_code, so you can look at latencies for successful responses or just
1283
- # for responses that failed.
1284
- # Corresponds to the JSON property `labels`
1285
- # @return [Array<Google::Apis::MonitoringV3::LabelDescriptor>]
1286
- attr_accessor :labels
1212
+ def initialize(**args)
1213
+ update!(**args)
1214
+ end
1287
1215
 
1288
- # The resource name of the metric descriptor. Depending on the implementation,
1289
- # the name typically includes: (1) the parent resource name that defines the
1290
- # scope of the metric type or of its data; and (2) the metric's URL-encoded type,
1291
- # which also appears in the type field of this descriptor. For example,
1292
- # following is the resource name of a custom metric within the GCP project my-
1293
- # project-id:
1294
- # "projects/my-project-id/metricDescriptors/custom.googleapis.com%2Finvoice%
1295
- # 2Fpaid%2Famount"
1216
+ # Update properties of this object
1217
+ def update!(**args)
1218
+ @metric = args[:metric] if args.key?(:metric)
1219
+ @metric_kind = args[:metric_kind] if args.key?(:metric_kind)
1220
+ @points = args[:points] if args.key?(:points)
1221
+ @resource = args[:resource] if args.key?(:resource)
1222
+ @value_type = args[:value_type] if args.key?(:value_type)
1223
+ end
1224
+ end
1225
+
1226
+ # A protocol buffer message type.
1227
+ class Type
1228
+ include Google::Apis::Core::Hashable
1229
+
1230
+ # The list of fields.
1231
+ # Corresponds to the JSON property `fields`
1232
+ # @return [Array<Google::Apis::MonitoringV3::Field>]
1233
+ attr_accessor :fields
1234
+
1235
+ # The fully qualified message name.
1296
1236
  # Corresponds to the JSON property `name`
1297
1237
  # @return [String]
1298
1238
  attr_accessor :name
1299
1239
 
1300
- # The metric type, including its DNS name prefix. The type is not URL-encoded.
1301
- # All user-defined custom metric types have the DNS name custom.googleapis.com.
1302
- # Metric types should use a natural hierarchical grouping. For example:
1303
- # "custom.googleapis.com/invoice/paid/amount"
1304
- # "appengine.googleapis.com/http/server/response_latencies"
1305
- # Corresponds to the JSON property `type`
1306
- # @return [String]
1307
- attr_accessor :type
1240
+ # The list of types appearing in oneof definitions in this type.
1241
+ # Corresponds to the JSON property `oneofs`
1242
+ # @return [Array<String>]
1243
+ attr_accessor :oneofs
1308
1244
 
1309
- # Whether the measurement is an integer, a floating-point number, etc. Some
1310
- # combinations of metric_kind and value_type might not be supported.
1311
- # Corresponds to the JSON property `valueType`
1245
+ # The protocol buffer options.
1246
+ # Corresponds to the JSON property `options`
1247
+ # @return [Array<Google::Apis::MonitoringV3::Option>]
1248
+ attr_accessor :options
1249
+
1250
+ # SourceContext represents information about the source of a protobuf element,
1251
+ # like the file in which it is defined.
1252
+ # Corresponds to the JSON property `sourceContext`
1253
+ # @return [Google::Apis::MonitoringV3::SourceContext]
1254
+ attr_accessor :source_context
1255
+
1256
+ # The source syntax.
1257
+ # Corresponds to the JSON property `syntax`
1312
1258
  # @return [String]
1313
- attr_accessor :value_type
1259
+ attr_accessor :syntax
1314
1260
 
1315
1261
  def initialize(**args)
1316
1262
  update!(**args)
@@ -1318,14 +1264,68 @@ module Google
1318
1264
 
1319
1265
  # Update properties of this object
1320
1266
  def update!(**args)
1321
- @metric_kind = args[:metric_kind] if args.key?(:metric_kind)
1322
- @display_name = args[:display_name] if args.key?(:display_name)
1323
- @description = args[:description] if args.key?(:description)
1324
- @unit = args[:unit] if args.key?(:unit)
1325
- @labels = args[:labels] if args.key?(:labels)
1267
+ @fields = args[:fields] if args.key?(:fields)
1326
1268
  @name = args[:name] if args.key?(:name)
1327
- @type = args[:type] if args.key?(:type)
1328
- @value_type = args[:value_type] if args.key?(:value_type)
1269
+ @oneofs = args[:oneofs] if args.key?(:oneofs)
1270
+ @options = args[:options] if args.key?(:options)
1271
+ @source_context = args[:source_context] if args.key?(:source_context)
1272
+ @syntax = args[:syntax] if args.key?(:syntax)
1273
+ end
1274
+ end
1275
+
1276
+ # A single strongly-typed value.
1277
+ class TypedValue
1278
+ include Google::Apis::Core::Hashable
1279
+
1280
+ # A Boolean value: true or false.
1281
+ # Corresponds to the JSON property `boolValue`
1282
+ # @return [Boolean]
1283
+ attr_accessor :bool_value
1284
+ alias_method :bool_value?, :bool_value
1285
+
1286
+ # Distribution contains summary statistics for a population of values. It
1287
+ # optionally contains a histogram representing the distribution of those values
1288
+ # across a set of buckets.The summary statistics are the count, mean, sum of the
1289
+ # squared deviation from the mean, the minimum, and the maximum of the set of
1290
+ # population of values. The histogram is based on a sequence of buckets and
1291
+ # gives a count of values that fall into each bucket. The boundaries of the
1292
+ # buckets are given either explicitly or by formulas for buckets of fixed or
1293
+ # exponentially increasing widths.Although it is not forbidden, it is generally
1294
+ # a bad idea to include non-finite values (infinities or NaNs) in the population
1295
+ # of values, as this will render the mean and sum_of_squared_deviation fields
1296
+ # meaningless.
1297
+ # Corresponds to the JSON property `distributionValue`
1298
+ # @return [Google::Apis::MonitoringV3::Distribution]
1299
+ attr_accessor :distribution_value
1300
+
1301
+ # A 64-bit double-precision floating-point number. Its magnitude is
1302
+ # approximately &plusmn;10<sup>&plusmn;300</sup> and it has 16 significant
1303
+ # digits of precision.
1304
+ # Corresponds to the JSON property `doubleValue`
1305
+ # @return [Float]
1306
+ attr_accessor :double_value
1307
+
1308
+ # A 64-bit integer. Its range is approximately &plusmn;9.2x10<sup>18</sup>.
1309
+ # Corresponds to the JSON property `int64Value`
1310
+ # @return [Fixnum]
1311
+ attr_accessor :int64_value
1312
+
1313
+ # A variable-length string value.
1314
+ # Corresponds to the JSON property `stringValue`
1315
+ # @return [String]
1316
+ attr_accessor :string_value
1317
+
1318
+ def initialize(**args)
1319
+ update!(**args)
1320
+ end
1321
+
1322
+ # Update properties of this object
1323
+ def update!(**args)
1324
+ @bool_value = args[:bool_value] if args.key?(:bool_value)
1325
+ @distribution_value = args[:distribution_value] if args.key?(:distribution_value)
1326
+ @double_value = args[:double_value] if args.key?(:double_value)
1327
+ @int64_value = args[:int64_value] if args.key?(:int64_value)
1328
+ @string_value = args[:string_value] if args.key?(:string_value)
1329
1329
  end
1330
1330
  end
1331
1331
  end