google-api-client 0.42.2 → 0.43.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (358) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +129 -0
  3. data/generated/google/apis/abusiveexperiencereport_v1.rb +1 -1
  4. data/generated/google/apis/abusiveexperiencereport_v1/classes.rb +8 -13
  5. data/generated/google/apis/abusiveexperiencereport_v1/service.rb +2 -3
  6. data/generated/google/apis/accessapproval_v1.rb +1 -1
  7. data/generated/google/apis/accessapproval_v1/classes.rb +9 -0
  8. data/generated/google/apis/accessapproval_v1/representations.rb +1 -0
  9. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +523 -653
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +467 -631
  12. data/generated/google/apis/adexperiencereport_v1.rb +1 -1
  13. data/generated/google/apis/adexperiencereport_v1/classes.rb +11 -18
  14. data/generated/google/apis/adexperiencereport_v1/service.rb +2 -3
  15. data/generated/google/apis/admob_v1.rb +1 -1
  16. data/generated/google/apis/admob_v1/classes.rb +139 -270
  17. data/generated/google/apis/admob_v1/service.rb +11 -13
  18. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  19. data/generated/google/apis/alertcenter_v1beta1/classes.rb +107 -138
  20. data/generated/google/apis/alertcenter_v1beta1/service.rb +50 -55
  21. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  22. data/generated/google/apis/analyticsreporting_v4/classes.rb +315 -399
  23. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  24. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +193 -220
  25. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +55 -61
  26. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  27. data/generated/google/apis/androidenterprise_v1/classes.rb +452 -557
  28. data/generated/google/apis/androidenterprise_v1/service.rb +181 -240
  29. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  30. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  31. data/generated/google/apis/androidpublisher_v3/classes.rb +281 -342
  32. data/generated/google/apis/androidpublisher_v3/service.rb +125 -153
  33. data/generated/google/apis/apigee_v1.rb +6 -7
  34. data/generated/google/apis/apigee_v1/classes.rb +733 -1180
  35. data/generated/google/apis/apigee_v1/service.rb +879 -1133
  36. data/generated/google/apis/appsmarket_v2.rb +1 -1
  37. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  38. data/generated/google/apis/bigtableadmin_v2/service.rb +1 -1
  39. data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
  40. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +97 -118
  41. data/generated/google/apis/billingbudgets_v1beta1/service.rb +30 -33
  42. data/generated/google/apis/blogger_v2.rb +2 -3
  43. data/generated/google/apis/blogger_v2/classes.rb +1 -2
  44. data/generated/google/apis/blogger_v2/service.rb +1 -2
  45. data/generated/google/apis/blogger_v3.rb +2 -3
  46. data/generated/google/apis/blogger_v3/classes.rb +1 -2
  47. data/generated/google/apis/blogger_v3/service.rb +1 -2
  48. data/generated/google/apis/chromeuxreport_v1.rb +1 -1
  49. data/generated/google/apis/chromeuxreport_v1/classes.rb +55 -66
  50. data/generated/google/apis/classroom_v1.rb +1 -1
  51. data/generated/google/apis/classroom_v1/classes.rb +250 -365
  52. data/generated/google/apis/classroom_v1/service.rb +643 -902
  53. data/generated/google/apis/cloudasset_v1.rb +1 -1
  54. data/generated/google/apis/cloudasset_v1/classes.rb +15 -11
  55. data/generated/google/apis/cloudasset_v1/service.rb +62 -45
  56. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  57. data/generated/google/apis/cloudasset_v1beta1/classes.rb +3 -1
  58. data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
  59. data/generated/google/apis/cloudasset_v1p5beta1.rb +1 -1
  60. data/generated/google/apis/cloudasset_v1p5beta1/classes.rb +3 -1
  61. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  62. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +7 -0
  63. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +1 -0
  64. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  65. data/generated/google/apis/cloudsearch_v1/classes.rb +1 -2
  66. data/generated/google/apis/compute_alpha.rb +1 -1
  67. data/generated/google/apis/compute_alpha/classes.rb +350 -20
  68. data/generated/google/apis/compute_alpha/representations.rb +100 -0
  69. data/generated/google/apis/compute_alpha/service.rb +15 -7
  70. data/generated/google/apis/compute_beta.rb +1 -1
  71. data/generated/google/apis/compute_beta/classes.rb +39 -14
  72. data/generated/google/apis/compute_beta/representations.rb +2 -0
  73. data/generated/google/apis/compute_beta/service.rb +15 -7
  74. data/generated/google/apis/compute_v1.rb +1 -1
  75. data/generated/google/apis/compute_v1/classes.rb +65 -42
  76. data/generated/google/apis/compute_v1/representations.rb +18 -15
  77. data/generated/google/apis/compute_v1/service.rb +63 -19
  78. data/generated/google/apis/container_v1.rb +1 -1
  79. data/generated/google/apis/container_v1/classes.rb +26 -0
  80. data/generated/google/apis/container_v1/representations.rb +15 -0
  81. data/generated/google/apis/content_v2.rb +1 -1
  82. data/generated/google/apis/content_v2/classes.rb +9 -0
  83. data/generated/google/apis/content_v2_1.rb +1 -1
  84. data/generated/google/apis/content_v2_1/classes.rb +9 -0
  85. data/generated/google/apis/customsearch_v1.rb +1 -1
  86. data/generated/google/apis/customsearch_v1/classes.rb +303 -492
  87. data/generated/google/apis/customsearch_v1/service.rb +184 -341
  88. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  89. data/generated/google/apis/datacatalog_v1beta1/classes.rb +572 -380
  90. data/generated/google/apis/datacatalog_v1beta1/service.rb +440 -319
  91. data/generated/google/apis/datafusion_v1.rb +43 -0
  92. data/generated/google/apis/datafusion_v1/classes.rb +1154 -0
  93. data/generated/google/apis/datafusion_v1/representations.rb +390 -0
  94. data/generated/google/apis/datafusion_v1/service.rb +680 -0
  95. data/generated/google/apis/dataproc_v1.rb +1 -1
  96. data/generated/google/apis/dataproc_v1/classes.rb +192 -316
  97. data/generated/google/apis/dataproc_v1/service.rb +134 -168
  98. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  99. data/generated/google/apis/dataproc_v1beta2/classes.rb +198 -317
  100. data/generated/google/apis/dataproc_v1beta2/service.rb +137 -192
  101. data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
  102. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  103. data/generated/google/apis/dialogflow_v2.rb +1 -1
  104. data/generated/google/apis/dialogflow_v2/classes.rb +1238 -1589
  105. data/generated/google/apis/dialogflow_v2/service.rb +324 -448
  106. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  107. data/generated/google/apis/dialogflow_v2beta1/classes.rb +1313 -1681
  108. data/generated/google/apis/dialogflow_v2beta1/service.rb +742 -998
  109. data/generated/google/apis/displayvideo_v1.rb +1 -1
  110. data/generated/google/apis/displayvideo_v1/classes.rb +104 -0
  111. data/generated/google/apis/displayvideo_v1/representations.rb +36 -0
  112. data/generated/google/apis/displayvideo_v1/service.rb +104 -0
  113. data/generated/google/apis/dlp_v2.rb +1 -1
  114. data/generated/google/apis/dlp_v2/classes.rb +5 -4
  115. data/generated/google/apis/dns_v1.rb +1 -1
  116. data/generated/google/apis/dns_v1/classes.rb +7 -7
  117. data/generated/google/apis/dns_v1beta2.rb +1 -1
  118. data/generated/google/apis/dns_v1beta2/classes.rb +7 -7
  119. data/generated/google/apis/dns_v2beta1.rb +1 -1
  120. data/generated/google/apis/dns_v2beta1/classes.rb +7 -7
  121. data/generated/google/apis/domainsrdap_v1.rb +1 -1
  122. data/generated/google/apis/domainsrdap_v1/classes.rb +42 -69
  123. data/generated/google/apis/domainsrdap_v1/service.rb +16 -16
  124. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  125. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -1
  126. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +4 -2
  127. data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
  128. data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +196 -1
  129. data/generated/google/apis/doubleclickbidmanager_v1_1/representations.rb +107 -0
  130. data/generated/google/apis/doubleclickbidmanager_v1_1/service.rb +4 -2
  131. data/generated/google/apis/drive_v2.rb +1 -1
  132. data/generated/google/apis/drive_v2/classes.rb +3 -1
  133. data/generated/google/apis/drive_v3.rb +1 -1
  134. data/generated/google/apis/drive_v3/classes.rb +9 -1
  135. data/generated/google/apis/drive_v3/representations.rb +1 -0
  136. data/generated/google/apis/driveactivity_v2.rb +1 -1
  137. data/generated/google/apis/driveactivity_v2/classes.rb +55 -68
  138. data/generated/google/apis/factchecktools_v1alpha1.rb +1 -1
  139. data/generated/google/apis/factchecktools_v1alpha1/classes.rb +46 -56
  140. data/generated/google/apis/factchecktools_v1alpha1/service.rb +30 -33
  141. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  142. data/generated/google/apis/firebase_v1beta1/classes.rb +313 -345
  143. data/generated/google/apis/firebase_v1beta1/representations.rb +1 -0
  144. data/generated/google/apis/firebase_v1beta1/service.rb +356 -420
  145. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  146. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +89 -112
  147. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +18 -21
  148. data/generated/google/apis/firebasehosting_v1.rb +1 -1
  149. data/generated/google/apis/firebasehosting_v1/classes.rb +36 -40
  150. data/generated/google/apis/firebasehosting_v1/service.rb +19 -22
  151. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  152. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +148 -177
  153. data/generated/google/apis/firebasehosting_v1beta1/service.rb +112 -145
  154. data/generated/google/apis/firebaseml_v1.rb +1 -1
  155. data/generated/google/apis/firebaseml_v1/classes.rb +39 -44
  156. data/generated/google/apis/firebaseml_v1/service.rb +19 -22
  157. data/generated/google/apis/firebaseml_v1beta2.rb +1 -1
  158. data/generated/google/apis/firebaseml_v1beta2/classes.rb +60 -70
  159. data/generated/google/apis/firebaseml_v1beta2/service.rb +16 -18
  160. data/generated/google/apis/gameservices_v1.rb +1 -1
  161. data/generated/google/apis/gameservices_v1/classes.rb +344 -523
  162. data/generated/google/apis/gameservices_v1/service.rb +167 -207
  163. data/generated/google/apis/gameservices_v1beta.rb +1 -1
  164. data/generated/google/apis/gameservices_v1beta/classes.rb +344 -523
  165. data/generated/google/apis/gameservices_v1beta/service.rb +167 -207
  166. data/generated/google/apis/genomics_v1.rb +1 -1
  167. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  168. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  169. data/generated/google/apis/genomics_v2alpha1/classes.rb +3 -75
  170. data/generated/google/apis/genomics_v2alpha1/representations.rb +0 -27
  171. data/generated/google/apis/genomics_v2alpha1/service.rb +0 -34
  172. data/generated/google/apis/gmail_v1.rb +3 -3
  173. data/generated/google/apis/gmail_v1/classes.rb +216 -269
  174. data/generated/google/apis/gmail_v1/service.rb +257 -286
  175. data/generated/google/apis/gmailpostmastertools_v1beta1.rb +1 -1
  176. data/generated/google/apis/gmailpostmastertools_v1beta1/classes.rb +37 -42
  177. data/generated/google/apis/gmailpostmastertools_v1beta1/service.rb +34 -40
  178. data/generated/google/apis/healthcare_v1.rb +1 -1
  179. data/generated/google/apis/healthcare_v1/service.rb +26 -14
  180. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  181. data/generated/google/apis/healthcare_v1beta1/classes.rb +85 -17
  182. data/generated/google/apis/healthcare_v1beta1/representations.rb +39 -0
  183. data/generated/google/apis/healthcare_v1beta1/service.rb +87 -16
  184. data/generated/google/apis/language_v1.rb +1 -1
  185. data/generated/google/apis/language_v1/classes.rb +93 -111
  186. data/generated/google/apis/language_v1/service.rb +4 -4
  187. data/generated/google/apis/language_v1beta1.rb +1 -1
  188. data/generated/google/apis/language_v1beta1/classes.rb +78 -90
  189. data/generated/google/apis/language_v1beta1/service.rb +2 -2
  190. data/generated/google/apis/language_v1beta2.rb +1 -1
  191. data/generated/google/apis/language_v1beta2/classes.rb +95 -112
  192. data/generated/google/apis/language_v1beta2/service.rb +4 -4
  193. data/generated/google/apis/libraryagent_v1.rb +1 -1
  194. data/generated/google/apis/libraryagent_v1/classes.rb +10 -16
  195. data/generated/google/apis/libraryagent_v1/service.rb +13 -16
  196. data/generated/google/apis/logging_v2.rb +1 -1
  197. data/generated/google/apis/logging_v2/classes.rb +6 -6
  198. data/generated/google/apis/managedidentities_v1.rb +1 -1
  199. data/generated/google/apis/managedidentities_v1/classes.rb +326 -452
  200. data/generated/google/apis/managedidentities_v1/service.rb +78 -99
  201. data/generated/google/apis/managedidentities_v1alpha1.rb +1 -1
  202. data/generated/google/apis/managedidentities_v1alpha1/classes.rb +336 -457
  203. data/generated/google/apis/managedidentities_v1alpha1/service.rb +88 -112
  204. data/generated/google/apis/managedidentities_v1beta1.rb +1 -1
  205. data/generated/google/apis/managedidentities_v1beta1/classes.rb +332 -456
  206. data/generated/google/apis/managedidentities_v1beta1/service.rb +76 -96
  207. data/generated/google/apis/memcache_v1.rb +35 -0
  208. data/generated/google/apis/memcache_v1/classes.rb +1157 -0
  209. data/generated/google/apis/memcache_v1/representations.rb +471 -0
  210. data/generated/google/apis/memcache_v1/service.rb +558 -0
  211. data/generated/google/apis/memcache_v1beta2.rb +1 -1
  212. data/generated/google/apis/memcache_v1beta2/classes.rb +41 -502
  213. data/generated/google/apis/memcache_v1beta2/representations.rb +9 -110
  214. data/generated/google/apis/memcache_v1beta2/service.rb +0 -119
  215. data/generated/google/apis/monitoring_v1.rb +1 -1
  216. data/generated/google/apis/monitoring_v1/classes.rb +12 -11
  217. data/generated/google/apis/monitoring_v3.rb +1 -1
  218. data/generated/google/apis/monitoring_v3/classes.rb +31 -14
  219. data/generated/google/apis/monitoring_v3/representations.rb +2 -0
  220. data/generated/google/apis/osconfig_v1.rb +1 -1
  221. data/generated/google/apis/osconfig_v1/classes.rb +721 -0
  222. data/generated/google/apis/osconfig_v1/representations.rb +337 -0
  223. data/generated/google/apis/people_v1.rb +1 -1
  224. data/generated/google/apis/people_v1/classes.rb +148 -13
  225. data/generated/google/apis/people_v1/representations.rb +57 -0
  226. data/generated/google/apis/people_v1/service.rb +60 -48
  227. data/generated/google/apis/playcustomapp_v1.rb +1 -1
  228. data/generated/google/apis/playcustomapp_v1/classes.rb +2 -2
  229. data/generated/google/apis/policytroubleshooter_v1.rb +1 -1
  230. data/generated/google/apis/policytroubleshooter_v1/classes.rb +232 -394
  231. data/generated/google/apis/policytroubleshooter_v1/service.rb +2 -2
  232. data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
  233. data/generated/google/apis/policytroubleshooter_v1beta/classes.rb +232 -393
  234. data/generated/google/apis/policytroubleshooter_v1beta/service.rb +2 -2
  235. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  236. data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +122 -146
  237. data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +38 -49
  238. data/generated/google/apis/realtimebidding_v1.rb +1 -4
  239. data/generated/google/apis/realtimebidding_v1/classes.rb +198 -291
  240. data/generated/google/apis/realtimebidding_v1/service.rb +98 -135
  241. data/generated/google/apis/recommendationengine_v1beta1.rb +2 -2
  242. data/generated/google/apis/recommendationengine_v1beta1/classes.rb +10 -8
  243. data/generated/google/apis/recommendationengine_v1beta1/service.rb +1 -1
  244. data/generated/google/apis/recommender_v1.rb +1 -1
  245. data/generated/google/apis/recommender_v1/classes.rb +76 -100
  246. data/generated/google/apis/recommender_v1/service.rb +43 -58
  247. data/generated/google/apis/recommender_v1beta1.rb +1 -1
  248. data/generated/google/apis/recommender_v1beta1/classes.rb +75 -99
  249. data/generated/google/apis/recommender_v1beta1/service.rb +43 -58
  250. data/generated/google/apis/run_v1.rb +1 -1
  251. data/generated/google/apis/run_v1/classes.rb +2 -2
  252. data/generated/google/apis/run_v1/service.rb +38 -2
  253. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  254. data/generated/google/apis/runtimeconfig_v1/classes.rb +36 -40
  255. data/generated/google/apis/runtimeconfig_v1/service.rb +19 -22
  256. data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
  257. data/generated/google/apis/sasportal_v1alpha1/classes.rb +122 -146
  258. data/generated/google/apis/sasportal_v1alpha1/service.rb +38 -49
  259. data/generated/google/apis/searchconsole_v1.rb +1 -1
  260. data/generated/google/apis/searchconsole_v1/classes.rb +2 -2
  261. data/generated/google/apis/securitycenter_v1.rb +1 -1
  262. data/generated/google/apis/securitycenter_v1/classes.rb +574 -826
  263. data/generated/google/apis/securitycenter_v1/service.rb +250 -332
  264. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  265. data/generated/google/apis/securitycenter_v1beta1/classes.rb +521 -746
  266. data/generated/google/apis/securitycenter_v1beta1/service.rb +160 -202
  267. data/generated/google/apis/securitycenter_v1p1alpha1.rb +1 -1
  268. data/generated/google/apis/securitycenter_v1p1alpha1/classes.rb +176 -208
  269. data/generated/google/apis/securitycenter_v1p1alpha1/service.rb +21 -25
  270. data/generated/google/apis/securitycenter_v1p1beta1.rb +1 -1
  271. data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +545 -791
  272. data/generated/google/apis/securitycenter_v1p1beta1/service.rb +247 -330
  273. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  274. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +1149 -1783
  275. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +111 -138
  276. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
  277. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +1137 -1774
  278. data/generated/google/apis/serviceconsumermanagement_v1beta1/service.rb +52 -66
  279. data/generated/google/apis/servicecontrol_v2.rb +38 -0
  280. data/generated/google/apis/servicecontrol_v2/classes.rb +1121 -0
  281. data/generated/google/apis/servicecontrol_v2/representations.rb +405 -0
  282. data/generated/google/apis/servicecontrol_v2/service.rb +165 -0
  283. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  284. data/generated/google/apis/servicemanagement_v1/classes.rb +49 -1
  285. data/generated/google/apis/servicemanagement_v1/representations.rb +14 -0
  286. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  287. data/generated/google/apis/servicenetworking_v1/classes.rb +1119 -1758
  288. data/generated/google/apis/servicenetworking_v1/service.rb +94 -114
  289. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  290. data/generated/google/apis/servicenetworking_v1beta/classes.rb +1065 -1684
  291. data/generated/google/apis/servicenetworking_v1beta/service.rb +52 -63
  292. data/generated/google/apis/serviceusage_v1.rb +1 -1
  293. data/generated/google/apis/serviceusage_v1/classes.rb +1140 -1823
  294. data/generated/google/apis/serviceusage_v1/service.rb +63 -80
  295. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  296. data/generated/google/apis/serviceusage_v1beta1/classes.rb +1235 -1986
  297. data/generated/google/apis/serviceusage_v1beta1/service.rb +130 -162
  298. data/generated/google/apis/spanner_v1.rb +1 -1
  299. data/generated/google/apis/spanner_v1/classes.rb +3 -2
  300. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  301. data/generated/google/apis/storagetransfer_v1/classes.rb +8 -10
  302. data/generated/google/apis/storagetransfer_v1/service.rb +26 -2
  303. data/generated/google/apis/tagmanager_v1.rb +2 -3
  304. data/generated/google/apis/tagmanager_v1/classes.rb +225 -288
  305. data/generated/google/apis/tagmanager_v1/service.rb +20 -21
  306. data/generated/google/apis/tagmanager_v2.rb +2 -3
  307. data/generated/google/apis/tagmanager_v2/classes.rb +240 -280
  308. data/generated/google/apis/tagmanager_v2/representations.rb +1 -0
  309. data/generated/google/apis/tagmanager_v2/service.rb +187 -283
  310. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  311. data/generated/google/apis/toolresults_v1beta3/classes.rb +665 -931
  312. data/generated/google/apis/toolresults_v1beta3/service.rb +231 -349
  313. data/generated/google/apis/tpu_v1.rb +1 -1
  314. data/generated/google/apis/tpu_v1/classes.rb +68 -78
  315. data/generated/google/apis/tpu_v1/service.rb +21 -25
  316. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  317. data/generated/google/apis/tpu_v1alpha1/classes.rb +68 -78
  318. data/generated/google/apis/tpu_v1alpha1/service.rb +21 -25
  319. data/generated/google/apis/translate_v3.rb +1 -1
  320. data/generated/google/apis/translate_v3/service.rb +14 -1
  321. data/generated/google/apis/translate_v3beta1.rb +1 -1
  322. data/generated/google/apis/translate_v3beta1/service.rb +14 -1
  323. data/generated/google/apis/vision_v1.rb +1 -1
  324. data/generated/google/apis/vision_v1/classes.rb +1304 -1870
  325. data/generated/google/apis/vision_v1/service.rb +254 -340
  326. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  327. data/generated/google/apis/vision_v1p1beta1/classes.rb +1246 -1790
  328. data/generated/google/apis/vision_v1p1beta1/service.rb +91 -121
  329. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  330. data/generated/google/apis/vision_v1p2beta1/classes.rb +1246 -1790
  331. data/generated/google/apis/vision_v1p2beta1/service.rb +91 -121
  332. data/generated/google/apis/websecurityscanner_v1.rb +1 -1
  333. data/generated/google/apis/websecurityscanner_v1/classes.rb +71 -95
  334. data/generated/google/apis/websecurityscanner_v1/service.rb +46 -65
  335. data/generated/google/apis/websecurityscanner_v1alpha.rb +1 -1
  336. data/generated/google/apis/websecurityscanner_v1alpha/classes.rb +55 -63
  337. data/generated/google/apis/websecurityscanner_v1alpha/service.rb +46 -65
  338. data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
  339. data/generated/google/apis/websecurityscanner_v1beta/classes.rb +77 -92
  340. data/generated/google/apis/websecurityscanner_v1beta/service.rb +46 -65
  341. data/generated/google/apis/youtube_analytics_v2.rb +1 -1
  342. data/generated/google/apis/youtube_analytics_v2/classes.rb +77 -104
  343. data/generated/google/apis/youtube_analytics_v2/service.rb +106 -126
  344. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  345. data/generated/google/apis/youtube_partner_v1/service.rb +19 -19
  346. data/generated/google/apis/youtube_v3.rb +1 -1
  347. data/generated/google/apis/youtube_v3/classes.rb +937 -1175
  348. data/generated/google/apis/youtube_v3/service.rb +975 -1284
  349. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  350. data/generated/google/apis/youtubereporting_v1/classes.rb +20 -29
  351. data/generated/google/apis/youtubereporting_v1/service.rb +40 -43
  352. data/lib/google/apis/core/base_service.rb +7 -1
  353. data/lib/google/apis/version.rb +1 -1
  354. metadata +15 -7
  355. data/generated/google/apis/fitness_v1.rb +0 -85
  356. data/generated/google/apis/fitness_v1/classes.rb +0 -1020
  357. data/generated/google/apis/fitness_v1/representations.rb +0 -398
  358. data/generated/google/apis/fitness_v1/service.rb +0 -647
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/youtube/reporting/v1/reports/
27
27
  module YoutubereportingV1
28
28
  VERSION = 'V1'
29
- REVISION = '20200215'
29
+ REVISION = '20200801'
30
30
 
31
31
  # View monetary and non-monetary YouTube Analytics reports for your YouTube content
32
32
  AUTH_YT_ANALYTICS_MONETARY_READONLY = 'https://www.googleapis.com/auth/yt-analytics-monetary.readonly'
@@ -22,13 +22,11 @@ module Google
22
22
  module Apis
23
23
  module YoutubereportingV1
24
24
 
25
- # A generic empty message that you can re-use to avoid defining duplicated
26
- # empty messages in your APIs. A typical example is to use it as the request
27
- # or the response type of an API method. For instance:
28
- # service Foo `
29
- # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
30
- # `
31
- # The JSON representation for `Empty` is empty JSON object ````.
25
+ # A generic empty message that you can re-use to avoid defining duplicated empty
26
+ # messages in your APIs. A typical example is to use it as the request or the
27
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
28
+ # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
29
+ # `Empty` is empty JSON object ````.
32
30
  class Empty
33
31
  include Google::Apis::Core::Hashable
34
32
 
@@ -626,8 +624,8 @@ module Google
626
624
  # @return [String]
627
625
  attr_accessor :create_time
628
626
 
629
- # The date/time when this job will expire/expired. After a job expired, no
630
- # new reports are generated.
627
+ # The date/time when this job will expire/expired. After a job expired, no new
628
+ # reports are generated.
631
629
  # Corresponds to the JSON property `expireTime`
632
630
  # @return [String]
633
631
  attr_accessor :expire_time
@@ -642,8 +640,7 @@ module Google
642
640
  # @return [String]
643
641
  attr_accessor :name
644
642
 
645
- # The type of reports this job creates. Corresponds to the ID of a
646
- # ReportType.
643
+ # The type of reports this job creates. Corresponds to the ID of a ReportType.
647
644
  # Corresponds to the JSON property `reportTypeId`
648
645
  # @return [String]
649
646
  attr_accessor :report_type_id
@@ -679,11 +676,9 @@ module Google
679
676
  # @return [Array<Google::Apis::YoutubereportingV1::Job>]
680
677
  attr_accessor :jobs
681
678
 
682
- # A token to retrieve next page of results.
683
- # Pass this value in the
684
- # ListJobsRequest.page_token
685
- # field in the subsequent call to `ListJobs` method to retrieve the next
686
- # page of results.
679
+ # A token to retrieve next page of results. Pass this value in the
680
+ # ListJobsRequest.page_token field in the subsequent call to `ListJobs` method
681
+ # to retrieve the next page of results.
687
682
  # Corresponds to the JSON property `nextPageToken`
688
683
  # @return [String]
689
684
  attr_accessor :next_page_token
@@ -703,11 +698,9 @@ module Google
703
698
  class ListReportTypesResponse
704
699
  include Google::Apis::Core::Hashable
705
700
 
706
- # A token to retrieve next page of results.
707
- # Pass this value in the
708
- # ListReportTypesRequest.page_token
709
- # field in the subsequent call to `ListReportTypes` method to retrieve the
710
- # next page of results.
701
+ # A token to retrieve next page of results. Pass this value in the
702
+ # ListReportTypesRequest.page_token field in the subsequent call to `
703
+ # ListReportTypes` method to retrieve the next page of results.
711
704
  # Corresponds to the JSON property `nextPageToken`
712
705
  # @return [String]
713
706
  attr_accessor :next_page_token
@@ -732,11 +725,9 @@ module Google
732
725
  class ListReportsResponse
733
726
  include Google::Apis::Core::Hashable
734
727
 
735
- # A token to retrieve next page of results.
736
- # Pass this value in the
737
- # ListReportsRequest.page_token
738
- # field in the subsequent call to `ListReports` method to retrieve the next
739
- # page of results.
728
+ # A token to retrieve next page of results. Pass this value in the
729
+ # ListReportsRequest.page_token field in the subsequent call to `ListReports`
730
+ # method to retrieve the next page of results.
740
731
  # Corresponds to the JSON property `nextPageToken`
741
732
  # @return [String]
742
733
  attr_accessor :next_page_token
@@ -834,9 +825,9 @@ module Google
834
825
  # @return [String]
835
826
  attr_accessor :name
836
827
 
837
- # True if this a system-managed report type; otherwise false. Reporting jobs
838
- # for system-managed report types are created automatically and can thus not
839
- # be used in the `CreateJob` method.
828
+ # True if this a system-managed report type; otherwise false. Reporting jobs for
829
+ # system-managed report types are created automatically and can thus not be used
830
+ # in the `CreateJob` method.
840
831
  # Corresponds to the JSON property `systemManaged`
841
832
  # @return [Boolean]
842
833
  attr_accessor :system_managed
@@ -51,8 +51,8 @@ module Google
51
51
  # Creates a job and returns it.
52
52
  # @param [Google::Apis::YoutubereportingV1::Job] job_object
53
53
  # @param [String] on_behalf_of_content_owner
54
- # The content owner's external ID on which behalf the user is acting on. If
55
- # not set, the user is acting for himself (his own channel).
54
+ # The content owner's external ID on which behalf the user is acting on. If not
55
+ # set, the user is acting for himself (his own channel).
56
56
  # @param [String] fields
57
57
  # Selector specifying which fields to include in a partial response.
58
58
  # @param [String] quota_user
@@ -86,8 +86,8 @@ module Google
86
86
  # @param [String] job_id
87
87
  # The ID of the job to delete.
88
88
  # @param [String] on_behalf_of_content_owner
89
- # The content owner's external ID on which behalf the user is acting on. If
90
- # not set, the user is acting for himself (his own channel).
89
+ # The content owner's external ID on which behalf the user is acting on. If not
90
+ # set, the user is acting for himself (his own channel).
91
91
  # @param [String] fields
92
92
  # Selector specifying which fields to include in a partial response.
93
93
  # @param [String] quota_user
@@ -120,8 +120,8 @@ module Google
120
120
  # @param [String] job_id
121
121
  # The ID of the job to retrieve.
122
122
  # @param [String] on_behalf_of_content_owner
123
- # The content owner's external ID on which behalf the user is acting on. If
124
- # not set, the user is acting for himself (his own channel).
123
+ # The content owner's external ID on which behalf the user is acting on. If not
124
+ # set, the user is acting for himself (his own channel).
125
125
  # @param [String] fields
126
126
  # Selector specifying which fields to include in a partial response.
127
127
  # @param [String] quota_user
@@ -152,20 +152,19 @@ module Google
152
152
 
153
153
  # Lists jobs.
154
154
  # @param [Boolean] include_system_managed
155
- # If set to true, also system-managed jobs will be returned; otherwise only
156
- # user-created jobs will be returned. System-managed jobs can neither be
157
- # modified nor deleted.
155
+ # If set to true, also system-managed jobs will be returned; otherwise only user-
156
+ # created jobs will be returned. System-managed jobs can neither be modified nor
157
+ # deleted.
158
158
  # @param [String] on_behalf_of_content_owner
159
- # The content owner's external ID on which behalf the user is acting on. If
160
- # not set, the user is acting for himself (his own channel).
159
+ # The content owner's external ID on which behalf the user is acting on. If not
160
+ # set, the user is acting for himself (his own channel).
161
161
  # @param [Fixnum] page_size
162
- # Requested page size. Server may return fewer jobs than requested.
163
- # If unspecified, server will pick an appropriate default.
162
+ # Requested page size. Server may return fewer jobs than requested. If
163
+ # unspecified, server will pick an appropriate default.
164
164
  # @param [String] page_token
165
165
  # A token identifying a page of results the server should return. Typically,
166
- # this is the value of
167
- # ListReportTypesResponse.next_page_token
168
- # returned in response to the previous call to the `ListJobs` method.
166
+ # this is the value of ListReportTypesResponse.next_page_token returned in
167
+ # response to the previous call to the `ListJobs` method.
169
168
  # @param [String] fields
170
169
  # Selector specifying which fields to include in a partial response.
171
170
  # @param [String] quota_user
@@ -202,8 +201,8 @@ module Google
202
201
  # @param [String] report_id
203
202
  # The ID of the report to retrieve.
204
203
  # @param [String] on_behalf_of_content_owner
205
- # The content owner's external ID on which behalf the user is acting on. If
206
- # not set, the user is acting for himself (his own channel).
204
+ # The content owner's external ID on which behalf the user is acting on. If not
205
+ # set, the user is acting for himself (his own channel).
207
206
  # @param [String] fields
208
207
  # Selector specifying which fields to include in a partial response.
209
208
  # @param [String] quota_user
@@ -233,29 +232,28 @@ module Google
233
232
  execute_or_queue_command(command, &block)
234
233
  end
235
234
 
236
- # Lists reports created by a specific job.
237
- # Returns NOT_FOUND if the job does not exist.
235
+ # Lists reports created by a specific job. Returns NOT_FOUND if the job does not
236
+ # exist.
238
237
  # @param [String] job_id
239
238
  # The ID of the job.
240
239
  # @param [String] created_after
241
240
  # If set, only reports created after the specified date/time are returned.
242
241
  # @param [String] on_behalf_of_content_owner
243
- # The content owner's external ID on which behalf the user is acting on. If
244
- # not set, the user is acting for himself (his own channel).
242
+ # The content owner's external ID on which behalf the user is acting on. If not
243
+ # set, the user is acting for himself (his own channel).
245
244
  # @param [Fixnum] page_size
246
- # Requested page size. Server may return fewer report types than requested.
247
- # If unspecified, server will pick an appropriate default.
245
+ # Requested page size. Server may return fewer report types than requested. If
246
+ # unspecified, server will pick an appropriate default.
248
247
  # @param [String] page_token
249
248
  # A token identifying a page of results the server should return. Typically,
250
- # this is the value of
251
- # ListReportsResponse.next_page_token
252
- # returned in response to the previous call to the `ListReports` method.
249
+ # this is the value of ListReportsResponse.next_page_token returned in response
250
+ # to the previous call to the `ListReports` method.
253
251
  # @param [String] start_time_at_or_after
254
- # If set, only reports whose start time is greater than or equal the
255
- # specified date/time are returned.
256
- # @param [String] start_time_before
257
- # If set, only reports whose start time is smaller than the specified
252
+ # If set, only reports whose start time is greater than or equal the specified
258
253
  # date/time are returned.
254
+ # @param [String] start_time_before
255
+ # If set, only reports whose start time is smaller than the specified date/time
256
+ # are returned.
259
257
  # @param [String] fields
260
258
  # Selector specifying which fields to include in a partial response.
261
259
  # @param [String] quota_user
@@ -289,8 +287,8 @@ module Google
289
287
  execute_or_queue_command(command, &block)
290
288
  end
291
289
 
292
- # Method for media download. Download is supported
293
- # on the URI `/v1/media/`+name`?alt=media`.
290
+ # Method for media download. Download is supported on the URI `/v1/media/`+name`?
291
+ # alt=media`.
294
292
  # @param [String] resource_name
295
293
  # Name of the media that is being downloaded.
296
294
  # @param [String] fields
@@ -329,20 +327,19 @@ module Google
329
327
 
330
328
  # Lists report types.
331
329
  # @param [Boolean] include_system_managed
332
- # If set to true, also system-managed report types will be returned;
333
- # otherwise only the report types that can be used to create new reporting
334
- # jobs will be returned.
330
+ # If set to true, also system-managed report types will be returned; otherwise
331
+ # only the report types that can be used to create new reporting jobs will be
332
+ # returned.
335
333
  # @param [String] on_behalf_of_content_owner
336
- # The content owner's external ID on which behalf the user is acting on. If
337
- # not set, the user is acting for himself (his own channel).
334
+ # The content owner's external ID on which behalf the user is acting on. If not
335
+ # set, the user is acting for himself (his own channel).
338
336
  # @param [Fixnum] page_size
339
- # Requested page size. Server may return fewer report types than requested.
340
- # If unspecified, server will pick an appropriate default.
337
+ # Requested page size. Server may return fewer report types than requested. If
338
+ # unspecified, server will pick an appropriate default.
341
339
  # @param [String] page_token
342
340
  # A token identifying a page of results the server should return. Typically,
343
- # this is the value of
344
- # ListReportTypesResponse.next_page_token
345
- # returned in response to the previous call to the `ListReportTypes` method.
341
+ # this is the value of ListReportTypesResponse.next_page_token returned in
342
+ # response to the previous call to the `ListReportTypes` method.
346
343
  # @param [String] fields
347
344
  # Selector specifying which fields to include in a partial response.
348
345
  # @param [String] quota_user
@@ -334,7 +334,13 @@ module Google
334
334
  # Request-specific options
335
335
  # @return [Google::Apis::Core::DownloadCommand]
336
336
  def make_simple_command(method, path, options)
337
- template = Addressable::Template.new(root_url + base_path + path)
337
+ full_path =
338
+ if path.start_with? "/"
339
+ path[1..-1]
340
+ else
341
+ base_path + path
342
+ end
343
+ template = Addressable::Template.new(root_url + full_path)
338
344
  command = ApiCommand.new(method, template)
339
345
  command.options = request_options.merge(options)
340
346
  apply_command_defaults(command)
@@ -17,7 +17,7 @@ require 'open3'
17
17
  module Google
18
18
  module Apis
19
19
  # Client library version
20
- VERSION = '0.42.2'.freeze
20
+ VERSION = '0.43.0'.freeze
21
21
 
22
22
  # Current operating system
23
23
  # @private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.42.2
4
+ version: 0.43.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Bazyl
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2020-07-27 00:00:00.000000000 Z
14
+ date: 2020-08-05 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: representable
@@ -612,6 +612,10 @@ files:
612
612
  - generated/google/apis/dataflow_v1b3/classes.rb
613
613
  - generated/google/apis/dataflow_v1b3/representations.rb
614
614
  - generated/google/apis/dataflow_v1b3/service.rb
615
+ - generated/google/apis/datafusion_v1.rb
616
+ - generated/google/apis/datafusion_v1/classes.rb
617
+ - generated/google/apis/datafusion_v1/representations.rb
618
+ - generated/google/apis/datafusion_v1/service.rb
615
619
  - generated/google/apis/datafusion_v1beta1.rb
616
620
  - generated/google/apis/datafusion_v1beta1/classes.rb
617
621
  - generated/google/apis/datafusion_v1beta1/representations.rb
@@ -784,10 +788,6 @@ files:
784
788
  - generated/google/apis/firestore_v1beta2/classes.rb
785
789
  - generated/google/apis/firestore_v1beta2/representations.rb
786
790
  - generated/google/apis/firestore_v1beta2/service.rb
787
- - generated/google/apis/fitness_v1.rb
788
- - generated/google/apis/fitness_v1/classes.rb
789
- - generated/google/apis/fitness_v1/representations.rb
790
- - generated/google/apis/fitness_v1/service.rb
791
791
  - generated/google/apis/games_configuration_v1configuration.rb
792
792
  - generated/google/apis/games_configuration_v1configuration/classes.rb
793
793
  - generated/google/apis/games_configuration_v1configuration/representations.rb
@@ -928,6 +928,10 @@ files:
928
928
  - generated/google/apis/manufacturers_v1/classes.rb
929
929
  - generated/google/apis/manufacturers_v1/representations.rb
930
930
  - generated/google/apis/manufacturers_v1/service.rb
931
+ - generated/google/apis/memcache_v1.rb
932
+ - generated/google/apis/memcache_v1/classes.rb
933
+ - generated/google/apis/memcache_v1/representations.rb
934
+ - generated/google/apis/memcache_v1/service.rb
931
935
  - generated/google/apis/memcache_v1beta2.rb
932
936
  - generated/google/apis/memcache_v1beta2/classes.rb
933
937
  - generated/google/apis/memcache_v1beta2/representations.rb
@@ -1136,6 +1140,10 @@ files:
1136
1140
  - generated/google/apis/servicecontrol_v1/classes.rb
1137
1141
  - generated/google/apis/servicecontrol_v1/representations.rb
1138
1142
  - generated/google/apis/servicecontrol_v1/service.rb
1143
+ - generated/google/apis/servicecontrol_v2.rb
1144
+ - generated/google/apis/servicecontrol_v2/classes.rb
1145
+ - generated/google/apis/servicecontrol_v2/representations.rb
1146
+ - generated/google/apis/servicecontrol_v2/service.rb
1139
1147
  - generated/google/apis/servicedirectory_v1beta1.rb
1140
1148
  - generated/google/apis/servicedirectory_v1beta1/classes.rb
1141
1149
  - generated/google/apis/servicedirectory_v1beta1/representations.rb
@@ -1416,7 +1424,7 @@ homepage: https://github.com/google/google-api-ruby-client
1416
1424
  licenses:
1417
1425
  - Apache-2.0
1418
1426
  metadata:
1419
- documentation_uri: https://googleapis.dev/ruby/google-api-client/v0.42.2
1427
+ documentation_uri: https://googleapis.dev/ruby/google-api-client/v0.43.0
1420
1428
  post_install_message:
1421
1429
  rdoc_options: []
1422
1430
  require_paths:
@@ -1,85 +0,0 @@
1
- # Copyright 2015 Google Inc.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- require 'google/apis/fitness_v1/service.rb'
16
- require 'google/apis/fitness_v1/classes.rb'
17
- require 'google/apis/fitness_v1/representations.rb'
18
-
19
- module Google
20
- module Apis
21
- # Fitness API
22
- #
23
- # The Fitness API for managing users' fitness tracking data.
24
- #
25
- # @see https://developers.google.com/fit/rest/v1/get-started
26
- module FitnessV1
27
- VERSION = 'V1'
28
- REVISION = '20200601'
29
-
30
- # Use Google Fit to see and store your physical activity data
31
- AUTH_FITNESS_ACTIVITY_READ = 'https://www.googleapis.com/auth/fitness.activity.read'
32
-
33
- # See and add to your Google Fit physical activity data
34
- AUTH_FITNESS_ACTIVITY_WRITE = 'https://www.googleapis.com/auth/fitness.activity.write'
35
-
36
- # See info about your blood glucose in Google Fit. I consent to Google sharing my blood glucose information with this app.
37
- AUTH_FITNESS_BLOOD_GLUCOSE_READ = 'https://www.googleapis.com/auth/fitness.blood_glucose.read'
38
-
39
- # See and add info about your blood glucose to Google Fit. I consent to Google sharing my blood glucose information with this app.
40
- AUTH_FITNESS_BLOOD_GLUCOSE_WRITE = 'https://www.googleapis.com/auth/fitness.blood_glucose.write'
41
-
42
- # See info about your blood pressure in Google Fit. I consent to Google sharing my blood pressure information with this app.
43
- AUTH_FITNESS_BLOOD_PRESSURE_READ = 'https://www.googleapis.com/auth/fitness.blood_pressure.read'
44
-
45
- # See and add info about your blood pressure in Google Fit. I consent to Google sharing my blood pressure information with this app.
46
- AUTH_FITNESS_BLOOD_PRESSURE_WRITE = 'https://www.googleapis.com/auth/fitness.blood_pressure.write'
47
-
48
- # See info about your body measurements and heart rate in Google Fit
49
- AUTH_FITNESS_BODY_READ = 'https://www.googleapis.com/auth/fitness.body.read'
50
-
51
- # See and add info about your body measurements and heart rate to Google Fit
52
- AUTH_FITNESS_BODY_WRITE = 'https://www.googleapis.com/auth/fitness.body.write'
53
-
54
- # See info about your body temperature in Google Fit. I consent to Google sharing my body temperature information with this app.
55
- AUTH_FITNESS_BODY_TEMPERATURE_READ = 'https://www.googleapis.com/auth/fitness.body_temperature.read'
56
-
57
- # See and add to info about your body temperature in Google Fit. I consent to Google sharing my body temperature information with this app.
58
- AUTH_FITNESS_BODY_TEMPERATURE_WRITE = 'https://www.googleapis.com/auth/fitness.body_temperature.write'
59
-
60
- # See your Google Fit speed and distance data
61
- AUTH_FITNESS_LOCATION_READ = 'https://www.googleapis.com/auth/fitness.location.read'
62
-
63
- # See and add to your Google Fit location data
64
- AUTH_FITNESS_LOCATION_WRITE = 'https://www.googleapis.com/auth/fitness.location.write'
65
-
66
- # See info about your nutrition in Google Fit
67
- AUTH_FITNESS_NUTRITION_READ = 'https://www.googleapis.com/auth/fitness.nutrition.read'
68
-
69
- # See and add to info about your nutrition in Google Fit
70
- AUTH_FITNESS_NUTRITION_WRITE = 'https://www.googleapis.com/auth/fitness.nutrition.write'
71
-
72
- # See info about your oxygen saturation in Google Fit. I consent to Google sharing my oxygen saturation information with this app.
73
- AUTH_FITNESS_OXYGEN_SATURATION_READ = 'https://www.googleapis.com/auth/fitness.oxygen_saturation.read'
74
-
75
- # See and add info about your oxygen saturation in Google Fit. I consent to Google sharing my oxygen saturation information with this app.
76
- AUTH_FITNESS_OXYGEN_SATURATION_WRITE = 'https://www.googleapis.com/auth/fitness.oxygen_saturation.write'
77
-
78
- # See info about your reproductive health in Google Fit. I consent to Google sharing my reporductive health information with this app.
79
- AUTH_FITNESS_REPRODUCTIVE_HEALTH_READ = 'https://www.googleapis.com/auth/fitness.reproductive_health.read'
80
-
81
- # See and add info about your reproductive health in Google Fit. I consent to Google sharing my reporductive health information with this app.
82
- AUTH_FITNESS_REPRODUCTIVE_HEALTH_WRITE = 'https://www.googleapis.com/auth/fitness.reproductive_health.write'
83
- end
84
- end
85
- end
@@ -1,1020 +0,0 @@
1
- # Copyright 2015 Google Inc.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- require 'date'
16
- require 'google/apis/core/base_service'
17
- require 'google/apis/core/json_representation'
18
- require 'google/apis/core/hashable'
19
- require 'google/apis/errors'
20
-
21
- module Google
22
- module Apis
23
- module FitnessV1
24
-
25
- #
26
- class AggregateBucket
27
- include Google::Apis::Core::Hashable
28
-
29
- # Available for Bucket.Type.ACTIVITY_TYPE, Bucket.Type.ACTIVITY_SEGMENT
30
- # Corresponds to the JSON property `activity`
31
- # @return [Fixnum]
32
- attr_accessor :activity
33
-
34
- # There will be one dataset per AggregateBy in the request.
35
- # Corresponds to the JSON property `dataset`
36
- # @return [Array<Google::Apis::FitnessV1::Dataset>]
37
- attr_accessor :dataset
38
-
39
- # The end time for the aggregated data, in milliseconds since epoch,
40
- # inclusive.
41
- # Corresponds to the JSON property `endTimeMillis`
42
- # @return [Fixnum]
43
- attr_accessor :end_time_millis
44
-
45
- # Sessions contain metadata, such as a user-friendly name and time interval
46
- # information.
47
- # Corresponds to the JSON property `session`
48
- # @return [Google::Apis::FitnessV1::Session]
49
- attr_accessor :session
50
-
51
- # The start time for the aggregated data, in milliseconds since epoch,
52
- # inclusive.
53
- # Corresponds to the JSON property `startTimeMillis`
54
- # @return [Fixnum]
55
- attr_accessor :start_time_millis
56
-
57
- # The type of a bucket signifies how the data aggregation is performed in the
58
- # bucket.
59
- # Corresponds to the JSON property `type`
60
- # @return [String]
61
- attr_accessor :type
62
-
63
- def initialize(**args)
64
- update!(**args)
65
- end
66
-
67
- # Update properties of this object
68
- def update!(**args)
69
- @activity = args[:activity] if args.key?(:activity)
70
- @dataset = args[:dataset] if args.key?(:dataset)
71
- @end_time_millis = args[:end_time_millis] if args.key?(:end_time_millis)
72
- @session = args[:session] if args.key?(:session)
73
- @start_time_millis = args[:start_time_millis] if args.key?(:start_time_millis)
74
- @type = args[:type] if args.key?(:type)
75
- end
76
- end
77
-
78
- # The specification of which data to aggregate.
79
- class AggregateBy
80
- include Google::Apis::Core::Hashable
81
-
82
- # A data source ID to aggregate. Only data from the specified data source ID
83
- # will be included in the aggregation. If specified, this data source must
84
- # exist; the OAuth scopes in the supplied credentials must grant read access
85
- # to this data type. The dataset in the response will have the same data
86
- # source ID. Note: Data can be aggregated by either the dataTypeName or the
87
- # dataSourceId, not both.
88
- # Corresponds to the JSON property `dataSourceId`
89
- # @return [String]
90
- attr_accessor :data_source_id
91
-
92
- # The data type to aggregate. All data sources providing this data type will
93
- # contribute data to the aggregation. The response will contain a single
94
- # dataset for this data type name. The dataset will have a data source ID of
95
- # derived:<output data type name>:com.google.android.gms:aggregated.
96
- # If the user has no data for this data type, an empty data set will be
97
- # returned. Note: Data can be aggregated by either the dataTypeName or the
98
- # dataSourceId, not both.
99
- # Corresponds to the JSON property `dataTypeName`
100
- # @return [String]
101
- attr_accessor :data_type_name
102
-
103
- def initialize(**args)
104
- update!(**args)
105
- end
106
-
107
- # Update properties of this object
108
- def update!(**args)
109
- @data_source_id = args[:data_source_id] if args.key?(:data_source_id)
110
- @data_type_name = args[:data_type_name] if args.key?(:data_type_name)
111
- end
112
- end
113
-
114
- # Next id: 10
115
- class AggregateRequest
116
- include Google::Apis::Core::Hashable
117
-
118
- # The specification of data to be aggregated. At least one aggregateBy spec
119
- # must be provided. All data that is specified will be aggregated using the
120
- # same bucketing criteria. There will be one dataset in the response for
121
- # every aggregateBy spec.
122
- # Corresponds to the JSON property `aggregateBy`
123
- # @return [Array<Google::Apis::FitnessV1::AggregateBy>]
124
- attr_accessor :aggregate_by
125
-
126
- # Specifies that data be aggregated each activity segment recored for a user.
127
- # Similar to bucketByActivitySegment, but bucketing is done for each activity
128
- # segment rather than all segments of the same type. Mutually exclusive of
129
- # other bucketing specifications.
130
- # Corresponds to the JSON property `bucketByActivitySegment`
131
- # @return [Google::Apis::FitnessV1::BucketByActivity]
132
- attr_accessor :bucket_by_activity_segment
133
-
134
- # Specifies that data be aggregated by the type of activity being performed
135
- # when the data was recorded. All data that was recorded during a certain
136
- # activity type (.for the given time range) will be aggregated into the same
137
- # bucket. Data that was recorded while the user was not active will not be
138
- # included in the response. Mutually exclusive of other bucketing
139
- # specifications.
140
- # Corresponds to the JSON property `bucketByActivityType`
141
- # @return [Google::Apis::FitnessV1::BucketByActivity]
142
- attr_accessor :bucket_by_activity_type
143
-
144
- # Specifies that data be aggregated by user sessions. Data that does not fall
145
- # within the time range of a session will not be included in the response.
146
- # Mutually exclusive of other bucketing specifications.
147
- # Corresponds to the JSON property `bucketBySession`
148
- # @return [Google::Apis::FitnessV1::BucketBySession]
149
- attr_accessor :bucket_by_session
150
-
151
- # Specifies that data be aggregated by a single time interval. Mutually
152
- # exclusive of other bucketing specifications.
153
- # Corresponds to the JSON property `bucketByTime`
154
- # @return [Google::Apis::FitnessV1::BucketByTime]
155
- attr_accessor :bucket_by_time
156
-
157
- # The end of a window of time. Data that intersects with this time
158
- # window will be aggregated. The time is in milliseconds since epoch,
159
- # inclusive.
160
- # Corresponds to the JSON property `endTimeMillis`
161
- # @return [Fixnum]
162
- attr_accessor :end_time_millis
163
-
164
- # DO NOT POPULATE THIS FIELD. It is ignored.
165
- # Corresponds to the JSON property `filteredDataQualityStandard`
166
- # @return [Array<String>]
167
- attr_accessor :filtered_data_quality_standard
168
-
169
- # The start of a window of time. Data that intersects with this time
170
- # window will be aggregated. The time is in milliseconds since epoch,
171
- # inclusive.
172
- # Corresponds to the JSON property `startTimeMillis`
173
- # @return [Fixnum]
174
- attr_accessor :start_time_millis
175
-
176
- def initialize(**args)
177
- update!(**args)
178
- end
179
-
180
- # Update properties of this object
181
- def update!(**args)
182
- @aggregate_by = args[:aggregate_by] if args.key?(:aggregate_by)
183
- @bucket_by_activity_segment = args[:bucket_by_activity_segment] if args.key?(:bucket_by_activity_segment)
184
- @bucket_by_activity_type = args[:bucket_by_activity_type] if args.key?(:bucket_by_activity_type)
185
- @bucket_by_session = args[:bucket_by_session] if args.key?(:bucket_by_session)
186
- @bucket_by_time = args[:bucket_by_time] if args.key?(:bucket_by_time)
187
- @end_time_millis = args[:end_time_millis] if args.key?(:end_time_millis)
188
- @filtered_data_quality_standard = args[:filtered_data_quality_standard] if args.key?(:filtered_data_quality_standard)
189
- @start_time_millis = args[:start_time_millis] if args.key?(:start_time_millis)
190
- end
191
- end
192
-
193
- #
194
- class AggregateResponse
195
- include Google::Apis::Core::Hashable
196
-
197
- # A list of buckets containing the aggregated data.
198
- # Corresponds to the JSON property `bucket`
199
- # @return [Array<Google::Apis::FitnessV1::AggregateBucket>]
200
- attr_accessor :bucket
201
-
202
- def initialize(**args)
203
- update!(**args)
204
- end
205
-
206
- # Update properties of this object
207
- def update!(**args)
208
- @bucket = args[:bucket] if args.key?(:bucket)
209
- end
210
- end
211
-
212
- #
213
- class Application
214
- include Google::Apis::Core::Hashable
215
-
216
- # An optional URI that can be used to link back to the application.
217
- # Corresponds to the JSON property `detailsUrl`
218
- # @return [String]
219
- attr_accessor :details_url
220
-
221
- # The name of this application. This is required for REST clients, but we
222
- # do not enforce uniqueness of this name. It is provided as a matter of
223
- # convenience for other developers who would like to identify which REST
224
- # created an Application or Data Source.
225
- # Corresponds to the JSON property `name`
226
- # @return [String]
227
- attr_accessor :name
228
-
229
- # Package name for this application. This is used as a unique
230
- # identifier when created by Android applications, but cannot be specified
231
- # by REST clients. REST clients will have their developer project number
232
- # reflected into the Data Source data stream IDs, instead of the packageName.
233
- # Corresponds to the JSON property `packageName`
234
- # @return [String]
235
- attr_accessor :package_name
236
-
237
- # Version of the application. You should update this field whenever the
238
- # application changes in a way that affects the computation of the data.
239
- # Corresponds to the JSON property `version`
240
- # @return [String]
241
- attr_accessor :version
242
-
243
- def initialize(**args)
244
- update!(**args)
245
- end
246
-
247
- # Update properties of this object
248
- def update!(**args)
249
- @details_url = args[:details_url] if args.key?(:details_url)
250
- @name = args[:name] if args.key?(:name)
251
- @package_name = args[:package_name] if args.key?(:package_name)
252
- @version = args[:version] if args.key?(:version)
253
- end
254
- end
255
-
256
- #
257
- class BucketByActivity
258
- include Google::Apis::Core::Hashable
259
-
260
- # The default activity stream will be used if a specific activityDataSourceId
261
- # is not specified.
262
- # Corresponds to the JSON property `activityDataSourceId`
263
- # @return [String]
264
- attr_accessor :activity_data_source_id
265
-
266
- # Specifies that only activity segments of duration longer than
267
- # minDurationMillis are considered and used as a container for aggregated
268
- # data.
269
- # Corresponds to the JSON property `minDurationMillis`
270
- # @return [Fixnum]
271
- attr_accessor :min_duration_millis
272
-
273
- def initialize(**args)
274
- update!(**args)
275
- end
276
-
277
- # Update properties of this object
278
- def update!(**args)
279
- @activity_data_source_id = args[:activity_data_source_id] if args.key?(:activity_data_source_id)
280
- @min_duration_millis = args[:min_duration_millis] if args.key?(:min_duration_millis)
281
- end
282
- end
283
-
284
- #
285
- class BucketBySession
286
- include Google::Apis::Core::Hashable
287
-
288
- # Specifies that only sessions of duration longer than minDurationMillis are
289
- # considered and used as a container for aggregated data.
290
- # Corresponds to the JSON property `minDurationMillis`
291
- # @return [Fixnum]
292
- attr_accessor :min_duration_millis
293
-
294
- def initialize(**args)
295
- update!(**args)
296
- end
297
-
298
- # Update properties of this object
299
- def update!(**args)
300
- @min_duration_millis = args[:min_duration_millis] if args.key?(:min_duration_millis)
301
- end
302
- end
303
-
304
- #
305
- class BucketByTime
306
- include Google::Apis::Core::Hashable
307
-
308
- # Specifies that result buckets aggregate data by exactly durationMillis time
309
- # frames. Time frames that contain no data will be included in the response
310
- # with an empty dataset.
311
- # Corresponds to the JSON property `durationMillis`
312
- # @return [Fixnum]
313
- attr_accessor :duration_millis
314
-
315
- #
316
- # Corresponds to the JSON property `period`
317
- # @return [Google::Apis::FitnessV1::BucketByTimePeriod]
318
- attr_accessor :period
319
-
320
- def initialize(**args)
321
- update!(**args)
322
- end
323
-
324
- # Update properties of this object
325
- def update!(**args)
326
- @duration_millis = args[:duration_millis] if args.key?(:duration_millis)
327
- @period = args[:period] if args.key?(:period)
328
- end
329
- end
330
-
331
- #
332
- class BucketByTimePeriod
333
- include Google::Apis::Core::Hashable
334
-
335
- # org.joda.timezone.DateTimeZone
336
- # Corresponds to the JSON property `timeZoneId`
337
- # @return [String]
338
- attr_accessor :time_zone_id
339
-
340
- #
341
- # Corresponds to the JSON property `type`
342
- # @return [String]
343
- attr_accessor :type
344
-
345
- #
346
- # Corresponds to the JSON property `value`
347
- # @return [Fixnum]
348
- attr_accessor :value
349
-
350
- def initialize(**args)
351
- update!(**args)
352
- end
353
-
354
- # Update properties of this object
355
- def update!(**args)
356
- @time_zone_id = args[:time_zone_id] if args.key?(:time_zone_id)
357
- @type = args[:type] if args.key?(:type)
358
- @value = args[:value] if args.key?(:value)
359
- end
360
- end
361
-
362
- # Represents a single data point, generated by a particular data source. A
363
- # data point holds a value for each field, an end timestamp and an optional
364
- # start time. The exact semantics of each of these attributes are specified in
365
- # the documentation for the particular data type.
366
- # A data point can represent an instantaneous measurement, reading or input
367
- # observation, as well as averages or aggregates over a time interval. Check
368
- # the data type documentation to determine which is the case for a particular
369
- # data type.
370
- # Data points always contain one value for each field of the data type.
371
- class DataPoint
372
- include Google::Apis::Core::Hashable
373
-
374
- # DO NOT USE THIS FIELD. It is ignored, and not stored.
375
- # Corresponds to the JSON property `computationTimeMillis`
376
- # @return [Fixnum]
377
- attr_accessor :computation_time_millis
378
-
379
- # The data type defining the format of the values in this data point.
380
- # Corresponds to the JSON property `dataTypeName`
381
- # @return [String]
382
- attr_accessor :data_type_name
383
-
384
- # The end time of the interval represented by this data point, in
385
- # nanoseconds since epoch.
386
- # Corresponds to the JSON property `endTimeNanos`
387
- # @return [Fixnum]
388
- attr_accessor :end_time_nanos
389
-
390
- # Indicates the last time this data point was modified. Useful only in
391
- # contexts where we are listing the data changes, rather than representing
392
- # the current state of the data.
393
- # Corresponds to the JSON property `modifiedTimeMillis`
394
- # @return [Fixnum]
395
- attr_accessor :modified_time_millis
396
-
397
- # If the data point is contained in a dataset for a derived data source,
398
- # this field will be populated with the data source stream ID that created
399
- # the data point originally.
400
- # WARNING: do not rely on this field for anything other than debugging. The
401
- # value of this field, if it is set at all, is an implementation detail and
402
- # is not guaranteed to remain consistent.
403
- # Corresponds to the JSON property `originDataSourceId`
404
- # @return [String]
405
- attr_accessor :origin_data_source_id
406
-
407
- # The raw timestamp from the original SensorEvent.
408
- # Corresponds to the JSON property `rawTimestampNanos`
409
- # @return [Fixnum]
410
- attr_accessor :raw_timestamp_nanos
411
-
412
- # The start time of the interval represented by this data point, in
413
- # nanoseconds since epoch.
414
- # Corresponds to the JSON property `startTimeNanos`
415
- # @return [Fixnum]
416
- attr_accessor :start_time_nanos
417
-
418
- # Values of each data type field for the data point. It is expected that each
419
- # value corresponding to a data type field will occur in the same order that
420
- # the field is listed with in the data type specified in a data source.
421
- # Only one of integer and floating point fields will be populated, depending
422
- # on the format enum value within data source's type field.
423
- # Corresponds to the JSON property `value`
424
- # @return [Array<Google::Apis::FitnessV1::Value>]
425
- attr_accessor :value
426
-
427
- def initialize(**args)
428
- update!(**args)
429
- end
430
-
431
- # Update properties of this object
432
- def update!(**args)
433
- @computation_time_millis = args[:computation_time_millis] if args.key?(:computation_time_millis)
434
- @data_type_name = args[:data_type_name] if args.key?(:data_type_name)
435
- @end_time_nanos = args[:end_time_nanos] if args.key?(:end_time_nanos)
436
- @modified_time_millis = args[:modified_time_millis] if args.key?(:modified_time_millis)
437
- @origin_data_source_id = args[:origin_data_source_id] if args.key?(:origin_data_source_id)
438
- @raw_timestamp_nanos = args[:raw_timestamp_nanos] if args.key?(:raw_timestamp_nanos)
439
- @start_time_nanos = args[:start_time_nanos] if args.key?(:start_time_nanos)
440
- @value = args[:value] if args.key?(:value)
441
- end
442
- end
443
-
444
- # Definition of a unique source of sensor data. Data sources can expose raw
445
- # data coming from hardware sensors on local or companion devices. They can
446
- # also expose derived data, created by transforming or merging other data
447
- # sources. Multiple data sources can exist for the same data type. Every data
448
- # point inserted into or read from this service has an associated data
449
- # source.
450
- # The data source contains enough information to uniquely identify its data,
451
- # including the hardware device and the application that collected and/or
452
- # transformed the data. It also holds useful metadata, such as the hardware and
453
- # application versions, and the device type.
454
- # Each data source produces a unique stream of data, with a unique identifier.
455
- # Not all changes to data source affect the stream identifier, so that data
456
- # collected by updated versions of the same application/device can still be
457
- # considered to belong to the same data stream.
458
- class DataSource
459
- include Google::Apis::Core::Hashable
460
-
461
- # Information about an application which feeds sensor data into the platform.
462
- # Corresponds to the JSON property `application`
463
- # @return [Google::Apis::FitnessV1::Application]
464
- attr_accessor :application
465
-
466
- # DO NOT POPULATE THIS FIELD. It is never populated in responses from the
467
- # platform, and is ignored in queries. It will be removed in a future version
468
- # entirely.
469
- # Corresponds to the JSON property `dataQualityStandard`
470
- # @return [Array<String>]
471
- attr_accessor :data_quality_standard
472
-
473
- # A unique identifier for the data stream produced by this data source. The
474
- # identifier includes:<br/><br/>
475
- # <ul>
476
- # <li>The physical device's manufacturer, model, and serial number
477
- # (UID).</li>
478
- # <li>The application's package name or name. Package name is used when the
479
- # data source was created by an Android application. The developer project
480
- # number is used when the data source was created by a REST client.</li>
481
- # <li>The data source's type.</li>
482
- # <li>The data source's stream name.</li>
483
- # </ul>
484
- # Note that not all attributes of the data source are used as part of the
485
- # stream identifier. In particular, the version of the hardware/the
486
- # application isn't used. This allows us to preserve the same stream through
487
- # version updates. This also means that two DataSource objects may represent
488
- # the same data stream even if they're not equal.
489
- # The exact format of the data stream ID created by an Android application
490
- # is:
491
- # <var>type:dataType.name<wbr/>:application.packageName<wbr/>:device.
492
- # manufacturer<wbr/>:device.model<wbr/>:device.uid<wbr/>:dataStreamName</var>
493
- # The exact format of the data stream ID created by a REST client is:
494
- # <var>type:dataType.name<wbr/>:developer project
495
- # number<wbr/>:device.manufacturer<wbr/>:device.model:device.uid<wbr/>:
496
- # dataStreamName</var>
497
- # When any of the optional fields that make up the data stream ID are absent,
498
- # they will be omitted from the data stream ID. The minimum viable data
499
- # stream ID would be:
500
- # type:dataType.name:developer project number
501
- # Finally, the developer project number and device UID are obfuscated when
502
- # read by any REST or Android client that did not create the data source.
503
- # Only the data source creator will see the developer project number in clear
504
- # and normal form. This means a client will see a different set of
505
- # data_stream_ids than another client with different credentials.
506
- # Corresponds to the JSON property `dataStreamId`
507
- # @return [String]
508
- attr_accessor :data_stream_id
509
-
510
- # The stream name uniquely identifies this particular data source among
511
- # other data sources of the same type from the same underlying producer.
512
- # Setting the stream name is optional, but should be done whenever an
513
- # application exposes two streams for the same data type, or when a device
514
- # has two equivalent sensors.
515
- # Corresponds to the JSON property `dataStreamName`
516
- # @return [String]
517
- attr_accessor :data_stream_name
518
-
519
- # The data type defines the schema for a stream of data being collected by,
520
- # inserted into, or queried from the Fitness API.
521
- # Corresponds to the JSON property `dataType`
522
- # @return [Google::Apis::FitnessV1::DataType]
523
- attr_accessor :data_type
524
-
525
- # Representation of an integrated device (such as a phone or a wearable) that
526
- # can hold sensors. Each sensor is exposed as a data source.
527
- # The main purpose of the device information contained in this class is to
528
- # identify the hardware of a particular data source. This can be useful in
529
- # different ways, including:
530
- # <ul>
531
- # <li>Distinguishing two similar sensors on different devices (the step
532
- # counter on two nexus 5 phones, for instance)
533
- # <li>Display the source of data to the user (by using the device make /
534
- # model)
535
- # <li>Treat data differently depending on sensor type (accelerometers on a
536
- # watch may give different patterns than those on a phone)
537
- # <li>Build different analysis models for each device/version.
538
- # </ul>
539
- # Corresponds to the JSON property `device`
540
- # @return [Google::Apis::FitnessV1::Device]
541
- attr_accessor :device
542
-
543
- # An end-user visible name for this data source.
544
- # Corresponds to the JSON property `name`
545
- # @return [String]
546
- attr_accessor :name
547
-
548
- # A constant describing the type of this data source. Indicates whether this
549
- # data source produces raw or derived data.
550
- # Corresponds to the JSON property `type`
551
- # @return [String]
552
- attr_accessor :type
553
-
554
- def initialize(**args)
555
- update!(**args)
556
- end
557
-
558
- # Update properties of this object
559
- def update!(**args)
560
- @application = args[:application] if args.key?(:application)
561
- @data_quality_standard = args[:data_quality_standard] if args.key?(:data_quality_standard)
562
- @data_stream_id = args[:data_stream_id] if args.key?(:data_stream_id)
563
- @data_stream_name = args[:data_stream_name] if args.key?(:data_stream_name)
564
- @data_type = args[:data_type] if args.key?(:data_type)
565
- @device = args[:device] if args.key?(:device)
566
- @name = args[:name] if args.key?(:name)
567
- @type = args[:type] if args.key?(:type)
568
- end
569
- end
570
-
571
- #
572
- class DataType
573
- include Google::Apis::Core::Hashable
574
-
575
- # A field represents one dimension of a data type.
576
- # Corresponds to the JSON property `field`
577
- # @return [Array<Google::Apis::FitnessV1::DataTypeField>]
578
- attr_accessor :field
579
-
580
- # Each data type has a unique, namespaced, name. All data types in the
581
- # com.google namespace are shared as part of the platform.
582
- # Corresponds to the JSON property `name`
583
- # @return [String]
584
- attr_accessor :name
585
-
586
- def initialize(**args)
587
- update!(**args)
588
- end
589
-
590
- # Update properties of this object
591
- def update!(**args)
592
- @field = args[:field] if args.key?(:field)
593
- @name = args[:name] if args.key?(:name)
594
- end
595
- end
596
-
597
- # In case of multi-dimensional data (such as an accelerometer with x, y, and z
598
- # axes) each field represents one dimension. Each data type field has a unique
599
- # name which identifies it. The field also defines the format of the data (int,
600
- # float, etc.).
601
- # This message is only instantiated in code and not used for wire comms or
602
- # stored in any way.
603
- class DataTypeField
604
- include Google::Apis::Core::Hashable
605
-
606
- # The different supported formats for each field in a data type.
607
- # Corresponds to the JSON property `format`
608
- # @return [String]
609
- attr_accessor :format
610
-
611
- # Defines the name and format of data. Unlike data type names, field names
612
- # are not namespaced, and only need to be unique within the data type.
613
- # Corresponds to the JSON property `name`
614
- # @return [String]
615
- attr_accessor :name
616
-
617
- #
618
- # Corresponds to the JSON property `optional`
619
- # @return [Boolean]
620
- attr_accessor :optional
621
- alias_method :optional?, :optional
622
-
623
- def initialize(**args)
624
- update!(**args)
625
- end
626
-
627
- # Update properties of this object
628
- def update!(**args)
629
- @format = args[:format] if args.key?(:format)
630
- @name = args[:name] if args.key?(:name)
631
- @optional = args[:optional] if args.key?(:optional)
632
- end
633
- end
634
-
635
- # A dataset represents a projection container for data points. They do not
636
- # carry any info of their own. Datasets represent a set of data points from a
637
- # particular data source. A data point can be found in more than one dataset.
638
- class Dataset
639
- include Google::Apis::Core::Hashable
640
-
641
- # The data stream ID of the data source that created the points in this
642
- # dataset.
643
- # Corresponds to the JSON property `dataSourceId`
644
- # @return [String]
645
- attr_accessor :data_source_id
646
-
647
- # The largest end time of all data points in this possibly partial
648
- # representation of the dataset. Time is in nanoseconds from epoch. This
649
- # should also match the second part of the dataset identifier.
650
- # Corresponds to the JSON property `maxEndTimeNs`
651
- # @return [Fixnum]
652
- attr_accessor :max_end_time_ns
653
-
654
- # The smallest start time of all data points in this possibly partial
655
- # representation of the dataset. Time is in nanoseconds from epoch. This
656
- # should also match the first part of the dataset identifier.
657
- # Corresponds to the JSON property `minStartTimeNs`
658
- # @return [Fixnum]
659
- attr_accessor :min_start_time_ns
660
-
661
- # This token will be set when a dataset is received in response to a GET
662
- # request and the dataset is too large to be included in a single response.
663
- # Provide this value in a subsequent GET request to return the next page of
664
- # data points within this dataset.
665
- # Corresponds to the JSON property `nextPageToken`
666
- # @return [String]
667
- attr_accessor :next_page_token
668
-
669
- # A partial list of data points contained in the dataset, ordered by largest
670
- # endTimeNanos first. This list is considered complete when retrieving a
671
- # small dataset and partial when patching a dataset or retrieving a dataset
672
- # that is too large to include in a single response.
673
- # Corresponds to the JSON property `point`
674
- # @return [Array<Google::Apis::FitnessV1::DataPoint>]
675
- attr_accessor :point
676
-
677
- def initialize(**args)
678
- update!(**args)
679
- end
680
-
681
- # Update properties of this object
682
- def update!(**args)
683
- @data_source_id = args[:data_source_id] if args.key?(:data_source_id)
684
- @max_end_time_ns = args[:max_end_time_ns] if args.key?(:max_end_time_ns)
685
- @min_start_time_ns = args[:min_start_time_ns] if args.key?(:min_start_time_ns)
686
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
687
- @point = args[:point] if args.key?(:point)
688
- end
689
- end
690
-
691
- # Representation of an integrated device (such as a phone or a wearable) that
692
- # can hold sensors. Each sensor is exposed as a data source.
693
- # The main purpose of the device information contained in this class is to
694
- # identify the hardware of a particular data source. This can be useful in
695
- # different ways, including:
696
- # <ul>
697
- # <li>Distinguishing two similar sensors on different devices (the step
698
- # counter on two nexus 5 phones, for instance)
699
- # <li>Display the source of data to the user (by using the device make /
700
- # model)
701
- # <li>Treat data differently depending on sensor type (accelerometers on a
702
- # watch may give different patterns than those on a phone)
703
- # <li>Build different analysis models for each device/version.
704
- # </ul>
705
- class Device
706
- include Google::Apis::Core::Hashable
707
-
708
- # Manufacturer of the product/hardware.
709
- # Corresponds to the JSON property `manufacturer`
710
- # @return [String]
711
- attr_accessor :manufacturer
712
-
713
- # End-user visible model name for the device.
714
- # Corresponds to the JSON property `model`
715
- # @return [String]
716
- attr_accessor :model
717
-
718
- # A constant representing the type of the device.
719
- # Corresponds to the JSON property `type`
720
- # @return [String]
721
- attr_accessor :type
722
-
723
- # The serial number or other unique ID for the hardware. This field is
724
- # obfuscated when read by any REST or Android client that did not create
725
- # the data source. Only the data source creator will see the uid field in
726
- # clear and normal form.
727
- # The obfuscation preserves equality; that is, given two IDs, if id1 == id2,
728
- # obfuscated(id1) == obfuscated(id2).
729
- # Corresponds to the JSON property `uid`
730
- # @return [String]
731
- attr_accessor :uid
732
-
733
- # Version string for the device hardware/software.
734
- # Corresponds to the JSON property `version`
735
- # @return [String]
736
- attr_accessor :version
737
-
738
- def initialize(**args)
739
- update!(**args)
740
- end
741
-
742
- # Update properties of this object
743
- def update!(**args)
744
- @manufacturer = args[:manufacturer] if args.key?(:manufacturer)
745
- @model = args[:model] if args.key?(:model)
746
- @type = args[:type] if args.key?(:type)
747
- @uid = args[:uid] if args.key?(:uid)
748
- @version = args[:version] if args.key?(:version)
749
- end
750
- end
751
-
752
- #
753
- class ListDataPointChangesResponse
754
- include Google::Apis::Core::Hashable
755
-
756
- # The data stream ID of the data source with data point changes.
757
- # Corresponds to the JSON property `dataSourceId`
758
- # @return [String]
759
- attr_accessor :data_source_id
760
-
761
- # Deleted data points for the user. Note, for modifications this should be
762
- # parsed before handling insertions.
763
- # Corresponds to the JSON property `deletedDataPoint`
764
- # @return [Array<Google::Apis::FitnessV1::DataPoint>]
765
- attr_accessor :deleted_data_point
766
-
767
- # Inserted data points for the user.
768
- # Corresponds to the JSON property `insertedDataPoint`
769
- # @return [Array<Google::Apis::FitnessV1::DataPoint>]
770
- attr_accessor :inserted_data_point
771
-
772
- # The continuation token, which is used to page through large result sets.
773
- # Provide this value in a subsequent request to return the next page of
774
- # results.
775
- # Corresponds to the JSON property `nextPageToken`
776
- # @return [String]
777
- attr_accessor :next_page_token
778
-
779
- def initialize(**args)
780
- update!(**args)
781
- end
782
-
783
- # Update properties of this object
784
- def update!(**args)
785
- @data_source_id = args[:data_source_id] if args.key?(:data_source_id)
786
- @deleted_data_point = args[:deleted_data_point] if args.key?(:deleted_data_point)
787
- @inserted_data_point = args[:inserted_data_point] if args.key?(:inserted_data_point)
788
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
789
- end
790
- end
791
-
792
- #
793
- class ListDataSourcesResponse
794
- include Google::Apis::Core::Hashable
795
-
796
- # A previously created data source.
797
- # Corresponds to the JSON property `dataSource`
798
- # @return [Array<Google::Apis::FitnessV1::DataSource>]
799
- attr_accessor :data_source
800
-
801
- def initialize(**args)
802
- update!(**args)
803
- end
804
-
805
- # Update properties of this object
806
- def update!(**args)
807
- @data_source = args[:data_source] if args.key?(:data_source)
808
- end
809
- end
810
-
811
- #
812
- class ListSessionsResponse
813
- include Google::Apis::Core::Hashable
814
-
815
- # If <code>includeDeleted</code> is set to true in the request, and
816
- # <var>startTime</var> and <var>endTime</var> are omitted, this will include
817
- # sessions which were deleted since the last sync.
818
- # Corresponds to the JSON property `deletedSession`
819
- # @return [Array<Google::Apis::FitnessV1::Session>]
820
- attr_accessor :deleted_session
821
-
822
- # Flag to indicate server has more data to transfer.
823
- # DO NOT USE THIS FIELD. It is never populated in responses from the server.
824
- # Corresponds to the JSON property `hasMoreData`
825
- # @return [Boolean]
826
- attr_accessor :has_more_data
827
- alias_method :has_more_data?, :has_more_data
828
-
829
- # The sync token which is used to sync further changes. This will only be
830
- # provided if both <var>startTime</var> and <var>endTime</var> are omitted
831
- # from the request.
832
- # Corresponds to the JSON property `nextPageToken`
833
- # @return [String]
834
- attr_accessor :next_page_token
835
-
836
- # Sessions with an end time that is between <var>startTime</var> and
837
- # <var>endTime</var> of the request.
838
- # Corresponds to the JSON property `session`
839
- # @return [Array<Google::Apis::FitnessV1::Session>]
840
- attr_accessor :session
841
-
842
- def initialize(**args)
843
- update!(**args)
844
- end
845
-
846
- # Update properties of this object
847
- def update!(**args)
848
- @deleted_session = args[:deleted_session] if args.key?(:deleted_session)
849
- @has_more_data = args[:has_more_data] if args.key?(:has_more_data)
850
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
851
- @session = args[:session] if args.key?(:session)
852
- end
853
- end
854
-
855
- # Holder object for the value of an entry in a map field of a data point.
856
- # A map value supports a subset of the formats that the regular Value supports.
857
- class MapValue
858
- include Google::Apis::Core::Hashable
859
-
860
- # Floating point value.
861
- # Corresponds to the JSON property `fpVal`
862
- # @return [Float]
863
- attr_accessor :fp_val
864
-
865
- def initialize(**args)
866
- update!(**args)
867
- end
868
-
869
- # Update properties of this object
870
- def update!(**args)
871
- @fp_val = args[:fp_val] if args.key?(:fp_val)
872
- end
873
- end
874
-
875
- # Sessions contain metadata, such as a user-friendly name and time interval
876
- # information.
877
- class Session
878
- include Google::Apis::Core::Hashable
879
-
880
- # Session active time. While start_time_millis and end_time_millis define
881
- # the full session time, the active time can be shorter and specified by
882
- # active_time_millis.
883
- # If the inactive time during the session is known, it should also be
884
- # inserted via a com.google.activity.segment data point with a STILL
885
- # activity value
886
- # Corresponds to the JSON property `activeTimeMillis`
887
- # @return [Fixnum]
888
- attr_accessor :active_time_millis
889
-
890
- # The type of activity this session represents.
891
- # Corresponds to the JSON property `activityType`
892
- # @return [Fixnum]
893
- attr_accessor :activity_type
894
-
895
- # The application that created the session.
896
- # Corresponds to the JSON property `application`
897
- # @return [Google::Apis::FitnessV1::Application]
898
- attr_accessor :application
899
-
900
- # A description for this session.
901
- # Corresponds to the JSON property `description`
902
- # @return [String]
903
- attr_accessor :description
904
-
905
- # An end time, in milliseconds since epoch, inclusive.
906
- # Corresponds to the JSON property `endTimeMillis`
907
- # @return [Fixnum]
908
- attr_accessor :end_time_millis
909
-
910
- # A client-generated identifier that is unique across all sessions owned by
911
- # this particular user.
912
- # Corresponds to the JSON property `id`
913
- # @return [String]
914
- attr_accessor :id
915
-
916
- # A timestamp that indicates when the session was last modified.
917
- # Corresponds to the JSON property `modifiedTimeMillis`
918
- # @return [Fixnum]
919
- attr_accessor :modified_time_millis
920
-
921
- # A human readable name of the session.
922
- # Corresponds to the JSON property `name`
923
- # @return [String]
924
- attr_accessor :name
925
-
926
- # A start time, in milliseconds since epoch, inclusive.
927
- # Corresponds to the JSON property `startTimeMillis`
928
- # @return [Fixnum]
929
- attr_accessor :start_time_millis
930
-
931
- def initialize(**args)
932
- update!(**args)
933
- end
934
-
935
- # Update properties of this object
936
- def update!(**args)
937
- @active_time_millis = args[:active_time_millis] if args.key?(:active_time_millis)
938
- @activity_type = args[:activity_type] if args.key?(:activity_type)
939
- @application = args[:application] if args.key?(:application)
940
- @description = args[:description] if args.key?(:description)
941
- @end_time_millis = args[:end_time_millis] if args.key?(:end_time_millis)
942
- @id = args[:id] if args.key?(:id)
943
- @modified_time_millis = args[:modified_time_millis] if args.key?(:modified_time_millis)
944
- @name = args[:name] if args.key?(:name)
945
- @start_time_millis = args[:start_time_millis] if args.key?(:start_time_millis)
946
- end
947
- end
948
-
949
- # Holder object for the value of a single field in a data point.
950
- # A field value has a particular format and is only ever set to one of an
951
- # integer or a floating point value.
952
- class Value
953
- include Google::Apis::Core::Hashable
954
-
955
- # Floating point value. When this is set, other values must not be set.
956
- # Corresponds to the JSON property `fpVal`
957
- # @return [Float]
958
- attr_accessor :fp_val
959
-
960
- # Integer value. When this is set, other values must not be set.
961
- # Corresponds to the JSON property `intVal`
962
- # @return [Fixnum]
963
- attr_accessor :int_val
964
-
965
- # Map value. The valid key space and units for the corresponding value
966
- # of each entry should be documented as part of the data type definition.
967
- # Keys should be kept small whenever possible. Data streams with large keys
968
- # and high data frequency may be down sampled.
969
- # Corresponds to the JSON property `mapVal`
970
- # @return [Array<Google::Apis::FitnessV1::ValueMapValEntry>]
971
- attr_accessor :map_val
972
-
973
- # String value. When this is set, other values must not be set.
974
- # Strings should be kept small whenever possible. Data streams with large
975
- # string values and high data frequency may be down sampled.
976
- # Corresponds to the JSON property `stringVal`
977
- # @return [String]
978
- attr_accessor :string_val
979
-
980
- def initialize(**args)
981
- update!(**args)
982
- end
983
-
984
- # Update properties of this object
985
- def update!(**args)
986
- @fp_val = args[:fp_val] if args.key?(:fp_val)
987
- @int_val = args[:int_val] if args.key?(:int_val)
988
- @map_val = args[:map_val] if args.key?(:map_val)
989
- @string_val = args[:string_val] if args.key?(:string_val)
990
- end
991
- end
992
-
993
- #
994
- class ValueMapValEntry
995
- include Google::Apis::Core::Hashable
996
-
997
- #
998
- # Corresponds to the JSON property `key`
999
- # @return [String]
1000
- attr_accessor :key
1001
-
1002
- # Holder object for the value of an entry in a map field of a data point.
1003
- # A map value supports a subset of the formats that the regular Value supports.
1004
- # Corresponds to the JSON property `value`
1005
- # @return [Google::Apis::FitnessV1::MapValue]
1006
- attr_accessor :value
1007
-
1008
- def initialize(**args)
1009
- update!(**args)
1010
- end
1011
-
1012
- # Update properties of this object
1013
- def update!(**args)
1014
- @key = args[:key] if args.key?(:key)
1015
- @value = args[:value] if args.key?(:value)
1016
- end
1017
- end
1018
- end
1019
- end
1020
- end