google-api-client 0.41.1 → 0.43.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (571) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +352 -0
  3. data/bin/generate-api +1 -3
  4. data/generated/google/apis/abusiveexperiencereport_v1.rb +1 -1
  5. data/generated/google/apis/abusiveexperiencereport_v1/classes.rb +8 -13
  6. data/generated/google/apis/abusiveexperiencereport_v1/service.rb +2 -3
  7. data/generated/google/apis/accessapproval_v1.rb +1 -1
  8. data/generated/google/apis/accessapproval_v1/classes.rb +9 -0
  9. data/generated/google/apis/accessapproval_v1/representations.rb +1 -0
  10. data/generated/google/apis/accessapproval_v1/service.rb +3 -0
  11. data/generated/google/apis/accessapproval_v1beta1.rb +1 -1
  12. data/generated/google/apis/accessapproval_v1beta1/service.rb +3 -0
  13. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  14. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +523 -653
  15. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +467 -631
  16. data/generated/google/apis/adexperiencereport_v1.rb +1 -1
  17. data/generated/google/apis/adexperiencereport_v1/classes.rb +11 -18
  18. data/generated/google/apis/adexperiencereport_v1/service.rb +2 -3
  19. data/generated/google/apis/admob_v1.rb +1 -1
  20. data/generated/google/apis/admob_v1/classes.rb +139 -268
  21. data/generated/google/apis/admob_v1/service.rb +11 -13
  22. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  23. data/generated/google/apis/alertcenter_v1beta1/classes.rb +107 -138
  24. data/generated/google/apis/alertcenter_v1beta1/service.rb +50 -55
  25. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  26. data/generated/google/apis/analyticsreporting_v4/classes.rb +315 -399
  27. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  28. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +199 -220
  29. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +55 -61
  30. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  31. data/generated/google/apis/androidenterprise_v1/classes.rb +452 -557
  32. data/generated/google/apis/androidenterprise_v1/service.rb +181 -240
  33. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  34. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  35. data/generated/google/apis/androidpublisher_v3/classes.rb +356 -339
  36. data/generated/google/apis/androidpublisher_v3/representations.rb +44 -0
  37. data/generated/google/apis/androidpublisher_v3/service.rb +272 -152
  38. data/generated/google/apis/apigee_v1.rb +6 -7
  39. data/generated/google/apis/apigee_v1/classes.rb +1898 -1067
  40. data/generated/google/apis/apigee_v1/representations.rb +542 -0
  41. data/generated/google/apis/apigee_v1/service.rb +1895 -1090
  42. data/generated/google/apis/appengine_v1.rb +1 -1
  43. data/generated/google/apis/appengine_v1/service.rb +6 -3
  44. data/generated/google/apis/appengine_v1beta.rb +1 -1
  45. data/generated/google/apis/appengine_v1beta/service.rb +6 -2
  46. data/generated/google/apis/appsmarket_v2.rb +1 -1
  47. data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
  48. data/generated/google/apis/bigquery_v2.rb +1 -1
  49. data/generated/google/apis/bigquery_v2/classes.rb +198 -3
  50. data/generated/google/apis/bigquery_v2/representations.rb +70 -0
  51. data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
  52. data/generated/google/apis/bigqueryreservation_v1/classes.rb +34 -0
  53. data/generated/google/apis/bigqueryreservation_v1/representations.rb +16 -0
  54. data/generated/google/apis/bigqueryreservation_v1/service.rb +60 -0
  55. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  56. data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +8 -0
  57. data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +1 -0
  58. data/generated/google/apis/bigtableadmin_v1.rb +1 -1
  59. data/generated/google/apis/bigtableadmin_v1/classes.rb +267 -0
  60. data/generated/google/apis/bigtableadmin_v1/representations.rb +100 -0
  61. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  62. data/generated/google/apis/bigtableadmin_v2/classes.rb +361 -6
  63. data/generated/google/apis/bigtableadmin_v2/representations.rb +146 -0
  64. data/generated/google/apis/bigtableadmin_v2/service.rb +298 -0
  65. data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
  66. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +103 -109
  67. data/generated/google/apis/billingbudgets_v1beta1/representations.rb +1 -0
  68. data/generated/google/apis/billingbudgets_v1beta1/service.rb +30 -33
  69. data/generated/google/apis/blogger_v2.rb +2 -3
  70. data/generated/google/apis/blogger_v2/classes.rb +1 -2
  71. data/generated/google/apis/blogger_v2/service.rb +1 -2
  72. data/generated/google/apis/blogger_v3.rb +2 -3
  73. data/generated/google/apis/blogger_v3/classes.rb +1 -2
  74. data/generated/google/apis/blogger_v3/service.rb +1 -2
  75. data/generated/google/apis/books_v1.rb +1 -1
  76. data/generated/google/apis/books_v1/classes.rb +140 -159
  77. data/generated/google/apis/books_v1/service.rb +47 -49
  78. data/generated/google/apis/chat_v1.rb +1 -1
  79. data/generated/google/apis/chat_v1/classes.rb +130 -0
  80. data/generated/google/apis/chat_v1/representations.rb +63 -0
  81. data/generated/google/apis/chat_v1/service.rb +71 -0
  82. data/generated/google/apis/chromeuxreport_v1.rb +1 -1
  83. data/generated/google/apis/chromeuxreport_v1/classes.rb +68 -57
  84. data/generated/google/apis/chromeuxreport_v1/representations.rb +2 -0
  85. data/generated/google/apis/civicinfo_v2.rb +1 -1
  86. data/generated/google/apis/civicinfo_v2/classes.rb +9 -1
  87. data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
  88. data/generated/google/apis/civicinfo_v2/service.rb +1 -1
  89. data/generated/google/apis/classroom_v1.rb +1 -1
  90. data/generated/google/apis/classroom_v1/classes.rb +250 -365
  91. data/generated/google/apis/classroom_v1/service.rb +645 -900
  92. data/generated/google/apis/cloudasset_v1.rb +1 -1
  93. data/generated/google/apis/cloudasset_v1/classes.rb +15 -11
  94. data/generated/google/apis/cloudasset_v1/service.rb +62 -45
  95. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  96. data/generated/google/apis/cloudasset_v1beta1/classes.rb +3 -1
  97. data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
  98. data/generated/google/apis/{androidpublisher_v1_1.rb → cloudasset_v1p5beta1.rb} +11 -11
  99. data/generated/google/apis/cloudasset_v1p5beta1/classes.rb +1539 -0
  100. data/generated/google/apis/cloudasset_v1p5beta1/representations.rb +399 -0
  101. data/generated/google/apis/cloudasset_v1p5beta1/service.rb +129 -0
  102. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  103. data/generated/google/apis/cloudbuild_v1/classes.rb +272 -12
  104. data/generated/google/apis/cloudbuild_v1/representations.rb +130 -4
  105. data/generated/google/apis/cloudbuild_v1/service.rb +0 -94
  106. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  107. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +284 -24
  108. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +135 -9
  109. data/generated/google/apis/cloudbuild_v1alpha1/service.rb +0 -47
  110. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  111. data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +284 -24
  112. data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +135 -9
  113. data/generated/google/apis/cloudbuild_v1alpha2/service.rb +0 -47
  114. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  115. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +7 -0
  116. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +1 -0
  117. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  118. data/generated/google/apis/cloudfunctions_v1/classes.rb +12 -43
  119. data/generated/google/apis/cloudfunctions_v1/representations.rb +2 -17
  120. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  121. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +32 -1
  122. data/generated/google/apis/cloudidentity_v1beta1/representations.rb +16 -0
  123. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  124. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +503 -754
  125. data/generated/google/apis/cloudresourcemanager_v1/service.rb +198 -249
  126. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  127. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +258 -429
  128. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +136 -178
  129. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  130. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +258 -414
  131. data/generated/google/apis/cloudresourcemanager_v2/service.rb +96 -129
  132. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  133. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +258 -414
  134. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +96 -129
  135. data/generated/google/apis/cloudscheduler_v1.rb +1 -1
  136. data/generated/google/apis/cloudscheduler_v1/classes.rb +16 -5
  137. data/generated/google/apis/cloudscheduler_v1/representations.rb +1 -0
  138. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  139. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +16 -5
  140. data/generated/google/apis/cloudscheduler_v1beta1/representations.rb +1 -0
  141. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  142. data/generated/google/apis/cloudsearch_v1/classes.rb +1 -2
  143. data/generated/google/apis/cloudshell_v1.rb +1 -1
  144. data/generated/google/apis/cloudshell_v1/classes.rb +2 -2
  145. data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
  146. data/generated/google/apis/cloudshell_v1alpha1/classes.rb +8 -5
  147. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  148. data/generated/google/apis/cloudtrace_v1/classes.rb +2 -3
  149. data/generated/google/apis/cloudtrace_v1/service.rb +1 -7
  150. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  151. data/generated/google/apis/cloudtrace_v2/classes.rb +6 -5
  152. data/generated/google/apis/cloudtrace_v2/service.rb +3 -6
  153. data/generated/google/apis/compute_alpha.rb +1 -1
  154. data/generated/google/apis/compute_alpha/classes.rb +402 -48
  155. data/generated/google/apis/compute_alpha/representations.rb +103 -0
  156. data/generated/google/apis/compute_alpha/service.rb +38 -36
  157. data/generated/google/apis/compute_beta.rb +1 -1
  158. data/generated/google/apis/compute_beta/classes.rb +371 -41
  159. data/generated/google/apis/compute_beta/representations.rb +94 -0
  160. data/generated/google/apis/compute_beta/service.rb +347 -36
  161. data/generated/google/apis/compute_v1.rb +1 -1
  162. data/generated/google/apis/compute_v1/classes.rb +397 -40
  163. data/generated/google/apis/compute_v1/representations.rb +110 -0
  164. data/generated/google/apis/compute_v1/service.rb +341 -48
  165. data/generated/google/apis/container_v1.rb +1 -1
  166. data/generated/google/apis/container_v1/classes.rb +129 -2
  167. data/generated/google/apis/container_v1/representations.rb +51 -0
  168. data/generated/google/apis/container_v1beta1.rb +1 -1
  169. data/generated/google/apis/container_v1beta1/classes.rb +136 -17
  170. data/generated/google/apis/container_v1beta1/representations.rb +39 -0
  171. data/generated/google/apis/content_v2.rb +1 -1
  172. data/generated/google/apis/content_v2/classes.rb +17 -2
  173. data/generated/google/apis/content_v2/representations.rb +1 -0
  174. data/generated/google/apis/content_v2_1.rb +1 -1
  175. data/generated/google/apis/content_v2_1/classes.rb +19 -4
  176. data/generated/google/apis/content_v2_1/representations.rb +1 -0
  177. data/generated/google/apis/{androidpublisher_v1.rb → customsearch_v1.rb} +8 -8
  178. data/generated/google/apis/customsearch_v1/classes.rb +1421 -0
  179. data/generated/google/apis/customsearch_v1/representations.rb +372 -0
  180. data/generated/google/apis/customsearch_v1/service.rb +461 -0
  181. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  182. data/generated/google/apis/datacatalog_v1beta1/classes.rb +6 -3
  183. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  184. data/generated/google/apis/dataflow_v1b3/classes.rb +21 -1
  185. data/generated/google/apis/dataflow_v1b3/representations.rb +3 -0
  186. data/generated/google/apis/dataflow_v1b3/service.rb +2 -2
  187. data/generated/google/apis/datafusion_v1.rb +43 -0
  188. data/generated/google/apis/datafusion_v1/classes.rb +1154 -0
  189. data/generated/google/apis/{cloudfunctions_v1beta2 → datafusion_v1}/representations.rb +138 -93
  190. data/generated/google/apis/datafusion_v1/service.rb +680 -0
  191. data/generated/google/apis/dataproc_v1.rb +1 -1
  192. data/generated/google/apis/dataproc_v1/classes.rb +207 -330
  193. data/generated/google/apis/dataproc_v1/service.rb +134 -168
  194. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  195. data/generated/google/apis/dataproc_v1beta2/classes.rb +236 -325
  196. data/generated/google/apis/dataproc_v1beta2/representations.rb +4 -0
  197. data/generated/google/apis/dataproc_v1beta2/service.rb +137 -192
  198. data/generated/google/apis/datastore_v1.rb +1 -1
  199. data/generated/google/apis/datastore_v1/classes.rb +1 -1
  200. data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
  201. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  202. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  203. data/generated/google/apis/dfareporting_v3_4.rb +1 -1
  204. data/generated/google/apis/dfareporting_v3_4/classes.rb +421 -0
  205. data/generated/google/apis/dfareporting_v3_4/representations.rb +182 -0
  206. data/generated/google/apis/dialogflow_v2.rb +1 -1
  207. data/generated/google/apis/dialogflow_v2/classes.rb +1341 -1513
  208. data/generated/google/apis/dialogflow_v2/representations.rb +31 -0
  209. data/generated/google/apis/dialogflow_v2/service.rb +324 -444
  210. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  211. data/generated/google/apis/dialogflow_v2beta1/classes.rb +1419 -1591
  212. data/generated/google/apis/dialogflow_v2beta1/representations.rb +31 -0
  213. data/generated/google/apis/dialogflow_v2beta1/service.rb +780 -1022
  214. data/generated/google/apis/displayvideo_v1.rb +7 -1
  215. data/generated/google/apis/displayvideo_v1/classes.rb +1776 -1728
  216. data/generated/google/apis/displayvideo_v1/representations.rb +300 -0
  217. data/generated/google/apis/displayvideo_v1/service.rb +1277 -929
  218. data/generated/google/apis/dlp_v2.rb +1 -1
  219. data/generated/google/apis/dlp_v2/classes.rb +10 -6
  220. data/generated/google/apis/dns_v1.rb +4 -4
  221. data/generated/google/apis/dns_v1/classes.rb +313 -162
  222. data/generated/google/apis/dns_v1/service.rb +247 -180
  223. data/generated/google/apis/dns_v1beta2.rb +4 -4
  224. data/generated/google/apis/dns_v1beta2/classes.rb +325 -171
  225. data/generated/google/apis/dns_v1beta2/service.rb +247 -180
  226. data/generated/google/apis/dns_v2beta1.rb +4 -4
  227. data/generated/google/apis/dns_v2beta1/classes.rb +313 -162
  228. data/generated/google/apis/dns_v2beta1/service.rb +247 -180
  229. data/generated/google/apis/domainsrdap_v1.rb +1 -1
  230. data/generated/google/apis/domainsrdap_v1/classes.rb +42 -69
  231. data/generated/google/apis/domainsrdap_v1/service.rb +16 -16
  232. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  233. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -1
  234. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +4 -2
  235. data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
  236. data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +196 -1
  237. data/generated/google/apis/doubleclickbidmanager_v1_1/representations.rb +107 -0
  238. data/generated/google/apis/doubleclickbidmanager_v1_1/service.rb +4 -2
  239. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  240. data/generated/google/apis/doubleclicksearch_v2/classes.rb +109 -126
  241. data/generated/google/apis/doubleclicksearch_v2/service.rb +3 -4
  242. data/generated/google/apis/drive_v2.rb +1 -1
  243. data/generated/google/apis/drive_v2/classes.rb +77 -2
  244. data/generated/google/apis/drive_v2/representations.rb +23 -0
  245. data/generated/google/apis/drive_v2/service.rb +23 -10
  246. data/generated/google/apis/drive_v3.rb +1 -1
  247. data/generated/google/apis/drive_v3/classes.rb +82 -2
  248. data/generated/google/apis/drive_v3/representations.rb +24 -0
  249. data/generated/google/apis/drive_v3/service.rb +8 -5
  250. data/generated/google/apis/driveactivity_v2.rb +1 -1
  251. data/generated/google/apis/driveactivity_v2/classes.rb +55 -68
  252. data/generated/google/apis/factchecktools_v1alpha1.rb +1 -1
  253. data/generated/google/apis/factchecktools_v1alpha1/classes.rb +46 -56
  254. data/generated/google/apis/factchecktools_v1alpha1/service.rb +30 -33
  255. data/generated/google/apis/fcm_v1.rb +1 -1
  256. data/generated/google/apis/fcm_v1/classes.rb +245 -393
  257. data/generated/google/apis/fcm_v1/service.rb +5 -6
  258. data/generated/google/apis/file_v1.rb +1 -1
  259. data/generated/google/apis/file_v1beta1.rb +1 -1
  260. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  261. data/generated/google/apis/firebase_v1beta1/classes.rb +313 -351
  262. data/generated/google/apis/firebase_v1beta1/representations.rb +1 -0
  263. data/generated/google/apis/firebase_v1beta1/service.rb +356 -420
  264. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  265. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +89 -112
  266. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +18 -21
  267. data/generated/google/apis/{androidpublisher_v2.rb → firebasehosting_v1.rb} +11 -12
  268. data/generated/google/apis/firebasehosting_v1/classes.rb +182 -0
  269. data/generated/google/apis/{androidpublisher_v2 → firebasehosting_v1}/representations.rb +22 -32
  270. data/generated/google/apis/firebasehosting_v1/service.rb +180 -0
  271. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  272. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +148 -177
  273. data/generated/google/apis/firebasehosting_v1beta1/service.rb +112 -143
  274. data/generated/google/apis/firebaseml_v1.rb +1 -1
  275. data/generated/google/apis/firebaseml_v1/classes.rb +39 -44
  276. data/generated/google/apis/firebaseml_v1/service.rb +19 -22
  277. data/generated/google/apis/firebaseml_v1beta2.rb +1 -1
  278. data/generated/google/apis/firebaseml_v1beta2/classes.rb +67 -68
  279. data/generated/google/apis/firebaseml_v1beta2/representations.rb +1 -0
  280. data/generated/google/apis/firebaseml_v1beta2/service.rb +16 -18
  281. data/generated/google/apis/firestore_v1.rb +1 -1
  282. data/generated/google/apis/firestore_v1/classes.rb +152 -0
  283. data/generated/google/apis/firestore_v1/representations.rb +63 -0
  284. data/generated/google/apis/firestore_v1/service.rb +78 -0
  285. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  286. data/generated/google/apis/firestore_v1beta1/classes.rb +152 -0
  287. data/generated/google/apis/firestore_v1beta1/representations.rb +63 -0
  288. data/generated/google/apis/firestore_v1beta1/service.rb +78 -0
  289. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  290. data/generated/google/apis/games_configuration_v1configuration/service.rb +2 -2
  291. data/generated/google/apis/games_management_v1management.rb +1 -1
  292. data/generated/google/apis/games_management_v1management/service.rb +2 -2
  293. data/generated/google/apis/games_v1.rb +6 -4
  294. data/generated/google/apis/games_v1/classes.rb +354 -2112
  295. data/generated/google/apis/games_v1/representations.rb +12 -647
  296. data/generated/google/apis/games_v1/service.rb +213 -1155
  297. data/generated/google/apis/{cloudfunctions_v1beta2.rb → gameservices_v1.rb} +9 -9
  298. data/generated/google/apis/gameservices_v1/classes.rb +2175 -0
  299. data/generated/google/apis/gameservices_v1/representations.rb +971 -0
  300. data/generated/google/apis/gameservices_v1/service.rb +1432 -0
  301. data/generated/google/apis/gameservices_v1beta.rb +1 -1
  302. data/generated/google/apis/gameservices_v1beta/classes.rb +344 -523
  303. data/generated/google/apis/gameservices_v1beta/service.rb +167 -207
  304. data/generated/google/apis/genomics_v1.rb +1 -1
  305. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  306. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  307. data/generated/google/apis/genomics_v2alpha1/classes.rb +3 -75
  308. data/generated/google/apis/genomics_v2alpha1/representations.rb +0 -27
  309. data/generated/google/apis/genomics_v2alpha1/service.rb +0 -34
  310. data/generated/google/apis/gmail_v1.rb +3 -3
  311. data/generated/google/apis/gmail_v1/classes.rb +216 -269
  312. data/generated/google/apis/gmail_v1/service.rb +260 -288
  313. data/generated/google/apis/gmailpostmastertools_v1beta1.rb +36 -0
  314. data/generated/google/apis/gmailpostmastertools_v1beta1/classes.rb +301 -0
  315. data/generated/google/apis/gmailpostmastertools_v1beta1/representations.rb +141 -0
  316. data/generated/google/apis/gmailpostmastertools_v1beta1/service.rb +230 -0
  317. data/generated/google/apis/groupssettings_v1.rb +1 -1
  318. data/generated/google/apis/groupssettings_v1/classes.rb +1 -1
  319. data/generated/google/apis/healthcare_v1.rb +1 -1
  320. data/generated/google/apis/healthcare_v1/service.rb +72 -13
  321. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  322. data/generated/google/apis/healthcare_v1beta1/classes.rb +85 -17
  323. data/generated/google/apis/healthcare_v1beta1/representations.rb +39 -0
  324. data/generated/google/apis/healthcare_v1beta1/service.rb +146 -16
  325. data/generated/google/apis/iam_v1.rb +1 -1
  326. data/generated/google/apis/iam_v1/classes.rb +22 -3
  327. data/generated/google/apis/iam_v1/service.rb +18 -6
  328. data/generated/google/apis/language_v1.rb +1 -1
  329. data/generated/google/apis/language_v1/classes.rb +93 -111
  330. data/generated/google/apis/language_v1/service.rb +4 -4
  331. data/generated/google/apis/language_v1beta1.rb +1 -1
  332. data/generated/google/apis/language_v1beta1/classes.rb +78 -90
  333. data/generated/google/apis/language_v1beta1/service.rb +2 -2
  334. data/generated/google/apis/language_v1beta2.rb +1 -1
  335. data/generated/google/apis/language_v1beta2/classes.rb +95 -112
  336. data/generated/google/apis/language_v1beta2/service.rb +4 -4
  337. data/generated/google/apis/libraryagent_v1.rb +1 -1
  338. data/generated/google/apis/libraryagent_v1/classes.rb +10 -16
  339. data/generated/google/apis/libraryagent_v1/service.rb +13 -16
  340. data/generated/google/apis/logging_v2.rb +1 -1
  341. data/generated/google/apis/logging_v2/classes.rb +6 -6
  342. data/generated/google/apis/managedidentities_v1.rb +1 -1
  343. data/generated/google/apis/managedidentities_v1/classes.rb +355 -437
  344. data/generated/google/apis/managedidentities_v1/representations.rb +15 -0
  345. data/generated/google/apis/managedidentities_v1/service.rb +78 -96
  346. data/generated/google/apis/managedidentities_v1alpha1.rb +1 -1
  347. data/generated/google/apis/managedidentities_v1alpha1/classes.rb +365 -442
  348. data/generated/google/apis/managedidentities_v1alpha1/representations.rb +15 -0
  349. data/generated/google/apis/managedidentities_v1alpha1/service.rb +88 -109
  350. data/generated/google/apis/managedidentities_v1beta1.rb +1 -1
  351. data/generated/google/apis/managedidentities_v1beta1/classes.rb +361 -441
  352. data/generated/google/apis/managedidentities_v1beta1/representations.rb +15 -0
  353. data/generated/google/apis/managedidentities_v1beta1/service.rb +76 -93
  354. data/generated/google/apis/{groupsmigration_v1.rb → memcache_v1.rb} +11 -11
  355. data/generated/google/apis/memcache_v1/classes.rb +1157 -0
  356. data/generated/google/apis/memcache_v1/representations.rb +471 -0
  357. data/generated/google/apis/{cloudfunctions_v1beta2 → memcache_v1}/service.rb +268 -196
  358. data/generated/google/apis/memcache_v1beta2.rb +1 -1
  359. data/generated/google/apis/memcache_v1beta2/classes.rb +42 -503
  360. data/generated/google/apis/memcache_v1beta2/representations.rb +9 -110
  361. data/generated/google/apis/memcache_v1beta2/service.rb +0 -119
  362. data/generated/google/apis/ml_v1.rb +1 -1
  363. data/generated/google/apis/ml_v1/classes.rb +23 -17
  364. data/generated/google/apis/monitoring_v1.rb +1 -1
  365. data/generated/google/apis/monitoring_v1/classes.rb +14 -12
  366. data/generated/google/apis/monitoring_v3.rb +1 -1
  367. data/generated/google/apis/monitoring_v3/classes.rb +97 -47
  368. data/generated/google/apis/monitoring_v3/representations.rb +3 -0
  369. data/generated/google/apis/monitoring_v3/service.rb +13 -9
  370. data/generated/google/apis/networkmanagement_v1.rb +1 -1
  371. data/generated/google/apis/networkmanagement_v1/classes.rb +6 -6
  372. data/generated/google/apis/networkmanagement_v1beta1.rb +1 -1
  373. data/generated/google/apis/networkmanagement_v1beta1/classes.rb +6 -6
  374. data/generated/google/apis/osconfig_v1.rb +1 -1
  375. data/generated/google/apis/osconfig_v1/classes.rb +798 -2
  376. data/generated/google/apis/osconfig_v1/representations.rb +372 -0
  377. data/generated/google/apis/osconfig_v1beta.rb +1 -1
  378. data/generated/google/apis/osconfig_v1beta/classes.rb +77 -2
  379. data/generated/google/apis/osconfig_v1beta/representations.rb +35 -0
  380. data/generated/google/apis/pagespeedonline_v5.rb +1 -1
  381. data/generated/google/apis/people_v1.rb +1 -1
  382. data/generated/google/apis/people_v1/classes.rb +382 -401
  383. data/generated/google/apis/people_v1/representations.rb +57 -0
  384. data/generated/google/apis/people_v1/service.rb +169 -385
  385. data/generated/google/apis/playcustomapp_v1.rb +1 -1
  386. data/generated/google/apis/playcustomapp_v1/classes.rb +2 -2
  387. data/generated/google/apis/policytroubleshooter_v1.rb +1 -1
  388. data/generated/google/apis/policytroubleshooter_v1/classes.rb +232 -394
  389. data/generated/google/apis/policytroubleshooter_v1/service.rb +2 -2
  390. data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
  391. data/generated/google/apis/policytroubleshooter_v1beta/classes.rb +232 -393
  392. data/generated/google/apis/policytroubleshooter_v1beta/service.rb +2 -2
  393. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  394. data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +122 -146
  395. data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +38 -49
  396. data/generated/google/apis/pubsub_v1.rb +1 -1
  397. data/generated/google/apis/pubsub_v1/classes.rb +45 -28
  398. data/generated/google/apis/pubsub_v1/representations.rb +2 -0
  399. data/generated/google/apis/pubsub_v1/service.rb +35 -44
  400. data/generated/google/apis/realtimebidding_v1.rb +1 -4
  401. data/generated/google/apis/realtimebidding_v1/classes.rb +198 -291
  402. data/generated/google/apis/realtimebidding_v1/service.rb +98 -135
  403. data/generated/google/apis/recommendationengine_v1beta1.rb +36 -0
  404. data/generated/google/apis/recommendationengine_v1beta1/classes.rb +2017 -0
  405. data/generated/google/apis/recommendationengine_v1beta1/representations.rb +848 -0
  406. data/generated/google/apis/recommendationengine_v1beta1/service.rb +990 -0
  407. data/generated/google/apis/recommender_v1.rb +1 -1
  408. data/generated/google/apis/recommender_v1/classes.rb +271 -84
  409. data/generated/google/apis/recommender_v1/representations.rb +96 -0
  410. data/generated/google/apis/recommender_v1/service.rb +143 -35
  411. data/generated/google/apis/recommender_v1beta1.rb +1 -1
  412. data/generated/google/apis/recommender_v1beta1/classes.rb +75 -99
  413. data/generated/google/apis/recommender_v1beta1/service.rb +43 -58
  414. data/generated/google/apis/redis_v1.rb +1 -1
  415. data/generated/google/apis/redis_v1/classes.rb +397 -0
  416. data/generated/google/apis/redis_v1/representations.rb +139 -0
  417. data/generated/google/apis/redis_v1beta1.rb +1 -1
  418. data/generated/google/apis/redis_v1beta1/classes.rb +397 -0
  419. data/generated/google/apis/redis_v1beta1/representations.rb +139 -0
  420. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  421. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  422. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  423. data/generated/google/apis/reseller_v1.rb +4 -3
  424. data/generated/google/apis/reseller_v1/classes.rb +219 -160
  425. data/generated/google/apis/reseller_v1/service.rb +247 -252
  426. data/generated/google/apis/run_v1.rb +1 -1
  427. data/generated/google/apis/run_v1/classes.rb +835 -1248
  428. data/generated/google/apis/run_v1/service.rb +233 -247
  429. data/generated/google/apis/run_v1alpha1.rb +1 -1
  430. data/generated/google/apis/run_v1alpha1/classes.rb +934 -1331
  431. data/generated/google/apis/run_v1alpha1/service.rb +321 -377
  432. data/generated/google/apis/run_v1beta1.rb +1 -1
  433. data/generated/google/apis/run_v1beta1/classes.rb +209 -276
  434. data/generated/google/apis/run_v1beta1/service.rb +16 -18
  435. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  436. data/generated/google/apis/runtimeconfig_v1/classes.rb +36 -40
  437. data/generated/google/apis/runtimeconfig_v1/service.rb +19 -22
  438. data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
  439. data/generated/google/apis/sasportal_v1alpha1/classes.rb +122 -146
  440. data/generated/google/apis/sasportal_v1alpha1/service.rb +38 -49
  441. data/generated/google/apis/searchconsole_v1.rb +4 -3
  442. data/generated/google/apis/searchconsole_v1/classes.rb +2 -2
  443. data/generated/google/apis/searchconsole_v1/service.rb +3 -2
  444. data/generated/google/apis/securitycenter_v1.rb +1 -1
  445. data/generated/google/apis/securitycenter_v1/classes.rb +574 -826
  446. data/generated/google/apis/securitycenter_v1/service.rb +250 -332
  447. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  448. data/generated/google/apis/securitycenter_v1beta1/classes.rb +521 -746
  449. data/generated/google/apis/securitycenter_v1beta1/service.rb +160 -202
  450. data/generated/google/apis/securitycenter_v1p1alpha1.rb +1 -1
  451. data/generated/google/apis/securitycenter_v1p1alpha1/classes.rb +176 -208
  452. data/generated/google/apis/securitycenter_v1p1alpha1/service.rb +21 -25
  453. data/generated/google/apis/securitycenter_v1p1beta1.rb +1 -1
  454. data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +545 -791
  455. data/generated/google/apis/securitycenter_v1p1beta1/service.rb +247 -330
  456. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  457. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +1150 -1784
  458. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +114 -141
  459. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
  460. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +1137 -1774
  461. data/generated/google/apis/serviceconsumermanagement_v1beta1/service.rb +52 -66
  462. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  463. data/generated/google/apis/servicecontrol_v1/classes.rb +6 -6
  464. data/generated/google/apis/servicecontrol_v2.rb +38 -0
  465. data/generated/google/apis/servicecontrol_v2/classes.rb +1121 -0
  466. data/generated/google/apis/servicecontrol_v2/representations.rb +405 -0
  467. data/generated/google/apis/servicecontrol_v2/service.rb +165 -0
  468. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  469. data/generated/google/apis/servicemanagement_v1/classes.rb +50 -2
  470. data/generated/google/apis/servicemanagement_v1/representations.rb +14 -0
  471. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  472. data/generated/google/apis/servicenetworking_v1/classes.rb +1119 -1758
  473. data/generated/google/apis/servicenetworking_v1/service.rb +94 -114
  474. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  475. data/generated/google/apis/servicenetworking_v1beta/classes.rb +1065 -1684
  476. data/generated/google/apis/servicenetworking_v1beta/service.rb +52 -63
  477. data/generated/google/apis/serviceusage_v1.rb +1 -1
  478. data/generated/google/apis/serviceusage_v1/classes.rb +1140 -1823
  479. data/generated/google/apis/serviceusage_v1/service.rb +63 -80
  480. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  481. data/generated/google/apis/serviceusage_v1beta1/classes.rb +1235 -1986
  482. data/generated/google/apis/serviceusage_v1beta1/service.rb +130 -162
  483. data/generated/google/apis/sheets_v4.rb +1 -1
  484. data/generated/google/apis/sheets_v4/classes.rb +28 -28
  485. data/generated/google/apis/spanner_v1.rb +1 -1
  486. data/generated/google/apis/spanner_v1/classes.rb +3 -2
  487. data/generated/google/apis/spanner_v1/service.rb +5 -0
  488. data/generated/google/apis/sql_v1beta4.rb +1 -1
  489. data/generated/google/apis/sql_v1beta4/classes.rb +207 -200
  490. data/generated/google/apis/sql_v1beta4/representations.rb +2 -1
  491. data/generated/google/apis/sql_v1beta4/service.rb +2 -2
  492. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  493. data/generated/google/apis/storagetransfer_v1/classes.rb +8 -10
  494. data/generated/google/apis/storagetransfer_v1/service.rb +26 -2
  495. data/generated/google/apis/tagmanager_v1.rb +2 -3
  496. data/generated/google/apis/tagmanager_v1/classes.rb +225 -288
  497. data/generated/google/apis/tagmanager_v1/service.rb +20 -21
  498. data/generated/google/apis/tagmanager_v2.rb +2 -3
  499. data/generated/google/apis/tagmanager_v2/classes.rb +240 -280
  500. data/generated/google/apis/tagmanager_v2/representations.rb +1 -0
  501. data/generated/google/apis/tagmanager_v2/service.rb +187 -283
  502. data/generated/google/apis/testing_v1.rb +1 -1
  503. data/generated/google/apis/testing_v1/classes.rb +80 -6
  504. data/generated/google/apis/testing_v1/representations.rb +33 -0
  505. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  506. data/generated/google/apis/toolresults_v1beta3/classes.rb +671 -928
  507. data/generated/google/apis/toolresults_v1beta3/representations.rb +1 -0
  508. data/generated/google/apis/toolresults_v1beta3/service.rb +522 -640
  509. data/generated/google/apis/tpu_v1.rb +1 -1
  510. data/generated/google/apis/tpu_v1/classes.rb +68 -78
  511. data/generated/google/apis/tpu_v1/service.rb +21 -25
  512. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  513. data/generated/google/apis/tpu_v1alpha1/classes.rb +68 -78
  514. data/generated/google/apis/tpu_v1alpha1/service.rb +21 -25
  515. data/generated/google/apis/translate_v3.rb +1 -1
  516. data/generated/google/apis/translate_v3/service.rb +14 -1
  517. data/generated/google/apis/translate_v3beta1.rb +1 -1
  518. data/generated/google/apis/translate_v3beta1/service.rb +14 -1
  519. data/generated/google/apis/vision_v1.rb +1 -1
  520. data/generated/google/apis/vision_v1/classes.rb +1304 -1868
  521. data/generated/google/apis/vision_v1/service.rb +254 -340
  522. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  523. data/generated/google/apis/vision_v1p1beta1/classes.rb +1246 -1788
  524. data/generated/google/apis/vision_v1p1beta1/service.rb +91 -121
  525. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  526. data/generated/google/apis/vision_v1p2beta1/classes.rb +1246 -1788
  527. data/generated/google/apis/vision_v1p2beta1/service.rb +91 -121
  528. data/generated/google/apis/webfonts_v1.rb +1 -1
  529. data/generated/google/apis/webfonts_v1/service.rb +2 -2
  530. data/generated/google/apis/websecurityscanner_v1.rb +1 -1
  531. data/generated/google/apis/websecurityscanner_v1/classes.rb +71 -95
  532. data/generated/google/apis/websecurityscanner_v1/service.rb +46 -65
  533. data/generated/google/apis/websecurityscanner_v1alpha.rb +1 -1
  534. data/generated/google/apis/websecurityscanner_v1alpha/classes.rb +55 -63
  535. data/generated/google/apis/websecurityscanner_v1alpha/service.rb +46 -65
  536. data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
  537. data/generated/google/apis/websecurityscanner_v1beta/classes.rb +77 -92
  538. data/generated/google/apis/websecurityscanner_v1beta/service.rb +46 -65
  539. data/generated/google/apis/youtube_analytics_v2.rb +1 -1
  540. data/generated/google/apis/youtube_analytics_v2/classes.rb +77 -104
  541. data/generated/google/apis/youtube_analytics_v2/service.rb +106 -126
  542. data/generated/google/apis/youtube_partner_v1.rb +4 -3
  543. data/generated/google/apis/youtube_partner_v1/classes.rb +1106 -690
  544. data/generated/google/apis/youtube_partner_v1/representations.rb +357 -256
  545. data/generated/google/apis/youtube_partner_v1/service.rb +519 -1079
  546. data/generated/google/apis/youtube_v3.rb +1 -1
  547. data/generated/google/apis/youtube_v3/classes.rb +1456 -1134
  548. data/generated/google/apis/youtube_v3/representations.rb +282 -0
  549. data/generated/google/apis/youtube_v3/service.rb +1225 -1274
  550. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  551. data/generated/google/apis/youtubereporting_v1/classes.rb +20 -29
  552. data/generated/google/apis/youtubereporting_v1/service.rb +40 -43
  553. data/lib/google/apis/core/base_service.rb +7 -1
  554. data/lib/google/apis/version.rb +1 -1
  555. metadata +39 -27
  556. data/generated/google/apis/androidpublisher_v1/classes.rb +0 -26
  557. data/generated/google/apis/androidpublisher_v1/representations.rb +0 -26
  558. data/generated/google/apis/androidpublisher_v1/service.rb +0 -64
  559. data/generated/google/apis/androidpublisher_v1_1/classes.rb +0 -94
  560. data/generated/google/apis/androidpublisher_v1_1/representations.rb +0 -45
  561. data/generated/google/apis/androidpublisher_v1_1/service.rb +0 -104
  562. data/generated/google/apis/androidpublisher_v2/classes.rb +0 -223
  563. data/generated/google/apis/androidpublisher_v2/service.rb +0 -160
  564. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +0 -841
  565. data/generated/google/apis/fitness_v1.rb +0 -85
  566. data/generated/google/apis/fitness_v1/classes.rb +0 -1020
  567. data/generated/google/apis/fitness_v1/representations.rb +0 -398
  568. data/generated/google/apis/fitness_v1/service.rb +0 -647
  569. data/generated/google/apis/groupsmigration_v1/classes.rb +0 -51
  570. data/generated/google/apis/groupsmigration_v1/representations.rb +0 -40
  571. data/generated/google/apis/groupsmigration_v1/service.rb +0 -100
@@ -138,6 +138,63 @@ module Google
138
138
  end
139
139
  end
140
140
 
141
+ # The request for Firestore.BatchWrite.
142
+ class BatchWriteRequest
143
+ include Google::Apis::Core::Hashable
144
+
145
+ # Labels associated with this batch write.
146
+ # Corresponds to the JSON property `labels`
147
+ # @return [Hash<String,String>]
148
+ attr_accessor :labels
149
+
150
+ # The writes to apply.
151
+ # Method does not apply writes atomically and does not guarantee ordering.
152
+ # Each write succeeds or fails independently. You cannot write to the same
153
+ # document more than once per request.
154
+ # Corresponds to the JSON property `writes`
155
+ # @return [Array<Google::Apis::FirestoreV1beta1::Write>]
156
+ attr_accessor :writes
157
+
158
+ def initialize(**args)
159
+ update!(**args)
160
+ end
161
+
162
+ # Update properties of this object
163
+ def update!(**args)
164
+ @labels = args[:labels] if args.key?(:labels)
165
+ @writes = args[:writes] if args.key?(:writes)
166
+ end
167
+ end
168
+
169
+ # The response from Firestore.BatchWrite.
170
+ class BatchWriteResponse
171
+ include Google::Apis::Core::Hashable
172
+
173
+ # The status of applying the writes.
174
+ # This i-th write status corresponds to the i-th write in the
175
+ # request.
176
+ # Corresponds to the JSON property `status`
177
+ # @return [Array<Google::Apis::FirestoreV1beta1::Status>]
178
+ attr_accessor :status
179
+
180
+ # The result of applying the writes.
181
+ # This i-th write result corresponds to the i-th write in the
182
+ # request.
183
+ # Corresponds to the JSON property `writeResults`
184
+ # @return [Array<Google::Apis::FirestoreV1beta1::WriteResult>]
185
+ attr_accessor :write_results
186
+
187
+ def initialize(**args)
188
+ update!(**args)
189
+ end
190
+
191
+ # Update properties of this object
192
+ def update!(**args)
193
+ @status = args[:status] if args.key?(:status)
194
+ @write_results = args[:write_results] if args.key?(:write_results)
195
+ end
196
+ end
197
+
141
198
  # The request for Firestore.BeginTransaction.
142
199
  class BeginTransactionRequest
143
200
  include Google::Apis::Core::Hashable
@@ -1430,6 +1487,101 @@ module Google
1430
1487
  end
1431
1488
  end
1432
1489
 
1490
+ # The request for Firestore.PartitionQuery.
1491
+ class PartitionQueryRequest
1492
+ include Google::Apis::Core::Hashable
1493
+
1494
+ # The maximum number of partitions to return in this call, subject to
1495
+ # `partition_count`.
1496
+ # For example, if `partition_count` = 10 and `page_size` = 8, the first call
1497
+ # to PartitionQuery will return up to 8 partitions and a `next_page_token`
1498
+ # if more results exist. A second call to PartitionQuery will return up to
1499
+ # 2 partitions, to complete the total of 10 specified in `partition_count`.
1500
+ # Corresponds to the JSON property `pageSize`
1501
+ # @return [Fixnum]
1502
+ attr_accessor :page_size
1503
+
1504
+ # The `next_page_token` value returned from a previous call to
1505
+ # PartitionQuery that may be used to get an additional set of results.
1506
+ # There are no ordering guarantees between sets of results. Thus, using
1507
+ # multiple sets of results will require merging the different result sets.
1508
+ # For example, two subsequent calls using a page_token may return:
1509
+ # * cursor B, cursor M, cursor Q
1510
+ # * cursor A, cursor U, cursor W
1511
+ # To obtain a complete result set ordered with respect to the results of the
1512
+ # query supplied to PartitionQuery, the results sets should be merged:
1513
+ # cursor A, cursor B, cursor M, cursor Q, cursor U, cursor W
1514
+ # Corresponds to the JSON property `pageToken`
1515
+ # @return [String]
1516
+ attr_accessor :page_token
1517
+
1518
+ # The desired maximum number of partition points.
1519
+ # The partitions may be returned across multiple pages of results.
1520
+ # The number must be strictly positive. The actual number of partitions
1521
+ # returned may be fewer.
1522
+ # For example, this may be set to one fewer than the number of parallel
1523
+ # queries to be run, or in running a data pipeline job, one fewer than the
1524
+ # number of workers or compute instances available.
1525
+ # Corresponds to the JSON property `partitionCount`
1526
+ # @return [Fixnum]
1527
+ attr_accessor :partition_count
1528
+
1529
+ # A Firestore query.
1530
+ # Corresponds to the JSON property `structuredQuery`
1531
+ # @return [Google::Apis::FirestoreV1beta1::StructuredQuery]
1532
+ attr_accessor :structured_query
1533
+
1534
+ def initialize(**args)
1535
+ update!(**args)
1536
+ end
1537
+
1538
+ # Update properties of this object
1539
+ def update!(**args)
1540
+ @page_size = args[:page_size] if args.key?(:page_size)
1541
+ @page_token = args[:page_token] if args.key?(:page_token)
1542
+ @partition_count = args[:partition_count] if args.key?(:partition_count)
1543
+ @structured_query = args[:structured_query] if args.key?(:structured_query)
1544
+ end
1545
+ end
1546
+
1547
+ # The response for Firestore.PartitionQuery.
1548
+ class PartitionQueryResponse
1549
+ include Google::Apis::Core::Hashable
1550
+
1551
+ # A page token that may be used to request an additional set of results, up
1552
+ # to the number specified by `partition_count` in the PartitionQuery request.
1553
+ # If blank, there are no more results.
1554
+ # Corresponds to the JSON property `nextPageToken`
1555
+ # @return [String]
1556
+ attr_accessor :next_page_token
1557
+
1558
+ # Partition results.
1559
+ # Each partition is a split point that can be used by RunQuery as a starting
1560
+ # or end point for the query results. The RunQuery requests must be made with
1561
+ # the same query supplied to this PartitionQuery request. The partition
1562
+ # cursors will be ordered according to same ordering as the results of the
1563
+ # query supplied to PartitionQuery.
1564
+ # For example, if a PartitionQuery request returns partition cursors A and B,
1565
+ # running the following three queries will return the entire result set of
1566
+ # the original query:
1567
+ # * query, end_at A
1568
+ # * query, start_at A, end_at B
1569
+ # * query, start_at B
1570
+ # Corresponds to the JSON property `partitions`
1571
+ # @return [Array<Google::Apis::FirestoreV1beta1::Cursor>]
1572
+ attr_accessor :partitions
1573
+
1574
+ def initialize(**args)
1575
+ update!(**args)
1576
+ end
1577
+
1578
+ # Update properties of this object
1579
+ def update!(**args)
1580
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1581
+ @partitions = args[:partitions] if args.key?(:partitions)
1582
+ end
1583
+ end
1584
+
1433
1585
  # A precondition on a document, used for conditional operations.
1434
1586
  class Precondition
1435
1587
  include Google::Apis::Core::Hashable
@@ -40,6 +40,18 @@ module Google
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
+ class BatchWriteRequest
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class BatchWriteResponse
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
43
55
  class BeginTransactionRequest
44
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
57
 
@@ -280,6 +292,18 @@ module Google
280
292
  include Google::Apis::Core::JsonObjectSupport
281
293
  end
282
294
 
295
+ class PartitionQueryRequest
296
+ class Representation < Google::Apis::Core::JsonRepresentation; end
297
+
298
+ include Google::Apis::Core::JsonObjectSupport
299
+ end
300
+
301
+ class PartitionQueryResponse
302
+ class Representation < Google::Apis::Core::JsonRepresentation; end
303
+
304
+ include Google::Apis::Core::JsonObjectSupport
305
+ end
306
+
283
307
  class Precondition
284
308
  class Representation < Google::Apis::Core::JsonRepresentation; end
285
309
 
@@ -426,6 +450,25 @@ module Google
426
450
  end
427
451
  end
428
452
 
453
+ class BatchWriteRequest
454
+ # @private
455
+ class Representation < Google::Apis::Core::JsonRepresentation
456
+ hash :labels, as: 'labels'
457
+ collection :writes, as: 'writes', class: Google::Apis::FirestoreV1beta1::Write, decorator: Google::Apis::FirestoreV1beta1::Write::Representation
458
+
459
+ end
460
+ end
461
+
462
+ class BatchWriteResponse
463
+ # @private
464
+ class Representation < Google::Apis::Core::JsonRepresentation
465
+ collection :status, as: 'status', class: Google::Apis::FirestoreV1beta1::Status, decorator: Google::Apis::FirestoreV1beta1::Status::Representation
466
+
467
+ collection :write_results, as: 'writeResults', class: Google::Apis::FirestoreV1beta1::WriteResult, decorator: Google::Apis::FirestoreV1beta1::WriteResult::Representation
468
+
469
+ end
470
+ end
471
+
429
472
  class BeginTransactionRequest
430
473
  # @private
431
474
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -805,6 +848,26 @@ module Google
805
848
  end
806
849
  end
807
850
 
851
+ class PartitionQueryRequest
852
+ # @private
853
+ class Representation < Google::Apis::Core::JsonRepresentation
854
+ property :page_size, as: 'pageSize'
855
+ property :page_token, as: 'pageToken'
856
+ property :partition_count, :numeric_string => true, as: 'partitionCount'
857
+ property :structured_query, as: 'structuredQuery', class: Google::Apis::FirestoreV1beta1::StructuredQuery, decorator: Google::Apis::FirestoreV1beta1::StructuredQuery::Representation
858
+
859
+ end
860
+ end
861
+
862
+ class PartitionQueryResponse
863
+ # @private
864
+ class Representation < Google::Apis::Core::JsonRepresentation
865
+ property :next_page_token, as: 'nextPageToken'
866
+ collection :partitions, as: 'partitions', class: Google::Apis::FirestoreV1beta1::Cursor, decorator: Google::Apis::FirestoreV1beta1::Cursor::Representation
867
+
868
+ end
869
+ end
870
+
808
871
  class Precondition
809
872
  # @private
810
873
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -163,6 +163,46 @@ module Google
163
163
  execute_or_queue_command(command, &block)
164
164
  end
165
165
 
166
+ # Applies a batch of write operations.
167
+ # The BatchWrite method does not apply the write operations atomically
168
+ # and can apply them out of order. Method does not allow more than one write
169
+ # per document. Each write succeeds or fails independently. See the
170
+ # BatchWriteResponse for the success status of each write.
171
+ # If you require an atomically applied set of writes, use
172
+ # Commit instead.
173
+ # @param [String] database
174
+ # Required. The database name. In the format:
175
+ # `projects/`project_id`/databases/`database_id``.
176
+ # @param [Google::Apis::FirestoreV1beta1::BatchWriteRequest] batch_write_request_object
177
+ # @param [String] fields
178
+ # Selector specifying which fields to include in a partial response.
179
+ # @param [String] quota_user
180
+ # Available to use for quota purposes for server-side applications. Can be any
181
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
182
+ # @param [Google::Apis::RequestOptions] options
183
+ # Request-specific options
184
+ #
185
+ # @yield [result, err] Result & error if block supplied
186
+ # @yieldparam result [Google::Apis::FirestoreV1beta1::BatchWriteResponse] parsed result object
187
+ # @yieldparam err [StandardError] error object if request failed
188
+ #
189
+ # @return [Google::Apis::FirestoreV1beta1::BatchWriteResponse]
190
+ #
191
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
192
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
193
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
194
+ def batch_document_write(database, batch_write_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
195
+ command = make_simple_command(:post, 'v1beta1/{+database}/documents:batchWrite', options)
196
+ command.request_representation = Google::Apis::FirestoreV1beta1::BatchWriteRequest::Representation
197
+ command.request_object = batch_write_request_object
198
+ command.response_representation = Google::Apis::FirestoreV1beta1::BatchWriteResponse::Representation
199
+ command.response_class = Google::Apis::FirestoreV1beta1::BatchWriteResponse
200
+ command.params['database'] = database unless database.nil?
201
+ command.query['fields'] = fields unless fields.nil?
202
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
203
+ execute_or_queue_command(command, &block)
204
+ end
205
+
166
206
  # Starts a new transaction.
167
207
  # @param [String] database
168
208
  # Required. The database name. In the format:
@@ -498,6 +538,44 @@ module Google
498
538
  execute_or_queue_command(command, &block)
499
539
  end
500
540
 
541
+ # Partitions a query by returning partition cursors that can be used to run
542
+ # the query in parallel. The returned partition cursors are split points that
543
+ # can be used by RunQuery as starting/end points for the query results.
544
+ # @param [String] parent
545
+ # Required. The parent resource name. In the format:
546
+ # `projects/`project_id`/databases/`database_id`/documents`.
547
+ # Document resource names are not supported; only database resource names
548
+ # can be specified.
549
+ # @param [Google::Apis::FirestoreV1beta1::PartitionQueryRequest] partition_query_request_object
550
+ # @param [String] fields
551
+ # Selector specifying which fields to include in a partial response.
552
+ # @param [String] quota_user
553
+ # Available to use for quota purposes for server-side applications. Can be any
554
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
555
+ # @param [Google::Apis::RequestOptions] options
556
+ # Request-specific options
557
+ #
558
+ # @yield [result, err] Result & error if block supplied
559
+ # @yieldparam result [Google::Apis::FirestoreV1beta1::PartitionQueryResponse] parsed result object
560
+ # @yieldparam err [StandardError] error object if request failed
561
+ #
562
+ # @return [Google::Apis::FirestoreV1beta1::PartitionQueryResponse]
563
+ #
564
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
565
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
566
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
567
+ def partition_document_query(parent, partition_query_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
568
+ command = make_simple_command(:post, 'v1beta1/{+parent}:partitionQuery', options)
569
+ command.request_representation = Google::Apis::FirestoreV1beta1::PartitionQueryRequest::Representation
570
+ command.request_object = partition_query_request_object
571
+ command.response_representation = Google::Apis::FirestoreV1beta1::PartitionQueryResponse::Representation
572
+ command.response_class = Google::Apis::FirestoreV1beta1::PartitionQueryResponse
573
+ command.params['parent'] = parent unless parent.nil?
574
+ command.query['fields'] = fields unless fields.nil?
575
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
576
+ execute_or_queue_command(command, &block)
577
+ end
578
+
501
579
  # Updates or inserts a document.
502
580
  # @param [String] name
503
581
  # The resource name of the document, for example
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/games/
27
27
  module GamesConfigurationV1configuration
28
28
  VERSION = 'V1configuration'
29
- REVISION = '20200514'
29
+ REVISION = '20200720'
30
30
 
31
31
  # View and manage your Google Play Developer account
32
32
  AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
@@ -44,8 +44,8 @@ module Google
44
44
  attr_accessor :quota_user
45
45
 
46
46
  def initialize
47
- super('https://www.googleapis.com/', '')
48
- @batch_path = 'batch/games/v1configuration'
47
+ super('https://gamesconfiguration.googleapis.com/', '')
48
+ @batch_path = 'batch'
49
49
  end
50
50
 
51
51
  # Delete the achievement configuration with the given ID.
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://developers.google.com/games/
28
28
  module GamesManagementV1management
29
29
  VERSION = 'V1management'
30
- REVISION = '20200514'
30
+ REVISION = '20200720'
31
31
 
32
32
  # Create, edit, and delete your Google Play Games activity
33
33
  AUTH_GAMES = 'https://www.googleapis.com/auth/games'
@@ -45,8 +45,8 @@ module Google
45
45
  attr_accessor :quota_user
46
46
 
47
47
  def initialize
48
- super('https://www.googleapis.com/', '')
49
- @batch_path = 'batch/games/v1management'
48
+ super('https://gamesmanagement.googleapis.com/', '')
49
+ @batch_path = 'batch'
50
50
  end
51
51
 
52
52
  # Resets the achievement with the given ID for the currently authenticated
@@ -18,14 +18,16 @@ require 'google/apis/games_v1/representations.rb'
18
18
 
19
19
  module Google
20
20
  module Apis
21
- # Google Play Game Services API
21
+ # Google Play Game Services
22
22
  #
23
- # The API for Google Play Game Services.
23
+ # The Google Play games service allows developers to enhance games with social
24
+ # leaderboards,
25
+ # achievements, game state, sign-in with Google, and more.
24
26
  #
25
- # @see https://developers.google.com/games/services/
27
+ # @see https://developers.google.com/games/
26
28
  module GamesV1
27
29
  VERSION = 'V1'
28
- REVISION = '20200528'
30
+ REVISION = '20200720'
29
31
 
30
32
  # View and manage its own configuration data in your Google Drive
31
33
  AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata'
@@ -22,14 +22,11 @@ module Google
22
22
  module Apis
23
23
  module GamesV1
24
24
 
25
- # This is a JSON template for an achievement definition object.
25
+ # An achievement definition object.
26
26
  class AchievementDefinition
27
27
  include Google::Apis::Core::Hashable
28
28
 
29
29
  # The type of the achievement.
30
- # Possible values are:
31
- # - "STANDARD" - Achievement is either locked or unlocked.
32
- # - "INCREMENTAL" - Achievement is incremental.
33
30
  # Corresponds to the JSON property `achievementType`
34
31
  # @return [String]
35
32
  attr_accessor :achievement_type
@@ -55,30 +52,26 @@ module Google
55
52
  attr_accessor :id
56
53
 
57
54
  # The initial state of the achievement.
58
- # Possible values are:
59
- # - "HIDDEN" - Achievement is hidden.
60
- # - "REVEALED" - Achievement is revealed.
61
- # - "UNLOCKED" - Achievement is unlocked.
62
55
  # Corresponds to the JSON property `initialState`
63
56
  # @return [String]
64
57
  attr_accessor :initial_state
65
58
 
66
- # Indicates whether the revealed icon image being returned is a default image,
67
- # or is provided by the game.
59
+ # Indicates whether the revealed icon image being returned is a default
60
+ # image, or is provided by the game.
68
61
  # Corresponds to the JSON property `isRevealedIconUrlDefault`
69
62
  # @return [Boolean]
70
63
  attr_accessor :is_revealed_icon_url_default
71
64
  alias_method :is_revealed_icon_url_default?, :is_revealed_icon_url_default
72
65
 
73
- # Indicates whether the unlocked icon image being returned is a default image,
74
- # or is game-provided.
66
+ # Indicates whether the unlocked icon image being returned is a default
67
+ # image, or is game-provided.
75
68
  # Corresponds to the JSON property `isUnlockedIconUrlDefault`
76
69
  # @return [Boolean]
77
70
  attr_accessor :is_unlocked_icon_url_default
78
71
  alias_method :is_unlocked_icon_url_default?, :is_unlocked_icon_url_default
79
72
 
80
73
  # Uniquely identifies the type of this resource. Value is always the fixed
81
- # string games#achievementDefinition.
74
+ # string `games#achievementDefinition`.
82
75
  # Corresponds to the JSON property `kind`
83
76
  # @return [String]
84
77
  attr_accessor :kind
@@ -125,7 +118,7 @@ module Google
125
118
  end
126
119
  end
127
120
 
128
- # This is a JSON template for a list of achievement definition objects.
121
+ # A list of achievement definition objects.
129
122
  class ListAchievementDefinitionsResponse
130
123
  include Google::Apis::Core::Hashable
131
124
 
@@ -135,7 +128,7 @@ module Google
135
128
  attr_accessor :items
136
129
 
137
130
  # Uniquely identifies the type of this resource. Value is always the fixed
138
- # string games#achievementDefinitionsListResponse.
131
+ # string `games#achievementDefinitionsListResponse`.
139
132
  # Corresponds to the JSON property `kind`
140
133
  # @return [String]
141
134
  attr_accessor :kind
@@ -157,7 +150,7 @@ module Google
157
150
  end
158
151
  end
159
152
 
160
- # This is a JSON template for an achievement increment response
153
+ # An achievement increment response
161
154
  class AchievementIncrementResponse
162
155
  include Google::Apis::Core::Hashable
163
156
 
@@ -167,13 +160,13 @@ module Google
167
160
  attr_accessor :current_steps
168
161
 
169
162
  # Uniquely identifies the type of this resource. Value is always the fixed
170
- # string games#achievementIncrementResponse.
163
+ # string `games#achievementIncrementResponse`.
171
164
  # Corresponds to the JSON property `kind`
172
165
  # @return [String]
173
166
  attr_accessor :kind
174
167
 
175
- # Whether the current steps for the achievement has reached the number of steps
176
- # required to unlock.
168
+ # Whether the current steps for the achievement has reached the number of
169
+ # steps required to unlock.
177
170
  # Corresponds to the JSON property `newlyUnlocked`
178
171
  # @return [Boolean]
179
172
  attr_accessor :newly_unlocked
@@ -191,21 +184,18 @@ module Google
191
184
  end
192
185
  end
193
186
 
194
- # This is a JSON template for an achievement reveal response
187
+ # An achievement reveal response
195
188
  class AchievementRevealResponse
196
189
  include Google::Apis::Core::Hashable
197
190
 
198
191
  # The current state of the achievement for which a reveal was attempted. This
199
- # might be UNLOCKED if the achievement was already unlocked.
200
- # Possible values are:
201
- # - "REVEALED" - Achievement is revealed.
202
- # - "UNLOCKED" - Achievement is unlocked.
192
+ # might be `UNLOCKED` if the achievement was already unlocked.
203
193
  # Corresponds to the JSON property `currentState`
204
194
  # @return [String]
205
195
  attr_accessor :current_state
206
196
 
207
197
  # Uniquely identifies the type of this resource. Value is always the fixed
208
- # string games#achievementRevealResponse.
198
+ # string `games#achievementRevealResponse`.
209
199
  # Corresponds to the JSON property `kind`
210
200
  # @return [String]
211
201
  attr_accessor :kind
@@ -221,7 +211,7 @@ module Google
221
211
  end
222
212
  end
223
213
 
224
- # This is a JSON template for an achievement set steps at least response.
214
+ # An achievement set steps at least response.
225
215
  class AchievementSetStepsAtLeastResponse
226
216
  include Google::Apis::Core::Hashable
227
217
 
@@ -231,12 +221,12 @@ module Google
231
221
  attr_accessor :current_steps
232
222
 
233
223
  # Uniquely identifies the type of this resource. Value is always the fixed
234
- # string games#achievementSetStepsAtLeastResponse.
224
+ # string `games#achievementSetStepsAtLeastResponse`.
235
225
  # Corresponds to the JSON property `kind`
236
226
  # @return [String]
237
227
  attr_accessor :kind
238
228
 
239
- # Whether the the current steps for the achievement has reached the number of
229
+ # Whether the current steps for the achievement has reached the number of
240
230
  # steps required to unlock.
241
231
  # Corresponds to the JSON property `newlyUnlocked`
242
232
  # @return [Boolean]
@@ -255,12 +245,12 @@ module Google
255
245
  end
256
246
  end
257
247
 
258
- # This is a JSON template for an achievement unlock response
248
+ # An achievement unlock response
259
249
  class AchievementUnlockResponse
260
250
  include Google::Apis::Core::Hashable
261
251
 
262
252
  # Uniquely identifies the type of this resource. Value is always the fixed
263
- # string games#achievementUnlockResponse.
253
+ # string `games#achievementUnlockResponse`.
264
254
  # Corresponds to the JSON property `kind`
265
255
  # @return [String]
266
256
  attr_accessor :kind
@@ -283,12 +273,12 @@ module Google
283
273
  end
284
274
  end
285
275
 
286
- # This is a JSON template for a list of achievement update requests.
276
+ # A list of achievement update requests.
287
277
  class AchievementUpdateMultipleRequest
288
278
  include Google::Apis::Core::Hashable
289
279
 
290
280
  # Uniquely identifies the type of this resource. Value is always the fixed
291
- # string games#achievementUpdateMultipleRequest.
281
+ # string `games#achievementUpdateMultipleRequest`.
292
282
  # Corresponds to the JSON property `kind`
293
283
  # @return [String]
294
284
  attr_accessor :kind
@@ -309,12 +299,12 @@ module Google
309
299
  end
310
300
  end
311
301
 
312
- # This is a JSON template for an achievement unlock response.
302
+ # Response message for UpdateMultipleAchievements rpc.
313
303
  class AchievementUpdateMultipleResponse
314
304
  include Google::Apis::Core::Hashable
315
305
 
316
306
  # Uniquely identifies the type of this resource. Value is always the fixed
317
- # string games#achievementUpdateMultipleResponse.
307
+ # string `games#achievementUpdateMultipleResponse`.
318
308
  # Corresponds to the JSON property `kind`
319
309
  # @return [String]
320
310
  attr_accessor :kind
@@ -335,7 +325,7 @@ module Google
335
325
  end
336
326
  end
337
327
 
338
- # This is a JSON template for a request to update an achievement.
328
+ # A request to update an achievement.
339
329
  class UpdateAchievementRequest
340
330
  include Google::Apis::Core::Hashable
341
331
 
@@ -344,29 +334,25 @@ module Google
344
334
  # @return [String]
345
335
  attr_accessor :achievement_id
346
336
 
347
- # This is a JSON template for the payload to request to increment an achievement.
337
+ # The payload to request to increment an
338
+ # achievement.
348
339
  # Corresponds to the JSON property `incrementPayload`
349
340
  # @return [Google::Apis::GamesV1::GamesAchievementIncrement]
350
341
  attr_accessor :increment_payload
351
342
 
352
343
  # Uniquely identifies the type of this resource. Value is always the fixed
353
- # string games#achievementUpdateRequest.
344
+ # string `games#achievementUpdateRequest`.
354
345
  # Corresponds to the JSON property `kind`
355
346
  # @return [String]
356
347
  attr_accessor :kind
357
348
 
358
- # This is a JSON template for the payload to request to increment an achievement.
349
+ # The payload to request to increment an
350
+ # achievement.
359
351
  # Corresponds to the JSON property `setStepsAtLeastPayload`
360
352
  # @return [Google::Apis::GamesV1::GamesAchievementSetStepsAtLeast]
361
353
  attr_accessor :set_steps_at_least_payload
362
354
 
363
355
  # The type of update being applied.
364
- # Possible values are:
365
- # - "REVEAL" - Achievement is revealed.
366
- # - "UNLOCK" - Achievement is unlocked.
367
- # - "INCREMENT" - Achievement is incremented.
368
- # - "SET_STEPS_AT_LEAST" - Achievement progress is set to at least the passed
369
- # value.
370
356
  # Corresponds to the JSON property `updateType`
371
357
  # @return [String]
372
358
  attr_accessor :update_type
@@ -385,7 +371,7 @@ module Google
385
371
  end
386
372
  end
387
373
 
388
- # This is a JSON template for an achievement update response.
374
+ # An updated achievement.
389
375
  class UpdateAchievementResponse
390
376
  include Google::Apis::Core::Hashable
391
377
 
@@ -395,10 +381,6 @@ module Google
395
381
  attr_accessor :achievement_id
396
382
 
397
383
  # The current state of the achievement.
398
- # Possible values are:
399
- # - "HIDDEN" - Achievement is hidden.
400
- # - "REVEALED" - Achievement is revealed.
401
- # - "UNLOCKED" - Achievement is unlocked.
402
384
  # Corresponds to the JSON property `currentState`
403
385
  # @return [String]
404
386
  attr_accessor :current_state
@@ -409,7 +391,7 @@ module Google
409
391
  attr_accessor :current_steps
410
392
 
411
393
  # Uniquely identifies the type of this resource. Value is always the fixed
412
- # string games#achievementUpdateResponse.
394
+ # string `games#achievementUpdateResponse`.
413
395
  # Corresponds to the JSON property `kind`
414
396
  # @return [String]
415
397
  attr_accessor :kind
@@ -442,83 +424,7 @@ module Google
442
424
  end
443
425
  end
444
426
 
445
- # This is a JSON template for aggregate stats.
446
- class AggregateStats
447
- include Google::Apis::Core::Hashable
448
-
449
- # The number of messages sent between a pair of peers.
450
- # Corresponds to the JSON property `count`
451
- # @return [Fixnum]
452
- attr_accessor :count
453
-
454
- # Uniquely identifies the type of this resource. Value is always the fixed
455
- # string games#aggregateStats.
456
- # Corresponds to the JSON property `kind`
457
- # @return [String]
458
- attr_accessor :kind
459
-
460
- # The maximum amount.
461
- # Corresponds to the JSON property `max`
462
- # @return [Fixnum]
463
- attr_accessor :max
464
-
465
- # The minimum amount.
466
- # Corresponds to the JSON property `min`
467
- # @return [Fixnum]
468
- attr_accessor :min
469
-
470
- # The total number of bytes sent for messages between a pair of peers.
471
- # Corresponds to the JSON property `sum`
472
- # @return [Fixnum]
473
- attr_accessor :sum
474
-
475
- def initialize(**args)
476
- update!(**args)
477
- end
478
-
479
- # Update properties of this object
480
- def update!(**args)
481
- @count = args[:count] if args.key?(:count)
482
- @kind = args[:kind] if args.key?(:kind)
483
- @max = args[:max] if args.key?(:max)
484
- @min = args[:min] if args.key?(:min)
485
- @sum = args[:sum] if args.key?(:sum)
486
- end
487
- end
488
-
489
- # This is a JSON template for an anonymous player
490
- class AnonymousPlayer
491
- include Google::Apis::Core::Hashable
492
-
493
- # The base URL for the image to display for the anonymous player.
494
- # Corresponds to the JSON property `avatarImageUrl`
495
- # @return [String]
496
- attr_accessor :avatar_image_url
497
-
498
- # The name to display for the anonymous player.
499
- # Corresponds to the JSON property `displayName`
500
- # @return [String]
501
- attr_accessor :display_name
502
-
503
- # Uniquely identifies the type of this resource. Value is always the fixed
504
- # string games#anonymousPlayer.
505
- # Corresponds to the JSON property `kind`
506
- # @return [String]
507
- attr_accessor :kind
508
-
509
- def initialize(**args)
510
- update!(**args)
511
- end
512
-
513
- # Update properties of this object
514
- def update!(**args)
515
- @avatar_image_url = args[:avatar_image_url] if args.key?(:avatar_image_url)
516
- @display_name = args[:display_name] if args.key?(:display_name)
517
- @kind = args[:kind] if args.key?(:kind)
518
- end
519
- end
520
-
521
- # This is a JSON template for the Application resource.
427
+ # The Application resource.
522
428
  class Application
523
429
  include Google::Apis::Core::Hashable
524
430
 
@@ -537,7 +443,7 @@ module Google
537
443
  # @return [String]
538
444
  attr_accessor :author
539
445
 
540
- # This is a JSON template for an application category object.
446
+ # An application category object.
541
447
  # Corresponds to the JSON property `category`
542
448
  # @return [Google::Apis::GamesV1::ApplicationCategory]
543
449
  attr_accessor :category
@@ -548,8 +454,6 @@ module Google
548
454
  attr_accessor :description
549
455
 
550
456
  # A list of features that have been enabled for the application.
551
- # Possible values are:
552
- # - "SNAPSHOTS" - Snapshots has been enabled
553
457
  # Corresponds to the JSON property `enabledFeatures`
554
458
  # @return [Array<String>]
555
459
  attr_accessor :enabled_features
@@ -565,7 +469,7 @@ module Google
565
469
  attr_accessor :instances
566
470
 
567
471
  # Uniquely identifies the type of this resource. Value is always the fixed
568
- # string games#application.
472
+ # string `games#application`.
569
473
  # Corresponds to the JSON property `kind`
570
474
  # @return [String]
571
475
  attr_accessor :kind
@@ -613,12 +517,12 @@ module Google
613
517
  end
614
518
  end
615
519
 
616
- # This is a JSON template for an application category object.
520
+ # An application category object.
617
521
  class ApplicationCategory
618
522
  include Google::Apis::Core::Hashable
619
523
 
620
524
  # Uniquely identifies the type of this resource. Value is always the fixed
621
- # string games#applicationCategory.
525
+ # string `games#applicationCategory`.
622
526
  # Corresponds to the JSON property `kind`
623
527
  # @return [String]
624
528
  attr_accessor :kind
@@ -645,8 +549,7 @@ module Google
645
549
  end
646
550
  end
647
551
 
648
- # This is a JSON template for a third party application verification response
649
- # resource.
552
+ # A third party application verification response resource.
650
553
  class ApplicationVerifyResponse
651
554
  include Google::Apis::Core::Hashable
652
555
 
@@ -657,7 +560,7 @@ module Google
657
560
  attr_accessor :alternate_player_id
658
561
 
659
562
  # Uniquely identifies the type of this resource. Value is always the fixed
660
- # string games#applicationVerifyResponse.
563
+ # string `games#applicationVerifyResponse`.
661
564
  # Corresponds to the JSON property `kind`
662
565
  # @return [String]
663
566
  attr_accessor :kind
@@ -679,7 +582,7 @@ module Google
679
582
  end
680
583
  end
681
584
 
682
- # This is a JSON template for data related to individual game categories.
585
+ # Data related to individual game categories.
683
586
  class Category
684
587
  include Google::Apis::Core::Hashable
685
588
 
@@ -694,7 +597,7 @@ module Google
694
597
  attr_accessor :experience_points
695
598
 
696
599
  # Uniquely identifies the type of this resource. Value is always the fixed
697
- # string games#category.
600
+ # string `games#category`.
698
601
  # Corresponds to the JSON property `kind`
699
602
  # @return [String]
700
603
  attr_accessor :kind
@@ -711,7 +614,7 @@ module Google
711
614
  end
712
615
  end
713
616
 
714
- # This is a JSON template for a list of category data objects.
617
+ # A third party list metagame categories response.
715
618
  class ListCategoryResponse
716
619
  include Google::Apis::Core::Hashable
717
620
 
@@ -721,7 +624,7 @@ module Google
721
624
  attr_accessor :items
722
625
 
723
626
  # Uniquely identifies the type of this resource. Value is always the fixed
724
- # string games#categoryListResponse.
627
+ # string `games#categoryListResponse`.
725
628
  # Corresponds to the JSON property `kind`
726
629
  # @return [String]
727
630
  attr_accessor :kind
@@ -743,33 +646,22 @@ module Google
743
646
  end
744
647
  end
745
648
 
746
- # This is a JSON template for a batch update failure resource.
649
+ # A batch update failure resource.
747
650
  class EventBatchRecordFailure
748
651
  include Google::Apis::Core::Hashable
749
652
 
750
653
  # The cause for the update failure.
751
- # Possible values are:
752
- # - "TOO_LARGE": A batch request was issued with more events than are allowed in
753
- # a single batch.
754
- # - "TIME_PERIOD_EXPIRED": A batch was sent with data too far in the past to
755
- # record.
756
- # - "TIME_PERIOD_SHORT": A batch was sent with a time range that was too short.
757
- # - "TIME_PERIOD_LONG": A batch was sent with a time range that was too long.
758
- # - "ALREADY_UPDATED": An attempt was made to record a batch of data which was
759
- # already seen.
760
- # - "RECORD_RATE_HIGH": An attempt was made to record data faster than the
761
- # server will apply updates.
762
654
  # Corresponds to the JSON property `failureCause`
763
655
  # @return [String]
764
656
  attr_accessor :failure_cause
765
657
 
766
658
  # Uniquely identifies the type of this resource. Value is always the fixed
767
- # string games#eventBatchRecordFailure.
659
+ # string `games#eventBatchRecordFailure`.
768
660
  # Corresponds to the JSON property `kind`
769
661
  # @return [String]
770
662
  attr_accessor :kind
771
663
 
772
- # This is a JSON template for an event period time range.
664
+ # An event period time range.
773
665
  # Corresponds to the JSON property `range`
774
666
  # @return [Google::Apis::GamesV1::EventPeriodRange]
775
667
  attr_accessor :range
@@ -786,7 +678,7 @@ module Google
786
678
  end
787
679
  end
788
680
 
789
- # This is a JSON template for an event child relationship resource.
681
+ # An event child relationship resource.
790
682
  class EventChild
791
683
  include Google::Apis::Core::Hashable
792
684
 
@@ -796,7 +688,7 @@ module Google
796
688
  attr_accessor :child_id
797
689
 
798
690
  # Uniquely identifies the type of this resource. Value is always the fixed
799
- # string games#eventChild.
691
+ # string `games#eventChild`.
800
692
  # Corresponds to the JSON property `kind`
801
693
  # @return [String]
802
694
  attr_accessor :kind
@@ -812,7 +704,7 @@ module Google
812
704
  end
813
705
  end
814
706
 
815
- # This is a JSON template for an event definition resource.
707
+ # An event definition resource.
816
708
  class EventDefinition
817
709
  include Google::Apis::Core::Hashable
818
710
 
@@ -841,24 +733,20 @@ module Google
841
733
  # @return [String]
842
734
  attr_accessor :image_url
843
735
 
844
- # Indicates whether the icon image being returned is a default image, or is game-
845
- # provided.
736
+ # Indicates whether the icon image being returned is a default image, or is
737
+ # game-provided.
846
738
  # Corresponds to the JSON property `isDefaultImageUrl`
847
739
  # @return [Boolean]
848
740
  attr_accessor :is_default_image_url
849
741
  alias_method :is_default_image_url?, :is_default_image_url
850
742
 
851
743
  # Uniquely identifies the type of this resource. Value is always the fixed
852
- # string games#eventDefinition.
744
+ # string `games#eventDefinition`.
853
745
  # Corresponds to the JSON property `kind`
854
746
  # @return [String]
855
747
  attr_accessor :kind
856
748
 
857
749
  # The visibility of event being tracked in this definition.
858
- # Possible values are:
859
- # - "REVEALED": This event should be visible to all users.
860
- # - "HIDDEN": This event should only be shown to users that have recorded this
861
- # event at least once.
862
750
  # Corresponds to the JSON property `visibility`
863
751
  # @return [String]
864
752
  attr_accessor :visibility
@@ -880,7 +768,7 @@ module Google
880
768
  end
881
769
  end
882
770
 
883
- # This is a JSON template for a ListDefinitions response.
771
+ # A ListDefinitions response.
884
772
  class ListEventDefinitionResponse
885
773
  include Google::Apis::Core::Hashable
886
774
 
@@ -890,7 +778,7 @@ module Google
890
778
  attr_accessor :items
891
779
 
892
780
  # Uniquely identifies the type of this resource. Value is always the fixed
893
- # string games#eventDefinitionListResponse.
781
+ # string `games#eventDefinitionListResponse`.
894
782
  # Corresponds to the JSON property `kind`
895
783
  # @return [String]
896
784
  attr_accessor :kind
@@ -912,23 +800,24 @@ module Google
912
800
  end
913
801
  end
914
802
 
915
- # This is a JSON template for an event period time range.
803
+ # An event period time range.
916
804
  class EventPeriodRange
917
805
  include Google::Apis::Core::Hashable
918
806
 
919
807
  # Uniquely identifies the type of this resource. Value is always the fixed
920
- # string games#eventPeriodRange.
808
+ # string `games#eventPeriodRange`.
921
809
  # Corresponds to the JSON property `kind`
922
810
  # @return [String]
923
811
  attr_accessor :kind
924
812
 
925
- # The time when this update period ends, in millis, since 1970 UTC (Unix Epoch).
813
+ # The time when this update period ends, in millis, since 1970 UTC (Unix
814
+ # Epoch).
926
815
  # Corresponds to the JSON property `periodEndMillis`
927
816
  # @return [Fixnum]
928
817
  attr_accessor :period_end_millis
929
818
 
930
- # The time when this update period begins, in millis, since 1970 UTC (Unix Epoch)
931
- # .
819
+ # The time when this update period begins, in millis, since 1970 UTC (Unix
820
+ # Epoch).
932
821
  # Corresponds to the JSON property `periodStartMillis`
933
822
  # @return [Fixnum]
934
823
  attr_accessor :period_start_millis
@@ -945,17 +834,17 @@ module Google
945
834
  end
946
835
  end
947
836
 
948
- # This is a JSON template for an event period update resource.
837
+ # An event period update resource.
949
838
  class EventPeriodUpdate
950
839
  include Google::Apis::Core::Hashable
951
840
 
952
841
  # Uniquely identifies the type of this resource. Value is always the fixed
953
- # string games#eventPeriodUpdate.
842
+ # string `games#eventPeriodUpdate`.
954
843
  # Corresponds to the JSON property `kind`
955
844
  # @return [String]
956
845
  attr_accessor :kind
957
846
 
958
- # This is a JSON template for an event period time range.
847
+ # An event period time range.
959
848
  # Corresponds to the JSON property `timePeriod`
960
849
  # @return [Google::Apis::GamesV1::EventPeriodRange]
961
850
  attr_accessor :time_period
@@ -977,7 +866,7 @@ module Google
977
866
  end
978
867
  end
979
868
 
980
- # This is a JSON template for an event update failure resource.
869
+ # An event update failure resource.
981
870
  class EventRecordFailure
982
871
  include Google::Apis::Core::Hashable
983
872
 
@@ -987,16 +876,12 @@ module Google
987
876
  attr_accessor :event_id
988
877
 
989
878
  # The cause for the update failure.
990
- # Possible values are:
991
- # - "NOT_FOUND" - An attempt was made to set an event that was not defined.
992
- # - "INVALID_UPDATE_VALUE" - An attempt was made to increment an event by a non-
993
- # positive value.
994
879
  # Corresponds to the JSON property `failureCause`
995
880
  # @return [String]
996
881
  attr_accessor :failure_cause
997
882
 
998
883
  # Uniquely identifies the type of this resource. Value is always the fixed
999
- # string games#eventRecordFailure.
884
+ # string `games#eventRecordFailure`.
1000
885
  # Corresponds to the JSON property `kind`
1001
886
  # @return [String]
1002
887
  attr_accessor :kind
@@ -1013,18 +898,18 @@ module Google
1013
898
  end
1014
899
  end
1015
900
 
1016
- # This is a JSON template for an event period update resource.
901
+ # An event period update resource.
1017
902
  class EventRecordRequest
1018
903
  include Google::Apis::Core::Hashable
1019
904
 
1020
- # The current time when this update was sent, in milliseconds, since 1970 UTC (
1021
- # Unix Epoch).
905
+ # The current time when this update was sent, in milliseconds, since 1970 UTC
906
+ # (Unix Epoch).
1022
907
  # Corresponds to the JSON property `currentTimeMillis`
1023
908
  # @return [Fixnum]
1024
909
  attr_accessor :current_time_millis
1025
910
 
1026
911
  # Uniquely identifies the type of this resource. Value is always the fixed
1027
- # string games#eventRecordRequest.
912
+ # string `games#eventRecordRequest`.
1028
913
  # Corresponds to the JSON property `kind`
1029
914
  # @return [String]
1030
915
  attr_accessor :kind
@@ -1052,7 +937,7 @@ module Google
1052
937
  end
1053
938
  end
1054
939
 
1055
- # This is a JSON template for an event period update resource.
940
+ # An event period update resource.
1056
941
  class UpdateEventRequest
1057
942
  include Google::Apis::Core::Hashable
1058
943
 
@@ -1062,7 +947,7 @@ module Google
1062
947
  attr_accessor :definition_id
1063
948
 
1064
949
  # Uniquely identifies the type of this resource. Value is always the fixed
1065
- # string games#eventUpdateRequest.
950
+ # string `games#eventUpdateRequest`.
1066
951
  # Corresponds to the JSON property `kind`
1067
952
  # @return [String]
1068
953
  attr_accessor :kind
@@ -1084,7 +969,7 @@ module Google
1084
969
  end
1085
970
  end
1086
971
 
1087
- # This is a JSON template for an event period update resource.
972
+ # An event period update resource.
1088
973
  class UpdateEventResponse
1089
974
  include Google::Apis::Core::Hashable
1090
975
 
@@ -1099,7 +984,7 @@ module Google
1099
984
  attr_accessor :event_failures
1100
985
 
1101
986
  # Uniquely identifies the type of this resource. Value is always the fixed
1102
- # string games#eventUpdateResponse.
987
+ # string `games#eventUpdateResponse`.
1103
988
  # Corresponds to the JSON property `kind`
1104
989
  # @return [String]
1105
990
  attr_accessor :kind
@@ -1122,12 +1007,13 @@ module Google
1122
1007
  end
1123
1008
  end
1124
1009
 
1125
- # This is a JSON template for the payload to request to increment an achievement.
1010
+ # The payload to request to increment an
1011
+ # achievement.
1126
1012
  class GamesAchievementIncrement
1127
1013
  include Google::Apis::Core::Hashable
1128
1014
 
1129
1015
  # Uniquely identifies the type of this resource. Value is always the fixed
1130
- # string games#GamesAchievementIncrement.
1016
+ # string `games#GamesAchievementIncrement`.
1131
1017
  # Corresponds to the JSON property `kind`
1132
1018
  # @return [String]
1133
1019
  attr_accessor :kind
@@ -1154,12 +1040,13 @@ module Google
1154
1040
  end
1155
1041
  end
1156
1042
 
1157
- # This is a JSON template for the payload to request to increment an achievement.
1043
+ # The payload to request to increment an
1044
+ # achievement.
1158
1045
  class GamesAchievementSetStepsAtLeast
1159
1046
  include Google::Apis::Core::Hashable
1160
1047
 
1161
1048
  # Uniquely identifies the type of this resource. Value is always the fixed
1162
- # string games#GamesAchievementSetStepsAtLeast.
1049
+ # string `games#GamesAchievementSetStepsAtLeast`.
1163
1050
  # Corresponds to the JSON property `kind`
1164
1051
  # @return [String]
1165
1052
  attr_accessor :kind
@@ -1180,7 +1067,7 @@ module Google
1180
1067
  end
1181
1068
  end
1182
1069
 
1183
- # This is a JSON template for an image asset object.
1070
+ # An image asset object.
1184
1071
  class ImageAsset
1185
1072
  include Google::Apis::Core::Hashable
1186
1073
 
@@ -1190,7 +1077,7 @@ module Google
1190
1077
  attr_accessor :height
1191
1078
 
1192
1079
  # Uniquely identifies the type of this resource. Value is always the fixed
1193
- # string games#imageAsset.
1080
+ # string `games#imageAsset`.
1194
1081
  # Corresponds to the JSON property `kind`
1195
1082
  # @return [String]
1196
1083
  attr_accessor :kind
@@ -1224,7 +1111,7 @@ module Google
1224
1111
  end
1225
1112
  end
1226
1113
 
1227
- # This is a JSON template for the Instance resource.
1114
+ # The Instance resource.
1228
1115
  class Instance
1229
1116
  include Google::Apis::Core::Hashable
1230
1117
 
@@ -1233,18 +1120,18 @@ module Google
1233
1120
  # @return [String]
1234
1121
  attr_accessor :acquisition_uri
1235
1122
 
1236
- # This is a JSON template for the Android instance details resource.
1123
+ # The Android instance details resource.
1237
1124
  # Corresponds to the JSON property `androidInstance`
1238
1125
  # @return [Google::Apis::GamesV1::InstanceAndroidDetails]
1239
1126
  attr_accessor :android_instance
1240
1127
 
1241
- # This is a JSON template for the iOS details resource.
1128
+ # The iOS details resource.
1242
1129
  # Corresponds to the JSON property `iosInstance`
1243
1130
  # @return [Google::Apis::GamesV1::InstanceIosDetails]
1244
1131
  attr_accessor :ios_instance
1245
1132
 
1246
1133
  # Uniquely identifies the type of this resource. Value is always the fixed
1247
- # string games#instance.
1134
+ # string `games#instance`.
1248
1135
  # Corresponds to the JSON property `kind`
1249
1136
  # @return [String]
1250
1137
  attr_accessor :kind
@@ -1255,10 +1142,6 @@ module Google
1255
1142
  attr_accessor :name
1256
1143
 
1257
1144
  # The platform type.
1258
- # Possible values are:
1259
- # - "ANDROID" - Instance is for Android.
1260
- # - "IOS" - Instance is for iOS
1261
- # - "WEB_APP" - Instance is for Web App.
1262
1145
  # Corresponds to the JSON property `platformType`
1263
1146
  # @return [String]
1264
1147
  attr_accessor :platform_type
@@ -1275,7 +1158,7 @@ module Google
1275
1158
  attr_accessor :turn_based_play
1276
1159
  alias_method :turn_based_play?, :turn_based_play
1277
1160
 
1278
- # This is a JSON template for the Web details resource.
1161
+ # The Web details resource.
1279
1162
  # Corresponds to the JSON property `webInstance`
1280
1163
  # @return [Google::Apis::GamesV1::InstanceWebDetails]
1281
1164
  attr_accessor :web_instance
@@ -1298,7 +1181,7 @@ module Google
1298
1181
  end
1299
1182
  end
1300
1183
 
1301
- # This is a JSON template for the Android instance details resource.
1184
+ # The Android instance details resource.
1302
1185
  class InstanceAndroidDetails
1303
1186
  include Google::Apis::Core::Hashable
1304
1187
 
@@ -1309,7 +1192,7 @@ module Google
1309
1192
  alias_method :enable_piracy_check?, :enable_piracy_check
1310
1193
 
1311
1194
  # Uniquely identifies the type of this resource. Value is always the fixed
1312
- # string games#instanceAndroidDetails.
1195
+ # string `games#instanceAndroidDetails`.
1313
1196
  # Corresponds to the JSON property `kind`
1314
1197
  # @return [String]
1315
1198
  attr_accessor :kind
@@ -1338,7 +1221,7 @@ module Google
1338
1221
  end
1339
1222
  end
1340
1223
 
1341
- # This is a JSON template for the iOS details resource.
1224
+ # The iOS details resource.
1342
1225
  class InstanceIosDetails
1343
1226
  include Google::Apis::Core::Hashable
1344
1227
 
@@ -1353,7 +1236,7 @@ module Google
1353
1236
  attr_accessor :itunes_app_id
1354
1237
 
1355
1238
  # Uniquely identifies the type of this resource. Value is always the fixed
1356
- # string games#instanceIosDetails.
1239
+ # string `games#instanceIosDetails`.
1357
1240
  # Corresponds to the JSON property `kind`
1358
1241
  # @return [String]
1359
1242
  attr_accessor :kind
@@ -1400,12 +1283,12 @@ module Google
1400
1283
  end
1401
1284
  end
1402
1285
 
1403
- # This is a JSON template for the Web details resource.
1286
+ # The Web details resource.
1404
1287
  class InstanceWebDetails
1405
1288
  include Google::Apis::Core::Hashable
1406
1289
 
1407
1290
  # Uniquely identifies the type of this resource. Value is always the fixed
1408
- # string games#instanceWebDetails.
1291
+ # string `games#instanceWebDetails`.
1409
1292
  # Corresponds to the JSON property `kind`
1410
1293
  # @return [String]
1411
1294
  attr_accessor :kind
@@ -1433,7 +1316,7 @@ module Google
1433
1316
  end
1434
1317
  end
1435
1318
 
1436
- # This is a JSON template for the Leaderboard resource.
1319
+ # The Leaderboard resource.
1437
1320
  class Leaderboard
1438
1321
  include Google::Apis::Core::Hashable
1439
1322
 
@@ -1447,15 +1330,15 @@ module Google
1447
1330
  # @return [String]
1448
1331
  attr_accessor :id
1449
1332
 
1450
- # Indicates whether the icon image being returned is a default image, or is game-
1451
- # provided.
1333
+ # Indicates whether the icon image being returned is a default image, or is
1334
+ # game-provided.
1452
1335
  # Corresponds to the JSON property `isIconUrlDefault`
1453
1336
  # @return [Boolean]
1454
1337
  attr_accessor :is_icon_url_default
1455
1338
  alias_method :is_icon_url_default?, :is_icon_url_default
1456
1339
 
1457
1340
  # Uniquely identifies the type of this resource. Value is always the fixed
1458
- # string games#leaderboard.
1341
+ # string `games#leaderboard`.
1459
1342
  # Corresponds to the JSON property `kind`
1460
1343
  # @return [String]
1461
1344
  attr_accessor :kind
@@ -1466,11 +1349,6 @@ module Google
1466
1349
  attr_accessor :name
1467
1350
 
1468
1351
  # How scores are ordered.
1469
- # Possible values are:
1470
- # - "LARGER_IS_BETTER" - Larger values are better; scores are sorted in
1471
- # descending order.
1472
- # - "SMALLER_IS_BETTER" - Smaller values are better; scores are sorted in
1473
- # ascending order.
1474
1352
  # Corresponds to the JSON property `order`
1475
1353
  # @return [String]
1476
1354
  attr_accessor :order
@@ -1490,7 +1368,7 @@ module Google
1490
1368
  end
1491
1369
  end
1492
1370
 
1493
- # This is a JSON template for the Leaderboard Entry resource.
1371
+ # The Leaderboard Entry resource.
1494
1372
  class LeaderboardEntry
1495
1373
  include Google::Apis::Core::Hashable
1496
1374
 
@@ -1505,12 +1383,12 @@ module Google
1505
1383
  attr_accessor :formatted_score_rank
1506
1384
 
1507
1385
  # Uniquely identifies the type of this resource. Value is always the fixed
1508
- # string games#leaderboardEntry.
1386
+ # string `games#leaderboardEntry`.
1509
1387
  # Corresponds to the JSON property `kind`
1510
1388
  # @return [String]
1511
1389
  attr_accessor :kind
1512
1390
 
1513
- # This is a JSON template for a Player resource.
1391
+ # A Player resource.
1514
1392
  # Corresponds to the JSON property `player`
1515
1393
  # @return [Google::Apis::GamesV1::Player]
1516
1394
  attr_accessor :player
@@ -1520,8 +1398,8 @@ module Google
1520
1398
  # @return [Fixnum]
1521
1399
  attr_accessor :score_rank
1522
1400
 
1523
- # Additional information about the score. Values must contain no more than 64
1524
- # URI-safe characters as defined by section 2.3 of RFC 3986.
1401
+ # Additional information about the score. Values must contain no more than
1402
+ # 64 URI-safe characters as defined by section 2.3 of RFC 3986.
1525
1403
  # Corresponds to the JSON property `scoreTag`
1526
1404
  # @return [String]
1527
1405
  attr_accessor :score_tag
@@ -1532,10 +1410,6 @@ module Google
1532
1410
  attr_accessor :score_value
1533
1411
 
1534
1412
  # The time span of this high score.
1535
- # Possible values are:
1536
- # - "ALL_TIME" - The score is an all-time high score.
1537
- # - "WEEKLY" - The score is a weekly high score.
1538
- # - "DAILY" - The score is a daily high score.
1539
1413
  # Corresponds to the JSON property `timeSpan`
1540
1414
  # @return [String]
1541
1415
  attr_accessor :time_span
@@ -1564,7 +1438,7 @@ module Google
1564
1438
  end
1565
1439
  end
1566
1440
 
1567
- # This is a JSON template for a list of leaderboard objects.
1441
+ # A list of leaderboard objects.
1568
1442
  class ListLeaderboardResponse
1569
1443
  include Google::Apis::Core::Hashable
1570
1444
 
@@ -1574,7 +1448,7 @@ module Google
1574
1448
  attr_accessor :items
1575
1449
 
1576
1450
  # Uniquely identifies the type of this resource. Value is always the fixed
1577
- # string games#leaderboardListResponse.
1451
+ # string `games#leaderboardListResponse`.
1578
1452
  # Corresponds to the JSON property `kind`
1579
1453
  # @return [String]
1580
1454
  attr_accessor :kind
@@ -1596,7 +1470,7 @@ module Google
1596
1470
  end
1597
1471
  end
1598
1472
 
1599
- # This is a JSON template for a score rank in a leaderboard.
1473
+ # A score rank in a leaderboard.
1600
1474
  class LeaderboardScoreRank
1601
1475
  include Google::Apis::Core::Hashable
1602
1476
 
@@ -1611,7 +1485,7 @@ module Google
1611
1485
  attr_accessor :formatted_rank
1612
1486
 
1613
1487
  # Uniquely identifies the type of this resource. Value is always the fixed
1614
- # string games#leaderboardScoreRank.
1488
+ # string `games#leaderboardScoreRank`.
1615
1489
  # Corresponds to the JSON property `kind`
1616
1490
  # @return [String]
1617
1491
  attr_accessor :kind
@@ -1640,7 +1514,7 @@ module Google
1640
1514
  end
1641
1515
  end
1642
1516
 
1643
- # This is a JSON template for a ListScores response.
1517
+ # A ListScores response.
1644
1518
  class LeaderboardScores
1645
1519
  include Google::Apis::Core::Hashable
1646
1520
 
@@ -1650,7 +1524,7 @@ module Google
1650
1524
  attr_accessor :items
1651
1525
 
1652
1526
  # Uniquely identifies the type of this resource. Value is always the fixed
1653
- # string games#leaderboardScores.
1527
+ # string `games#leaderboardScores`.
1654
1528
  # Corresponds to the JSON property `kind`
1655
1529
  # @return [String]
1656
1530
  attr_accessor :kind
@@ -1665,7 +1539,7 @@ module Google
1665
1539
  # @return [Fixnum]
1666
1540
  attr_accessor :num_scores
1667
1541
 
1668
- # This is a JSON template for the Leaderboard Entry resource.
1542
+ # The Leaderboard Entry resource.
1669
1543
  # Corresponds to the JSON property `playerScore`
1670
1544
  # @return [Google::Apis::GamesV1::LeaderboardEntry]
1671
1545
  attr_accessor :player_score
@@ -1690,18 +1564,18 @@ module Google
1690
1564
  end
1691
1565
  end
1692
1566
 
1693
- # This is a JSON template for the metagame config resource
1567
+ # The metagame config resource
1694
1568
  class MetagameConfig
1695
1569
  include Google::Apis::Core::Hashable
1696
1570
 
1697
- # Current version of the metagame configuration data. When this data is updated,
1698
- # the version number will be increased by one.
1571
+ # Current version of the metagame configuration data. When this data is
1572
+ # updated, the version number will be increased by one.
1699
1573
  # Corresponds to the JSON property `currentVersion`
1700
1574
  # @return [Fixnum]
1701
1575
  attr_accessor :current_version
1702
1576
 
1703
1577
  # Uniquely identifies the type of this resource. Value is always the fixed
1704
- # string games#metagameConfig.
1578
+ # string `games#metagameConfig`.
1705
1579
  # Corresponds to the JSON property `kind`
1706
1580
  # @return [String]
1707
1581
  attr_accessor :kind
@@ -1723,262 +1597,7 @@ module Google
1723
1597
  end
1724
1598
  end
1725
1599
 
1726
- # This is a JSON template for network diagnostics reported for a client.
1727
- class NetworkDiagnostics
1728
- include Google::Apis::Core::Hashable
1729
-
1730
- # The Android network subtype.
1731
- # Corresponds to the JSON property `androidNetworkSubtype`
1732
- # @return [Fixnum]
1733
- attr_accessor :android_network_subtype
1734
-
1735
- # The Android network type.
1736
- # Corresponds to the JSON property `androidNetworkType`
1737
- # @return [Fixnum]
1738
- attr_accessor :android_network_type
1739
-
1740
- # iOS network type as defined in Reachability.h.
1741
- # Corresponds to the JSON property `iosNetworkType`
1742
- # @return [Fixnum]
1743
- attr_accessor :ios_network_type
1744
-
1745
- # Uniquely identifies the type of this resource. Value is always the fixed
1746
- # string games#networkDiagnostics.
1747
- # Corresponds to the JSON property `kind`
1748
- # @return [String]
1749
- attr_accessor :kind
1750
-
1751
- # The MCC+MNC code for the client's network connection. On Android: http://
1752
- # developer.android.com/reference/android/telephony/TelephonyManager.html#
1753
- # getNetworkOperator() On iOS, see: https://developer.apple.com/library/ios/
1754
- # documentation/NetworkingInternet/Reference/CTCarrier/Reference/Reference.html
1755
- # Corresponds to the JSON property `networkOperatorCode`
1756
- # @return [String]
1757
- attr_accessor :network_operator_code
1758
-
1759
- # The name of the carrier of the client's network connection. On Android: http://
1760
- # developer.android.com/reference/android/telephony/TelephonyManager.html#
1761
- # getNetworkOperatorName() On iOS: https://developer.apple.com/library/ios/
1762
- # documentation/NetworkingInternet/Reference/CTCarrier/Reference/Reference.html#/
1763
- # /apple_ref/occ/instp/CTCarrier/carrierName
1764
- # Corresponds to the JSON property `networkOperatorName`
1765
- # @return [String]
1766
- attr_accessor :network_operator_name
1767
-
1768
- # The amount of time in milliseconds it took for the client to establish a
1769
- # connection with the XMPP server.
1770
- # Corresponds to the JSON property `registrationLatencyMillis`
1771
- # @return [Fixnum]
1772
- attr_accessor :registration_latency_millis
1773
-
1774
- def initialize(**args)
1775
- update!(**args)
1776
- end
1777
-
1778
- # Update properties of this object
1779
- def update!(**args)
1780
- @android_network_subtype = args[:android_network_subtype] if args.key?(:android_network_subtype)
1781
- @android_network_type = args[:android_network_type] if args.key?(:android_network_type)
1782
- @ios_network_type = args[:ios_network_type] if args.key?(:ios_network_type)
1783
- @kind = args[:kind] if args.key?(:kind)
1784
- @network_operator_code = args[:network_operator_code] if args.key?(:network_operator_code)
1785
- @network_operator_name = args[:network_operator_name] if args.key?(:network_operator_name)
1786
- @registration_latency_millis = args[:registration_latency_millis] if args.key?(:registration_latency_millis)
1787
- end
1788
- end
1789
-
1790
- # This is a JSON template for a result for a match participant.
1791
- class ParticipantResult
1792
- include Google::Apis::Core::Hashable
1793
-
1794
- # Uniquely identifies the type of this resource. Value is always the fixed
1795
- # string games#participantResult.
1796
- # Corresponds to the JSON property `kind`
1797
- # @return [String]
1798
- attr_accessor :kind
1799
-
1800
- # The ID of the participant.
1801
- # Corresponds to the JSON property `participantId`
1802
- # @return [String]
1803
- attr_accessor :participant_id
1804
-
1805
- # The placement or ranking of the participant in the match results; a number
1806
- # from one to the number of participants in the match. Multiple participants may
1807
- # have the same placing value in case of a type.
1808
- # Corresponds to the JSON property `placing`
1809
- # @return [Fixnum]
1810
- attr_accessor :placing
1811
-
1812
- # The result of the participant for this match.
1813
- # Possible values are:
1814
- # - "MATCH_RESULT_WIN" - The participant won the match.
1815
- # - "MATCH_RESULT_LOSS" - The participant lost the match.
1816
- # - "MATCH_RESULT_TIE" - The participant tied the match.
1817
- # - "MATCH_RESULT_NONE" - There was no winner for the match (nobody wins or
1818
- # loses this kind of game.)
1819
- # - "MATCH_RESULT_DISCONNECT" - The participant disconnected / left during the
1820
- # match.
1821
- # - "MATCH_RESULT_DISAGREED" - Different clients reported different results for
1822
- # this participant.
1823
- # Corresponds to the JSON property `result`
1824
- # @return [String]
1825
- attr_accessor :result
1826
-
1827
- def initialize(**args)
1828
- update!(**args)
1829
- end
1830
-
1831
- # Update properties of this object
1832
- def update!(**args)
1833
- @kind = args[:kind] if args.key?(:kind)
1834
- @participant_id = args[:participant_id] if args.key?(:participant_id)
1835
- @placing = args[:placing] if args.key?(:placing)
1836
- @result = args[:result] if args.key?(:result)
1837
- end
1838
- end
1839
-
1840
- # This is a JSON template for peer channel diagnostics.
1841
- class PeerChannelDiagnostics
1842
- include Google::Apis::Core::Hashable
1843
-
1844
- # This is a JSON template for aggregate stats.
1845
- # Corresponds to the JSON property `bytesReceived`
1846
- # @return [Google::Apis::GamesV1::AggregateStats]
1847
- attr_accessor :bytes_received
1848
-
1849
- # This is a JSON template for aggregate stats.
1850
- # Corresponds to the JSON property `bytesSent`
1851
- # @return [Google::Apis::GamesV1::AggregateStats]
1852
- attr_accessor :bytes_sent
1853
-
1854
- # Uniquely identifies the type of this resource. Value is always the fixed
1855
- # string games#peerChannelDiagnostics.
1856
- # Corresponds to the JSON property `kind`
1857
- # @return [String]
1858
- attr_accessor :kind
1859
-
1860
- # Number of messages lost.
1861
- # Corresponds to the JSON property `numMessagesLost`
1862
- # @return [Fixnum]
1863
- attr_accessor :num_messages_lost
1864
-
1865
- # Number of messages received.
1866
- # Corresponds to the JSON property `numMessagesReceived`
1867
- # @return [Fixnum]
1868
- attr_accessor :num_messages_received
1869
-
1870
- # Number of messages sent.
1871
- # Corresponds to the JSON property `numMessagesSent`
1872
- # @return [Fixnum]
1873
- attr_accessor :num_messages_sent
1874
-
1875
- # Number of send failures.
1876
- # Corresponds to the JSON property `numSendFailures`
1877
- # @return [Fixnum]
1878
- attr_accessor :num_send_failures
1879
-
1880
- # This is a JSON template for aggregate stats.
1881
- # Corresponds to the JSON property `roundtripLatencyMillis`
1882
- # @return [Google::Apis::GamesV1::AggregateStats]
1883
- attr_accessor :roundtrip_latency_millis
1884
-
1885
- def initialize(**args)
1886
- update!(**args)
1887
- end
1888
-
1889
- # Update properties of this object
1890
- def update!(**args)
1891
- @bytes_received = args[:bytes_received] if args.key?(:bytes_received)
1892
- @bytes_sent = args[:bytes_sent] if args.key?(:bytes_sent)
1893
- @kind = args[:kind] if args.key?(:kind)
1894
- @num_messages_lost = args[:num_messages_lost] if args.key?(:num_messages_lost)
1895
- @num_messages_received = args[:num_messages_received] if args.key?(:num_messages_received)
1896
- @num_messages_sent = args[:num_messages_sent] if args.key?(:num_messages_sent)
1897
- @num_send_failures = args[:num_send_failures] if args.key?(:num_send_failures)
1898
- @roundtrip_latency_millis = args[:roundtrip_latency_millis] if args.key?(:roundtrip_latency_millis)
1899
- end
1900
- end
1901
-
1902
- # This is a JSON template for peer session diagnostics.
1903
- class PeerSessionDiagnostics
1904
- include Google::Apis::Core::Hashable
1905
-
1906
- # Connected time in milliseconds.
1907
- # Corresponds to the JSON property `connectedTimestampMillis`
1908
- # @return [Fixnum]
1909
- attr_accessor :connected_timestamp_millis
1910
-
1911
- # Uniquely identifies the type of this resource. Value is always the fixed
1912
- # string games#peerSessionDiagnostics.
1913
- # Corresponds to the JSON property `kind`
1914
- # @return [String]
1915
- attr_accessor :kind
1916
-
1917
- # The participant ID of the peer.
1918
- # Corresponds to the JSON property `participantId`
1919
- # @return [String]
1920
- attr_accessor :participant_id
1921
-
1922
- # This is a JSON template for peer channel diagnostics.
1923
- # Corresponds to the JSON property `reliableChannel`
1924
- # @return [Google::Apis::GamesV1::PeerChannelDiagnostics]
1925
- attr_accessor :reliable_channel
1926
-
1927
- # This is a JSON template for peer channel diagnostics.
1928
- # Corresponds to the JSON property `unreliableChannel`
1929
- # @return [Google::Apis::GamesV1::PeerChannelDiagnostics]
1930
- attr_accessor :unreliable_channel
1931
-
1932
- def initialize(**args)
1933
- update!(**args)
1934
- end
1935
-
1936
- # Update properties of this object
1937
- def update!(**args)
1938
- @connected_timestamp_millis = args[:connected_timestamp_millis] if args.key?(:connected_timestamp_millis)
1939
- @kind = args[:kind] if args.key?(:kind)
1940
- @participant_id = args[:participant_id] if args.key?(:participant_id)
1941
- @reliable_channel = args[:reliable_channel] if args.key?(:reliable_channel)
1942
- @unreliable_channel = args[:unreliable_channel] if args.key?(:unreliable_channel)
1943
- end
1944
- end
1945
-
1946
- # This is a JSON template for metadata about a player playing a game with the
1947
- # currently authenticated user.
1948
- class Played
1949
- include Google::Apis::Core::Hashable
1950
-
1951
- # True if the player was auto-matched with the currently authenticated user.
1952
- # Corresponds to the JSON property `autoMatched`
1953
- # @return [Boolean]
1954
- attr_accessor :auto_matched
1955
- alias_method :auto_matched?, :auto_matched
1956
-
1957
- # Uniquely identifies the type of this resource. Value is always the fixed
1958
- # string games#played.
1959
- # Corresponds to the JSON property `kind`
1960
- # @return [String]
1961
- attr_accessor :kind
1962
-
1963
- # The last time the player played the game in milliseconds since the epoch in
1964
- # UTC.
1965
- # Corresponds to the JSON property `timeMillis`
1966
- # @return [Fixnum]
1967
- attr_accessor :time_millis
1968
-
1969
- def initialize(**args)
1970
- update!(**args)
1971
- end
1972
-
1973
- # Update properties of this object
1974
- def update!(**args)
1975
- @auto_matched = args[:auto_matched] if args.key?(:auto_matched)
1976
- @kind = args[:kind] if args.key?(:kind)
1977
- @time_millis = args[:time_millis] if args.key?(:time_millis)
1978
- end
1979
- end
1980
-
1981
- # This is a JSON template for a Player resource.
1600
+ # A Player resource.
1982
1601
  class Player
1983
1602
  include Google::Apis::Core::Hashable
1984
1603
 
@@ -2002,7 +1621,7 @@ module Google
2002
1621
  # @return [String]
2003
1622
  attr_accessor :display_name
2004
1623
 
2005
- # This is a JSON template for 1P/3P metadata about the player's experience.
1624
+ # 1P/3P metadata about the player's experience.
2006
1625
  # Corresponds to the JSON property `experienceInfo`
2007
1626
  # @return [Google::Apis::GamesV1::PlayerExperienceInfo]
2008
1627
  attr_accessor :experience_info
@@ -2014,27 +1633,20 @@ module Google
2014
1633
  attr_accessor :friend_status
2015
1634
 
2016
1635
  # Uniquely identifies the type of this resource. Value is always the fixed
2017
- # string games#player.
1636
+ # string `games#player`
2018
1637
  # Corresponds to the JSON property `kind`
2019
1638
  # @return [String]
2020
1639
  attr_accessor :kind
2021
1640
 
2022
- # This is a JSON template for metadata about a player playing a game with the
2023
- # currently authenticated user.
2024
- # Corresponds to the JSON property `lastPlayedWith`
2025
- # @return [Google::Apis::GamesV1::Played]
2026
- attr_accessor :last_played_with
2027
-
2028
- # An object representation of the individual components of the player's name.
2029
- # For some players, these fields may not be present.
1641
+ # A representation of the individual components of the name.
2030
1642
  # Corresponds to the JSON property `name`
2031
1643
  # @return [Google::Apis::GamesV1::Player::Name]
2032
1644
  attr_accessor :name
2033
1645
 
2034
1646
  # The player ID that was used for this player the first time they signed into
2035
- # the game in question. This is only populated for calls to player.get for the
2036
- # requesting player, only if the player ID has subsequently changed, and only to
2037
- # clients that support remapping player IDs.
1647
+ # the game in question. This is only populated for calls to player.get for
1648
+ # the requesting player, only if the player ID has subsequently changed, and
1649
+ # only to clients that support remapping player IDs.
2038
1650
  # Corresponds to the JSON property `originalPlayerId`
2039
1651
  # @return [String]
2040
1652
  attr_accessor :original_player_id
@@ -2044,7 +1656,7 @@ module Google
2044
1656
  # @return [String]
2045
1657
  attr_accessor :player_id
2046
1658
 
2047
- # This is a JSON template for profile settings
1659
+ # Profile settings
2048
1660
  # Corresponds to the JSON property `profileSettings`
2049
1661
  # @return [Google::Apis::GamesV1::ProfileSettings]
2050
1662
  attr_accessor :profile_settings
@@ -2067,7 +1679,6 @@ module Google
2067
1679
  @experience_info = args[:experience_info] if args.key?(:experience_info)
2068
1680
  @friend_status = args[:friend_status] if args.key?(:friend_status)
2069
1681
  @kind = args[:kind] if args.key?(:kind)
2070
- @last_played_with = args[:last_played_with] if args.key?(:last_played_with)
2071
1682
  @name = args[:name] if args.key?(:name)
2072
1683
  @original_player_id = args[:original_player_id] if args.key?(:original_player_id)
2073
1684
  @player_id = args[:player_id] if args.key?(:player_id)
@@ -2075,17 +1686,18 @@ module Google
2075
1686
  @title = args[:title] if args.key?(:title)
2076
1687
  end
2077
1688
 
2078
- # An object representation of the individual components of the player's name.
2079
- # For some players, these fields may not be present.
1689
+ # A representation of the individual components of the name.
2080
1690
  class Name
2081
1691
  include Google::Apis::Core::Hashable
2082
1692
 
2083
- # The family name of this player. In some places, this is known as the last name.
1693
+ # The family name of this player. In some places, this is known as the last
1694
+ # name.
2084
1695
  # Corresponds to the JSON property `familyName`
2085
1696
  # @return [String]
2086
1697
  attr_accessor :family_name
2087
1698
 
2088
- # The given name of this player. In some places, this is known as the first name.
1699
+ # The given name of this player. In some places, this is known as the first
1700
+ # name.
2089
1701
  # Corresponds to the JSON property `givenName`
2090
1702
  # @return [String]
2091
1703
  attr_accessor :given_name
@@ -2102,15 +1714,11 @@ module Google
2102
1714
  end
2103
1715
  end
2104
1716
 
2105
- # This is a JSON template for an achievement object.
1717
+ # An achievement object.
2106
1718
  class PlayerAchievement
2107
1719
  include Google::Apis::Core::Hashable
2108
1720
 
2109
1721
  # The state of the achievement.
2110
- # Possible values are:
2111
- # - "HIDDEN" - Achievement is hidden.
2112
- # - "REVEALED" - Achievement is revealed.
2113
- # - "UNLOCKED" - Achievement is unlocked.
2114
1722
  # Corresponds to the JSON property `achievementState`
2115
1723
  # @return [String]
2116
1724
  attr_accessor :achievement_state
@@ -2121,8 +1729,8 @@ module Google
2121
1729
  attr_accessor :current_steps
2122
1730
 
2123
1731
  # Experience points earned for the achievement. This field is absent for
2124
- # achievements that have not yet been unlocked and 0 for achievements that have
2125
- # been unlocked by testers but that are unpublished.
1732
+ # achievements that have not yet been unlocked and 0 for achievements that
1733
+ # have been unlocked by testers but that are unpublished.
2126
1734
  # Corresponds to the JSON property `experiencePoints`
2127
1735
  # @return [Fixnum]
2128
1736
  attr_accessor :experience_points
@@ -2138,7 +1746,7 @@ module Google
2138
1746
  attr_accessor :id
2139
1747
 
2140
1748
  # Uniquely identifies the type of this resource. Value is always the fixed
2141
- # string games#playerAchievement.
1749
+ # string `games#playerAchievement`.
2142
1750
  # Corresponds to the JSON property `kind`
2143
1751
  # @return [String]
2144
1752
  attr_accessor :kind
@@ -2164,7 +1772,7 @@ module Google
2164
1772
  end
2165
1773
  end
2166
1774
 
2167
- # This is a JSON template for a list of achievement objects.
1775
+ # A list of achievement objects.
2168
1776
  class ListPlayerAchievementResponse
2169
1777
  include Google::Apis::Core::Hashable
2170
1778
 
@@ -2174,7 +1782,7 @@ module Google
2174
1782
  attr_accessor :items
2175
1783
 
2176
1784
  # Uniquely identifies the type of this resource. Value is always the fixed
2177
- # string games#playerAchievementListResponse.
1785
+ # string `games#playerAchievementListResponse`.
2178
1786
  # Corresponds to the JSON property `kind`
2179
1787
  # @return [String]
2180
1788
  attr_accessor :kind
@@ -2196,7 +1804,7 @@ module Google
2196
1804
  end
2197
1805
  end
2198
1806
 
2199
- # This is a JSON template for an event status resource.
1807
+ # An event status resource.
2200
1808
  class PlayerEvent
2201
1809
  include Google::Apis::Core::Hashable
2202
1810
 
@@ -2213,7 +1821,7 @@ module Google
2213
1821
  attr_accessor :formatted_num_events
2214
1822
 
2215
1823
  # Uniquely identifies the type of this resource. Value is always the fixed
2216
- # string games#playerEvent.
1824
+ # string `games#playerEvent`.
2217
1825
  # Corresponds to the JSON property `kind`
2218
1826
  # @return [String]
2219
1827
  attr_accessor :kind
@@ -2242,7 +1850,7 @@ module Google
2242
1850
  end
2243
1851
  end
2244
1852
 
2245
- # This is a JSON template for a ListByPlayer response.
1853
+ # A ListByPlayer response.
2246
1854
  class ListPlayerEventResponse
2247
1855
  include Google::Apis::Core::Hashable
2248
1856
 
@@ -2252,7 +1860,7 @@ module Google
2252
1860
  attr_accessor :items
2253
1861
 
2254
1862
  # Uniquely identifies the type of this resource. Value is always the fixed
2255
- # string games#playerEventListResponse.
1863
+ # string `games#playerEventListResponse`.
2256
1864
  # Corresponds to the JSON property `kind`
2257
1865
  # @return [String]
2258
1866
  attr_accessor :kind
@@ -2274,7 +1882,7 @@ module Google
2274
1882
  end
2275
1883
  end
2276
1884
 
2277
- # This is a JSON template for 1P/3P metadata about the player's experience.
1885
+ # 1P/3P metadata about the player's experience.
2278
1886
  class PlayerExperienceInfo
2279
1887
  include Google::Apis::Core::Hashable
2280
1888
 
@@ -2283,23 +1891,24 @@ module Google
2283
1891
  # @return [Fixnum]
2284
1892
  attr_accessor :current_experience_points
2285
1893
 
2286
- # This is a JSON template for 1P/3P metadata about a user's level.
1894
+ # 1P/3P metadata about a user's level.
2287
1895
  # Corresponds to the JSON property `currentLevel`
2288
1896
  # @return [Google::Apis::GamesV1::PlayerLevel]
2289
1897
  attr_accessor :current_level
2290
1898
 
2291
1899
  # Uniquely identifies the type of this resource. Value is always the fixed
2292
- # string games#playerExperienceInfo.
1900
+ # string `games#playerExperienceInfo`.
2293
1901
  # Corresponds to the JSON property `kind`
2294
1902
  # @return [String]
2295
1903
  attr_accessor :kind
2296
1904
 
2297
- # The timestamp when the player was leveled up, in millis since Unix epoch UTC.
1905
+ # The timestamp when the player was leveled up, in millis since Unix epoch
1906
+ # UTC.
2298
1907
  # Corresponds to the JSON property `lastLevelUpTimestampMillis`
2299
1908
  # @return [Fixnum]
2300
1909
  attr_accessor :last_level_up_timestamp_millis
2301
1910
 
2302
- # This is a JSON template for 1P/3P metadata about a user's level.
1911
+ # 1P/3P metadata about a user's level.
2303
1912
  # Corresponds to the JSON property `nextLevel`
2304
1913
  # @return [Google::Apis::GamesV1::PlayerLevel]
2305
1914
  attr_accessor :next_level
@@ -2318,12 +1927,12 @@ module Google
2318
1927
  end
2319
1928
  end
2320
1929
 
2321
- # This is a JSON template for a player leaderboard score object.
1930
+ # A player leaderboard score object.
2322
1931
  class PlayerLeaderboardScore
2323
1932
  include Google::Apis::Core::Hashable
2324
1933
 
2325
1934
  # Uniquely identifies the type of this resource. Value is always the fixed
2326
- # string games#playerLeaderboardScore.
1935
+ # string `games#playerLeaderboardScore`.
2327
1936
  # Corresponds to the JSON property `kind`
2328
1937
  # @return [String]
2329
1938
  attr_accessor :kind
@@ -2333,7 +1942,7 @@ module Google
2333
1942
  # @return [String]
2334
1943
  attr_accessor :leaderboard_id
2335
1944
 
2336
- # This is a JSON template for a score rank in a leaderboard.
1945
+ # A score rank in a leaderboard.
2337
1946
  # Corresponds to the JSON property `publicRank`
2338
1947
  # @return [Google::Apis::GamesV1::LeaderboardScoreRank]
2339
1948
  attr_accessor :public_rank
@@ -2343,8 +1952,8 @@ module Google
2343
1952
  # @return [String]
2344
1953
  attr_accessor :score_string
2345
1954
 
2346
- # Additional information about the score. Values must contain no more than 64
2347
- # URI-safe characters as defined by section 2.3 of RFC 3986.
1955
+ # Additional information about the score. Values must contain no more than
1956
+ # 64 URI-safe characters as defined by section 2.3 of RFC 3986.
2348
1957
  # Corresponds to the JSON property `scoreTag`
2349
1958
  # @return [String]
2350
1959
  attr_accessor :score_tag
@@ -2354,16 +1963,12 @@ module Google
2354
1963
  # @return [Fixnum]
2355
1964
  attr_accessor :score_value
2356
1965
 
2357
- # This is a JSON template for a score rank in a leaderboard.
1966
+ # A score rank in a leaderboard.
2358
1967
  # Corresponds to the JSON property `socialRank`
2359
1968
  # @return [Google::Apis::GamesV1::LeaderboardScoreRank]
2360
1969
  attr_accessor :social_rank
2361
1970
 
2362
1971
  # The time span of this score.
2363
- # Possible values are:
2364
- # - "ALL_TIME" - The score is an all-time score.
2365
- # - "WEEKLY" - The score is a weekly score.
2366
- # - "DAILY" - The score is a daily score.
2367
1972
  # Corresponds to the JSON property `timeSpan`
2368
1973
  # @return [String]
2369
1974
  attr_accessor :time_span
@@ -2392,7 +1997,7 @@ module Google
2392
1997
  end
2393
1998
  end
2394
1999
 
2395
- # This is a JSON template for a list of player leaderboard scores.
2000
+ # A list of player leaderboard scores.
2396
2001
  class ListPlayerLeaderboardScoreResponse
2397
2002
  include Google::Apis::Core::Hashable
2398
2003
 
@@ -2402,7 +2007,7 @@ module Google
2402
2007
  attr_accessor :items
2403
2008
 
2404
2009
  # Uniquely identifies the type of this resource. Value is always the fixed
2405
- # string games#playerLeaderboardScoreListResponse.
2010
+ # string `games#playerLeaderboardScoreListResponse`.
2406
2011
  # Corresponds to the JSON property `kind`
2407
2012
  # @return [String]
2408
2013
  attr_accessor :kind
@@ -2412,7 +2017,7 @@ module Google
2412
2017
  # @return [String]
2413
2018
  attr_accessor :next_page_token
2414
2019
 
2415
- # This is a JSON template for a Player resource.
2020
+ # A Player resource.
2416
2021
  # Corresponds to the JSON property `player`
2417
2022
  # @return [Google::Apis::GamesV1::Player]
2418
2023
  attr_accessor :player
@@ -2430,12 +2035,12 @@ module Google
2430
2035
  end
2431
2036
  end
2432
2037
 
2433
- # This is a JSON template for 1P/3P metadata about a user's level.
2038
+ # 1P/3P metadata about a user's level.
2434
2039
  class PlayerLevel
2435
2040
  include Google::Apis::Core::Hashable
2436
2041
 
2437
2042
  # Uniquely identifies the type of this resource. Value is always the fixed
2438
- # string games#playerLevel.
2043
+ # string `games#playerLevel`.
2439
2044
  # Corresponds to the JSON property `kind`
2440
2045
  # @return [String]
2441
2046
  attr_accessor :kind
@@ -2468,7 +2073,7 @@ module Google
2468
2073
  end
2469
2074
  end
2470
2075
 
2471
- # This is a JSON template for a third party player list response.
2076
+ # A third party player list response.
2472
2077
  class ListPlayerResponse
2473
2078
  include Google::Apis::Core::Hashable
2474
2079
 
@@ -2478,7 +2083,7 @@ module Google
2478
2083
  attr_accessor :items
2479
2084
 
2480
2085
  # Uniquely identifies the type of this resource. Value is always the fixed
2481
- # string games#playerListResponse.
2086
+ # string `games#playerListResponse`.
2482
2087
  # Corresponds to the JSON property `kind`
2483
2088
  # @return [String]
2484
2089
  attr_accessor :kind
@@ -2500,7 +2105,7 @@ module Google
2500
2105
  end
2501
2106
  end
2502
2107
 
2503
- # This is a JSON template for a player score.
2108
+ # A player score.
2504
2109
  class PlayerScore
2505
2110
  include Google::Apis::Core::Hashable
2506
2111
 
@@ -2510,7 +2115,7 @@ module Google
2510
2115
  attr_accessor :formatted_score
2511
2116
 
2512
2117
  # Uniquely identifies the type of this resource. Value is always the fixed
2513
- # string games#playerScore.
2118
+ # string `games#playerScore`.
2514
2119
  # Corresponds to the JSON property `kind`
2515
2120
  # @return [String]
2516
2121
  attr_accessor :kind
@@ -2520,17 +2125,13 @@ module Google
2520
2125
  # @return [Fixnum]
2521
2126
  attr_accessor :score
2522
2127
 
2523
- # Additional information about this score. Values will contain no more than 64
2524
- # URI-safe characters as defined by section 2.3 of RFC 3986.
2128
+ # Additional information about this score. Values will contain no more than
2129
+ # 64 URI-safe characters as defined by section 2.3 of RFC 3986.
2525
2130
  # Corresponds to the JSON property `scoreTag`
2526
2131
  # @return [String]
2527
2132
  attr_accessor :score_tag
2528
2133
 
2529
2134
  # The time span for this player score.
2530
- # Possible values are:
2531
- # - "ALL_TIME" - The score is an all-time score.
2532
- # - "WEEKLY" - The score is a weekly score.
2533
- # - "DAILY" - The score is a daily score.
2534
2135
  # Corresponds to the JSON property `timeSpan`
2535
2136
  # @return [String]
2536
2137
  attr_accessor :time_span
@@ -2549,12 +2150,12 @@ module Google
2549
2150
  end
2550
2151
  end
2551
2152
 
2552
- # This is a JSON template for a list of score submission statuses.
2153
+ # A list of score submission statuses.
2553
2154
  class ListPlayerScoreResponse
2554
2155
  include Google::Apis::Core::Hashable
2555
2156
 
2556
2157
  # Uniquely identifies the type of this resource. Value is always the fixed
2557
- # string games#playerScoreListResponse.
2158
+ # string `games#playerScoreListResponse`.
2558
2159
  # Corresponds to the JSON property `kind`
2559
2160
  # @return [String]
2560
2161
  attr_accessor :kind
@@ -2575,16 +2176,12 @@ module Google
2575
2176
  end
2576
2177
  end
2577
2178
 
2578
- # This is a JSON template for a list of leaderboard entry resources.
2179
+ # A list of leaderboard entry resources.
2579
2180
  class PlayerScoreResponse
2580
2181
  include Google::Apis::Core::Hashable
2581
2182
 
2582
- # The time spans where the submitted score is better than the existing score for
2583
- # that time span.
2584
- # Possible values are:
2585
- # - "ALL_TIME" - The score is an all-time score.
2586
- # - "WEEKLY" - The score is a weekly score.
2587
- # - "DAILY" - The score is a daily score.
2183
+ # The time spans where the submitted score is better than the existing score
2184
+ # for that time span.
2588
2185
  # Corresponds to the JSON property `beatenScoreTimeSpans`
2589
2186
  # @return [Array<String>]
2590
2187
  attr_accessor :beaten_score_time_spans
@@ -2595,7 +2192,7 @@ module Google
2595
2192
  attr_accessor :formatted_score
2596
2193
 
2597
2194
  # Uniquely identifies the type of this resource. Value is always the fixed
2598
- # string games#playerScoreResponse.
2195
+ # string `games#playerScoreResponse`.
2599
2196
  # Corresponds to the JSON property `kind`
2600
2197
  # @return [String]
2601
2198
  attr_accessor :kind
@@ -2605,15 +2202,16 @@ module Google
2605
2202
  # @return [String]
2606
2203
  attr_accessor :leaderboard_id
2607
2204
 
2608
- # Additional information about this score. Values will contain no more than 64
2609
- # URI-safe characters as defined by section 2.3 of RFC 3986.
2205
+ # Additional information about this score. Values will contain no more than
2206
+ # 64 URI-safe characters as defined by section 2.3 of RFC 3986.
2610
2207
  # Corresponds to the JSON property `scoreTag`
2611
2208
  # @return [String]
2612
2209
  attr_accessor :score_tag
2613
2210
 
2614
- # The scores in time spans that have not been beaten. As an example, the
2615
- # submitted score may be better than the player's DAILY score, but not better
2616
- # than the player's scores for the WEEKLY or ALL_TIME time spans.
2211
+ # The scores in time spans that have not been beaten. As an example, the
2212
+ # submitted score may be better than the
2213
+ # player's `DAILY` score, but not better than the player's scores
2214
+ # for the `WEEKLY` or `ALL_TIME` time spans.
2617
2215
  # Corresponds to the JSON property `unbeatenScores`
2618
2216
  # @return [Array<Google::Apis::GamesV1::PlayerScore>]
2619
2217
  attr_accessor :unbeaten_scores
@@ -2633,12 +2231,12 @@ module Google
2633
2231
  end
2634
2232
  end
2635
2233
 
2636
- # This is a JSON template for a list of score submission requests
2234
+ # A list of score submission requests.
2637
2235
  class PlayerScoreSubmissionList
2638
2236
  include Google::Apis::Core::Hashable
2639
2237
 
2640
2238
  # Uniquely identifies the type of this resource. Value is always the fixed
2641
- # string games#playerScoreSubmissionList.
2239
+ # string `games#playerScoreSubmissionList`.
2642
2240
  # Corresponds to the JSON property `kind`
2643
2241
  # @return [String]
2644
2242
  attr_accessor :kind
@@ -2659,22 +2257,22 @@ module Google
2659
2257
  end
2660
2258
  end
2661
2259
 
2662
- # This is a JSON template for profile settings
2260
+ # Profile settings
2663
2261
  class ProfileSettings
2664
2262
  include Google::Apis::Core::Hashable
2665
2263
 
2666
- # Whether the player's friends list is visible to the game.
2264
+ #
2667
2265
  # Corresponds to the JSON property `friendsListVisibility`
2668
2266
  # @return [String]
2669
2267
  attr_accessor :friends_list_visibility
2670
2268
 
2671
2269
  # Uniquely identifies the type of this resource. Value is always the fixed
2672
- # string games#profileSettings.
2270
+ # string `games#profileSettings`.
2673
2271
  # Corresponds to the JSON property `kind`
2674
2272
  # @return [String]
2675
2273
  attr_accessor :kind
2676
2274
 
2677
- #
2275
+ # Whether the player's profile is visible to the currently signed in player.
2678
2276
  # Corresponds to the JSON property `profileVisible`
2679
2277
  # @return [Boolean]
2680
2278
  attr_accessor :profile_visible
@@ -2692,34 +2290,26 @@ module Google
2692
2290
  end
2693
2291
  end
2694
2292
 
2695
- # This is a JSON template for a push token resource.
2696
- class PushToken
2293
+ # A third party checking a revision response.
2294
+ class CheckRevisionResponse
2697
2295
  include Google::Apis::Core::Hashable
2698
2296
 
2699
- # The revision of the client SDK used by your application, in the same format
2700
- # that's used by revisions.check. Used to send backward compatible messages.
2701
- # Format: [PLATFORM_TYPE]:[VERSION_NUMBER]. Possible values of PLATFORM_TYPE are:
2702
- #
2703
- # - IOS - Push token is for iOS
2704
- # Corresponds to the JSON property `clientRevision`
2297
+ # The version of the API this client revision should use when calling API
2298
+ # methods.
2299
+ # Corresponds to the JSON property `apiVersion`
2705
2300
  # @return [String]
2706
- attr_accessor :client_revision
2707
-
2708
- # This is a JSON template for a push token ID resource.
2709
- # Corresponds to the JSON property `id`
2710
- # @return [Google::Apis::GamesV1::PushTokenId]
2711
- attr_accessor :id
2301
+ attr_accessor :api_version
2712
2302
 
2713
2303
  # Uniquely identifies the type of this resource. Value is always the fixed
2714
- # string games#pushToken.
2304
+ # string `games#revisionCheckResponse`.
2715
2305
  # Corresponds to the JSON property `kind`
2716
2306
  # @return [String]
2717
2307
  attr_accessor :kind
2718
2308
 
2719
- # The preferred language for notifications that are sent using this token.
2720
- # Corresponds to the JSON property `language`
2309
+ # The result of the revision check.
2310
+ # Corresponds to the JSON property `revisionStatus`
2721
2311
  # @return [String]
2722
- attr_accessor :language
2312
+ attr_accessor :revision_status
2723
2313
 
2724
2314
  def initialize(**args)
2725
2315
  update!(**args)
@@ -2727,92 +2317,43 @@ module Google
2727
2317
 
2728
2318
  # Update properties of this object
2729
2319
  def update!(**args)
2730
- @client_revision = args[:client_revision] if args.key?(:client_revision)
2731
- @id = args[:id] if args.key?(:id)
2320
+ @api_version = args[:api_version] if args.key?(:api_version)
2732
2321
  @kind = args[:kind] if args.key?(:kind)
2733
- @language = args[:language] if args.key?(:language)
2322
+ @revision_status = args[:revision_status] if args.key?(:revision_status)
2734
2323
  end
2735
2324
  end
2736
2325
 
2737
- # This is a JSON template for a push token ID resource.
2738
- class PushTokenId
2326
+ # A request to submit a score to leaderboards.
2327
+ class ScoreSubmission
2739
2328
  include Google::Apis::Core::Hashable
2740
2329
 
2741
- # A push token ID for iOS devices.
2742
- # Corresponds to the JSON property `ios`
2743
- # @return [Google::Apis::GamesV1::PushTokenId::Ios]
2744
- attr_accessor :ios
2745
-
2746
2330
  # Uniquely identifies the type of this resource. Value is always the fixed
2747
- # string games#pushTokenId.
2331
+ # string `games#scoreSubmission`.
2748
2332
  # Corresponds to the JSON property `kind`
2749
2333
  # @return [String]
2750
2334
  attr_accessor :kind
2751
2335
 
2752
- def initialize(**args)
2753
- update!(**args)
2754
- end
2755
-
2756
- # Update properties of this object
2757
- def update!(**args)
2758
- @ios = args[:ios] if args.key?(:ios)
2759
- @kind = args[:kind] if args.key?(:kind)
2760
- end
2761
-
2762
- # A push token ID for iOS devices.
2763
- class Ios
2764
- include Google::Apis::Core::Hashable
2765
-
2766
- # Device token supplied by an iOS system call to register for remote
2767
- # notifications. Encode this field as web-safe base64.
2768
- # Corresponds to the JSON property `apns_device_token`
2769
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
2770
- # @return [String]
2771
- attr_accessor :apns_device_token
2772
-
2773
- # Indicates whether this token should be used for the production or sandbox APNS
2774
- # server.
2775
- # Corresponds to the JSON property `apns_environment`
2776
- # @return [String]
2777
- attr_accessor :apns_environment
2778
-
2779
- def initialize(**args)
2780
- update!(**args)
2781
- end
2782
-
2783
- # Update properties of this object
2784
- def update!(**args)
2785
- @apns_device_token = args[:apns_device_token] if args.key?(:apns_device_token)
2786
- @apns_environment = args[:apns_environment] if args.key?(:apns_environment)
2787
- end
2788
- end
2789
- end
2790
-
2791
- # This is a JSON template for the result of checking a revision.
2792
- class CheckRevisionResponse
2793
- include Google::Apis::Core::Hashable
2794
-
2795
- # The version of the API this client revision should use when calling API
2796
- # methods.
2797
- # Corresponds to the JSON property `apiVersion`
2336
+ # The leaderboard this score is being submitted to.
2337
+ # Corresponds to the JSON property `leaderboardId`
2798
2338
  # @return [String]
2799
- attr_accessor :api_version
2339
+ attr_accessor :leaderboard_id
2800
2340
 
2801
- # Uniquely identifies the type of this resource. Value is always the fixed
2802
- # string games#revisionCheckResponse.
2803
- # Corresponds to the JSON property `kind`
2341
+ # The new score being submitted.
2342
+ # Corresponds to the JSON property `score`
2343
+ # @return [Fixnum]
2344
+ attr_accessor :score
2345
+
2346
+ # Additional information about this score. Values will contain no more than
2347
+ # 64 URI-safe characters as defined by section 2.3 of RFC 3986.
2348
+ # Corresponds to the JSON property `scoreTag`
2804
2349
  # @return [String]
2805
- attr_accessor :kind
2350
+ attr_accessor :score_tag
2806
2351
 
2807
- # The result of the revision check.
2808
- # Possible values are:
2809
- # - "OK" - The revision being used is current.
2810
- # - "DEPRECATED" - There is currently a newer version available, but the
2811
- # revision being used still works.
2812
- # - "INVALID" - The revision being used is not supported in any released version.
2813
- # Corresponds to the JSON property `revisionStatus`
2352
+ # Signature Values will contain URI-safe characters as defined by section 2.3
2353
+ # of RFC 3986.
2354
+ # Corresponds to the JSON property `signature`
2814
2355
  # @return [String]
2815
- attr_accessor :revision_status
2356
+ attr_accessor :signature
2816
2357
 
2817
2358
  def initialize(**args)
2818
2359
  update!(**args)
@@ -2820,303 +2361,77 @@ module Google
2820
2361
 
2821
2362
  # Update properties of this object
2822
2363
  def update!(**args)
2823
- @api_version = args[:api_version] if args.key?(:api_version)
2824
2364
  @kind = args[:kind] if args.key?(:kind)
2825
- @revision_status = args[:revision_status] if args.key?(:revision_status)
2365
+ @leaderboard_id = args[:leaderboard_id] if args.key?(:leaderboard_id)
2366
+ @score = args[:score] if args.key?(:score)
2367
+ @score_tag = args[:score_tag] if args.key?(:score_tag)
2368
+ @signature = args[:signature] if args.key?(:signature)
2826
2369
  end
2827
2370
  end
2828
2371
 
2829
- # This is a JSON template for a room resource object.
2830
- class Room
2372
+ # An snapshot object.
2373
+ class Snapshot
2831
2374
  include Google::Apis::Core::Hashable
2832
2375
 
2833
- # The ID of the application being played.
2834
- # Corresponds to the JSON property `applicationId`
2835
- # @return [String]
2836
- attr_accessor :application_id
2837
-
2838
- # This is a JSON template for a room auto-match criteria object.
2839
- # Corresponds to the JSON property `autoMatchingCriteria`
2840
- # @return [Google::Apis::GamesV1::RoomAutoMatchingCriteria]
2841
- attr_accessor :auto_matching_criteria
2842
-
2843
- # This is a JSON template for status of room automatching that is in progress.
2844
- # Corresponds to the JSON property `autoMatchingStatus`
2845
- # @return [Google::Apis::GamesV1::RoomAutoMatchStatus]
2846
- attr_accessor :auto_matching_status
2847
-
2848
- # This is a JSON template for room modification metadata.
2849
- # Corresponds to the JSON property `creationDetails`
2850
- # @return [Google::Apis::GamesV1::RoomModification]
2851
- attr_accessor :creation_details
2376
+ # An image of a snapshot.
2377
+ # Corresponds to the JSON property `coverImage`
2378
+ # @return [Google::Apis::GamesV1::SnapshotImage]
2379
+ attr_accessor :cover_image
2852
2380
 
2853
- # This short description is generated by our servers and worded relative to the
2854
- # player requesting the room. It is intended to be displayed when the room is
2855
- # shown in a list (that is, an invitation to a room.)
2381
+ # The description of this snapshot.
2856
2382
  # Corresponds to the JSON property `description`
2857
2383
  # @return [String]
2858
2384
  attr_accessor :description
2859
2385
 
2860
- # The ID of the participant that invited the user to the room. Not set if the
2861
- # user was not invited to the room.
2862
- # Corresponds to the JSON property `inviterId`
2863
- # @return [String]
2864
- attr_accessor :inviter_id
2865
-
2866
- # Uniquely identifies the type of this resource. Value is always the fixed
2867
- # string games#room.
2868
- # Corresponds to the JSON property `kind`
2869
- # @return [String]
2870
- attr_accessor :kind
2871
-
2872
- # This is a JSON template for room modification metadata.
2873
- # Corresponds to the JSON property `lastUpdateDetails`
2874
- # @return [Google::Apis::GamesV1::RoomModification]
2875
- attr_accessor :last_update_details
2876
-
2877
- # The participants involved in the room, along with their statuses. Includes
2878
- # participants who have left or declined invitations.
2879
- # Corresponds to the JSON property `participants`
2880
- # @return [Array<Google::Apis::GamesV1::RoomParticipant>]
2881
- attr_accessor :participants
2882
-
2883
- # Globally unique ID for a room.
2884
- # Corresponds to the JSON property `roomId`
2386
+ # The ID of the file underlying this snapshot in the Drive API. Only present
2387
+ # if the snapshot is a view on a Drive file and the file is owned by the
2388
+ # caller.
2389
+ # Corresponds to the JSON property `driveId`
2885
2390
  # @return [String]
2886
- attr_accessor :room_id
2391
+ attr_accessor :drive_id
2887
2392
 
2888
- # The version of the room status: an increasing counter, used by the client to
2889
- # ignore out-of-order updates to room status.
2890
- # Corresponds to the JSON property `roomStatusVersion`
2891
- # @return [Fixnum]
2892
- attr_accessor :room_status_version
2893
-
2894
- # The status of the room.
2895
- # Possible values are:
2896
- # - "ROOM_INVITING" - One or more players have been invited and not responded.
2897
- # - "ROOM_AUTO_MATCHING" - One or more slots need to be filled by auto-matching.
2898
- # - "ROOM_CONNECTING" - Players have joined and are connecting to each other (
2899
- # either before or after auto-matching).
2900
- # - "ROOM_ACTIVE" - All players have joined and connected to each other.
2901
- # - "ROOM_DELETED" - The room should no longer be shown on the client. Returned
2902
- # in sync calls when a player joins a room (as a tombstone), or for rooms where
2903
- # all joined participants have left.
2904
- # Corresponds to the JSON property `status`
2905
- # @return [String]
2906
- attr_accessor :status
2907
-
2908
- # The variant / mode of the application being played; can be any integer value,
2909
- # or left blank.
2910
- # Corresponds to the JSON property `variant`
2393
+ # The duration associated with this snapshot, in millis.
2394
+ # Corresponds to the JSON property `durationMillis`
2911
2395
  # @return [Fixnum]
2912
- attr_accessor :variant
2913
-
2914
- def initialize(**args)
2915
- update!(**args)
2916
- end
2917
-
2918
- # Update properties of this object
2919
- def update!(**args)
2920
- @application_id = args[:application_id] if args.key?(:application_id)
2921
- @auto_matching_criteria = args[:auto_matching_criteria] if args.key?(:auto_matching_criteria)
2922
- @auto_matching_status = args[:auto_matching_status] if args.key?(:auto_matching_status)
2923
- @creation_details = args[:creation_details] if args.key?(:creation_details)
2924
- @description = args[:description] if args.key?(:description)
2925
- @inviter_id = args[:inviter_id] if args.key?(:inviter_id)
2926
- @kind = args[:kind] if args.key?(:kind)
2927
- @last_update_details = args[:last_update_details] if args.key?(:last_update_details)
2928
- @participants = args[:participants] if args.key?(:participants)
2929
- @room_id = args[:room_id] if args.key?(:room_id)
2930
- @room_status_version = args[:room_status_version] if args.key?(:room_status_version)
2931
- @status = args[:status] if args.key?(:status)
2932
- @variant = args[:variant] if args.key?(:variant)
2933
- end
2934
- end
2935
-
2936
- # This is a JSON template for status of room automatching that is in progress.
2937
- class RoomAutoMatchStatus
2938
- include Google::Apis::Core::Hashable
2396
+ attr_accessor :duration_millis
2939
2397
 
2940
- # Uniquely identifies the type of this resource. Value is always the fixed
2941
- # string games#roomAutoMatchStatus.
2942
- # Corresponds to the JSON property `kind`
2398
+ # The ID of the snapshot.
2399
+ # Corresponds to the JSON property `id`
2943
2400
  # @return [String]
2944
- attr_accessor :kind
2945
-
2946
- # An estimate for the amount of time (in seconds) that auto-matching is expected
2947
- # to take to complete.
2948
- # Corresponds to the JSON property `waitEstimateSeconds`
2949
- # @return [Fixnum]
2950
- attr_accessor :wait_estimate_seconds
2951
-
2952
- def initialize(**args)
2953
- update!(**args)
2954
- end
2955
-
2956
- # Update properties of this object
2957
- def update!(**args)
2958
- @kind = args[:kind] if args.key?(:kind)
2959
- @wait_estimate_seconds = args[:wait_estimate_seconds] if args.key?(:wait_estimate_seconds)
2960
- end
2961
- end
2962
-
2963
- # This is a JSON template for a room auto-match criteria object.
2964
- class RoomAutoMatchingCriteria
2965
- include Google::Apis::Core::Hashable
2966
-
2967
- # A bitmask indicating when auto-matches are valid. When ANDed with other
2968
- # exclusive bitmasks, the result must be zero. Can be used to support exclusive
2969
- # roles within a game.
2970
- # Corresponds to the JSON property `exclusiveBitmask`
2971
- # @return [Fixnum]
2972
- attr_accessor :exclusive_bitmask
2401
+ attr_accessor :id
2973
2402
 
2974
2403
  # Uniquely identifies the type of this resource. Value is always the fixed
2975
- # string games#roomAutoMatchingCriteria.
2404
+ # string `games#snapshot`.
2976
2405
  # Corresponds to the JSON property `kind`
2977
2406
  # @return [String]
2978
2407
  attr_accessor :kind
2979
2408
 
2980
- # The maximum number of players that should be added to the room by auto-
2981
- # matching.
2982
- # Corresponds to the JSON property `maxAutoMatchingPlayers`
2409
+ # The timestamp (in millis since Unix epoch) of the last modification to this
2410
+ # snapshot.
2411
+ # Corresponds to the JSON property `lastModifiedMillis`
2983
2412
  # @return [Fixnum]
2984
- attr_accessor :max_auto_matching_players
2413
+ attr_accessor :last_modified_millis
2985
2414
 
2986
- # The minimum number of players that should be added to the room by auto-
2987
- # matching.
2988
- # Corresponds to the JSON property `minAutoMatchingPlayers`
2415
+ # The progress value (64-bit integer set by developer) associated with this
2416
+ # snapshot.
2417
+ # Corresponds to the JSON property `progressValue`
2989
2418
  # @return [Fixnum]
2990
- attr_accessor :min_auto_matching_players
2991
-
2992
- def initialize(**args)
2993
- update!(**args)
2994
- end
2995
-
2996
- # Update properties of this object
2997
- def update!(**args)
2998
- @exclusive_bitmask = args[:exclusive_bitmask] if args.key?(:exclusive_bitmask)
2999
- @kind = args[:kind] if args.key?(:kind)
3000
- @max_auto_matching_players = args[:max_auto_matching_players] if args.key?(:max_auto_matching_players)
3001
- @min_auto_matching_players = args[:min_auto_matching_players] if args.key?(:min_auto_matching_players)
3002
- end
3003
- end
3004
-
3005
- # This is a JSON template for the client address when setting up a room.
3006
- class RoomClientAddress
3007
- include Google::Apis::Core::Hashable
3008
-
3009
- # Uniquely identifies the type of this resource. Value is always the fixed
3010
- # string games#roomClientAddress.
3011
- # Corresponds to the JSON property `kind`
3012
- # @return [String]
3013
- attr_accessor :kind
2419
+ attr_accessor :progress_value
3014
2420
 
3015
- # The XMPP address of the client on the Google Games XMPP network.
3016
- # Corresponds to the JSON property `xmppAddress`
2421
+ # The title of this snapshot.
2422
+ # Corresponds to the JSON property `title`
3017
2423
  # @return [String]
3018
- attr_accessor :xmpp_address
3019
-
3020
- def initialize(**args)
3021
- update!(**args)
3022
- end
3023
-
3024
- # Update properties of this object
3025
- def update!(**args)
3026
- @kind = args[:kind] if args.key?(:kind)
3027
- @xmpp_address = args[:xmpp_address] if args.key?(:xmpp_address)
3028
- end
3029
- end
3030
-
3031
- # This is a JSON template for a room creation request.
3032
- class CreateRoomRequest
3033
- include Google::Apis::Core::Hashable
3034
-
3035
- # This is a JSON template for a room auto-match criteria object.
3036
- # Corresponds to the JSON property `autoMatchingCriteria`
3037
- # @return [Google::Apis::GamesV1::RoomAutoMatchingCriteria]
3038
- attr_accessor :auto_matching_criteria
3039
-
3040
- # The capabilities that this client supports for realtime communication.
3041
- # Corresponds to the JSON property `capabilities`
3042
- # @return [Array<String>]
3043
- attr_accessor :capabilities
3044
-
3045
- # This is a JSON template for the client address when setting up a room.
3046
- # Corresponds to the JSON property `clientAddress`
3047
- # @return [Google::Apis::GamesV1::RoomClientAddress]
3048
- attr_accessor :client_address
3049
-
3050
- # The player IDs to invite to the room.
3051
- # Corresponds to the JSON property `invitedPlayerIds`
3052
- # @return [Array<String>]
3053
- attr_accessor :invited_player_ids
2424
+ attr_accessor :title
3054
2425
 
3055
- # Uniquely identifies the type of this resource. Value is always the fixed
3056
- # string games#roomCreateRequest.
3057
- # Corresponds to the JSON property `kind`
2426
+ # The type of this snapshot.
2427
+ # Corresponds to the JSON property `type`
3058
2428
  # @return [String]
3059
- attr_accessor :kind
3060
-
3061
- # This is a JSON template for network diagnostics reported for a client.
3062
- # Corresponds to the JSON property `networkDiagnostics`
3063
- # @return [Google::Apis::GamesV1::NetworkDiagnostics]
3064
- attr_accessor :network_diagnostics
3065
-
3066
- # A randomly generated numeric ID. This number is used at the server to ensure
3067
- # that the request is handled correctly across retries.
3068
- # Corresponds to the JSON property `requestId`
3069
- # @return [Fixnum]
3070
- attr_accessor :request_id
3071
-
3072
- # The variant / mode of the application to be played. This can be any integer
3073
- # value, or left blank. You should use a small number of variants to keep the
3074
- # auto-matching pool as large as possible.
3075
- # Corresponds to the JSON property `variant`
3076
- # @return [Fixnum]
3077
- attr_accessor :variant
3078
-
3079
- def initialize(**args)
3080
- update!(**args)
3081
- end
3082
-
3083
- # Update properties of this object
3084
- def update!(**args)
3085
- @auto_matching_criteria = args[:auto_matching_criteria] if args.key?(:auto_matching_criteria)
3086
- @capabilities = args[:capabilities] if args.key?(:capabilities)
3087
- @client_address = args[:client_address] if args.key?(:client_address)
3088
- @invited_player_ids = args[:invited_player_ids] if args.key?(:invited_player_ids)
3089
- @kind = args[:kind] if args.key?(:kind)
3090
- @network_diagnostics = args[:network_diagnostics] if args.key?(:network_diagnostics)
3091
- @request_id = args[:request_id] if args.key?(:request_id)
3092
- @variant = args[:variant] if args.key?(:variant)
3093
- end
3094
- end
3095
-
3096
- # This is a JSON template for a join room request.
3097
- class JoinRoomRequest
3098
- include Google::Apis::Core::Hashable
3099
-
3100
- # The capabilities that this client supports for realtime communication.
3101
- # Corresponds to the JSON property `capabilities`
3102
- # @return [Array<String>]
3103
- attr_accessor :capabilities
3104
-
3105
- # This is a JSON template for the client address when setting up a room.
3106
- # Corresponds to the JSON property `clientAddress`
3107
- # @return [Google::Apis::GamesV1::RoomClientAddress]
3108
- attr_accessor :client_address
2429
+ attr_accessor :type
3109
2430
 
3110
- # Uniquely identifies the type of this resource. Value is always the fixed
3111
- # string games#roomJoinRequest.
3112
- # Corresponds to the JSON property `kind`
2431
+ # The unique name provided when the snapshot was created.
2432
+ # Corresponds to the JSON property `uniqueName`
3113
2433
  # @return [String]
3114
- attr_accessor :kind
3115
-
3116
- # This is a JSON template for network diagnostics reported for a client.
3117
- # Corresponds to the JSON property `networkDiagnostics`
3118
- # @return [Google::Apis::GamesV1::NetworkDiagnostics]
3119
- attr_accessor :network_diagnostics
2434
+ attr_accessor :unique_name
3120
2435
 
3121
2436
  def initialize(**args)
3122
2437
  update!(**args)
@@ -3124,125 +2439,50 @@ module Google
3124
2439
 
3125
2440
  # Update properties of this object
3126
2441
  def update!(**args)
3127
- @capabilities = args[:capabilities] if args.key?(:capabilities)
3128
- @client_address = args[:client_address] if args.key?(:client_address)
2442
+ @cover_image = args[:cover_image] if args.key?(:cover_image)
2443
+ @description = args[:description] if args.key?(:description)
2444
+ @drive_id = args[:drive_id] if args.key?(:drive_id)
2445
+ @duration_millis = args[:duration_millis] if args.key?(:duration_millis)
2446
+ @id = args[:id] if args.key?(:id)
3129
2447
  @kind = args[:kind] if args.key?(:kind)
3130
- @network_diagnostics = args[:network_diagnostics] if args.key?(:network_diagnostics)
2448
+ @last_modified_millis = args[:last_modified_millis] if args.key?(:last_modified_millis)
2449
+ @progress_value = args[:progress_value] if args.key?(:progress_value)
2450
+ @title = args[:title] if args.key?(:title)
2451
+ @type = args[:type] if args.key?(:type)
2452
+ @unique_name = args[:unique_name] if args.key?(:unique_name)
3131
2453
  end
3132
2454
  end
3133
2455
 
3134
- # This is a JSON template for room leave diagnostics.
3135
- class RoomLeaveDiagnostics
2456
+ # An image of a snapshot.
2457
+ class SnapshotImage
3136
2458
  include Google::Apis::Core::Hashable
3137
2459
 
3138
- # Android network subtype. http://developer.android.com/reference/android/net/
3139
- # NetworkInfo.html#getSubtype()
3140
- # Corresponds to the JSON property `androidNetworkSubtype`
3141
- # @return [Fixnum]
3142
- attr_accessor :android_network_subtype
3143
-
3144
- # Android network type. http://developer.android.com/reference/android/net/
3145
- # NetworkInfo.html#getType()
3146
- # Corresponds to the JSON property `androidNetworkType`
3147
- # @return [Fixnum]
3148
- attr_accessor :android_network_type
3149
-
3150
- # iOS network type as defined in Reachability.h.
3151
- # Corresponds to the JSON property `iosNetworkType`
2460
+ # The height of the image.
2461
+ # Corresponds to the JSON property `height`
3152
2462
  # @return [Fixnum]
3153
- attr_accessor :ios_network_type
2463
+ attr_accessor :height
3154
2464
 
3155
2465
  # Uniquely identifies the type of this resource. Value is always the fixed
3156
- # string games#roomLeaveDiagnostics.
2466
+ # string `games#snapshotImage`.
3157
2467
  # Corresponds to the JSON property `kind`
3158
2468
  # @return [String]
3159
2469
  attr_accessor :kind
3160
2470
 
3161
- # The MCC+MNC code for the client's network connection. On Android: http://
3162
- # developer.android.com/reference/android/telephony/TelephonyManager.html#
3163
- # getNetworkOperator() On iOS, see: https://developer.apple.com/library/ios/
3164
- # documentation/NetworkingInternet/Reference/CTCarrier/Reference/Reference.html
3165
- # Corresponds to the JSON property `networkOperatorCode`
3166
- # @return [String]
3167
- attr_accessor :network_operator_code
3168
-
3169
- # The name of the carrier of the client's network connection. On Android: http://
3170
- # developer.android.com/reference/android/telephony/TelephonyManager.html#
3171
- # getNetworkOperatorName() On iOS: https://developer.apple.com/library/ios/
3172
- # documentation/NetworkingInternet/Reference/CTCarrier/Reference/Reference.html#/
3173
- # /apple_ref/occ/instp/CTCarrier/carrierName
3174
- # Corresponds to the JSON property `networkOperatorName`
2471
+ # The MIME type of the image.
2472
+ # Corresponds to the JSON property `mime_type`
3175
2473
  # @return [String]
3176
- attr_accessor :network_operator_name
3177
-
3178
- # Diagnostics about all peer sessions.
3179
- # Corresponds to the JSON property `peerSession`
3180
- # @return [Array<Google::Apis::GamesV1::PeerSessionDiagnostics>]
3181
- attr_accessor :peer_session
3182
-
3183
- # Whether or not sockets were used.
3184
- # Corresponds to the JSON property `socketsUsed`
3185
- # @return [Boolean]
3186
- attr_accessor :sockets_used
3187
- alias_method :sockets_used?, :sockets_used
3188
-
3189
- def initialize(**args)
3190
- update!(**args)
3191
- end
3192
-
3193
- # Update properties of this object
3194
- def update!(**args)
3195
- @android_network_subtype = args[:android_network_subtype] if args.key?(:android_network_subtype)
3196
- @android_network_type = args[:android_network_type] if args.key?(:android_network_type)
3197
- @ios_network_type = args[:ios_network_type] if args.key?(:ios_network_type)
3198
- @kind = args[:kind] if args.key?(:kind)
3199
- @network_operator_code = args[:network_operator_code] if args.key?(:network_operator_code)
3200
- @network_operator_name = args[:network_operator_name] if args.key?(:network_operator_name)
3201
- @peer_session = args[:peer_session] if args.key?(:peer_session)
3202
- @sockets_used = args[:sockets_used] if args.key?(:sockets_used)
3203
- end
3204
- end
3205
-
3206
- # This is a JSON template for a leave room request.
3207
- class LeaveRoomRequest
3208
- include Google::Apis::Core::Hashable
2474
+ attr_accessor :mime_type
3209
2475
 
3210
- # Uniquely identifies the type of this resource. Value is always the fixed
3211
- # string games#roomLeaveRequest.
3212
- # Corresponds to the JSON property `kind`
2476
+ # The URL of the image. This URL may be invalidated at any time and should
2477
+ # not be cached.
2478
+ # Corresponds to the JSON property `url`
3213
2479
  # @return [String]
3214
- attr_accessor :kind
2480
+ attr_accessor :url
3215
2481
 
3216
- # This is a JSON template for room leave diagnostics.
3217
- # Corresponds to the JSON property `leaveDiagnostics`
3218
- # @return [Google::Apis::GamesV1::RoomLeaveDiagnostics]
3219
- attr_accessor :leave_diagnostics
3220
-
3221
- # Reason for leaving the match.
3222
- # Possible values are:
3223
- # - "PLAYER_LEFT" - The player chose to leave the room..
3224
- # - "GAME_LEFT" - The game chose to remove the player from the room.
3225
- # - "REALTIME_ABANDONED" - The player switched to another application and
3226
- # abandoned the room.
3227
- # - "REALTIME_PEER_CONNECTION_FAILURE" - The client was unable to establish a
3228
- # connection to other peer(s).
3229
- # - "REALTIME_SERVER_CONNECTION_FAILURE" - The client was unable to communicate
3230
- # with the server.
3231
- # - "REALTIME_SERVER_ERROR" - The client received an error response when it
3232
- # tried to communicate with the server.
3233
- # - "REALTIME_TIMEOUT" - The client timed out while waiting for a room.
3234
- # - "REALTIME_CLIENT_DISCONNECTING" - The client disconnects without first
3235
- # calling Leave.
3236
- # - "REALTIME_SIGN_OUT" - The user signed out of G+ while in the room.
3237
- # - "REALTIME_GAME_CRASHED" - The game crashed.
3238
- # - "REALTIME_ROOM_SERVICE_CRASHED" - RoomAndroidService crashed.
3239
- # - "REALTIME_DIFFERENT_CLIENT_ROOM_OPERATION" - Another client is trying to
3240
- # enter a room.
3241
- # - "REALTIME_SAME_CLIENT_ROOM_OPERATION" - The same client is trying to enter a
3242
- # new room.
3243
- # Corresponds to the JSON property `reason`
3244
- # @return [String]
3245
- attr_accessor :reason
2482
+ # The width of the image.
2483
+ # Corresponds to the JSON property `width`
2484
+ # @return [Fixnum]
2485
+ attr_accessor :width
3246
2486
 
3247
2487
  def initialize(**args)
3248
2488
  update!(**args)
@@ -3250,28 +2490,31 @@ module Google
3250
2490
 
3251
2491
  # Update properties of this object
3252
2492
  def update!(**args)
2493
+ @height = args[:height] if args.key?(:height)
3253
2494
  @kind = args[:kind] if args.key?(:kind)
3254
- @leave_diagnostics = args[:leave_diagnostics] if args.key?(:leave_diagnostics)
3255
- @reason = args[:reason] if args.key?(:reason)
2495
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
2496
+ @url = args[:url] if args.key?(:url)
2497
+ @width = args[:width] if args.key?(:width)
3256
2498
  end
3257
2499
  end
3258
2500
 
3259
- # This is a JSON template for a list of rooms.
3260
- class RoomList
2501
+ # A third party list snapshots response.
2502
+ class ListSnapshotResponse
3261
2503
  include Google::Apis::Core::Hashable
3262
2504
 
3263
- # The rooms.
2505
+ # The snapshots.
3264
2506
  # Corresponds to the JSON property `items`
3265
- # @return [Array<Google::Apis::GamesV1::Room>]
2507
+ # @return [Array<Google::Apis::GamesV1::Snapshot>]
3266
2508
  attr_accessor :items
3267
2509
 
3268
2510
  # Uniquely identifies the type of this resource. Value is always the fixed
3269
- # string games#roomList.
2511
+ # string `games#snapshotListResponse`.
3270
2512
  # Corresponds to the JSON property `kind`
3271
2513
  # @return [String]
3272
2514
  attr_accessor :kind
3273
2515
 
3274
- # The pagination token for the next page of results.
2516
+ # Token corresponding to the next page of results. If there are no more
2517
+ # results, the token is omitted.
3275
2518
  # Corresponds to the JSON property `nextPageToken`
3276
2519
  # @return [String]
3277
2520
  attr_accessor :next_page_token
@@ -3288,1090 +2531,83 @@ module Google
3288
2531
  end
3289
2532
  end
3290
2533
 
3291
- # This is a JSON template for room modification metadata.
3292
- class RoomModification
2534
+ # A third party stats resource.
2535
+ class StatsResponse
3293
2536
  include Google::Apis::Core::Hashable
3294
2537
 
3295
- # Uniquely identifies the type of this resource. Value is always the fixed
3296
- # string games#roomModification.
3297
- # Corresponds to the JSON property `kind`
3298
- # @return [String]
3299
- attr_accessor :kind
3300
-
3301
- # The timestamp at which they modified the room, in milliseconds since the epoch
3302
- # in UTC.
3303
- # Corresponds to the JSON property `modifiedTimestampMillis`
3304
- # @return [Fixnum]
3305
- attr_accessor :modified_timestamp_millis
3306
-
3307
- # The ID of the participant that modified the room.
3308
- # Corresponds to the JSON property `participantId`
3309
- # @return [String]
3310
- attr_accessor :participant_id
3311
-
3312
- def initialize(**args)
3313
- update!(**args)
3314
- end
3315
-
3316
- # Update properties of this object
3317
- def update!(**args)
3318
- @kind = args[:kind] if args.key?(:kind)
3319
- @modified_timestamp_millis = args[:modified_timestamp_millis] if args.key?(:modified_timestamp_millis)
3320
- @participant_id = args[:participant_id] if args.key?(:participant_id)
3321
- end
3322
- end
2538
+ # Average session length in minutes of the player. E.g., 1, 30, 60, ... . Not
2539
+ # populated if there is not enough information.
2540
+ # Corresponds to the JSON property `avg_session_length_minutes`
2541
+ # @return [Float]
2542
+ attr_accessor :avg_session_length_minutes
3323
2543
 
3324
- # This is a JSON template for an update on the status of a peer in a room.
3325
- class RoomP2PStatus
3326
- include Google::Apis::Core::Hashable
2544
+ # The probability of the player not returning to play the game in the next
2545
+ # day. E.g., 0, 0.1, 0.5, ..., 1.0. Not populated if there is not enough
2546
+ # information.
2547
+ # Corresponds to the JSON property `churn_probability`
2548
+ # @return [Float]
2549
+ attr_accessor :churn_probability
3327
2550
 
3328
- # The amount of time in milliseconds it took to establish connections with this
3329
- # peer.
3330
- # Corresponds to the JSON property `connectionSetupLatencyMillis`
2551
+ # Number of days since the player last played this game. E.g., 0, 1, 5, 10,
2552
+ # ... . Not populated if there is not enough information.
2553
+ # Corresponds to the JSON property `days_since_last_played`
3331
2554
  # @return [Fixnum]
3332
- attr_accessor :connection_setup_latency_millis
3333
-
3334
- # The error code in event of a failure.
3335
- # Possible values are:
3336
- # - "P2P_FAILED" - The client failed to establish a P2P connection with the peer.
3337
- #
3338
- # - "PRESENCE_FAILED" - The client failed to register to receive P2P connections.
3339
- #
3340
- # - "RELAY_SERVER_FAILED" - The client received an error when trying to use the
3341
- # relay server to establish a P2P connection with the peer.
3342
- # Corresponds to the JSON property `error`
3343
- # @return [String]
3344
- attr_accessor :error
2555
+ attr_accessor :days_since_last_played
3345
2556
 
3346
- # More detailed diagnostic message returned in event of a failure.
3347
- # Corresponds to the JSON property `error_reason`
3348
- # @return [String]
3349
- attr_accessor :error_reason
2557
+ # The probability of the player going to spend beyond a threshold amount of
2558
+ # money. E.g., 0, 0.25, 0.50, 0.75. Not populated if there is not enough
2559
+ # information.
2560
+ # Corresponds to the JSON property `high_spender_probability`
2561
+ # @return [Float]
2562
+ attr_accessor :high_spender_probability
3350
2563
 
3351
2564
  # Uniquely identifies the type of this resource. Value is always the fixed
3352
- # string games#roomP2PStatus.
2565
+ # string `games#statsResponse`.
3353
2566
  # Corresponds to the JSON property `kind`
3354
2567
  # @return [String]
3355
2568
  attr_accessor :kind
3356
2569
 
3357
- # The ID of the participant.
3358
- # Corresponds to the JSON property `participantId`
3359
- # @return [String]
3360
- attr_accessor :participant_id
3361
-
3362
- # The status of the peer in the room.
3363
- # Possible values are:
3364
- # - "CONNECTION_ESTABLISHED" - The client established a P2P connection with the
3365
- # peer.
3366
- # - "CONNECTION_FAILED" - The client failed to establish directed presence with
3367
- # the peer.
3368
- # Corresponds to the JSON property `status`
3369
- # @return [String]
3370
- attr_accessor :status
3371
-
3372
- # The amount of time in milliseconds it took to send packets back and forth on
3373
- # the unreliable channel with this peer.
3374
- # Corresponds to the JSON property `unreliableRoundtripLatencyMillis`
2570
+ # Number of in-app purchases made by the player in this game. E.g., 0, 1, 5,
2571
+ # 10, ... . Not populated if there is not enough information.
2572
+ # Corresponds to the JSON property `num_purchases`
3375
2573
  # @return [Fixnum]
3376
- attr_accessor :unreliable_roundtrip_latency_millis
3377
-
3378
- def initialize(**args)
3379
- update!(**args)
3380
- end
3381
-
3382
- # Update properties of this object
3383
- def update!(**args)
3384
- @connection_setup_latency_millis = args[:connection_setup_latency_millis] if args.key?(:connection_setup_latency_millis)
3385
- @error = args[:error] if args.key?(:error)
3386
- @error_reason = args[:error_reason] if args.key?(:error_reason)
3387
- @kind = args[:kind] if args.key?(:kind)
3388
- @participant_id = args[:participant_id] if args.key?(:participant_id)
3389
- @status = args[:status] if args.key?(:status)
3390
- @unreliable_roundtrip_latency_millis = args[:unreliable_roundtrip_latency_millis] if args.key?(:unreliable_roundtrip_latency_millis)
3391
- end
3392
- end
3393
-
3394
- # This is a JSON template for an update on the status of peers in a room.
3395
- class RoomP2PStatuses
3396
- include Google::Apis::Core::Hashable
3397
-
3398
- # Uniquely identifies the type of this resource. Value is always the fixed
3399
- # string games#roomP2PStatuses.
3400
- # Corresponds to the JSON property `kind`
3401
- # @return [String]
3402
- attr_accessor :kind
3403
-
3404
- # The updates for the peers.
3405
- # Corresponds to the JSON property `updates`
3406
- # @return [Array<Google::Apis::GamesV1::RoomP2PStatus>]
3407
- attr_accessor :updates
3408
-
3409
- def initialize(**args)
3410
- update!(**args)
3411
- end
3412
-
3413
- # Update properties of this object
3414
- def update!(**args)
3415
- @kind = args[:kind] if args.key?(:kind)
3416
- @updates = args[:updates] if args.key?(:updates)
3417
- end
3418
- end
2574
+ attr_accessor :num_purchases
3419
2575
 
3420
- # This is a JSON template for a participant in a room.
3421
- class RoomParticipant
3422
- include Google::Apis::Core::Hashable
2576
+ # The approximate number of sessions of the player within the last 28 days,
2577
+ # where a session begins when the player is connected to Play Games Services
2578
+ # and ends when they are disconnected. E.g., 0, 1, 5, 10, ... . Not populated
2579
+ # if there is not enough information.
2580
+ # Corresponds to the JSON property `num_sessions`
2581
+ # @return [Fixnum]
2582
+ attr_accessor :num_sessions
3423
2583
 
3424
- # True if this participant was auto-matched with the requesting player.
3425
- # Corresponds to the JSON property `autoMatched`
3426
- # @return [Boolean]
3427
- attr_accessor :auto_matched
3428
- alias_method :auto_matched?, :auto_matched
2584
+ # The approximation of the sessions percentile of the player within the last
2585
+ # 30 days, where a session begins when the player is connected to Play Games
2586
+ # Services and ends when they are disconnected. E.g., 0, 0.25, 0.5, 0.75. Not
2587
+ # populated if there is not enough information.
2588
+ # Corresponds to the JSON property `num_sessions_percentile`
2589
+ # @return [Float]
2590
+ attr_accessor :num_sessions_percentile
3429
2591
 
3430
- # This is a JSON template for an anonymous player
3431
- # Corresponds to the JSON property `autoMatchedPlayer`
3432
- # @return [Google::Apis::GamesV1::AnonymousPlayer]
3433
- attr_accessor :auto_matched_player
2592
+ # The approximate spend percentile of the player in this game. E.g., 0, 0.25,
2593
+ # 0.5, 0.75. Not populated if there is not enough information.
2594
+ # Corresponds to the JSON property `spend_percentile`
2595
+ # @return [Float]
2596
+ attr_accessor :spend_percentile
3434
2597
 
3435
- # The capabilities which can be used when communicating with this participant.
3436
- # Corresponds to the JSON property `capabilities`
3437
- # @return [Array<String>]
3438
- attr_accessor :capabilities
3439
-
3440
- # This is a JSON template for the client address when setting up a room.
3441
- # Corresponds to the JSON property `clientAddress`
3442
- # @return [Google::Apis::GamesV1::RoomClientAddress]
3443
- attr_accessor :client_address
3444
-
3445
- # True if this participant is in the fully connected set of peers in the room.
3446
- # Corresponds to the JSON property `connected`
3447
- # @return [Boolean]
3448
- attr_accessor :connected
3449
- alias_method :connected?, :connected
3450
-
3451
- # An identifier for the participant in the scope of the room. Cannot be used to
3452
- # identify a player across rooms or in other contexts.
3453
- # Corresponds to the JSON property `id`
3454
- # @return [String]
3455
- attr_accessor :id
3456
-
3457
- # Uniquely identifies the type of this resource. Value is always the fixed
3458
- # string games#roomParticipant.
3459
- # Corresponds to the JSON property `kind`
3460
- # @return [String]
3461
- attr_accessor :kind
3462
-
3463
- # The reason the participant left the room; populated if the participant status
3464
- # is PARTICIPANT_LEFT.
3465
- # Possible values are:
3466
- # - "PLAYER_LEFT" - The player explicitly chose to leave the room.
3467
- # - "GAME_LEFT" - The game chose to remove the player from the room.
3468
- # - "ABANDONED" - The player switched to another application and abandoned the
3469
- # room.
3470
- # - "PEER_CONNECTION_FAILURE" - The client was unable to establish or maintain a
3471
- # connection to other peer(s) in the room.
3472
- # - "SERVER_ERROR" - The client received an error response when it tried to
3473
- # communicate with the server.
3474
- # - "TIMEOUT" - The client timed out while waiting for players to join and
3475
- # connect.
3476
- # - "PRESENCE_FAILURE" - The client's XMPP connection ended abruptly.
3477
- # Corresponds to the JSON property `leaveReason`
3478
- # @return [String]
3479
- attr_accessor :leave_reason
3480
-
3481
- # This is a JSON template for a Player resource.
3482
- # Corresponds to the JSON property `player`
3483
- # @return [Google::Apis::GamesV1::Player]
3484
- attr_accessor :player
3485
-
3486
- # The status of the participant with respect to the room.
3487
- # Possible values are:
3488
- # - "PARTICIPANT_INVITED" - The participant has been invited to join the room,
3489
- # but has not yet responded.
3490
- # - "PARTICIPANT_JOINED" - The participant has joined the room (either after
3491
- # creating it or accepting an invitation.)
3492
- # - "PARTICIPANT_DECLINED" - The participant declined an invitation to join the
3493
- # room.
3494
- # - "PARTICIPANT_LEFT" - The participant joined the room and then left it.
3495
- # Corresponds to the JSON property `status`
3496
- # @return [String]
3497
- attr_accessor :status
3498
-
3499
- def initialize(**args)
3500
- update!(**args)
3501
- end
3502
-
3503
- # Update properties of this object
3504
- def update!(**args)
3505
- @auto_matched = args[:auto_matched] if args.key?(:auto_matched)
3506
- @auto_matched_player = args[:auto_matched_player] if args.key?(:auto_matched_player)
3507
- @capabilities = args[:capabilities] if args.key?(:capabilities)
3508
- @client_address = args[:client_address] if args.key?(:client_address)
3509
- @connected = args[:connected] if args.key?(:connected)
3510
- @id = args[:id] if args.key?(:id)
3511
- @kind = args[:kind] if args.key?(:kind)
3512
- @leave_reason = args[:leave_reason] if args.key?(:leave_reason)
3513
- @player = args[:player] if args.key?(:player)
3514
- @status = args[:status] if args.key?(:status)
3515
- end
3516
- end
3517
-
3518
- # This is a JSON template for the status of a room that the player has joined.
3519
- class RoomStatus
3520
- include Google::Apis::Core::Hashable
3521
-
3522
- # This is a JSON template for status of room automatching that is in progress.
3523
- # Corresponds to the JSON property `autoMatchingStatus`
3524
- # @return [Google::Apis::GamesV1::RoomAutoMatchStatus]
3525
- attr_accessor :auto_matching_status
3526
-
3527
- # Uniquely identifies the type of this resource. Value is always the fixed
3528
- # string games#roomStatus.
3529
- # Corresponds to the JSON property `kind`
3530
- # @return [String]
3531
- attr_accessor :kind
3532
-
3533
- # The participants involved in the room, along with their statuses. Includes
3534
- # participants who have left or declined invitations.
3535
- # Corresponds to the JSON property `participants`
3536
- # @return [Array<Google::Apis::GamesV1::RoomParticipant>]
3537
- attr_accessor :participants
3538
-
3539
- # Globally unique ID for a room.
3540
- # Corresponds to the JSON property `roomId`
3541
- # @return [String]
3542
- attr_accessor :room_id
3543
-
3544
- # The status of the room.
3545
- # Possible values are:
3546
- # - "ROOM_INVITING" - One or more players have been invited and not responded.
3547
- # - "ROOM_AUTO_MATCHING" - One or more slots need to be filled by auto-matching.
3548
- # - "ROOM_CONNECTING" - Players have joined are connecting to each other (either
3549
- # before or after auto-matching).
3550
- # - "ROOM_ACTIVE" - All players have joined and connected to each other.
3551
- # - "ROOM_DELETED" - All joined players have left.
3552
- # Corresponds to the JSON property `status`
3553
- # @return [String]
3554
- attr_accessor :status
3555
-
3556
- # The version of the status for the room: an increasing counter, used by the
3557
- # client to ignore out-of-order updates to room status.
3558
- # Corresponds to the JSON property `statusVersion`
3559
- # @return [Fixnum]
3560
- attr_accessor :status_version
3561
-
3562
- def initialize(**args)
3563
- update!(**args)
3564
- end
3565
-
3566
- # Update properties of this object
3567
- def update!(**args)
3568
- @auto_matching_status = args[:auto_matching_status] if args.key?(:auto_matching_status)
3569
- @kind = args[:kind] if args.key?(:kind)
3570
- @participants = args[:participants] if args.key?(:participants)
3571
- @room_id = args[:room_id] if args.key?(:room_id)
3572
- @status = args[:status] if args.key?(:status)
3573
- @status_version = args[:status_version] if args.key?(:status_version)
3574
- end
3575
- end
3576
-
3577
- # This is a JSON template for a request to submit a score to leaderboards.
3578
- class ScoreSubmission
3579
- include Google::Apis::Core::Hashable
3580
-
3581
- # Uniquely identifies the type of this resource. Value is always the fixed
3582
- # string games#scoreSubmission.
3583
- # Corresponds to the JSON property `kind`
3584
- # @return [String]
3585
- attr_accessor :kind
3586
-
3587
- # The leaderboard this score is being submitted to.
3588
- # Corresponds to the JSON property `leaderboardId`
3589
- # @return [String]
3590
- attr_accessor :leaderboard_id
3591
-
3592
- # The new score being submitted.
3593
- # Corresponds to the JSON property `score`
3594
- # @return [Fixnum]
3595
- attr_accessor :score
3596
-
3597
- # Additional information about this score. Values will contain no more than 64
3598
- # URI-safe characters as defined by section 2.3 of RFC 3986.
3599
- # Corresponds to the JSON property `scoreTag`
3600
- # @return [String]
3601
- attr_accessor :score_tag
3602
-
3603
- # Signature Values will contain URI-safe characters as defined by section 2.3 of
3604
- # RFC 3986.
3605
- # Corresponds to the JSON property `signature`
3606
- # @return [String]
3607
- attr_accessor :signature
3608
-
3609
- def initialize(**args)
3610
- update!(**args)
3611
- end
3612
-
3613
- # Update properties of this object
3614
- def update!(**args)
3615
- @kind = args[:kind] if args.key?(:kind)
3616
- @leaderboard_id = args[:leaderboard_id] if args.key?(:leaderboard_id)
3617
- @score = args[:score] if args.key?(:score)
3618
- @score_tag = args[:score_tag] if args.key?(:score_tag)
3619
- @signature = args[:signature] if args.key?(:signature)
3620
- end
3621
- end
3622
-
3623
- # This is a JSON template for an snapshot object.
3624
- class Snapshot
3625
- include Google::Apis::Core::Hashable
3626
-
3627
- # This is a JSON template for an image of a snapshot.
3628
- # Corresponds to the JSON property `coverImage`
3629
- # @return [Google::Apis::GamesV1::SnapshotImage]
3630
- attr_accessor :cover_image
3631
-
3632
- # The description of this snapshot.
3633
- # Corresponds to the JSON property `description`
3634
- # @return [String]
3635
- attr_accessor :description
3636
-
3637
- # The ID of the file underlying this snapshot in the Drive API. Only present if
3638
- # the snapshot is a view on a Drive file and the file is owned by the caller.
3639
- # Corresponds to the JSON property `driveId`
3640
- # @return [String]
3641
- attr_accessor :drive_id
3642
-
3643
- # The duration associated with this snapshot, in millis.
3644
- # Corresponds to the JSON property `durationMillis`
3645
- # @return [Fixnum]
3646
- attr_accessor :duration_millis
3647
-
3648
- # The ID of the snapshot.
3649
- # Corresponds to the JSON property `id`
3650
- # @return [String]
3651
- attr_accessor :id
3652
-
3653
- # Uniquely identifies the type of this resource. Value is always the fixed
3654
- # string games#snapshot.
3655
- # Corresponds to the JSON property `kind`
3656
- # @return [String]
3657
- attr_accessor :kind
3658
-
3659
- # The timestamp (in millis since Unix epoch) of the last modification to this
3660
- # snapshot.
3661
- # Corresponds to the JSON property `lastModifiedMillis`
3662
- # @return [Fixnum]
3663
- attr_accessor :last_modified_millis
3664
-
3665
- # The progress value (64-bit integer set by developer) associated with this
3666
- # snapshot.
3667
- # Corresponds to the JSON property `progressValue`
3668
- # @return [Fixnum]
3669
- attr_accessor :progress_value
3670
-
3671
- # The title of this snapshot.
3672
- # Corresponds to the JSON property `title`
3673
- # @return [String]
3674
- attr_accessor :title
3675
-
3676
- # The type of this snapshot.
3677
- # Possible values are:
3678
- # - "SAVE_GAME" - A snapshot representing a save game.
3679
- # Corresponds to the JSON property `type`
3680
- # @return [String]
3681
- attr_accessor :type
3682
-
3683
- # The unique name provided when the snapshot was created.
3684
- # Corresponds to the JSON property `uniqueName`
3685
- # @return [String]
3686
- attr_accessor :unique_name
3687
-
3688
- def initialize(**args)
3689
- update!(**args)
3690
- end
3691
-
3692
- # Update properties of this object
3693
- def update!(**args)
3694
- @cover_image = args[:cover_image] if args.key?(:cover_image)
3695
- @description = args[:description] if args.key?(:description)
3696
- @drive_id = args[:drive_id] if args.key?(:drive_id)
3697
- @duration_millis = args[:duration_millis] if args.key?(:duration_millis)
3698
- @id = args[:id] if args.key?(:id)
3699
- @kind = args[:kind] if args.key?(:kind)
3700
- @last_modified_millis = args[:last_modified_millis] if args.key?(:last_modified_millis)
3701
- @progress_value = args[:progress_value] if args.key?(:progress_value)
3702
- @title = args[:title] if args.key?(:title)
3703
- @type = args[:type] if args.key?(:type)
3704
- @unique_name = args[:unique_name] if args.key?(:unique_name)
3705
- end
3706
- end
3707
-
3708
- # This is a JSON template for an image of a snapshot.
3709
- class SnapshotImage
3710
- include Google::Apis::Core::Hashable
3711
-
3712
- # The height of the image.
3713
- # Corresponds to the JSON property `height`
3714
- # @return [Fixnum]
3715
- attr_accessor :height
3716
-
3717
- # Uniquely identifies the type of this resource. Value is always the fixed
3718
- # string games#snapshotImage.
3719
- # Corresponds to the JSON property `kind`
3720
- # @return [String]
3721
- attr_accessor :kind
3722
-
3723
- # The MIME type of the image.
3724
- # Corresponds to the JSON property `mime_type`
3725
- # @return [String]
3726
- attr_accessor :mime_type
3727
-
3728
- # The URL of the image. This URL may be invalidated at any time and should not
3729
- # be cached.
3730
- # Corresponds to the JSON property `url`
3731
- # @return [String]
3732
- attr_accessor :url
3733
-
3734
- # The width of the image.
3735
- # Corresponds to the JSON property `width`
3736
- # @return [Fixnum]
3737
- attr_accessor :width
3738
-
3739
- def initialize(**args)
3740
- update!(**args)
3741
- end
3742
-
3743
- # Update properties of this object
3744
- def update!(**args)
3745
- @height = args[:height] if args.key?(:height)
3746
- @kind = args[:kind] if args.key?(:kind)
3747
- @mime_type = args[:mime_type] if args.key?(:mime_type)
3748
- @url = args[:url] if args.key?(:url)
3749
- @width = args[:width] if args.key?(:width)
3750
- end
3751
- end
3752
-
3753
- # This is a JSON template for a list of snapshot objects.
3754
- class ListSnapshotResponse
3755
- include Google::Apis::Core::Hashable
3756
-
3757
- # The snapshots.
3758
- # Corresponds to the JSON property `items`
3759
- # @return [Array<Google::Apis::GamesV1::Snapshot>]
3760
- attr_accessor :items
3761
-
3762
- # Uniquely identifies the type of this resource. Value is always the fixed
3763
- # string games#snapshotListResponse.
3764
- # Corresponds to the JSON property `kind`
3765
- # @return [String]
3766
- attr_accessor :kind
3767
-
3768
- # Token corresponding to the next page of results. If there are no more results,
3769
- # the token is omitted.
3770
- # Corresponds to the JSON property `nextPageToken`
3771
- # @return [String]
3772
- attr_accessor :next_page_token
3773
-
3774
- def initialize(**args)
3775
- update!(**args)
3776
- end
3777
-
3778
- # Update properties of this object
3779
- def update!(**args)
3780
- @items = args[:items] if args.key?(:items)
3781
- @kind = args[:kind] if args.key?(:kind)
3782
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3783
- end
3784
- end
3785
-
3786
- # This is a JSON template for an turn-based auto-match criteria object.
3787
- class TurnBasedAutoMatchingCriteria
3788
- include Google::Apis::Core::Hashable
3789
-
3790
- # A bitmask indicating when auto-matches are valid. When ANDed with other
3791
- # exclusive bitmasks, the result must be zero. Can be used to support exclusive
3792
- # roles within a game.
3793
- # Corresponds to the JSON property `exclusiveBitmask`
3794
- # @return [Fixnum]
3795
- attr_accessor :exclusive_bitmask
3796
-
3797
- # Uniquely identifies the type of this resource. Value is always the fixed
3798
- # string games#turnBasedAutoMatchingCriteria.
3799
- # Corresponds to the JSON property `kind`
3800
- # @return [String]
3801
- attr_accessor :kind
3802
-
3803
- # The maximum number of players that should be added to the match by auto-
3804
- # matching.
3805
- # Corresponds to the JSON property `maxAutoMatchingPlayers`
3806
- # @return [Fixnum]
3807
- attr_accessor :max_auto_matching_players
3808
-
3809
- # The minimum number of players that should be added to the match by auto-
3810
- # matching.
3811
- # Corresponds to the JSON property `minAutoMatchingPlayers`
3812
- # @return [Fixnum]
3813
- attr_accessor :min_auto_matching_players
3814
-
3815
- def initialize(**args)
3816
- update!(**args)
3817
- end
3818
-
3819
- # Update properties of this object
3820
- def update!(**args)
3821
- @exclusive_bitmask = args[:exclusive_bitmask] if args.key?(:exclusive_bitmask)
3822
- @kind = args[:kind] if args.key?(:kind)
3823
- @max_auto_matching_players = args[:max_auto_matching_players] if args.key?(:max_auto_matching_players)
3824
- @min_auto_matching_players = args[:min_auto_matching_players] if args.key?(:min_auto_matching_players)
3825
- end
3826
- end
3827
-
3828
- # This is a JSON template for a turn-based match resource object.
3829
- class TurnBasedMatch
3830
- include Google::Apis::Core::Hashable
3831
-
3832
- # The ID of the application being played.
3833
- # Corresponds to the JSON property `applicationId`
3834
- # @return [String]
3835
- attr_accessor :application_id
3836
-
3837
- # This is a JSON template for an turn-based auto-match criteria object.
3838
- # Corresponds to the JSON property `autoMatchingCriteria`
3839
- # @return [Google::Apis::GamesV1::TurnBasedAutoMatchingCriteria]
3840
- attr_accessor :auto_matching_criteria
3841
-
3842
- # This is a JSON template for turn-based match modification metadata.
3843
- # Corresponds to the JSON property `creationDetails`
3844
- # @return [Google::Apis::GamesV1::TurnBasedMatchModification]
3845
- attr_accessor :creation_details
3846
-
3847
- # This is a JSON template for a turn-based match data object.
3848
- # Corresponds to the JSON property `data`
3849
- # @return [Google::Apis::GamesV1::TurnBasedMatchData]
3850
- attr_accessor :data
3851
-
3852
- # This short description is generated by our servers based on turn state and is
3853
- # localized and worded relative to the player requesting the match. It is
3854
- # intended to be displayed when the match is shown in a list.
3855
- # Corresponds to the JSON property `description`
3856
- # @return [String]
3857
- attr_accessor :description
3858
-
3859
- # The ID of the participant that invited the user to the match. Not set if the
3860
- # user was not invited to the match.
3861
- # Corresponds to the JSON property `inviterId`
3862
- # @return [String]
3863
- attr_accessor :inviter_id
3864
-
3865
- # Uniquely identifies the type of this resource. Value is always the fixed
3866
- # string games#turnBasedMatch.
3867
- # Corresponds to the JSON property `kind`
3868
- # @return [String]
3869
- attr_accessor :kind
3870
-
3871
- # This is a JSON template for turn-based match modification metadata.
3872
- # Corresponds to the JSON property `lastUpdateDetails`
3873
- # @return [Google::Apis::GamesV1::TurnBasedMatchModification]
3874
- attr_accessor :last_update_details
3875
-
3876
- # Globally unique ID for a turn-based match.
3877
- # Corresponds to the JSON property `matchId`
3878
- # @return [String]
3879
- attr_accessor :match_id
3880
-
3881
- # The number of the match in a chain of rematches. Will be set to 1 for the
3882
- # first match and incremented by 1 for each rematch.
3883
- # Corresponds to the JSON property `matchNumber`
3884
- # @return [Fixnum]
3885
- attr_accessor :match_number
3886
-
3887
- # The version of this match: an increasing counter, used to avoid out-of-date
3888
- # updates to the match.
3889
- # Corresponds to the JSON property `matchVersion`
3890
- # @return [Fixnum]
3891
- attr_accessor :match_version
3892
-
3893
- # The participants involved in the match, along with their statuses. Includes
3894
- # participants who have left or declined invitations.
3895
- # Corresponds to the JSON property `participants`
3896
- # @return [Array<Google::Apis::GamesV1::TurnBasedMatchParticipant>]
3897
- attr_accessor :participants
3898
-
3899
- # The ID of the participant that is taking a turn.
3900
- # Corresponds to the JSON property `pendingParticipantId`
3901
- # @return [String]
3902
- attr_accessor :pending_participant_id
3903
-
3904
- # This is a JSON template for a turn-based match data object.
3905
- # Corresponds to the JSON property `previousMatchData`
3906
- # @return [Google::Apis::GamesV1::TurnBasedMatchData]
3907
- attr_accessor :previous_match_data
3908
-
3909
- # The ID of a rematch of this match. Only set for completed matches that have
3910
- # been rematched.
3911
- # Corresponds to the JSON property `rematchId`
3912
- # @return [String]
3913
- attr_accessor :rematch_id
3914
-
3915
- # The results reported for this match.
3916
- # Corresponds to the JSON property `results`
3917
- # @return [Array<Google::Apis::GamesV1::ParticipantResult>]
3918
- attr_accessor :results
3919
-
3920
- # The status of the match.
3921
- # Possible values are:
3922
- # - "MATCH_AUTO_MATCHING" - One or more slots need to be filled by auto-matching;
3923
- # the match cannot be established until they are filled.
3924
- # - "MATCH_ACTIVE" - The match has started.
3925
- # - "MATCH_COMPLETE" - The match has finished.
3926
- # - "MATCH_CANCELED" - The match was canceled.
3927
- # - "MATCH_EXPIRED" - The match expired due to inactivity.
3928
- # - "MATCH_DELETED" - The match should no longer be shown on the client.
3929
- # Returned only for tombstones for matches when sync is called.
3930
- # Corresponds to the JSON property `status`
3931
- # @return [String]
3932
- attr_accessor :status
3933
-
3934
- # The status of the current user in the match. Derived from the match type,
3935
- # match status, the user's participant status, and the pending participant for
3936
- # the match.
3937
- # Possible values are:
3938
- # - "USER_INVITED" - The user has been invited to join the match and has not
3939
- # responded yet.
3940
- # - "USER_AWAITING_TURN" - The user is waiting for their turn.
3941
- # - "USER_TURN" - The user has an action to take in the match.
3942
- # - "USER_MATCH_COMPLETED" - The match has ended (it is completed, canceled, or
3943
- # expired.)
3944
- # Corresponds to the JSON property `userMatchStatus`
3945
- # @return [String]
3946
- attr_accessor :user_match_status
3947
-
3948
- # The variant / mode of the application being played; can be any integer value,
3949
- # or left blank.
3950
- # Corresponds to the JSON property `variant`
3951
- # @return [Fixnum]
3952
- attr_accessor :variant
3953
-
3954
- # The ID of another participant in the match that can be used when describing
3955
- # the participants the user is playing with.
3956
- # Corresponds to the JSON property `withParticipantId`
3957
- # @return [String]
3958
- attr_accessor :with_participant_id
3959
-
3960
- def initialize(**args)
3961
- update!(**args)
3962
- end
3963
-
3964
- # Update properties of this object
3965
- def update!(**args)
3966
- @application_id = args[:application_id] if args.key?(:application_id)
3967
- @auto_matching_criteria = args[:auto_matching_criteria] if args.key?(:auto_matching_criteria)
3968
- @creation_details = args[:creation_details] if args.key?(:creation_details)
3969
- @data = args[:data] if args.key?(:data)
3970
- @description = args[:description] if args.key?(:description)
3971
- @inviter_id = args[:inviter_id] if args.key?(:inviter_id)
3972
- @kind = args[:kind] if args.key?(:kind)
3973
- @last_update_details = args[:last_update_details] if args.key?(:last_update_details)
3974
- @match_id = args[:match_id] if args.key?(:match_id)
3975
- @match_number = args[:match_number] if args.key?(:match_number)
3976
- @match_version = args[:match_version] if args.key?(:match_version)
3977
- @participants = args[:participants] if args.key?(:participants)
3978
- @pending_participant_id = args[:pending_participant_id] if args.key?(:pending_participant_id)
3979
- @previous_match_data = args[:previous_match_data] if args.key?(:previous_match_data)
3980
- @rematch_id = args[:rematch_id] if args.key?(:rematch_id)
3981
- @results = args[:results] if args.key?(:results)
3982
- @status = args[:status] if args.key?(:status)
3983
- @user_match_status = args[:user_match_status] if args.key?(:user_match_status)
3984
- @variant = args[:variant] if args.key?(:variant)
3985
- @with_participant_id = args[:with_participant_id] if args.key?(:with_participant_id)
3986
- end
3987
- end
3988
-
3989
- # This is a JSON template for a turn-based match creation request.
3990
- class CreateTurnBasedMatchRequest
3991
- include Google::Apis::Core::Hashable
3992
-
3993
- # This is a JSON template for an turn-based auto-match criteria object.
3994
- # Corresponds to the JSON property `autoMatchingCriteria`
3995
- # @return [Google::Apis::GamesV1::TurnBasedAutoMatchingCriteria]
3996
- attr_accessor :auto_matching_criteria
3997
-
3998
- # The player ids to invite to the match.
3999
- # Corresponds to the JSON property `invitedPlayerIds`
4000
- # @return [Array<String>]
4001
- attr_accessor :invited_player_ids
4002
-
4003
- # Uniquely identifies the type of this resource. Value is always the fixed
4004
- # string games#turnBasedMatchCreateRequest.
4005
- # Corresponds to the JSON property `kind`
4006
- # @return [String]
4007
- attr_accessor :kind
4008
-
4009
- # A randomly generated numeric ID. This number is used at the server to ensure
4010
- # that the request is handled correctly across retries.
4011
- # Corresponds to the JSON property `requestId`
4012
- # @return [Fixnum]
4013
- attr_accessor :request_id
4014
-
4015
- # The variant / mode of the application to be played. This can be any integer
4016
- # value, or left blank. You should use a small number of variants to keep the
4017
- # auto-matching pool as large as possible.
4018
- # Corresponds to the JSON property `variant`
4019
- # @return [Fixnum]
4020
- attr_accessor :variant
4021
-
4022
- def initialize(**args)
4023
- update!(**args)
4024
- end
4025
-
4026
- # Update properties of this object
4027
- def update!(**args)
4028
- @auto_matching_criteria = args[:auto_matching_criteria] if args.key?(:auto_matching_criteria)
4029
- @invited_player_ids = args[:invited_player_ids] if args.key?(:invited_player_ids)
4030
- @kind = args[:kind] if args.key?(:kind)
4031
- @request_id = args[:request_id] if args.key?(:request_id)
4032
- @variant = args[:variant] if args.key?(:variant)
4033
- end
4034
- end
4035
-
4036
- # This is a JSON template for a turn-based match data object.
4037
- class TurnBasedMatchData
4038
- include Google::Apis::Core::Hashable
4039
-
4040
- # The byte representation of the data (limited to 128 kB), as a Base64-encoded
4041
- # string with the URL_SAFE encoding option.
4042
- # Corresponds to the JSON property `data`
4043
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
4044
- # @return [String]
4045
- attr_accessor :data
4046
-
4047
- # True if this match has data available but it wasn't returned in a list
4048
- # response; fetching the match individually will retrieve this data.
4049
- # Corresponds to the JSON property `dataAvailable`
4050
- # @return [Boolean]
4051
- attr_accessor :data_available
4052
- alias_method :data_available?, :data_available
4053
-
4054
- # Uniquely identifies the type of this resource. Value is always the fixed
4055
- # string games#turnBasedMatchData.
4056
- # Corresponds to the JSON property `kind`
4057
- # @return [String]
4058
- attr_accessor :kind
4059
-
4060
- def initialize(**args)
4061
- update!(**args)
4062
- end
4063
-
4064
- # Update properties of this object
4065
- def update!(**args)
4066
- @data = args[:data] if args.key?(:data)
4067
- @data_available = args[:data_available] if args.key?(:data_available)
4068
- @kind = args[:kind] if args.key?(:kind)
4069
- end
4070
- end
4071
-
4072
- # This is a JSON template for sending a turn-based match data object.
4073
- class TurnBasedMatchDataRequest
4074
- include Google::Apis::Core::Hashable
4075
-
4076
- # The byte representation of the data (limited to 128 kB), as a Base64-encoded
4077
- # string with the URL_SAFE encoding option.
4078
- # Corresponds to the JSON property `data`
4079
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
4080
- # @return [String]
4081
- attr_accessor :data
4082
-
4083
- # Uniquely identifies the type of this resource. Value is always the fixed
4084
- # string games#turnBasedMatchDataRequest.
4085
- # Corresponds to the JSON property `kind`
4086
- # @return [String]
4087
- attr_accessor :kind
4088
-
4089
- def initialize(**args)
4090
- update!(**args)
4091
- end
4092
-
4093
- # Update properties of this object
4094
- def update!(**args)
4095
- @data = args[:data] if args.key?(:data)
4096
- @kind = args[:kind] if args.key?(:kind)
4097
- end
4098
- end
4099
-
4100
- # This is a JSON template for a list of turn-based matches.
4101
- class TurnBasedMatchList
4102
- include Google::Apis::Core::Hashable
4103
-
4104
- # The matches.
4105
- # Corresponds to the JSON property `items`
4106
- # @return [Array<Google::Apis::GamesV1::TurnBasedMatch>]
4107
- attr_accessor :items
4108
-
4109
- # Uniquely identifies the type of this resource. Value is always the fixed
4110
- # string games#turnBasedMatchList.
4111
- # Corresponds to the JSON property `kind`
4112
- # @return [String]
4113
- attr_accessor :kind
4114
-
4115
- # The pagination token for the next page of results.
4116
- # Corresponds to the JSON property `nextPageToken`
4117
- # @return [String]
4118
- attr_accessor :next_page_token
4119
-
4120
- def initialize(**args)
4121
- update!(**args)
4122
- end
4123
-
4124
- # Update properties of this object
4125
- def update!(**args)
4126
- @items = args[:items] if args.key?(:items)
4127
- @kind = args[:kind] if args.key?(:kind)
4128
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
4129
- end
4130
- end
4131
-
4132
- # This is a JSON template for turn-based match modification metadata.
4133
- class TurnBasedMatchModification
4134
- include Google::Apis::Core::Hashable
4135
-
4136
- # Uniquely identifies the type of this resource. Value is always the fixed
4137
- # string games#turnBasedMatchModification.
4138
- # Corresponds to the JSON property `kind`
4139
- # @return [String]
4140
- attr_accessor :kind
4141
-
4142
- # The timestamp at which they modified the match, in milliseconds since the
4143
- # epoch in UTC.
4144
- # Corresponds to the JSON property `modifiedTimestampMillis`
4145
- # @return [Fixnum]
4146
- attr_accessor :modified_timestamp_millis
4147
-
4148
- # The ID of the participant that modified the match.
4149
- # Corresponds to the JSON property `participantId`
4150
- # @return [String]
4151
- attr_accessor :participant_id
4152
-
4153
- def initialize(**args)
4154
- update!(**args)
4155
- end
4156
-
4157
- # Update properties of this object
4158
- def update!(**args)
4159
- @kind = args[:kind] if args.key?(:kind)
4160
- @modified_timestamp_millis = args[:modified_timestamp_millis] if args.key?(:modified_timestamp_millis)
4161
- @participant_id = args[:participant_id] if args.key?(:participant_id)
4162
- end
4163
- end
4164
-
4165
- # This is a JSON template for a participant in a turn-based match.
4166
- class TurnBasedMatchParticipant
4167
- include Google::Apis::Core::Hashable
4168
-
4169
- # True if this participant was auto-matched with the requesting player.
4170
- # Corresponds to the JSON property `autoMatched`
4171
- # @return [Boolean]
4172
- attr_accessor :auto_matched
4173
- alias_method :auto_matched?, :auto_matched
4174
-
4175
- # This is a JSON template for an anonymous player
4176
- # Corresponds to the JSON property `autoMatchedPlayer`
4177
- # @return [Google::Apis::GamesV1::AnonymousPlayer]
4178
- attr_accessor :auto_matched_player
4179
-
4180
- # An identifier for the participant in the scope of the match. Cannot be used to
4181
- # identify a player across matches or in other contexts.
4182
- # Corresponds to the JSON property `id`
4183
- # @return [String]
4184
- attr_accessor :id
4185
-
4186
- # Uniquely identifies the type of this resource. Value is always the fixed
4187
- # string games#turnBasedMatchParticipant.
4188
- # Corresponds to the JSON property `kind`
4189
- # @return [String]
4190
- attr_accessor :kind
4191
-
4192
- # This is a JSON template for a Player resource.
4193
- # Corresponds to the JSON property `player`
4194
- # @return [Google::Apis::GamesV1::Player]
4195
- attr_accessor :player
4196
-
4197
- # The status of the participant with respect to the match.
4198
- # Possible values are:
4199
- # - "PARTICIPANT_NOT_INVITED_YET" - The participant is slated to be invited to
4200
- # the match, but the invitation has not been sent; the invite will be sent when
4201
- # it becomes their turn.
4202
- # - "PARTICIPANT_INVITED" - The participant has been invited to join the match,
4203
- # but has not yet responded.
4204
- # - "PARTICIPANT_JOINED" - The participant has joined the match (either after
4205
- # creating it or accepting an invitation.)
4206
- # - "PARTICIPANT_DECLINED" - The participant declined an invitation to join the
4207
- # match.
4208
- # - "PARTICIPANT_LEFT" - The participant joined the match and then left it.
4209
- # - "PARTICIPANT_FINISHED" - The participant finished playing in the match.
4210
- # - "PARTICIPANT_UNRESPONSIVE" - The participant did not take their turn in the
4211
- # allotted time.
4212
- # Corresponds to the JSON property `status`
4213
- # @return [String]
4214
- attr_accessor :status
4215
-
4216
- def initialize(**args)
4217
- update!(**args)
4218
- end
4219
-
4220
- # Update properties of this object
4221
- def update!(**args)
4222
- @auto_matched = args[:auto_matched] if args.key?(:auto_matched)
4223
- @auto_matched_player = args[:auto_matched_player] if args.key?(:auto_matched_player)
4224
- @id = args[:id] if args.key?(:id)
4225
- @kind = args[:kind] if args.key?(:kind)
4226
- @player = args[:player] if args.key?(:player)
4227
- @status = args[:status] if args.key?(:status)
4228
- end
4229
- end
4230
-
4231
- # This is a JSON template for a rematch response.
4232
- class TurnBasedMatchRematch
4233
- include Google::Apis::Core::Hashable
4234
-
4235
- # Uniquely identifies the type of this resource. Value is always the fixed
4236
- # string games#turnBasedMatchRematch.
4237
- # Corresponds to the JSON property `kind`
4238
- # @return [String]
4239
- attr_accessor :kind
4240
-
4241
- # This is a JSON template for a turn-based match resource object.
4242
- # Corresponds to the JSON property `previousMatch`
4243
- # @return [Google::Apis::GamesV1::TurnBasedMatch]
4244
- attr_accessor :previous_match
4245
-
4246
- # This is a JSON template for a turn-based match resource object.
4247
- # Corresponds to the JSON property `rematch`
4248
- # @return [Google::Apis::GamesV1::TurnBasedMatch]
4249
- attr_accessor :rematch
4250
-
4251
- def initialize(**args)
4252
- update!(**args)
4253
- end
4254
-
4255
- # Update properties of this object
4256
- def update!(**args)
4257
- @kind = args[:kind] if args.key?(:kind)
4258
- @previous_match = args[:previous_match] if args.key?(:previous_match)
4259
- @rematch = args[:rematch] if args.key?(:rematch)
4260
- end
4261
- end
4262
-
4263
- # This is a JSON template for a turn-based match results object.
4264
- class TurnBasedMatchResults
4265
- include Google::Apis::Core::Hashable
4266
-
4267
- # This is a JSON template for sending a turn-based match data object.
4268
- # Corresponds to the JSON property `data`
4269
- # @return [Google::Apis::GamesV1::TurnBasedMatchDataRequest]
4270
- attr_accessor :data
4271
-
4272
- # Uniquely identifies the type of this resource. Value is always the fixed
4273
- # string games#turnBasedMatchResults.
4274
- # Corresponds to the JSON property `kind`
4275
- # @return [String]
4276
- attr_accessor :kind
4277
-
4278
- # The version of the match being updated.
4279
- # Corresponds to the JSON property `matchVersion`
4280
- # @return [Fixnum]
4281
- attr_accessor :match_version
4282
-
4283
- # The match results for the participants in the match.
4284
- # Corresponds to the JSON property `results`
4285
- # @return [Array<Google::Apis::GamesV1::ParticipantResult>]
4286
- attr_accessor :results
4287
-
4288
- def initialize(**args)
4289
- update!(**args)
4290
- end
4291
-
4292
- # Update properties of this object
4293
- def update!(**args)
4294
- @data = args[:data] if args.key?(:data)
4295
- @kind = args[:kind] if args.key?(:kind)
4296
- @match_version = args[:match_version] if args.key?(:match_version)
4297
- @results = args[:results] if args.key?(:results)
4298
- end
4299
- end
4300
-
4301
- # This is a JSON template for a list of turn-based matches returned from a sync.
4302
- class TurnBasedMatchSync
4303
- include Google::Apis::Core::Hashable
4304
-
4305
- # The matches.
4306
- # Corresponds to the JSON property `items`
4307
- # @return [Array<Google::Apis::GamesV1::TurnBasedMatch>]
4308
- attr_accessor :items
4309
-
4310
- # Uniquely identifies the type of this resource. Value is always the fixed
4311
- # string games#turnBasedMatchSync.
4312
- # Corresponds to the JSON property `kind`
4313
- # @return [String]
4314
- attr_accessor :kind
4315
-
4316
- # True if there were more matches available to fetch at the time the response
4317
- # was generated (which were not returned due to page size limits.)
4318
- # Corresponds to the JSON property `moreAvailable`
4319
- # @return [Boolean]
4320
- attr_accessor :more_available
4321
- alias_method :more_available?, :more_available
4322
-
4323
- # The pagination token for the next page of results.
4324
- # Corresponds to the JSON property `nextPageToken`
4325
- # @return [String]
4326
- attr_accessor :next_page_token
4327
-
4328
- def initialize(**args)
4329
- update!(**args)
4330
- end
4331
-
4332
- # Update properties of this object
4333
- def update!(**args)
4334
- @items = args[:items] if args.key?(:items)
4335
- @kind = args[:kind] if args.key?(:kind)
4336
- @more_available = args[:more_available] if args.key?(:more_available)
4337
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
4338
- end
4339
- end
4340
-
4341
- # This is a JSON template for the object representing a turn.
4342
- class TurnBasedMatchTurn
4343
- include Google::Apis::Core::Hashable
4344
-
4345
- # This is a JSON template for sending a turn-based match data object.
4346
- # Corresponds to the JSON property `data`
4347
- # @return [Google::Apis::GamesV1::TurnBasedMatchDataRequest]
4348
- attr_accessor :data
4349
-
4350
- # Uniquely identifies the type of this resource. Value is always the fixed
4351
- # string games#turnBasedMatchTurn.
4352
- # Corresponds to the JSON property `kind`
4353
- # @return [String]
4354
- attr_accessor :kind
4355
-
4356
- # The version of this match: an increasing counter, used to avoid out-of-date
4357
- # updates to the match.
4358
- # Corresponds to the JSON property `matchVersion`
4359
- # @return [Fixnum]
4360
- attr_accessor :match_version
4361
-
4362
- # The ID of the participant who should take their turn next. May be set to the
4363
- # current player's participant ID to update match state without changing the
4364
- # turn. If not set, the match will wait for other player(s) to join via
4365
- # automatching; this is only valid if automatch criteria is set on the match
4366
- # with remaining slots for automatched players.
4367
- # Corresponds to the JSON property `pendingParticipantId`
4368
- # @return [String]
4369
- attr_accessor :pending_participant_id
2598
+ # The probability of the player going to spend the game in the next seven
2599
+ # days. E.g., 0, 0.25, 0.50, 0.75. Not populated if there is not enough
2600
+ # information.
2601
+ # Corresponds to the JSON property `spend_probability`
2602
+ # @return [Float]
2603
+ attr_accessor :spend_probability
4370
2604
 
4371
- # The match results for the participants in the match.
4372
- # Corresponds to the JSON property `results`
4373
- # @return [Array<Google::Apis::GamesV1::ParticipantResult>]
4374
- attr_accessor :results
2605
+ # The predicted amount of money that the player going to spend in the next 28
2606
+ # days. E.g., 1, 30, 60, ... . Not populated if there is not enough
2607
+ # information.
2608
+ # Corresponds to the JSON property `total_spend_next_28_days`
2609
+ # @return [Float]
2610
+ attr_accessor :total_spend_next_28_days
4375
2611
 
4376
2612
  def initialize(**args)
4377
2613
  update!(**args)
@@ -4379,11 +2615,17 @@ module Google
4379
2615
 
4380
2616
  # Update properties of this object
4381
2617
  def update!(**args)
4382
- @data = args[:data] if args.key?(:data)
2618
+ @avg_session_length_minutes = args[:avg_session_length_minutes] if args.key?(:avg_session_length_minutes)
2619
+ @churn_probability = args[:churn_probability] if args.key?(:churn_probability)
2620
+ @days_since_last_played = args[:days_since_last_played] if args.key?(:days_since_last_played)
2621
+ @high_spender_probability = args[:high_spender_probability] if args.key?(:high_spender_probability)
4383
2622
  @kind = args[:kind] if args.key?(:kind)
4384
- @match_version = args[:match_version] if args.key?(:match_version)
4385
- @pending_participant_id = args[:pending_participant_id] if args.key?(:pending_participant_id)
4386
- @results = args[:results] if args.key?(:results)
2623
+ @num_purchases = args[:num_purchases] if args.key?(:num_purchases)
2624
+ @num_sessions = args[:num_sessions] if args.key?(:num_sessions)
2625
+ @num_sessions_percentile = args[:num_sessions_percentile] if args.key?(:num_sessions_percentile)
2626
+ @spend_percentile = args[:spend_percentile] if args.key?(:spend_percentile)
2627
+ @spend_probability = args[:spend_probability] if args.key?(:spend_probability)
2628
+ @total_spend_next_28_days = args[:total_spend_next_28_days] if args.key?(:total_spend_next_28_days)
4387
2629
  end
4388
2630
  end
4389
2631
  end