lemboy-google-api-client 0.9.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (555) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +20 -0
  3. data/.rspec +2 -0
  4. data/.rubocop.yml +7 -0
  5. data/.rubocop_todo.yml +63 -0
  6. data/.travis.yml +27 -0
  7. data/.yardopts +12 -0
  8. data/CHANGELOG.md +309 -0
  9. data/CONTRIBUTING.md +31 -0
  10. data/Gemfile +53 -0
  11. data/LICENSE +202 -0
  12. data/MIGRATING.md +171 -0
  13. data/README.md +327 -0
  14. data/Rakefile +2 -0
  15. data/api_names.yaml +36215 -0
  16. data/bin/generate-api +109 -0
  17. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  18. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
  19. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
  20. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
  21. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  22. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1335 -0
  23. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +446 -0
  24. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +872 -0
  25. data/generated/google/apis/adexchangebuyer_v1_4.rb +35 -0
  26. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +3550 -0
  27. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1421 -0
  28. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +1538 -0
  29. data/generated/google/apis/adexchangeseller_v2_0.rb +37 -0
  30. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
  31. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +347 -0
  32. data/generated/google/apis/adexchangeseller_v2_0/service.rb +667 -0
  33. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  34. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  35. data/generated/google/apis/admin_datatransfer_v1/representations.rb +130 -0
  36. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  37. data/generated/google/apis/admin_directory_v1.rb +113 -0
  38. data/generated/google/apis/admin_directory_v1/classes.rb +3241 -0
  39. data/generated/google/apis/admin_directory_v1/representations.rb +1172 -0
  40. data/generated/google/apis/admin_directory_v1/service.rb +3857 -0
  41. data/generated/google/apis/admin_reports_v1.rb +38 -0
  42. data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
  43. data/generated/google/apis/admin_reports_v1/representations.rb +257 -0
  44. data/generated/google/apis/admin_reports_v1/service.rb +336 -0
  45. data/generated/google/apis/adsense_v1_4.rb +37 -0
  46. data/generated/google/apis/adsense_v1_4/classes.rb +1280 -0
  47. data/generated/google/apis/adsense_v1_4/representations.rb +555 -0
  48. data/generated/google/apis/adsense_v1_4/service.rb +1713 -0
  49. data/generated/google/apis/adsensehost_v4_1.rb +35 -0
  50. data/generated/google/apis/adsensehost_v4_1/classes.rb +836 -0
  51. data/generated/google/apis/adsensehost_v4_1/representations.rb +367 -0
  52. data/generated/google/apis/adsensehost_v4_1/service.rb +1164 -0
  53. data/generated/google/apis/analytics_v3.rb +49 -0
  54. data/generated/google/apis/analytics_v3/classes.rb +5536 -0
  55. data/generated/google/apis/analytics_v3/representations.rb +1992 -0
  56. data/generated/google/apis/analytics_v3/service.rb +3785 -0
  57. data/generated/google/apis/analyticsreporting_v4.rb +37 -0
  58. data/generated/google/apis/analyticsreporting_v4/classes.rb +1420 -0
  59. data/generated/google/apis/analyticsreporting_v4/representations.rb +598 -0
  60. data/generated/google/apis/analyticsreporting_v4/service.rb +88 -0
  61. data/generated/google/apis/androidenterprise_v1.rb +34 -0
  62. data/generated/google/apis/androidenterprise_v1/classes.rb +2250 -0
  63. data/generated/google/apis/androidenterprise_v1/representations.rb +970 -0
  64. data/generated/google/apis/androidenterprise_v1/service.rb +3267 -0
  65. data/generated/google/apis/androidpublisher_v2.rb +34 -0
  66. data/generated/google/apis/androidpublisher_v2/classes.rb +1941 -0
  67. data/generated/google/apis/androidpublisher_v2/representations.rb +975 -0
  68. data/generated/google/apis/androidpublisher_v2/service.rb +2572 -0
  69. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  70. data/generated/google/apis/appengine_v1beta4/classes.rb +1585 -0
  71. data/generated/google/apis/appengine_v1beta4/representations.rb +542 -0
  72. data/generated/google/apis/appengine_v1beta4/service.rb +477 -0
  73. data/generated/google/apis/appengine_v1beta5.rb +40 -0
  74. data/generated/google/apis/appengine_v1beta5/classes.rb +1984 -0
  75. data/generated/google/apis/appengine_v1beta5/representations.rb +765 -0
  76. data/generated/google/apis/appengine_v1beta5/service.rb +864 -0
  77. data/generated/google/apis/appsactivity_v1.rb +46 -0
  78. data/generated/google/apis/appsactivity_v1/classes.rb +415 -0
  79. data/generated/google/apis/appsactivity_v1/representations.rb +209 -0
  80. data/generated/google/apis/appsactivity_v1/service.rb +128 -0
  81. data/generated/google/apis/appstate_v1.rb +34 -0
  82. data/generated/google/apis/appstate_v1/classes.rb +154 -0
  83. data/generated/google/apis/appstate_v1/representations.rb +87 -0
  84. data/generated/google/apis/appstate_v1/service.rb +260 -0
  85. data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
  86. data/generated/google/apis/autoscaler_v1beta2/classes.rb +710 -0
  87. data/generated/google/apis/autoscaler_v1beta2/representations.rb +296 -0
  88. data/generated/google/apis/autoscaler_v1beta2/service.rb +478 -0
  89. data/generated/google/apis/bigquery_v2.rb +52 -0
  90. data/generated/google/apis/bigquery_v2/classes.rb +3081 -0
  91. data/generated/google/apis/bigquery_v2/representations.rb +1094 -0
  92. data/generated/google/apis/bigquery_v2/service.rb +988 -0
  93. data/generated/google/apis/blogger_v3.rb +37 -0
  94. data/generated/google/apis/blogger_v3/classes.rb +1354 -0
  95. data/generated/google/apis/blogger_v3/representations.rb +632 -0
  96. data/generated/google/apis/blogger_v3/service.rb +1587 -0
  97. data/generated/google/apis/books_v1.rb +34 -0
  98. data/generated/google/apis/books_v1/classes.rb +4160 -0
  99. data/generated/google/apis/books_v1/representations.rb +1799 -0
  100. data/generated/google/apis/books_v1/service.rb +2300 -0
  101. data/generated/google/apis/calendar_v3.rb +37 -0
  102. data/generated/google/apis/calendar_v3/classes.rb +1742 -0
  103. data/generated/google/apis/calendar_v3/representations.rb +631 -0
  104. data/generated/google/apis/calendar_v3/service.rb +1968 -0
  105. data/generated/google/apis/civicinfo_v2.rb +32 -0
  106. data/generated/google/apis/civicinfo_v2/classes.rb +1499 -0
  107. data/generated/google/apis/civicinfo_v2/representations.rb +572 -0
  108. data/generated/google/apis/civicinfo_v2/service.rb +300 -0
  109. data/generated/google/apis/classroom_v1.rb +70 -0
  110. data/generated/google/apis/classroom_v1/classes.rb +1572 -0
  111. data/generated/google/apis/classroom_v1/representations.rb +729 -0
  112. data/generated/google/apis/classroom_v1/service.rb +1945 -0
  113. data/generated/google/apis/classroom_v1beta1.rb +49 -0
  114. data/generated/google/apis/classroom_v1beta1/classes.rb +447 -0
  115. data/generated/google/apis/classroom_v1beta1/representations.rb +190 -0
  116. data/generated/google/apis/classroom_v1beta1/service.rb +791 -0
  117. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  118. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  119. data/generated/google/apis/cloudbilling_v1/representations.rb +87 -0
  120. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  121. data/generated/google/apis/cloudbuild_v1.rb +34 -0
  122. data/generated/google/apis/cloudbuild_v1/classes.rb +919 -0
  123. data/generated/google/apis/cloudbuild_v1/representations.rb +364 -0
  124. data/generated/google/apis/cloudbuild_v1/service.rb +492 -0
  125. data/generated/google/apis/clouddebugger_v2.rb +38 -0
  126. data/generated/google/apis/clouddebugger_v2/classes.rb +1081 -0
  127. data/generated/google/apis/clouddebugger_v2/representations.rb +465 -0
  128. data/generated/google/apis/clouddebugger_v2/service.rb +396 -0
  129. data/generated/google/apis/cloudkms_v1beta1.rb +34 -0
  130. data/generated/google/apis/cloudkms_v1beta1/classes.rb +999 -0
  131. data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
  132. data/generated/google/apis/cloudkms_v1beta1/service.rb +932 -0
  133. data/generated/google/apis/cloudlatencytest_v2.rb +34 -0
  134. data/generated/google/apis/cloudlatencytest_v2/classes.rb +195 -0
  135. data/generated/google/apis/cloudlatencytest_v2/representations.rb +127 -0
  136. data/generated/google/apis/cloudlatencytest_v2/service.rb +135 -0
  137. data/generated/google/apis/cloudmonitoring_v2beta2.rb +37 -0
  138. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
  139. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +353 -0
  140. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +452 -0
  141. data/generated/google/apis/cloudresourcemanager_v1.rb +38 -0
  142. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +886 -0
  143. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +359 -0
  144. data/generated/google/apis/cloudresourcemanager_v1/service.rb +686 -0
  145. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
  146. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +682 -0
  147. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +312 -0
  148. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +710 -0
  149. data/generated/google/apis/cloudtrace_v1.rb +43 -0
  150. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  151. data/generated/google/apis/cloudtrace_v1/representations.rb +102 -0
  152. data/generated/google/apis/cloudtrace_v1/service.rb +192 -0
  153. data/generated/google/apis/clouduseraccounts_beta.rb +44 -0
  154. data/generated/google/apis/clouduseraccounts_beta/classes.rb +845 -0
  155. data/generated/google/apis/clouduseraccounts_beta/representations.rb +352 -0
  156. data/generated/google/apis/clouduseraccounts_beta/service.rb +907 -0
  157. data/generated/google/apis/compute_beta.rb +49 -0
  158. data/generated/google/apis/compute_beta/classes.rb +12261 -0
  159. data/generated/google/apis/compute_beta/representations.rb +4615 -0
  160. data/generated/google/apis/compute_beta/service.rb +15330 -0
  161. data/generated/google/apis/compute_v1.rb +49 -0
  162. data/generated/google/apis/compute_v1/classes.rb +11179 -0
  163. data/generated/google/apis/compute_v1/representations.rb +4203 -0
  164. data/generated/google/apis/compute_v1/service.rb +12937 -0
  165. data/generated/google/apis/container_v1.rb +35 -0
  166. data/generated/google/apis/container_v1/classes.rb +1040 -0
  167. data/generated/google/apis/container_v1/representations.rb +415 -0
  168. data/generated/google/apis/container_v1/service.rb +659 -0
  169. data/generated/google/apis/container_v1beta1.rb +35 -0
  170. data/generated/google/apis/container_v1beta1/classes.rb +466 -0
  171. data/generated/google/apis/container_v1beta1/representations.rb +177 -0
  172. data/generated/google/apis/container_v1beta1/service.rb +394 -0
  173. data/generated/google/apis/content_v2.rb +35 -0
  174. data/generated/google/apis/content_v2/classes.rb +6887 -0
  175. data/generated/google/apis/content_v2/representations.rb +2963 -0
  176. data/generated/google/apis/content_v2/service.rb +2653 -0
  177. data/generated/google/apis/coordinate_v1.rb +37 -0
  178. data/generated/google/apis/coordinate_v1/classes.rb +669 -0
  179. data/generated/google/apis/coordinate_v1/representations.rb +321 -0
  180. data/generated/google/apis/coordinate_v1/service.rb +678 -0
  181. data/generated/google/apis/customsearch_v1.rb +31 -0
  182. data/generated/google/apis/customsearch_v1/classes.rb +771 -0
  183. data/generated/google/apis/customsearch_v1/representations.rb +302 -0
  184. data/generated/google/apis/customsearch_v1/service.rb +207 -0
  185. data/generated/google/apis/dataflow_v1b3.rb +37 -0
  186. data/generated/google/apis/dataflow_v1b3/classes.rb +4225 -0
  187. data/generated/google/apis/dataflow_v1b3/representations.rb +1809 -0
  188. data/generated/google/apis/dataflow_v1b3/service.rb +874 -0
  189. data/generated/google/apis/dataproc_v1.rb +34 -0
  190. data/generated/google/apis/dataproc_v1/classes.rb +1716 -0
  191. data/generated/google/apis/dataproc_v1/representations.rb +678 -0
  192. data/generated/google/apis/dataproc_v1/service.rb +670 -0
  193. data/generated/google/apis/datastore_v1.rb +38 -0
  194. data/generated/google/apis/datastore_v1/classes.rb +1289 -0
  195. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  196. data/generated/google/apis/datastore_v1/service.rb +259 -0
  197. data/generated/google/apis/datastore_v1beta2.rb +40 -0
  198. data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
  199. data/generated/google/apis/datastore_v1beta2/representations.rb +594 -0
  200. data/generated/google/apis/datastore_v1beta2/service.rb +294 -0
  201. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  202. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  203. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  204. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  205. data/generated/google/apis/deploymentmanager_v2.rb +43 -0
  206. data/generated/google/apis/deploymentmanager_v2/classes.rb +1582 -0
  207. data/generated/google/apis/deploymentmanager_v2/representations.rb +686 -0
  208. data/generated/google/apis/deploymentmanager_v2/service.rb +1026 -0
  209. data/generated/google/apis/deploymentmanager_v2beta2.rb +44 -0
  210. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +843 -0
  211. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +306 -0
  212. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +689 -0
  213. data/generated/google/apis/dfareporting_v2_1.rb +37 -0
  214. data/generated/google/apis/dfareporting_v2_1/classes.rb +10770 -0
  215. data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
  216. data/generated/google/apis/dfareporting_v2_1/service.rb +8585 -0
  217. data/generated/google/apis/dfareporting_v2_3.rb +37 -0
  218. data/generated/google/apis/dfareporting_v2_3/classes.rb +10839 -0
  219. data/generated/google/apis/dfareporting_v2_3/representations.rb +3829 -0
  220. data/generated/google/apis/dfareporting_v2_3/service.rb +8581 -0
  221. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  222. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  223. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  224. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  225. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  226. data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
  227. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  228. data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
  229. data/generated/google/apis/dfareporting_v2_7.rb +40 -0
  230. data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
  231. data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
  232. data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
  233. data/generated/google/apis/discovery_v1.rb +32 -0
  234. data/generated/google/apis/discovery_v1/classes.rb +961 -0
  235. data/generated/google/apis/discovery_v1/representations.rb +397 -0
  236. data/generated/google/apis/discovery_v1/service.rb +142 -0
  237. data/generated/google/apis/dns_v1.rb +43 -0
  238. data/generated/google/apis/dns_v1/classes.rb +406 -0
  239. data/generated/google/apis/dns_v1/representations.rb +167 -0
  240. data/generated/google/apis/dns_v1/service.rb +453 -0
  241. data/generated/google/apis/dns_v2beta1.rb +43 -0
  242. data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
  243. data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
  244. data/generated/google/apis/dns_v2beta1/service.rb +768 -0
  245. data/generated/google/apis/doubleclickbidmanager_v1.rb +31 -0
  246. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +795 -0
  247. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +368 -0
  248. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +376 -0
  249. data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
  250. data/generated/google/apis/doubleclicksearch_v2/classes.rb +960 -0
  251. data/generated/google/apis/doubleclicksearch_v2/representations.rb +350 -0
  252. data/generated/google/apis/doubleclicksearch_v2/service.rb +480 -0
  253. data/generated/google/apis/drive_v2.rb +59 -0
  254. data/generated/google/apis/drive_v2/classes.rb +2633 -0
  255. data/generated/google/apis/drive_v2/representations.rb +885 -0
  256. data/generated/google/apis/drive_v2/service.rb +2754 -0
  257. data/generated/google/apis/drive_v3.rb +56 -0
  258. data/generated/google/apis/drive_v3/classes.rb +1611 -0
  259. data/generated/google/apis/drive_v3/representations.rb +555 -0
  260. data/generated/google/apis/drive_v3/service.rb +1553 -0
  261. data/generated/google/apis/fitness_v1.rb +85 -0
  262. data/generated/google/apis/fitness_v1/classes.rb +943 -0
  263. data/generated/google/apis/fitness_v1/representations.rb +380 -0
  264. data/generated/google/apis/fitness_v1/service.rb +674 -0
  265. data/generated/google/apis/fusiontables_v2.rb +37 -0
  266. data/generated/google/apis/fusiontables_v2/classes.rb +1049 -0
  267. data/generated/google/apis/fusiontables_v2/representations.rb +457 -0
  268. data/generated/google/apis/fusiontables_v2/service.rb +1463 -0
  269. data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
  270. data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
  271. data/generated/google/apis/games_configuration_v1configuration/representations.rb +228 -0
  272. data/generated/google/apis/games_configuration_v1configuration/service.rb +565 -0
  273. data/generated/google/apis/games_management_v1management.rb +37 -0
  274. data/generated/google/apis/games_management_v1management/classes.rb +567 -0
  275. data/generated/google/apis/games_management_v1management/representations.rb +278 -0
  276. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  277. data/generated/google/apis/games_v1.rb +40 -0
  278. data/generated/google/apis/games_v1/classes.rb +4667 -0
  279. data/generated/google/apis/games_v1/representations.rb +1800 -0
  280. data/generated/google/apis/games_v1/service.rb +2449 -0
  281. data/generated/google/apis/gan_v1beta1.rb +31 -0
  282. data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
  283. data/generated/google/apis/gan_v1beta1/representations.rb +462 -0
  284. data/generated/google/apis/gan_v1beta1/service.rb +682 -0
  285. data/generated/google/apis/genomics_v1.rb +46 -0
  286. data/generated/google/apis/genomics_v1/classes.rb +3477 -0
  287. data/generated/google/apis/genomics_v1/representations.rb +1284 -0
  288. data/generated/google/apis/genomics_v1/service.rb +2207 -0
  289. data/generated/google/apis/genomics_v1beta2.rb +46 -0
  290. data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
  291. data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
  292. data/generated/google/apis/genomics_v1beta2/service.rb +2392 -0
  293. data/generated/google/apis/gmail_v1.rb +61 -0
  294. data/generated/google/apis/gmail_v1/classes.rb +1382 -0
  295. data/generated/google/apis/gmail_v1/representations.rb +624 -0
  296. data/generated/google/apis/gmail_v1/service.rb +2447 -0
  297. data/generated/google/apis/groupsmigration_v1.rb +34 -0
  298. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  299. data/generated/google/apis/groupsmigration_v1/representations.rb +40 -0
  300. data/generated/google/apis/groupsmigration_v1/service.rb +110 -0
  301. data/generated/google/apis/groupssettings_v1.rb +34 -0
  302. data/generated/google/apis/groupssettings_v1/classes.rb +240 -0
  303. data/generated/google/apis/groupssettings_v1/representations.rb +69 -0
  304. data/generated/google/apis/groupssettings_v1/service.rb +179 -0
  305. data/generated/google/apis/iam_v1.rb +36 -0
  306. data/generated/google/apis/iam_v1/classes.rb +640 -0
  307. data/generated/google/apis/iam_v1/representations.rb +316 -0
  308. data/generated/google/apis/iam_v1/service.rb +554 -0
  309. data/generated/google/apis/identitytoolkit_v3.rb +37 -0
  310. data/generated/google/apis/identitytoolkit_v3/classes.rb +2182 -0
  311. data/generated/google/apis/identitytoolkit_v3/representations.rb +742 -0
  312. data/generated/google/apis/identitytoolkit_v3/service.rb +657 -0
  313. data/generated/google/apis/kgsearch_v1.rb +31 -0
  314. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  315. data/generated/google/apis/kgsearch_v1/representations.rb +41 -0
  316. data/generated/google/apis/kgsearch_v1/service.rb +113 -0
  317. data/generated/google/apis/language_v1beta1.rb +36 -0
  318. data/generated/google/apis/language_v1beta1/classes.rb +757 -0
  319. data/generated/google/apis/language_v1beta1/representations.rb +339 -0
  320. data/generated/google/apis/language_v1beta1/service.rb +184 -0
  321. data/generated/google/apis/licensing_v1.rb +34 -0
  322. data/generated/google/apis/licensing_v1/classes.rb +132 -0
  323. data/generated/google/apis/licensing_v1/representations.rb +74 -0
  324. data/generated/google/apis/licensing_v1/service.rb +369 -0
  325. data/generated/google/apis/logging_v1beta3.rb +47 -0
  326. data/generated/google/apis/logging_v1beta3/classes.rb +1079 -0
  327. data/generated/google/apis/logging_v1beta3/representations.rb +366 -0
  328. data/generated/google/apis/logging_v1beta3/service.rb +1001 -0
  329. data/generated/google/apis/logging_v2beta1.rb +46 -0
  330. data/generated/google/apis/logging_v2beta1/classes.rb +1254 -0
  331. data/generated/google/apis/logging_v2beta1/representations.rb +421 -0
  332. data/generated/google/apis/logging_v2beta1/service.rb +788 -0
  333. data/generated/google/apis/manager_v1beta2.rb +53 -0
  334. data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
  335. data/generated/google/apis/manager_v1beta2/representations.rb +606 -0
  336. data/generated/google/apis/manager_v1beta2/service.rb +372 -0
  337. data/generated/google/apis/manufacturers_v1.rb +34 -0
  338. data/generated/google/apis/manufacturers_v1/classes.rb +258 -0
  339. data/generated/google/apis/manufacturers_v1/representations.rb +103 -0
  340. data/generated/google/apis/manufacturers_v1/service.rb +138 -0
  341. data/generated/google/apis/mirror_v1.rb +37 -0
  342. data/generated/google/apis/mirror_v1/classes.rb +1072 -0
  343. data/generated/google/apis/mirror_v1/representations.rb +390 -0
  344. data/generated/google/apis/mirror_v1/service.rb +977 -0
  345. data/generated/google/apis/monitoring_v3.rb +45 -0
  346. data/generated/google/apis/monitoring_v3/classes.rb +1335 -0
  347. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  348. data/generated/google/apis/monitoring_v3/service.rb +706 -0
  349. data/generated/google/apis/mybusiness_v3.rb +32 -0
  350. data/generated/google/apis/mybusiness_v3/classes.rb +1864 -0
  351. data/generated/google/apis/mybusiness_v3/representations.rb +741 -0
  352. data/generated/google/apis/mybusiness_v3/service.rb +960 -0
  353. data/generated/google/apis/oauth2_v2.rb +43 -0
  354. data/generated/google/apis/oauth2_v2/classes.rb +245 -0
  355. data/generated/google/apis/oauth2_v2/representations.rb +102 -0
  356. data/generated/google/apis/oauth2_v2/service.rb +199 -0
  357. data/generated/google/apis/pagespeedonline_v2.rb +32 -0
  358. data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
  359. data/generated/google/apis/pagespeedonline_v2/representations.rb +272 -0
  360. data/generated/google/apis/pagespeedonline_v2/service.rb +119 -0
  361. data/generated/google/apis/partners_v2.rb +32 -0
  362. data/generated/google/apis/partners_v2/classes.rb +942 -0
  363. data/generated/google/apis/partners_v2/representations.rb +454 -0
  364. data/generated/google/apis/partners_v2/service.rb +400 -0
  365. data/generated/google/apis/people_v1.rb +59 -0
  366. data/generated/google/apis/people_v1/classes.rb +1521 -0
  367. data/generated/google/apis/people_v1/representations.rb +663 -0
  368. data/generated/google/apis/people_v1/service.rb +189 -0
  369. data/generated/google/apis/plus_domains_v1.rb +61 -0
  370. data/generated/google/apis/plus_domains_v1/classes.rb +2609 -0
  371. data/generated/google/apis/plus_domains_v1/representations.rb +1111 -0
  372. data/generated/google/apis/plus_domains_v1/service.rb +904 -0
  373. data/generated/google/apis/plus_v1.rb +43 -0
  374. data/generated/google/apis/plus_v1/classes.rb +2094 -0
  375. data/generated/google/apis/plus_v1/representations.rb +907 -0
  376. data/generated/google/apis/plus_v1/service.rb +470 -0
  377. data/generated/google/apis/prediction_v1_6.rb +47 -0
  378. data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
  379. data/generated/google/apis/prediction_v1_6/representations.rb +369 -0
  380. data/generated/google/apis/prediction_v1_6/service.rb +380 -0
  381. data/generated/google/apis/proximitybeacon_v1beta1.rb +34 -0
  382. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +786 -0
  383. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +347 -0
  384. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +806 -0
  385. data/generated/google/apis/pubsub_v1.rb +37 -0
  386. data/generated/google/apis/pubsub_v1/classes.rb +676 -0
  387. data/generated/google/apis/pubsub_v1/representations.rb +323 -0
  388. data/generated/google/apis/pubsub_v1/service.rb +900 -0
  389. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  390. data/generated/google/apis/pubsub_v1beta2/classes.rb +620 -0
  391. data/generated/google/apis/pubsub_v1beta2/representations.rb +282 -0
  392. data/generated/google/apis/pubsub_v1beta2/service.rb +774 -0
  393. data/generated/google/apis/qpx_express_v1.rb +31 -0
  394. data/generated/google/apis/qpx_express_v1/classes.rb +1274 -0
  395. data/generated/google/apis/qpx_express_v1/representations.rb +473 -0
  396. data/generated/google/apis/qpx_express_v1/service.rb +100 -0
  397. data/generated/google/apis/replicapool_v1beta2.rb +44 -0
  398. data/generated/google/apis/replicapool_v1beta2/classes.rb +631 -0
  399. data/generated/google/apis/replicapool_v1beta2/representations.rb +264 -0
  400. data/generated/google/apis/replicapool_v1beta2/service.rb +608 -0
  401. data/generated/google/apis/replicapoolupdater_v1beta1.rb +45 -0
  402. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +733 -0
  403. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +294 -0
  404. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +509 -0
  405. data/generated/google/apis/reseller_v1.rb +37 -0
  406. data/generated/google/apis/reseller_v1/classes.rb +540 -0
  407. data/generated/google/apis/reseller_v1/representations.rb +225 -0
  408. data/generated/google/apis/reseller_v1/service.rb +623 -0
  409. data/generated/google/apis/resourceviews_v1beta2.rb +50 -0
  410. data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
  411. data/generated/google/apis/resourceviews_v1beta2/representations.rb +301 -0
  412. data/generated/google/apis/resourceviews_v1beta2/service.rb +563 -0
  413. data/generated/google/apis/script_v1.rb +64 -0
  414. data/generated/google/apis/script_v1/classes.rb +265 -0
  415. data/generated/google/apis/script_v1/representations.rb +119 -0
  416. data/generated/google/apis/script_v1/service.rb +98 -0
  417. data/generated/google/apis/sheets_v4.rb +43 -0
  418. data/generated/google/apis/sheets_v4/classes.rb +6368 -0
  419. data/generated/google/apis/sheets_v4/representations.rb +2289 -0
  420. data/generated/google/apis/sheets_v4/service.rb +569 -0
  421. data/generated/google/apis/site_verification_v1.rb +37 -0
  422. data/generated/google/apis/site_verification_v1/classes.rb +185 -0
  423. data/generated/google/apis/site_verification_v1/representations.rb +113 -0
  424. data/generated/google/apis/site_verification_v1/service.rb +315 -0
  425. data/generated/google/apis/slides_v1.rb +49 -0
  426. data/generated/google/apis/slides_v1/classes.rb +4044 -0
  427. data/generated/google/apis/slides_v1/representations.rb +1765 -0
  428. data/generated/google/apis/slides_v1/service.rb +202 -0
  429. data/generated/google/apis/speech_v1beta1.rb +34 -0
  430. data/generated/google/apis/speech_v1beta1/classes.rb +513 -0
  431. data/generated/google/apis/speech_v1beta1/representations.rb +218 -0
  432. data/generated/google/apis/speech_v1beta1/service.rb +273 -0
  433. data/generated/google/apis/sqladmin_v1beta4.rb +38 -0
  434. data/generated/google/apis/sqladmin_v1beta4/classes.rb +2142 -0
  435. data/generated/google/apis/sqladmin_v1beta4/representations.rb +893 -0
  436. data/generated/google/apis/sqladmin_v1beta4/service.rb +1709 -0
  437. data/generated/google/apis/storage_v1.rb +46 -0
  438. data/generated/google/apis/storage_v1/classes.rb +1255 -0
  439. data/generated/google/apis/storage_v1/representations.rb +502 -0
  440. data/generated/google/apis/storage_v1/service.rb +1906 -0
  441. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  442. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  443. data/generated/google/apis/storagetransfer_v1/representations.rb +418 -0
  444. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  445. data/generated/google/apis/tagmanager_v1.rb +52 -0
  446. data/generated/google/apis/tagmanager_v1/classes.rb +1494 -0
  447. data/generated/google/apis/tagmanager_v1/representations.rb +611 -0
  448. data/generated/google/apis/tagmanager_v1/service.rb +2119 -0
  449. data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
  450. data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
  451. data/generated/google/apis/taskqueue_v1beta2/representations.rb +126 -0
  452. data/generated/google/apis/taskqueue_v1beta2/service.rb +408 -0
  453. data/generated/google/apis/tasks_v1.rb +37 -0
  454. data/generated/google/apis/tasks_v1/classes.rb +296 -0
  455. data/generated/google/apis/tasks_v1/representations.rb +125 -0
  456. data/generated/google/apis/tasks_v1/service.rb +643 -0
  457. data/generated/google/apis/translate_v2.rb +31 -0
  458. data/generated/google/apis/translate_v2/classes.rb +168 -0
  459. data/generated/google/apis/translate_v2/representations.rb +121 -0
  460. data/generated/google/apis/translate_v2/service.rb +182 -0
  461. data/generated/google/apis/urlshortener_v1.rb +34 -0
  462. data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
  463. data/generated/google/apis/urlshortener_v1/representations.rb +121 -0
  464. data/generated/google/apis/urlshortener_v1/service.rb +176 -0
  465. data/generated/google/apis/vision_v1.rb +36 -0
  466. data/generated/google/apis/vision_v1/classes.rb +1267 -0
  467. data/generated/google/apis/vision_v1/representations.rb +418 -0
  468. data/generated/google/apis/vision_v1/service.rb +90 -0
  469. data/generated/google/apis/webmasters_v3.rb +37 -0
  470. data/generated/google/apis/webmasters_v3/classes.rb +570 -0
  471. data/generated/google/apis/webmasters_v3/representations.rb +283 -0
  472. data/generated/google/apis/webmasters_v3/service.rb +573 -0
  473. data/generated/google/apis/youtube_analytics_v1.rb +46 -0
  474. data/generated/google/apis/youtube_analytics_v1/classes.rb +337 -0
  475. data/generated/google/apis/youtube_analytics_v1/representations.rb +174 -0
  476. data/generated/google/apis/youtube_analytics_v1/service.rb +486 -0
  477. data/generated/google/apis/youtube_partner_v1.rb +37 -0
  478. data/generated/google/apis/youtube_partner_v1/classes.rb +3854 -0
  479. data/generated/google/apis/youtube_partner_v1/representations.rb +1537 -0
  480. data/generated/google/apis/youtube_partner_v1/service.rb +3269 -0
  481. data/generated/google/apis/youtube_v3.rb +50 -0
  482. data/generated/google/apis/youtube_v3/classes.rb +8375 -0
  483. data/generated/google/apis/youtube_v3/representations.rb +3273 -0
  484. data/generated/google/apis/youtube_v3/service.rb +4440 -0
  485. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  486. data/generated/google/apis/youtubereporting_v1/classes.rb +302 -0
  487. data/generated/google/apis/youtubereporting_v1/representations.rb +149 -0
  488. data/generated/google/apis/youtubereporting_v1/service.rb +385 -0
  489. data/google-api-client.gemspec +33 -0
  490. data/lib/cacerts.pem +2183 -0
  491. data/lib/google/api_client/auth/installed_app.rb +128 -0
  492. data/lib/google/api_client/auth/key_utils.rb +94 -0
  493. data/lib/google/api_client/auth/storage.rb +104 -0
  494. data/lib/google/api_client/auth/storages/file_store.rb +57 -0
  495. data/lib/google/api_client/auth/storages/redis_store.rb +59 -0
  496. data/lib/google/api_client/client_secrets.rb +177 -0
  497. data/lib/google/apis.rb +58 -0
  498. data/lib/google/apis/core/api_command.rb +146 -0
  499. data/lib/google/apis/core/base_service.rb +401 -0
  500. data/lib/google/apis/core/batch.rb +239 -0
  501. data/lib/google/apis/core/download.rb +108 -0
  502. data/lib/google/apis/core/hashable.rb +44 -0
  503. data/lib/google/apis/core/http_client_adapter.rb +82 -0
  504. data/lib/google/apis/core/http_command.rb +332 -0
  505. data/lib/google/apis/core/json_representation.rb +145 -0
  506. data/lib/google/apis/core/logging.rb +30 -0
  507. data/lib/google/apis/core/multipart.rb +187 -0
  508. data/lib/google/apis/core/upload.rb +295 -0
  509. data/lib/google/apis/errors.rb +80 -0
  510. data/lib/google/apis/generator.rb +70 -0
  511. data/lib/google/apis/generator/annotator.rb +301 -0
  512. data/lib/google/apis/generator/helpers.rb +74 -0
  513. data/lib/google/apis/generator/model.rb +143 -0
  514. data/lib/google/apis/generator/template.rb +124 -0
  515. data/lib/google/apis/generator/templates/_class.tmpl +40 -0
  516. data/lib/google/apis/generator/templates/_method.tmpl +92 -0
  517. data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
  518. data/lib/google/apis/generator/templates/_representation_stub.tmpl +17 -0
  519. data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
  520. data/lib/google/apis/generator/templates/classes.rb.tmpl +29 -0
  521. data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
  522. data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
  523. data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
  524. data/lib/google/apis/options.rb +85 -0
  525. data/lib/google/apis/version.rb +39 -0
  526. data/rakelib/metrics.rake +22 -0
  527. data/rakelib/rubocop.rake +10 -0
  528. data/rakelib/spec.rake +11 -0
  529. data/rakelib/yard.rake +11 -0
  530. data/samples/cli/.env +4 -0
  531. data/samples/cli/Gemfile +7 -0
  532. data/samples/cli/README.md +51 -0
  533. data/samples/cli/google-api-samples +32 -0
  534. data/samples/cli/lib/base_cli.rb +95 -0
  535. data/samples/cli/lib/samples/analytics.rb +62 -0
  536. data/samples/cli/lib/samples/androidpublisher.rb +47 -0
  537. data/samples/cli/lib/samples/bigquery.rb +101 -0
  538. data/samples/cli/lib/samples/calendar.rb +83 -0
  539. data/samples/cli/lib/samples/drive.rb +82 -0
  540. data/samples/cli/lib/samples/gmail.rb +124 -0
  541. data/samples/cli/lib/samples/pubsub.rb +114 -0
  542. data/samples/cli/lib/samples/sheets.rb +61 -0
  543. data/samples/cli/lib/samples/translate.rb +44 -0
  544. data/samples/cli/lib/samples/you_tube.rb +44 -0
  545. data/samples/web/.env +2 -0
  546. data/samples/web/Gemfile +7 -0
  547. data/samples/web/README.md +44 -0
  548. data/samples/web/app.rb +120 -0
  549. data/samples/web/views/calendar.erb +34 -0
  550. data/samples/web/views/drive.erb +33 -0
  551. data/samples/web/views/home.erb +34 -0
  552. data/samples/web/views/layout.erb +40 -0
  553. data/sync.rb +71 -0
  554. data/third_party/hurley_patches.rb +103 -0
  555. metadata +735 -0
@@ -0,0 +1,37 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/identitytoolkit_v3/service.rb'
16
+ require 'google/apis/identitytoolkit_v3/classes.rb'
17
+ require 'google/apis/identitytoolkit_v3/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Google Identity Toolkit API
22
+ #
23
+ # Help the third party sites to implement federated login.
24
+ #
25
+ # @see https://developers.google.com/identity-toolkit/v3/
26
+ module IdentitytoolkitV3
27
+ VERSION = 'V3'
28
+ REVISION = '20161206'
29
+
30
+ # View and manage your data across Google Cloud Platform services
31
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
32
+
33
+ # View and administer all your Firebase data and settings
34
+ AUTH_FIREBASE = 'https://www.googleapis.com/auth/firebase'
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,2182 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module IdentitytoolkitV3
24
+
25
+ # Response of creating the IDP authentication URL.
26
+ class CreateAuthUriResponse
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # all providers the user has once used to do federated login
30
+ # Corresponds to the JSON property `allProviders`
31
+ # @return [Array<String>]
32
+ attr_accessor :all_providers
33
+
34
+ # The URI used by the IDP to authenticate the user.
35
+ # Corresponds to the JSON property `authUri`
36
+ # @return [String]
37
+ attr_accessor :auth_uri
38
+
39
+ # True if captcha is required.
40
+ # Corresponds to the JSON property `captchaRequired`
41
+ # @return [Boolean]
42
+ attr_accessor :captcha_required
43
+ alias_method :captcha_required?, :captcha_required
44
+
45
+ # True if the authUri is for user's existing provider.
46
+ # Corresponds to the JSON property `forExistingProvider`
47
+ # @return [Boolean]
48
+ attr_accessor :for_existing_provider
49
+ alias_method :for_existing_provider?, :for_existing_provider
50
+
51
+ # The fixed string identitytoolkit#CreateAuthUriResponse".
52
+ # Corresponds to the JSON property `kind`
53
+ # @return [String]
54
+ attr_accessor :kind
55
+
56
+ # The provider ID of the auth URI.
57
+ # Corresponds to the JSON property `providerId`
58
+ # @return [String]
59
+ attr_accessor :provider_id
60
+
61
+ # Whether the user is registered if the identifier is an email.
62
+ # Corresponds to the JSON property `registered`
63
+ # @return [Boolean]
64
+ attr_accessor :registered
65
+ alias_method :registered?, :registered
66
+
67
+ # Session ID which should be passed in the following verifyAssertion request.
68
+ # Corresponds to the JSON property `sessionId`
69
+ # @return [String]
70
+ attr_accessor :session_id
71
+
72
+ def initialize(**args)
73
+ update!(**args)
74
+ end
75
+
76
+ # Update properties of this object
77
+ def update!(**args)
78
+ @all_providers = args[:all_providers] if args.key?(:all_providers)
79
+ @auth_uri = args[:auth_uri] if args.key?(:auth_uri)
80
+ @captcha_required = args[:captcha_required] if args.key?(:captcha_required)
81
+ @for_existing_provider = args[:for_existing_provider] if args.key?(:for_existing_provider)
82
+ @kind = args[:kind] if args.key?(:kind)
83
+ @provider_id = args[:provider_id] if args.key?(:provider_id)
84
+ @registered = args[:registered] if args.key?(:registered)
85
+ @session_id = args[:session_id] if args.key?(:session_id)
86
+ end
87
+ end
88
+
89
+ # Respone of deleting account.
90
+ class DeleteAccountResponse
91
+ include Google::Apis::Core::Hashable
92
+
93
+ # The fixed string "identitytoolkit#DeleteAccountResponse".
94
+ # Corresponds to the JSON property `kind`
95
+ # @return [String]
96
+ attr_accessor :kind
97
+
98
+ def initialize(**args)
99
+ update!(**args)
100
+ end
101
+
102
+ # Update properties of this object
103
+ def update!(**args)
104
+ @kind = args[:kind] if args.key?(:kind)
105
+ end
106
+ end
107
+
108
+ # Respone of downloading accounts in batch.
109
+ class DownloadAccountResponse
110
+ include Google::Apis::Core::Hashable
111
+
112
+ # The fixed string "identitytoolkit#DownloadAccountResponse".
113
+ # Corresponds to the JSON property `kind`
114
+ # @return [String]
115
+ attr_accessor :kind
116
+
117
+ # The next page token. To be used in a subsequent request to return the next
118
+ # page of results.
119
+ # Corresponds to the JSON property `nextPageToken`
120
+ # @return [String]
121
+ attr_accessor :next_page_token
122
+
123
+ # The user accounts data.
124
+ # Corresponds to the JSON property `users`
125
+ # @return [Array<Google::Apis::IdentitytoolkitV3::UserInfo>]
126
+ attr_accessor :users
127
+
128
+ def initialize(**args)
129
+ update!(**args)
130
+ end
131
+
132
+ # Update properties of this object
133
+ def update!(**args)
134
+ @kind = args[:kind] if args.key?(:kind)
135
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
136
+ @users = args[:users] if args.key?(:users)
137
+ end
138
+ end
139
+
140
+ # Template for an email template.
141
+ class EmailTemplate
142
+ include Google::Apis::Core::Hashable
143
+
144
+ # Email body.
145
+ # Corresponds to the JSON property `body`
146
+ # @return [String]
147
+ attr_accessor :body
148
+
149
+ # Email body format.
150
+ # Corresponds to the JSON property `format`
151
+ # @return [String]
152
+ attr_accessor :format
153
+
154
+ # From address of the email.
155
+ # Corresponds to the JSON property `from`
156
+ # @return [String]
157
+ attr_accessor :from
158
+
159
+ # From display name.
160
+ # Corresponds to the JSON property `fromDisplayName`
161
+ # @return [String]
162
+ attr_accessor :from_display_name
163
+
164
+ # Reply-to address.
165
+ # Corresponds to the JSON property `replyTo`
166
+ # @return [String]
167
+ attr_accessor :reply_to
168
+
169
+ # Subject of the email.
170
+ # Corresponds to the JSON property `subject`
171
+ # @return [String]
172
+ attr_accessor :subject
173
+
174
+ def initialize(**args)
175
+ update!(**args)
176
+ end
177
+
178
+ # Update properties of this object
179
+ def update!(**args)
180
+ @body = args[:body] if args.key?(:body)
181
+ @format = args[:format] if args.key?(:format)
182
+ @from = args[:from] if args.key?(:from)
183
+ @from_display_name = args[:from_display_name] if args.key?(:from_display_name)
184
+ @reply_to = args[:reply_to] if args.key?(:reply_to)
185
+ @subject = args[:subject] if args.key?(:subject)
186
+ end
187
+ end
188
+
189
+ # Response of getting account information.
190
+ class GetAccountInfoResponse
191
+ include Google::Apis::Core::Hashable
192
+
193
+ # The fixed string "identitytoolkit#GetAccountInfoResponse".
194
+ # Corresponds to the JSON property `kind`
195
+ # @return [String]
196
+ attr_accessor :kind
197
+
198
+ # The info of the users.
199
+ # Corresponds to the JSON property `users`
200
+ # @return [Array<Google::Apis::IdentitytoolkitV3::UserInfo>]
201
+ attr_accessor :users
202
+
203
+ def initialize(**args)
204
+ update!(**args)
205
+ end
206
+
207
+ # Update properties of this object
208
+ def update!(**args)
209
+ @kind = args[:kind] if args.key?(:kind)
210
+ @users = args[:users] if args.key?(:users)
211
+ end
212
+ end
213
+
214
+ # Response of getting a code for user confirmation (reset password, change email
215
+ # etc.).
216
+ class GetOobConfirmationCodeResponse
217
+ include Google::Apis::Core::Hashable
218
+
219
+ # The email address that the email is sent to.
220
+ # Corresponds to the JSON property `email`
221
+ # @return [String]
222
+ attr_accessor :email
223
+
224
+ # The fixed string "identitytoolkit#GetOobConfirmationCodeResponse".
225
+ # Corresponds to the JSON property `kind`
226
+ # @return [String]
227
+ attr_accessor :kind
228
+
229
+ # The code to be send to the user.
230
+ # Corresponds to the JSON property `oobCode`
231
+ # @return [String]
232
+ attr_accessor :oob_code
233
+
234
+ def initialize(**args)
235
+ update!(**args)
236
+ end
237
+
238
+ # Update properties of this object
239
+ def update!(**args)
240
+ @email = args[:email] if args.key?(:email)
241
+ @kind = args[:kind] if args.key?(:kind)
242
+ @oob_code = args[:oob_code] if args.key?(:oob_code)
243
+ end
244
+ end
245
+
246
+ # Response of getting recaptcha param.
247
+ class GetRecaptchaParamResponse
248
+ include Google::Apis::Core::Hashable
249
+
250
+ # The fixed string "identitytoolkit#GetRecaptchaParamResponse".
251
+ # Corresponds to the JSON property `kind`
252
+ # @return [String]
253
+ attr_accessor :kind
254
+
255
+ # Site key registered at recaptcha.
256
+ # Corresponds to the JSON property `recaptchaSiteKey`
257
+ # @return [String]
258
+ attr_accessor :recaptcha_site_key
259
+
260
+ # The stoken field for the recaptcha widget, used to request captcha challenge.
261
+ # Corresponds to the JSON property `recaptchaStoken`
262
+ # @return [String]
263
+ attr_accessor :recaptcha_stoken
264
+
265
+ def initialize(**args)
266
+ update!(**args)
267
+ end
268
+
269
+ # Update properties of this object
270
+ def update!(**args)
271
+ @kind = args[:kind] if args.key?(:kind)
272
+ @recaptcha_site_key = args[:recaptcha_site_key] if args.key?(:recaptcha_site_key)
273
+ @recaptcha_stoken = args[:recaptcha_stoken] if args.key?(:recaptcha_stoken)
274
+ end
275
+ end
276
+
277
+ # Request to get the IDP authentication URL.
278
+ class CreateAuthUriRequest
279
+ include Google::Apis::Core::Hashable
280
+
281
+ # The app ID of the mobile app, base64(CERT_SHA1):PACKAGE_NAME for Android,
282
+ # BUNDLE_ID for iOS.
283
+ # Corresponds to the JSON property `appId`
284
+ # @return [String]
285
+ attr_accessor :app_id
286
+
287
+ # Explicitly specify the auth flow type. Currently only support "CODE_FLOW" type.
288
+ # The field is only used for Google provider.
289
+ # Corresponds to the JSON property `authFlowType`
290
+ # @return [String]
291
+ attr_accessor :auth_flow_type
292
+
293
+ # The relying party OAuth client ID.
294
+ # Corresponds to the JSON property `clientId`
295
+ # @return [String]
296
+ attr_accessor :client_id
297
+
298
+ # The opaque value used by the client to maintain context info between the
299
+ # authentication request and the IDP callback.
300
+ # Corresponds to the JSON property `context`
301
+ # @return [String]
302
+ attr_accessor :context
303
+
304
+ # The URI to which the IDP redirects the user after the federated login flow.
305
+ # Corresponds to the JSON property `continueUri`
306
+ # @return [String]
307
+ attr_accessor :continue_uri
308
+
309
+ # The query parameter that client can customize by themselves in auth url. The
310
+ # following parameters are reserved for server so that they cannot be customized
311
+ # by clients: client_id, response_type, scope, redirect_uri, state, oauth_token.
312
+ # Corresponds to the JSON property `customParameter`
313
+ # @return [Hash<String,String>]
314
+ attr_accessor :custom_parameter
315
+
316
+ # The hosted domain to restrict sign-in to accounts at that domain for Google
317
+ # Apps hosted accounts.
318
+ # Corresponds to the JSON property `hostedDomain`
319
+ # @return [String]
320
+ attr_accessor :hosted_domain
321
+
322
+ # The email or federated ID of the user.
323
+ # Corresponds to the JSON property `identifier`
324
+ # @return [String]
325
+ attr_accessor :identifier
326
+
327
+ # The developer's consumer key for OpenId OAuth Extension
328
+ # Corresponds to the JSON property `oauthConsumerKey`
329
+ # @return [String]
330
+ attr_accessor :oauth_consumer_key
331
+
332
+ # Additional oauth scopes, beyond the basid user profile, that the user would be
333
+ # prompted to grant
334
+ # Corresponds to the JSON property `oauthScope`
335
+ # @return [String]
336
+ attr_accessor :oauth_scope
337
+
338
+ # Optional realm for OpenID protocol. The sub string "scheme://domain:port" of
339
+ # the param "continueUri" is used if this is not set.
340
+ # Corresponds to the JSON property `openidRealm`
341
+ # @return [String]
342
+ attr_accessor :openid_realm
343
+
344
+ # The native app package for OTA installation.
345
+ # Corresponds to the JSON property `otaApp`
346
+ # @return [String]
347
+ attr_accessor :ota_app
348
+
349
+ # The IdP ID. For white listed IdPs it's a short domain name e.g. google.com,
350
+ # aol.com, live.net and yahoo.com. For other OpenID IdPs it's the OP identifier.
351
+ # Corresponds to the JSON property `providerId`
352
+ # @return [String]
353
+ attr_accessor :provider_id
354
+
355
+ # The session_id passed by client.
356
+ # Corresponds to the JSON property `sessionId`
357
+ # @return [String]
358
+ attr_accessor :session_id
359
+
360
+ def initialize(**args)
361
+ update!(**args)
362
+ end
363
+
364
+ # Update properties of this object
365
+ def update!(**args)
366
+ @app_id = args[:app_id] if args.key?(:app_id)
367
+ @auth_flow_type = args[:auth_flow_type] if args.key?(:auth_flow_type)
368
+ @client_id = args[:client_id] if args.key?(:client_id)
369
+ @context = args[:context] if args.key?(:context)
370
+ @continue_uri = args[:continue_uri] if args.key?(:continue_uri)
371
+ @custom_parameter = args[:custom_parameter] if args.key?(:custom_parameter)
372
+ @hosted_domain = args[:hosted_domain] if args.key?(:hosted_domain)
373
+ @identifier = args[:identifier] if args.key?(:identifier)
374
+ @oauth_consumer_key = args[:oauth_consumer_key] if args.key?(:oauth_consumer_key)
375
+ @oauth_scope = args[:oauth_scope] if args.key?(:oauth_scope)
376
+ @openid_realm = args[:openid_realm] if args.key?(:openid_realm)
377
+ @ota_app = args[:ota_app] if args.key?(:ota_app)
378
+ @provider_id = args[:provider_id] if args.key?(:provider_id)
379
+ @session_id = args[:session_id] if args.key?(:session_id)
380
+ end
381
+ end
382
+
383
+ # Request to delete account.
384
+ class DeleteAccountRequest
385
+ include Google::Apis::Core::Hashable
386
+
387
+ # GCP project number of the requesting delegated app. Currently only intended
388
+ # for Firebase V1 migration.
389
+ # Corresponds to the JSON property `delegatedProjectNumber`
390
+ # @return [String]
391
+ attr_accessor :delegated_project_number
392
+
393
+ # The GITKit token or STS id token of the authenticated user.
394
+ # Corresponds to the JSON property `idToken`
395
+ # @return [String]
396
+ attr_accessor :id_token
397
+
398
+ # The local ID of the user.
399
+ # Corresponds to the JSON property `localId`
400
+ # @return [String]
401
+ attr_accessor :local_id
402
+
403
+ def initialize(**args)
404
+ update!(**args)
405
+ end
406
+
407
+ # Update properties of this object
408
+ def update!(**args)
409
+ @delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number)
410
+ @id_token = args[:id_token] if args.key?(:id_token)
411
+ @local_id = args[:local_id] if args.key?(:local_id)
412
+ end
413
+ end
414
+
415
+ # Request to download user account in batch.
416
+ class DownloadAccountRequest
417
+ include Google::Apis::Core::Hashable
418
+
419
+ # GCP project number of the requesting delegated app. Currently only intended
420
+ # for Firebase V1 migration.
421
+ # Corresponds to the JSON property `delegatedProjectNumber`
422
+ # @return [String]
423
+ attr_accessor :delegated_project_number
424
+
425
+ # The max number of results to return in the response.
426
+ # Corresponds to the JSON property `maxResults`
427
+ # @return [Fixnum]
428
+ attr_accessor :max_results
429
+
430
+ # The token for the next page. This should be taken from the previous response.
431
+ # Corresponds to the JSON property `nextPageToken`
432
+ # @return [String]
433
+ attr_accessor :next_page_token
434
+
435
+ # Specify which project (field value is actually project id) to operate. Only
436
+ # used when provided credential.
437
+ # Corresponds to the JSON property `targetProjectId`
438
+ # @return [String]
439
+ attr_accessor :target_project_id
440
+
441
+ def initialize(**args)
442
+ update!(**args)
443
+ end
444
+
445
+ # Update properties of this object
446
+ def update!(**args)
447
+ @delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number)
448
+ @max_results = args[:max_results] if args.key?(:max_results)
449
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
450
+ @target_project_id = args[:target_project_id] if args.key?(:target_project_id)
451
+ end
452
+ end
453
+
454
+ # Request to get the account information.
455
+ class GetAccountInfoRequest
456
+ include Google::Apis::Core::Hashable
457
+
458
+ # GCP project number of the requesting delegated app. Currently only intended
459
+ # for Firebase V1 migration.
460
+ # Corresponds to the JSON property `delegatedProjectNumber`
461
+ # @return [String]
462
+ attr_accessor :delegated_project_number
463
+
464
+ # The list of emails of the users to inquiry.
465
+ # Corresponds to the JSON property `email`
466
+ # @return [Array<String>]
467
+ attr_accessor :email
468
+
469
+ # The GITKit token of the authenticated user.
470
+ # Corresponds to the JSON property `idToken`
471
+ # @return [String]
472
+ attr_accessor :id_token
473
+
474
+ # The list of local ID's of the users to inquiry.
475
+ # Corresponds to the JSON property `localId`
476
+ # @return [Array<String>]
477
+ attr_accessor :local_id
478
+
479
+ def initialize(**args)
480
+ update!(**args)
481
+ end
482
+
483
+ # Update properties of this object
484
+ def update!(**args)
485
+ @delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number)
486
+ @email = args[:email] if args.key?(:email)
487
+ @id_token = args[:id_token] if args.key?(:id_token)
488
+ @local_id = args[:local_id] if args.key?(:local_id)
489
+ end
490
+ end
491
+
492
+ # Response of getting the project configuration.
493
+ class GetProjectConfigResponse
494
+ include Google::Apis::Core::Hashable
495
+
496
+ # Whether to allow password user sign in or sign up.
497
+ # Corresponds to the JSON property `allowPasswordUser`
498
+ # @return [Boolean]
499
+ attr_accessor :allow_password_user
500
+ alias_method :allow_password_user?, :allow_password_user
501
+
502
+ # Browser API key, needed when making http request to Apiary.
503
+ # Corresponds to the JSON property `apiKey`
504
+ # @return [String]
505
+ attr_accessor :api_key
506
+
507
+ # Authorized domains.
508
+ # Corresponds to the JSON property `authorizedDomains`
509
+ # @return [Array<String>]
510
+ attr_accessor :authorized_domains
511
+
512
+ # Template for an email template.
513
+ # Corresponds to the JSON property `changeEmailTemplate`
514
+ # @return [Google::Apis::IdentitytoolkitV3::EmailTemplate]
515
+ attr_accessor :change_email_template
516
+
517
+ #
518
+ # Corresponds to the JSON property `dynamicLinksDomain`
519
+ # @return [String]
520
+ attr_accessor :dynamic_links_domain
521
+
522
+ # Whether anonymous user is enabled.
523
+ # Corresponds to the JSON property `enableAnonymousUser`
524
+ # @return [Boolean]
525
+ attr_accessor :enable_anonymous_user
526
+ alias_method :enable_anonymous_user?, :enable_anonymous_user
527
+
528
+ # OAuth2 provider configuration.
529
+ # Corresponds to the JSON property `idpConfig`
530
+ # @return [Array<Google::Apis::IdentitytoolkitV3::IdpConfig>]
531
+ attr_accessor :idp_config
532
+
533
+ # Template for an email template.
534
+ # Corresponds to the JSON property `legacyResetPasswordTemplate`
535
+ # @return [Google::Apis::IdentitytoolkitV3::EmailTemplate]
536
+ attr_accessor :legacy_reset_password_template
537
+
538
+ # Project ID of the relying party.
539
+ # Corresponds to the JSON property `projectId`
540
+ # @return [String]
541
+ attr_accessor :project_id
542
+
543
+ # Template for an email template.
544
+ # Corresponds to the JSON property `resetPasswordTemplate`
545
+ # @return [Google::Apis::IdentitytoolkitV3::EmailTemplate]
546
+ attr_accessor :reset_password_template
547
+
548
+ # Whether to use email sending provided by Firebear.
549
+ # Corresponds to the JSON property `useEmailSending`
550
+ # @return [Boolean]
551
+ attr_accessor :use_email_sending
552
+ alias_method :use_email_sending?, :use_email_sending
553
+
554
+ # Template for an email template.
555
+ # Corresponds to the JSON property `verifyEmailTemplate`
556
+ # @return [Google::Apis::IdentitytoolkitV3::EmailTemplate]
557
+ attr_accessor :verify_email_template
558
+
559
+ def initialize(**args)
560
+ update!(**args)
561
+ end
562
+
563
+ # Update properties of this object
564
+ def update!(**args)
565
+ @allow_password_user = args[:allow_password_user] if args.key?(:allow_password_user)
566
+ @api_key = args[:api_key] if args.key?(:api_key)
567
+ @authorized_domains = args[:authorized_domains] if args.key?(:authorized_domains)
568
+ @change_email_template = args[:change_email_template] if args.key?(:change_email_template)
569
+ @dynamic_links_domain = args[:dynamic_links_domain] if args.key?(:dynamic_links_domain)
570
+ @enable_anonymous_user = args[:enable_anonymous_user] if args.key?(:enable_anonymous_user)
571
+ @idp_config = args[:idp_config] if args.key?(:idp_config)
572
+ @legacy_reset_password_template = args[:legacy_reset_password_template] if args.key?(:legacy_reset_password_template)
573
+ @project_id = args[:project_id] if args.key?(:project_id)
574
+ @reset_password_template = args[:reset_password_template] if args.key?(:reset_password_template)
575
+ @use_email_sending = args[:use_email_sending] if args.key?(:use_email_sending)
576
+ @verify_email_template = args[:verify_email_template] if args.key?(:verify_email_template)
577
+ end
578
+ end
579
+
580
+ # Request to reset the password.
581
+ class ResetPasswordRequest
582
+ include Google::Apis::Core::Hashable
583
+
584
+ # The email address of the user.
585
+ # Corresponds to the JSON property `email`
586
+ # @return [String]
587
+ attr_accessor :email
588
+
589
+ # The new password inputted by the user.
590
+ # Corresponds to the JSON property `newPassword`
591
+ # @return [String]
592
+ attr_accessor :new_password
593
+
594
+ # The old password inputted by the user.
595
+ # Corresponds to the JSON property `oldPassword`
596
+ # @return [String]
597
+ attr_accessor :old_password
598
+
599
+ # The confirmation code.
600
+ # Corresponds to the JSON property `oobCode`
601
+ # @return [String]
602
+ attr_accessor :oob_code
603
+
604
+ def initialize(**args)
605
+ update!(**args)
606
+ end
607
+
608
+ # Update properties of this object
609
+ def update!(**args)
610
+ @email = args[:email] if args.key?(:email)
611
+ @new_password = args[:new_password] if args.key?(:new_password)
612
+ @old_password = args[:old_password] if args.key?(:old_password)
613
+ @oob_code = args[:oob_code] if args.key?(:oob_code)
614
+ end
615
+ end
616
+
617
+ # Request to set the account information.
618
+ class SetAccountInfoRequest
619
+ include Google::Apis::Core::Hashable
620
+
621
+ # The captcha challenge.
622
+ # Corresponds to the JSON property `captchaChallenge`
623
+ # @return [String]
624
+ attr_accessor :captcha_challenge
625
+
626
+ # Response to the captcha.
627
+ # Corresponds to the JSON property `captchaResponse`
628
+ # @return [String]
629
+ attr_accessor :captcha_response
630
+
631
+ # The timestamp when the account is created.
632
+ # Corresponds to the JSON property `createdAt`
633
+ # @return [String]
634
+ attr_accessor :created_at
635
+
636
+ # GCP project number of the requesting delegated app. Currently only intended
637
+ # for Firebase V1 migration.
638
+ # Corresponds to the JSON property `delegatedProjectNumber`
639
+ # @return [String]
640
+ attr_accessor :delegated_project_number
641
+
642
+ # The attributes users request to delete.
643
+ # Corresponds to the JSON property `deleteAttribute`
644
+ # @return [Array<String>]
645
+ attr_accessor :delete_attribute
646
+
647
+ # The IDPs the user request to delete.
648
+ # Corresponds to the JSON property `deleteProvider`
649
+ # @return [Array<String>]
650
+ attr_accessor :delete_provider
651
+
652
+ # Whether to disable the user.
653
+ # Corresponds to the JSON property `disableUser`
654
+ # @return [Boolean]
655
+ attr_accessor :disable_user
656
+ alias_method :disable_user?, :disable_user
657
+
658
+ # The name of the user.
659
+ # Corresponds to the JSON property `displayName`
660
+ # @return [String]
661
+ attr_accessor :display_name
662
+
663
+ # The email of the user.
664
+ # Corresponds to the JSON property `email`
665
+ # @return [String]
666
+ attr_accessor :email
667
+
668
+ # Mark the email as verified or not.
669
+ # Corresponds to the JSON property `emailVerified`
670
+ # @return [Boolean]
671
+ attr_accessor :email_verified
672
+ alias_method :email_verified?, :email_verified
673
+
674
+ # The GITKit token of the authenticated user.
675
+ # Corresponds to the JSON property `idToken`
676
+ # @return [String]
677
+ attr_accessor :id_token
678
+
679
+ # Instance id token of the app.
680
+ # Corresponds to the JSON property `instanceId`
681
+ # @return [String]
682
+ attr_accessor :instance_id
683
+
684
+ # Last login timestamp.
685
+ # Corresponds to the JSON property `lastLoginAt`
686
+ # @return [String]
687
+ attr_accessor :last_login_at
688
+
689
+ # The local ID of the user.
690
+ # Corresponds to the JSON property `localId`
691
+ # @return [String]
692
+ attr_accessor :local_id
693
+
694
+ # The out-of-band code of the change email request.
695
+ # Corresponds to the JSON property `oobCode`
696
+ # @return [String]
697
+ attr_accessor :oob_code
698
+
699
+ # The new password of the user.
700
+ # Corresponds to the JSON property `password`
701
+ # @return [String]
702
+ attr_accessor :password
703
+
704
+ # The photo url of the user.
705
+ # Corresponds to the JSON property `photoUrl`
706
+ # @return [String]
707
+ attr_accessor :photo_url
708
+
709
+ # The associated IDPs of the user.
710
+ # Corresponds to the JSON property `provider`
711
+ # @return [Array<String>]
712
+ attr_accessor :provider
713
+
714
+ # Whether return sts id token and refresh token instead of gitkit token.
715
+ # Corresponds to the JSON property `returnSecureToken`
716
+ # @return [Boolean]
717
+ attr_accessor :return_secure_token
718
+ alias_method :return_secure_token?, :return_secure_token
719
+
720
+ # Mark the user to upgrade to federated login.
721
+ # Corresponds to the JSON property `upgradeToFederatedLogin`
722
+ # @return [Boolean]
723
+ attr_accessor :upgrade_to_federated_login
724
+ alias_method :upgrade_to_federated_login?, :upgrade_to_federated_login
725
+
726
+ # Timestamp in seconds for valid login token.
727
+ # Corresponds to the JSON property `validSince`
728
+ # @return [String]
729
+ attr_accessor :valid_since
730
+
731
+ def initialize(**args)
732
+ update!(**args)
733
+ end
734
+
735
+ # Update properties of this object
736
+ def update!(**args)
737
+ @captcha_challenge = args[:captcha_challenge] if args.key?(:captcha_challenge)
738
+ @captcha_response = args[:captcha_response] if args.key?(:captcha_response)
739
+ @created_at = args[:created_at] if args.key?(:created_at)
740
+ @delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number)
741
+ @delete_attribute = args[:delete_attribute] if args.key?(:delete_attribute)
742
+ @delete_provider = args[:delete_provider] if args.key?(:delete_provider)
743
+ @disable_user = args[:disable_user] if args.key?(:disable_user)
744
+ @display_name = args[:display_name] if args.key?(:display_name)
745
+ @email = args[:email] if args.key?(:email)
746
+ @email_verified = args[:email_verified] if args.key?(:email_verified)
747
+ @id_token = args[:id_token] if args.key?(:id_token)
748
+ @instance_id = args[:instance_id] if args.key?(:instance_id)
749
+ @last_login_at = args[:last_login_at] if args.key?(:last_login_at)
750
+ @local_id = args[:local_id] if args.key?(:local_id)
751
+ @oob_code = args[:oob_code] if args.key?(:oob_code)
752
+ @password = args[:password] if args.key?(:password)
753
+ @photo_url = args[:photo_url] if args.key?(:photo_url)
754
+ @provider = args[:provider] if args.key?(:provider)
755
+ @return_secure_token = args[:return_secure_token] if args.key?(:return_secure_token)
756
+ @upgrade_to_federated_login = args[:upgrade_to_federated_login] if args.key?(:upgrade_to_federated_login)
757
+ @valid_since = args[:valid_since] if args.key?(:valid_since)
758
+ end
759
+ end
760
+
761
+ # Request to set the project configuration.
762
+ class SetProjectConfigRequest
763
+ include Google::Apis::Core::Hashable
764
+
765
+ # Whether to allow password user sign in or sign up.
766
+ # Corresponds to the JSON property `allowPasswordUser`
767
+ # @return [Boolean]
768
+ attr_accessor :allow_password_user
769
+ alias_method :allow_password_user?, :allow_password_user
770
+
771
+ # Browser API key, needed when making http request to Apiary.
772
+ # Corresponds to the JSON property `apiKey`
773
+ # @return [String]
774
+ attr_accessor :api_key
775
+
776
+ # Authorized domains for widget redirect.
777
+ # Corresponds to the JSON property `authorizedDomains`
778
+ # @return [Array<String>]
779
+ attr_accessor :authorized_domains
780
+
781
+ # Template for an email template.
782
+ # Corresponds to the JSON property `changeEmailTemplate`
783
+ # @return [Google::Apis::IdentitytoolkitV3::EmailTemplate]
784
+ attr_accessor :change_email_template
785
+
786
+ # GCP project number of the requesting delegated app. Currently only intended
787
+ # for Firebase V1 migration.
788
+ # Corresponds to the JSON property `delegatedProjectNumber`
789
+ # @return [String]
790
+ attr_accessor :delegated_project_number
791
+
792
+ # Whether to enable anonymous user.
793
+ # Corresponds to the JSON property `enableAnonymousUser`
794
+ # @return [Boolean]
795
+ attr_accessor :enable_anonymous_user
796
+ alias_method :enable_anonymous_user?, :enable_anonymous_user
797
+
798
+ # Oauth2 provider configuration.
799
+ # Corresponds to the JSON property `idpConfig`
800
+ # @return [Array<Google::Apis::IdentitytoolkitV3::IdpConfig>]
801
+ attr_accessor :idp_config
802
+
803
+ # Template for an email template.
804
+ # Corresponds to the JSON property `legacyResetPasswordTemplate`
805
+ # @return [Google::Apis::IdentitytoolkitV3::EmailTemplate]
806
+ attr_accessor :legacy_reset_password_template
807
+
808
+ # Template for an email template.
809
+ # Corresponds to the JSON property `resetPasswordTemplate`
810
+ # @return [Google::Apis::IdentitytoolkitV3::EmailTemplate]
811
+ attr_accessor :reset_password_template
812
+
813
+ # Whether to use email sending provided by Firebear.
814
+ # Corresponds to the JSON property `useEmailSending`
815
+ # @return [Boolean]
816
+ attr_accessor :use_email_sending
817
+ alias_method :use_email_sending?, :use_email_sending
818
+
819
+ # Template for an email template.
820
+ # Corresponds to the JSON property `verifyEmailTemplate`
821
+ # @return [Google::Apis::IdentitytoolkitV3::EmailTemplate]
822
+ attr_accessor :verify_email_template
823
+
824
+ def initialize(**args)
825
+ update!(**args)
826
+ end
827
+
828
+ # Update properties of this object
829
+ def update!(**args)
830
+ @allow_password_user = args[:allow_password_user] if args.key?(:allow_password_user)
831
+ @api_key = args[:api_key] if args.key?(:api_key)
832
+ @authorized_domains = args[:authorized_domains] if args.key?(:authorized_domains)
833
+ @change_email_template = args[:change_email_template] if args.key?(:change_email_template)
834
+ @delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number)
835
+ @enable_anonymous_user = args[:enable_anonymous_user] if args.key?(:enable_anonymous_user)
836
+ @idp_config = args[:idp_config] if args.key?(:idp_config)
837
+ @legacy_reset_password_template = args[:legacy_reset_password_template] if args.key?(:legacy_reset_password_template)
838
+ @reset_password_template = args[:reset_password_template] if args.key?(:reset_password_template)
839
+ @use_email_sending = args[:use_email_sending] if args.key?(:use_email_sending)
840
+ @verify_email_template = args[:verify_email_template] if args.key?(:verify_email_template)
841
+ end
842
+ end
843
+
844
+ # Response of setting the project configuration.
845
+ class IdentitytoolkitRelyingpartySetProjectConfigResponse
846
+ include Google::Apis::Core::Hashable
847
+
848
+ # Project ID of the relying party.
849
+ # Corresponds to the JSON property `projectId`
850
+ # @return [String]
851
+ attr_accessor :project_id
852
+
853
+ def initialize(**args)
854
+ update!(**args)
855
+ end
856
+
857
+ # Update properties of this object
858
+ def update!(**args)
859
+ @project_id = args[:project_id] if args.key?(:project_id)
860
+ end
861
+ end
862
+
863
+ # Request to sign out user.
864
+ class SignOutUserRequest
865
+ include Google::Apis::Core::Hashable
866
+
867
+ # Instance id token of the app.
868
+ # Corresponds to the JSON property `instanceId`
869
+ # @return [String]
870
+ attr_accessor :instance_id
871
+
872
+ # The local ID of the user.
873
+ # Corresponds to the JSON property `localId`
874
+ # @return [String]
875
+ attr_accessor :local_id
876
+
877
+ def initialize(**args)
878
+ update!(**args)
879
+ end
880
+
881
+ # Update properties of this object
882
+ def update!(**args)
883
+ @instance_id = args[:instance_id] if args.key?(:instance_id)
884
+ @local_id = args[:local_id] if args.key?(:local_id)
885
+ end
886
+ end
887
+
888
+ # Response of signing out user.
889
+ class SignOutUserResponse
890
+ include Google::Apis::Core::Hashable
891
+
892
+ # The local ID of the user.
893
+ # Corresponds to the JSON property `localId`
894
+ # @return [String]
895
+ attr_accessor :local_id
896
+
897
+ def initialize(**args)
898
+ update!(**args)
899
+ end
900
+
901
+ # Update properties of this object
902
+ def update!(**args)
903
+ @local_id = args[:local_id] if args.key?(:local_id)
904
+ end
905
+ end
906
+
907
+ # Request to signup new user, create anonymous user or anonymous user reauth.
908
+ class SignupNewUserRequest
909
+ include Google::Apis::Core::Hashable
910
+
911
+ # The captcha challenge.
912
+ # Corresponds to the JSON property `captchaChallenge`
913
+ # @return [String]
914
+ attr_accessor :captcha_challenge
915
+
916
+ # Response to the captcha.
917
+ # Corresponds to the JSON property `captchaResponse`
918
+ # @return [String]
919
+ attr_accessor :captcha_response
920
+
921
+ # Whether to disable the user. Only can be used by service account.
922
+ # Corresponds to the JSON property `disabled`
923
+ # @return [Boolean]
924
+ attr_accessor :disabled
925
+ alias_method :disabled?, :disabled
926
+
927
+ # The name of the user.
928
+ # Corresponds to the JSON property `displayName`
929
+ # @return [String]
930
+ attr_accessor :display_name
931
+
932
+ # The email of the user.
933
+ # Corresponds to the JSON property `email`
934
+ # @return [String]
935
+ attr_accessor :email
936
+
937
+ # Mark the email as verified or not. Only can be used by service account.
938
+ # Corresponds to the JSON property `emailVerified`
939
+ # @return [Boolean]
940
+ attr_accessor :email_verified
941
+ alias_method :email_verified?, :email_verified
942
+
943
+ # The GITKit token of the authenticated user.
944
+ # Corresponds to the JSON property `idToken`
945
+ # @return [String]
946
+ attr_accessor :id_token
947
+
948
+ # Instance id token of the app.
949
+ # Corresponds to the JSON property `instanceId`
950
+ # @return [String]
951
+ attr_accessor :instance_id
952
+
953
+ # The new password of the user.
954
+ # Corresponds to the JSON property `password`
955
+ # @return [String]
956
+ attr_accessor :password
957
+
958
+ # The photo url of the user.
959
+ # Corresponds to the JSON property `photoUrl`
960
+ # @return [String]
961
+ attr_accessor :photo_url
962
+
963
+ def initialize(**args)
964
+ update!(**args)
965
+ end
966
+
967
+ # Update properties of this object
968
+ def update!(**args)
969
+ @captcha_challenge = args[:captcha_challenge] if args.key?(:captcha_challenge)
970
+ @captcha_response = args[:captcha_response] if args.key?(:captcha_response)
971
+ @disabled = args[:disabled] if args.key?(:disabled)
972
+ @display_name = args[:display_name] if args.key?(:display_name)
973
+ @email = args[:email] if args.key?(:email)
974
+ @email_verified = args[:email_verified] if args.key?(:email_verified)
975
+ @id_token = args[:id_token] if args.key?(:id_token)
976
+ @instance_id = args[:instance_id] if args.key?(:instance_id)
977
+ @password = args[:password] if args.key?(:password)
978
+ @photo_url = args[:photo_url] if args.key?(:photo_url)
979
+ end
980
+ end
981
+
982
+ # Request to upload user account in batch.
983
+ class UploadAccountRequest
984
+ include Google::Apis::Core::Hashable
985
+
986
+ # Whether allow overwrite existing account when user local_id exists.
987
+ # Corresponds to the JSON property `allowOverwrite`
988
+ # @return [Boolean]
989
+ attr_accessor :allow_overwrite
990
+ alias_method :allow_overwrite?, :allow_overwrite
991
+
992
+ # GCP project number of the requesting delegated app. Currently only intended
993
+ # for Firebase V1 migration.
994
+ # Corresponds to the JSON property `delegatedProjectNumber`
995
+ # @return [String]
996
+ attr_accessor :delegated_project_number
997
+
998
+ # The password hash algorithm.
999
+ # Corresponds to the JSON property `hashAlgorithm`
1000
+ # @return [String]
1001
+ attr_accessor :hash_algorithm
1002
+
1003
+ # Memory cost for hash calculation. Used by scrypt similar algorithms.
1004
+ # Corresponds to the JSON property `memoryCost`
1005
+ # @return [Fixnum]
1006
+ attr_accessor :memory_cost
1007
+
1008
+ # Rounds for hash calculation. Used by scrypt and similar algorithms.
1009
+ # Corresponds to the JSON property `rounds`
1010
+ # @return [Fixnum]
1011
+ attr_accessor :rounds
1012
+
1013
+ # The salt separator.
1014
+ # Corresponds to the JSON property `saltSeparator`
1015
+ # @return [String]
1016
+ attr_accessor :salt_separator
1017
+
1018
+ # If true, backend will do sanity check(including duplicate email and federated
1019
+ # id) when uploading account.
1020
+ # Corresponds to the JSON property `sanityCheck`
1021
+ # @return [Boolean]
1022
+ attr_accessor :sanity_check
1023
+ alias_method :sanity_check?, :sanity_check
1024
+
1025
+ # The key for to hash the password.
1026
+ # Corresponds to the JSON property `signerKey`
1027
+ # @return [String]
1028
+ attr_accessor :signer_key
1029
+
1030
+ # Specify which project (field value is actually project id) to operate. Only
1031
+ # used when provided credential.
1032
+ # Corresponds to the JSON property `targetProjectId`
1033
+ # @return [String]
1034
+ attr_accessor :target_project_id
1035
+
1036
+ # The account info to be stored.
1037
+ # Corresponds to the JSON property `users`
1038
+ # @return [Array<Google::Apis::IdentitytoolkitV3::UserInfo>]
1039
+ attr_accessor :users
1040
+
1041
+ def initialize(**args)
1042
+ update!(**args)
1043
+ end
1044
+
1045
+ # Update properties of this object
1046
+ def update!(**args)
1047
+ @allow_overwrite = args[:allow_overwrite] if args.key?(:allow_overwrite)
1048
+ @delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number)
1049
+ @hash_algorithm = args[:hash_algorithm] if args.key?(:hash_algorithm)
1050
+ @memory_cost = args[:memory_cost] if args.key?(:memory_cost)
1051
+ @rounds = args[:rounds] if args.key?(:rounds)
1052
+ @salt_separator = args[:salt_separator] if args.key?(:salt_separator)
1053
+ @sanity_check = args[:sanity_check] if args.key?(:sanity_check)
1054
+ @signer_key = args[:signer_key] if args.key?(:signer_key)
1055
+ @target_project_id = args[:target_project_id] if args.key?(:target_project_id)
1056
+ @users = args[:users] if args.key?(:users)
1057
+ end
1058
+ end
1059
+
1060
+ # Request to verify the IDP assertion.
1061
+ class VerifyAssertionRequest
1062
+ include Google::Apis::Core::Hashable
1063
+
1064
+ # GCP project number of the requesting delegated app. Currently only intended
1065
+ # for Firebase V1 migration.
1066
+ # Corresponds to the JSON property `delegatedProjectNumber`
1067
+ # @return [String]
1068
+ attr_accessor :delegated_project_number
1069
+
1070
+ # The GITKit token of the authenticated user.
1071
+ # Corresponds to the JSON property `idToken`
1072
+ # @return [String]
1073
+ attr_accessor :id_token
1074
+
1075
+ # Instance id token of the app.
1076
+ # Corresponds to the JSON property `instanceId`
1077
+ # @return [String]
1078
+ attr_accessor :instance_id
1079
+
1080
+ # The GITKit token for the non-trusted IDP pending to be confirmed by the user.
1081
+ # Corresponds to the JSON property `pendingIdToken`
1082
+ # @return [String]
1083
+ attr_accessor :pending_id_token
1084
+
1085
+ # The post body if the request is a HTTP POST.
1086
+ # Corresponds to the JSON property `postBody`
1087
+ # @return [String]
1088
+ attr_accessor :post_body
1089
+
1090
+ # The URI to which the IDP redirects the user back. It may contain federated
1091
+ # login result params added by the IDP.
1092
+ # Corresponds to the JSON property `requestUri`
1093
+ # @return [String]
1094
+ attr_accessor :request_uri
1095
+
1096
+ # Whether return 200 and IDP credential rather than throw exception when
1097
+ # federated id is already linked.
1098
+ # Corresponds to the JSON property `returnIdpCredential`
1099
+ # @return [Boolean]
1100
+ attr_accessor :return_idp_credential
1101
+ alias_method :return_idp_credential?, :return_idp_credential
1102
+
1103
+ # Whether to return refresh tokens.
1104
+ # Corresponds to the JSON property `returnRefreshToken`
1105
+ # @return [Boolean]
1106
+ attr_accessor :return_refresh_token
1107
+ alias_method :return_refresh_token?, :return_refresh_token
1108
+
1109
+ # Whether return sts id token and refresh token instead of gitkit token.
1110
+ # Corresponds to the JSON property `returnSecureToken`
1111
+ # @return [Boolean]
1112
+ attr_accessor :return_secure_token
1113
+ alias_method :return_secure_token?, :return_secure_token
1114
+
1115
+ # Session ID, which should match the one in previous createAuthUri request.
1116
+ # Corresponds to the JSON property `sessionId`
1117
+ # @return [String]
1118
+ attr_accessor :session_id
1119
+
1120
+ def initialize(**args)
1121
+ update!(**args)
1122
+ end
1123
+
1124
+ # Update properties of this object
1125
+ def update!(**args)
1126
+ @delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number)
1127
+ @id_token = args[:id_token] if args.key?(:id_token)
1128
+ @instance_id = args[:instance_id] if args.key?(:instance_id)
1129
+ @pending_id_token = args[:pending_id_token] if args.key?(:pending_id_token)
1130
+ @post_body = args[:post_body] if args.key?(:post_body)
1131
+ @request_uri = args[:request_uri] if args.key?(:request_uri)
1132
+ @return_idp_credential = args[:return_idp_credential] if args.key?(:return_idp_credential)
1133
+ @return_refresh_token = args[:return_refresh_token] if args.key?(:return_refresh_token)
1134
+ @return_secure_token = args[:return_secure_token] if args.key?(:return_secure_token)
1135
+ @session_id = args[:session_id] if args.key?(:session_id)
1136
+ end
1137
+ end
1138
+
1139
+ # Request to verify a custom token
1140
+ class VerifyCustomTokenRequest
1141
+ include Google::Apis::Core::Hashable
1142
+
1143
+ # GCP project number of the requesting delegated app. Currently only intended
1144
+ # for Firebase V1 migration.
1145
+ # Corresponds to the JSON property `delegatedProjectNumber`
1146
+ # @return [String]
1147
+ attr_accessor :delegated_project_number
1148
+
1149
+ # Instance id token of the app.
1150
+ # Corresponds to the JSON property `instanceId`
1151
+ # @return [String]
1152
+ attr_accessor :instance_id
1153
+
1154
+ # Whether return sts id token and refresh token instead of gitkit token.
1155
+ # Corresponds to the JSON property `returnSecureToken`
1156
+ # @return [Boolean]
1157
+ attr_accessor :return_secure_token
1158
+ alias_method :return_secure_token?, :return_secure_token
1159
+
1160
+ # The custom token to verify
1161
+ # Corresponds to the JSON property `token`
1162
+ # @return [String]
1163
+ attr_accessor :token
1164
+
1165
+ def initialize(**args)
1166
+ update!(**args)
1167
+ end
1168
+
1169
+ # Update properties of this object
1170
+ def update!(**args)
1171
+ @delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number)
1172
+ @instance_id = args[:instance_id] if args.key?(:instance_id)
1173
+ @return_secure_token = args[:return_secure_token] if args.key?(:return_secure_token)
1174
+ @token = args[:token] if args.key?(:token)
1175
+ end
1176
+ end
1177
+
1178
+ # Request to verify the password.
1179
+ class VerifyPasswordRequest
1180
+ include Google::Apis::Core::Hashable
1181
+
1182
+ # The captcha challenge.
1183
+ # Corresponds to the JSON property `captchaChallenge`
1184
+ # @return [String]
1185
+ attr_accessor :captcha_challenge
1186
+
1187
+ # Response to the captcha.
1188
+ # Corresponds to the JSON property `captchaResponse`
1189
+ # @return [String]
1190
+ attr_accessor :captcha_response
1191
+
1192
+ # GCP project number of the requesting delegated app. Currently only intended
1193
+ # for Firebase V1 migration.
1194
+ # Corresponds to the JSON property `delegatedProjectNumber`
1195
+ # @return [String]
1196
+ attr_accessor :delegated_project_number
1197
+
1198
+ # The email of the user.
1199
+ # Corresponds to the JSON property `email`
1200
+ # @return [String]
1201
+ attr_accessor :email
1202
+
1203
+ # The GITKit token of the authenticated user.
1204
+ # Corresponds to the JSON property `idToken`
1205
+ # @return [String]
1206
+ attr_accessor :id_token
1207
+
1208
+ # Instance id token of the app.
1209
+ # Corresponds to the JSON property `instanceId`
1210
+ # @return [String]
1211
+ attr_accessor :instance_id
1212
+
1213
+ # The password inputed by the user.
1214
+ # Corresponds to the JSON property `password`
1215
+ # @return [String]
1216
+ attr_accessor :password
1217
+
1218
+ # The GITKit token for the non-trusted IDP, which is to be confirmed by the user.
1219
+ # Corresponds to the JSON property `pendingIdToken`
1220
+ # @return [String]
1221
+ attr_accessor :pending_id_token
1222
+
1223
+ # Whether return sts id token and refresh token instead of gitkit token.
1224
+ # Corresponds to the JSON property `returnSecureToken`
1225
+ # @return [Boolean]
1226
+ attr_accessor :return_secure_token
1227
+ alias_method :return_secure_token?, :return_secure_token
1228
+
1229
+ def initialize(**args)
1230
+ update!(**args)
1231
+ end
1232
+
1233
+ # Update properties of this object
1234
+ def update!(**args)
1235
+ @captcha_challenge = args[:captcha_challenge] if args.key?(:captcha_challenge)
1236
+ @captcha_response = args[:captcha_response] if args.key?(:captcha_response)
1237
+ @delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number)
1238
+ @email = args[:email] if args.key?(:email)
1239
+ @id_token = args[:id_token] if args.key?(:id_token)
1240
+ @instance_id = args[:instance_id] if args.key?(:instance_id)
1241
+ @password = args[:password] if args.key?(:password)
1242
+ @pending_id_token = args[:pending_id_token] if args.key?(:pending_id_token)
1243
+ @return_secure_token = args[:return_secure_token] if args.key?(:return_secure_token)
1244
+ end
1245
+ end
1246
+
1247
+ # Template for a single idp configuration.
1248
+ class IdpConfig
1249
+ include Google::Apis::Core::Hashable
1250
+
1251
+ # OAuth2 client ID.
1252
+ # Corresponds to the JSON property `clientId`
1253
+ # @return [String]
1254
+ attr_accessor :client_id
1255
+
1256
+ # Whether this IDP is enabled.
1257
+ # Corresponds to the JSON property `enabled`
1258
+ # @return [Boolean]
1259
+ attr_accessor :enabled
1260
+ alias_method :enabled?, :enabled
1261
+
1262
+ # Percent of users who will be prompted/redirected federated login for this IDP.
1263
+ # Corresponds to the JSON property `experimentPercent`
1264
+ # @return [Fixnum]
1265
+ attr_accessor :experiment_percent
1266
+
1267
+ # OAuth2 provider.
1268
+ # Corresponds to the JSON property `provider`
1269
+ # @return [String]
1270
+ attr_accessor :provider
1271
+
1272
+ # OAuth2 client secret.
1273
+ # Corresponds to the JSON property `secret`
1274
+ # @return [String]
1275
+ attr_accessor :secret
1276
+
1277
+ # Whitelisted client IDs for audience check.
1278
+ # Corresponds to the JSON property `whitelistedAudiences`
1279
+ # @return [Array<String>]
1280
+ attr_accessor :whitelisted_audiences
1281
+
1282
+ def initialize(**args)
1283
+ update!(**args)
1284
+ end
1285
+
1286
+ # Update properties of this object
1287
+ def update!(**args)
1288
+ @client_id = args[:client_id] if args.key?(:client_id)
1289
+ @enabled = args[:enabled] if args.key?(:enabled)
1290
+ @experiment_percent = args[:experiment_percent] if args.key?(:experiment_percent)
1291
+ @provider = args[:provider] if args.key?(:provider)
1292
+ @secret = args[:secret] if args.key?(:secret)
1293
+ @whitelisted_audiences = args[:whitelisted_audiences] if args.key?(:whitelisted_audiences)
1294
+ end
1295
+ end
1296
+
1297
+ # Request of getting a code for user confirmation (reset password, change email
1298
+ # etc.)
1299
+ class Relyingparty
1300
+ include Google::Apis::Core::Hashable
1301
+
1302
+ # The recaptcha response from the user.
1303
+ # Corresponds to the JSON property `captchaResp`
1304
+ # @return [String]
1305
+ attr_accessor :captcha_resp
1306
+
1307
+ # The recaptcha challenge presented to the user.
1308
+ # Corresponds to the JSON property `challenge`
1309
+ # @return [String]
1310
+ attr_accessor :challenge
1311
+
1312
+ # The email of the user.
1313
+ # Corresponds to the JSON property `email`
1314
+ # @return [String]
1315
+ attr_accessor :email
1316
+
1317
+ # The user's Gitkit login token for email change.
1318
+ # Corresponds to the JSON property `idToken`
1319
+ # @return [String]
1320
+ attr_accessor :id_token
1321
+
1322
+ # The fixed string "identitytoolkit#relyingparty".
1323
+ # Corresponds to the JSON property `kind`
1324
+ # @return [String]
1325
+ attr_accessor :kind
1326
+
1327
+ # The new email if the code is for email change.
1328
+ # Corresponds to the JSON property `newEmail`
1329
+ # @return [String]
1330
+ attr_accessor :new_email
1331
+
1332
+ # The request type.
1333
+ # Corresponds to the JSON property `requestType`
1334
+ # @return [String]
1335
+ attr_accessor :request_type
1336
+
1337
+ # The IP address of the user.
1338
+ # Corresponds to the JSON property `userIp`
1339
+ # @return [String]
1340
+ attr_accessor :user_ip
1341
+
1342
+ def initialize(**args)
1343
+ update!(**args)
1344
+ end
1345
+
1346
+ # Update properties of this object
1347
+ def update!(**args)
1348
+ @captcha_resp = args[:captcha_resp] if args.key?(:captcha_resp)
1349
+ @challenge = args[:challenge] if args.key?(:challenge)
1350
+ @email = args[:email] if args.key?(:email)
1351
+ @id_token = args[:id_token] if args.key?(:id_token)
1352
+ @kind = args[:kind] if args.key?(:kind)
1353
+ @new_email = args[:new_email] if args.key?(:new_email)
1354
+ @request_type = args[:request_type] if args.key?(:request_type)
1355
+ @user_ip = args[:user_ip] if args.key?(:user_ip)
1356
+ end
1357
+ end
1358
+
1359
+ # Response of resetting the password.
1360
+ class ResetPasswordResponse
1361
+ include Google::Apis::Core::Hashable
1362
+
1363
+ # The user's email. If the out-of-band code is for email recovery, the user's
1364
+ # original email.
1365
+ # Corresponds to the JSON property `email`
1366
+ # @return [String]
1367
+ attr_accessor :email
1368
+
1369
+ # The fixed string "identitytoolkit#ResetPasswordResponse".
1370
+ # Corresponds to the JSON property `kind`
1371
+ # @return [String]
1372
+ attr_accessor :kind
1373
+
1374
+ # If the out-of-band code is for email recovery, the user's new email.
1375
+ # Corresponds to the JSON property `newEmail`
1376
+ # @return [String]
1377
+ attr_accessor :new_email
1378
+
1379
+ # The request type.
1380
+ # Corresponds to the JSON property `requestType`
1381
+ # @return [String]
1382
+ attr_accessor :request_type
1383
+
1384
+ def initialize(**args)
1385
+ update!(**args)
1386
+ end
1387
+
1388
+ # Update properties of this object
1389
+ def update!(**args)
1390
+ @email = args[:email] if args.key?(:email)
1391
+ @kind = args[:kind] if args.key?(:kind)
1392
+ @new_email = args[:new_email] if args.key?(:new_email)
1393
+ @request_type = args[:request_type] if args.key?(:request_type)
1394
+ end
1395
+ end
1396
+
1397
+ # Respone of setting the account information.
1398
+ class SetAccountInfoResponse
1399
+ include Google::Apis::Core::Hashable
1400
+
1401
+ # The name of the user.
1402
+ # Corresponds to the JSON property `displayName`
1403
+ # @return [String]
1404
+ attr_accessor :display_name
1405
+
1406
+ # The email of the user.
1407
+ # Corresponds to the JSON property `email`
1408
+ # @return [String]
1409
+ attr_accessor :email
1410
+
1411
+ # If idToken is STS id token, then this field will be expiration time of STS id
1412
+ # token in seconds.
1413
+ # Corresponds to the JSON property `expiresIn`
1414
+ # @return [String]
1415
+ attr_accessor :expires_in
1416
+
1417
+ # The Gitkit id token to login the newly sign up user.
1418
+ # Corresponds to the JSON property `idToken`
1419
+ # @return [String]
1420
+ attr_accessor :id_token
1421
+
1422
+ # The fixed string "identitytoolkit#SetAccountInfoResponse".
1423
+ # Corresponds to the JSON property `kind`
1424
+ # @return [String]
1425
+ attr_accessor :kind
1426
+
1427
+ # The local ID of the user.
1428
+ # Corresponds to the JSON property `localId`
1429
+ # @return [String]
1430
+ attr_accessor :local_id
1431
+
1432
+ # The new email the user attempts to change to.
1433
+ # Corresponds to the JSON property `newEmail`
1434
+ # @return [String]
1435
+ attr_accessor :new_email
1436
+
1437
+ # The user's hashed password.
1438
+ # Corresponds to the JSON property `passwordHash`
1439
+ # @return [String]
1440
+ attr_accessor :password_hash
1441
+
1442
+ # The photo url of the user.
1443
+ # Corresponds to the JSON property `photoUrl`
1444
+ # @return [String]
1445
+ attr_accessor :photo_url
1446
+
1447
+ # The user's profiles at the associated IdPs.
1448
+ # Corresponds to the JSON property `providerUserInfo`
1449
+ # @return [Array<Google::Apis::IdentitytoolkitV3::SetAccountInfoResponse::ProviderUserInfo>]
1450
+ attr_accessor :provider_user_info
1451
+
1452
+ # If idToken is STS id token, then this field will be refresh token.
1453
+ # Corresponds to the JSON property `refreshToken`
1454
+ # @return [String]
1455
+ attr_accessor :refresh_token
1456
+
1457
+ def initialize(**args)
1458
+ update!(**args)
1459
+ end
1460
+
1461
+ # Update properties of this object
1462
+ def update!(**args)
1463
+ @display_name = args[:display_name] if args.key?(:display_name)
1464
+ @email = args[:email] if args.key?(:email)
1465
+ @expires_in = args[:expires_in] if args.key?(:expires_in)
1466
+ @id_token = args[:id_token] if args.key?(:id_token)
1467
+ @kind = args[:kind] if args.key?(:kind)
1468
+ @local_id = args[:local_id] if args.key?(:local_id)
1469
+ @new_email = args[:new_email] if args.key?(:new_email)
1470
+ @password_hash = args[:password_hash] if args.key?(:password_hash)
1471
+ @photo_url = args[:photo_url] if args.key?(:photo_url)
1472
+ @provider_user_info = args[:provider_user_info] if args.key?(:provider_user_info)
1473
+ @refresh_token = args[:refresh_token] if args.key?(:refresh_token)
1474
+ end
1475
+
1476
+ #
1477
+ class ProviderUserInfo
1478
+ include Google::Apis::Core::Hashable
1479
+
1480
+ # The user's display name at the IDP.
1481
+ # Corresponds to the JSON property `displayName`
1482
+ # @return [String]
1483
+ attr_accessor :display_name
1484
+
1485
+ # User's identifier at IDP.
1486
+ # Corresponds to the JSON property `federatedId`
1487
+ # @return [String]
1488
+ attr_accessor :federated_id
1489
+
1490
+ # The user's photo url at the IDP.
1491
+ # Corresponds to the JSON property `photoUrl`
1492
+ # @return [String]
1493
+ attr_accessor :photo_url
1494
+
1495
+ # The IdP ID. For whitelisted IdPs it's a short domain name, e.g., google.com,
1496
+ # aol.com, live.net and yahoo.com. For other OpenID IdPs it's the OP identifier.
1497
+ # Corresponds to the JSON property `providerId`
1498
+ # @return [String]
1499
+ attr_accessor :provider_id
1500
+
1501
+ def initialize(**args)
1502
+ update!(**args)
1503
+ end
1504
+
1505
+ # Update properties of this object
1506
+ def update!(**args)
1507
+ @display_name = args[:display_name] if args.key?(:display_name)
1508
+ @federated_id = args[:federated_id] if args.key?(:federated_id)
1509
+ @photo_url = args[:photo_url] if args.key?(:photo_url)
1510
+ @provider_id = args[:provider_id] if args.key?(:provider_id)
1511
+ end
1512
+ end
1513
+ end
1514
+
1515
+ # Response of signing up new user, creating anonymous user or anonymous user
1516
+ # reauth.
1517
+ class SignupNewUserResponse
1518
+ include Google::Apis::Core::Hashable
1519
+
1520
+ # The name of the user.
1521
+ # Corresponds to the JSON property `displayName`
1522
+ # @return [String]
1523
+ attr_accessor :display_name
1524
+
1525
+ # The email of the user.
1526
+ # Corresponds to the JSON property `email`
1527
+ # @return [String]
1528
+ attr_accessor :email
1529
+
1530
+ # If idToken is STS id token, then this field will be expiration time of STS id
1531
+ # token in seconds.
1532
+ # Corresponds to the JSON property `expiresIn`
1533
+ # @return [String]
1534
+ attr_accessor :expires_in
1535
+
1536
+ # The Gitkit id token to login the newly sign up user.
1537
+ # Corresponds to the JSON property `idToken`
1538
+ # @return [String]
1539
+ attr_accessor :id_token
1540
+
1541
+ # The fixed string "identitytoolkit#SignupNewUserResponse".
1542
+ # Corresponds to the JSON property `kind`
1543
+ # @return [String]
1544
+ attr_accessor :kind
1545
+
1546
+ # The RP local ID of the user.
1547
+ # Corresponds to the JSON property `localId`
1548
+ # @return [String]
1549
+ attr_accessor :local_id
1550
+
1551
+ # If idToken is STS id token, then this field will be refresh token.
1552
+ # Corresponds to the JSON property `refreshToken`
1553
+ # @return [String]
1554
+ attr_accessor :refresh_token
1555
+
1556
+ def initialize(**args)
1557
+ update!(**args)
1558
+ end
1559
+
1560
+ # Update properties of this object
1561
+ def update!(**args)
1562
+ @display_name = args[:display_name] if args.key?(:display_name)
1563
+ @email = args[:email] if args.key?(:email)
1564
+ @expires_in = args[:expires_in] if args.key?(:expires_in)
1565
+ @id_token = args[:id_token] if args.key?(:id_token)
1566
+ @kind = args[:kind] if args.key?(:kind)
1567
+ @local_id = args[:local_id] if args.key?(:local_id)
1568
+ @refresh_token = args[:refresh_token] if args.key?(:refresh_token)
1569
+ end
1570
+ end
1571
+
1572
+ # Respone of uploading accounts in batch.
1573
+ class UploadAccountResponse
1574
+ include Google::Apis::Core::Hashable
1575
+
1576
+ # The error encountered while processing the account info.
1577
+ # Corresponds to the JSON property `error`
1578
+ # @return [Array<Google::Apis::IdentitytoolkitV3::UploadAccountResponse::Error>]
1579
+ attr_accessor :error
1580
+
1581
+ # The fixed string "identitytoolkit#UploadAccountResponse".
1582
+ # Corresponds to the JSON property `kind`
1583
+ # @return [String]
1584
+ attr_accessor :kind
1585
+
1586
+ def initialize(**args)
1587
+ update!(**args)
1588
+ end
1589
+
1590
+ # Update properties of this object
1591
+ def update!(**args)
1592
+ @error = args[:error] if args.key?(:error)
1593
+ @kind = args[:kind] if args.key?(:kind)
1594
+ end
1595
+
1596
+ #
1597
+ class Error
1598
+ include Google::Apis::Core::Hashable
1599
+
1600
+ # The index of the malformed account, starting from 0.
1601
+ # Corresponds to the JSON property `index`
1602
+ # @return [Fixnum]
1603
+ attr_accessor :index
1604
+
1605
+ # Detailed error message for the account info.
1606
+ # Corresponds to the JSON property `message`
1607
+ # @return [String]
1608
+ attr_accessor :message
1609
+
1610
+ def initialize(**args)
1611
+ update!(**args)
1612
+ end
1613
+
1614
+ # Update properties of this object
1615
+ def update!(**args)
1616
+ @index = args[:index] if args.key?(:index)
1617
+ @message = args[:message] if args.key?(:message)
1618
+ end
1619
+ end
1620
+ end
1621
+
1622
+ # Template for an individual account info.
1623
+ class UserInfo
1624
+ include Google::Apis::Core::Hashable
1625
+
1626
+ # User creation timestamp.
1627
+ # Corresponds to the JSON property `createdAt`
1628
+ # @return [String]
1629
+ attr_accessor :created_at
1630
+
1631
+ # Whether the user is authenticated by the developer.
1632
+ # Corresponds to the JSON property `customAuth`
1633
+ # @return [Boolean]
1634
+ attr_accessor :custom_auth
1635
+ alias_method :custom_auth?, :custom_auth
1636
+
1637
+ # Whether the user is disabled.
1638
+ # Corresponds to the JSON property `disabled`
1639
+ # @return [Boolean]
1640
+ attr_accessor :disabled
1641
+ alias_method :disabled?, :disabled
1642
+
1643
+ # The name of the user.
1644
+ # Corresponds to the JSON property `displayName`
1645
+ # @return [String]
1646
+ attr_accessor :display_name
1647
+
1648
+ # The email of the user.
1649
+ # Corresponds to the JSON property `email`
1650
+ # @return [String]
1651
+ attr_accessor :email
1652
+
1653
+ # Whether the email has been verified.
1654
+ # Corresponds to the JSON property `emailVerified`
1655
+ # @return [Boolean]
1656
+ attr_accessor :email_verified
1657
+ alias_method :email_verified?, :email_verified
1658
+
1659
+ # last login timestamp.
1660
+ # Corresponds to the JSON property `lastLoginAt`
1661
+ # @return [String]
1662
+ attr_accessor :last_login_at
1663
+
1664
+ # The local ID of the user.
1665
+ # Corresponds to the JSON property `localId`
1666
+ # @return [String]
1667
+ attr_accessor :local_id
1668
+
1669
+ # The user's hashed password.
1670
+ # Corresponds to the JSON property `passwordHash`
1671
+ # @return [String]
1672
+ attr_accessor :password_hash
1673
+
1674
+ # The timestamp when the password was last updated.
1675
+ # Corresponds to the JSON property `passwordUpdatedAt`
1676
+ # @return [Float]
1677
+ attr_accessor :password_updated_at
1678
+
1679
+ # The URL of the user profile photo.
1680
+ # Corresponds to the JSON property `photoUrl`
1681
+ # @return [String]
1682
+ attr_accessor :photo_url
1683
+
1684
+ # The IDP of the user.
1685
+ # Corresponds to the JSON property `providerUserInfo`
1686
+ # @return [Array<Google::Apis::IdentitytoolkitV3::UserInfo::ProviderUserInfo>]
1687
+ attr_accessor :provider_user_info
1688
+
1689
+ # The user's plain text password.
1690
+ # Corresponds to the JSON property `rawPassword`
1691
+ # @return [String]
1692
+ attr_accessor :raw_password
1693
+
1694
+ # The user's password salt.
1695
+ # Corresponds to the JSON property `salt`
1696
+ # @return [String]
1697
+ attr_accessor :salt
1698
+
1699
+ # User's screen name at Twitter or login name at Github.
1700
+ # Corresponds to the JSON property `screenName`
1701
+ # @return [String]
1702
+ attr_accessor :screen_name
1703
+
1704
+ # Timestamp in seconds for valid login token.
1705
+ # Corresponds to the JSON property `validSince`
1706
+ # @return [String]
1707
+ attr_accessor :valid_since
1708
+
1709
+ # Version of the user's password.
1710
+ # Corresponds to the JSON property `version`
1711
+ # @return [Fixnum]
1712
+ attr_accessor :version
1713
+
1714
+ def initialize(**args)
1715
+ update!(**args)
1716
+ end
1717
+
1718
+ # Update properties of this object
1719
+ def update!(**args)
1720
+ @created_at = args[:created_at] if args.key?(:created_at)
1721
+ @custom_auth = args[:custom_auth] if args.key?(:custom_auth)
1722
+ @disabled = args[:disabled] if args.key?(:disabled)
1723
+ @display_name = args[:display_name] if args.key?(:display_name)
1724
+ @email = args[:email] if args.key?(:email)
1725
+ @email_verified = args[:email_verified] if args.key?(:email_verified)
1726
+ @last_login_at = args[:last_login_at] if args.key?(:last_login_at)
1727
+ @local_id = args[:local_id] if args.key?(:local_id)
1728
+ @password_hash = args[:password_hash] if args.key?(:password_hash)
1729
+ @password_updated_at = args[:password_updated_at] if args.key?(:password_updated_at)
1730
+ @photo_url = args[:photo_url] if args.key?(:photo_url)
1731
+ @provider_user_info = args[:provider_user_info] if args.key?(:provider_user_info)
1732
+ @raw_password = args[:raw_password] if args.key?(:raw_password)
1733
+ @salt = args[:salt] if args.key?(:salt)
1734
+ @screen_name = args[:screen_name] if args.key?(:screen_name)
1735
+ @valid_since = args[:valid_since] if args.key?(:valid_since)
1736
+ @version = args[:version] if args.key?(:version)
1737
+ end
1738
+
1739
+ #
1740
+ class ProviderUserInfo
1741
+ include Google::Apis::Core::Hashable
1742
+
1743
+ # The user's display name at the IDP.
1744
+ # Corresponds to the JSON property `displayName`
1745
+ # @return [String]
1746
+ attr_accessor :display_name
1747
+
1748
+ # User's email at IDP.
1749
+ # Corresponds to the JSON property `email`
1750
+ # @return [String]
1751
+ attr_accessor :email
1752
+
1753
+ # User's identifier at IDP.
1754
+ # Corresponds to the JSON property `federatedId`
1755
+ # @return [String]
1756
+ attr_accessor :federated_id
1757
+
1758
+ # The user's photo url at the IDP.
1759
+ # Corresponds to the JSON property `photoUrl`
1760
+ # @return [String]
1761
+ attr_accessor :photo_url
1762
+
1763
+ # The IdP ID. For white listed IdPs it's a short domain name, e.g., google.com,
1764
+ # aol.com, live.net and yahoo.com. For other OpenID IdPs it's the OP identifier.
1765
+ # Corresponds to the JSON property `providerId`
1766
+ # @return [String]
1767
+ attr_accessor :provider_id
1768
+
1769
+ # User's raw identifier directly returned from IDP.
1770
+ # Corresponds to the JSON property `rawId`
1771
+ # @return [String]
1772
+ attr_accessor :raw_id
1773
+
1774
+ # User's screen name at Twitter or login name at Github.
1775
+ # Corresponds to the JSON property `screenName`
1776
+ # @return [String]
1777
+ attr_accessor :screen_name
1778
+
1779
+ def initialize(**args)
1780
+ update!(**args)
1781
+ end
1782
+
1783
+ # Update properties of this object
1784
+ def update!(**args)
1785
+ @display_name = args[:display_name] if args.key?(:display_name)
1786
+ @email = args[:email] if args.key?(:email)
1787
+ @federated_id = args[:federated_id] if args.key?(:federated_id)
1788
+ @photo_url = args[:photo_url] if args.key?(:photo_url)
1789
+ @provider_id = args[:provider_id] if args.key?(:provider_id)
1790
+ @raw_id = args[:raw_id] if args.key?(:raw_id)
1791
+ @screen_name = args[:screen_name] if args.key?(:screen_name)
1792
+ end
1793
+ end
1794
+ end
1795
+
1796
+ # Response of verifying the IDP assertion.
1797
+ class VerifyAssertionResponse
1798
+ include Google::Apis::Core::Hashable
1799
+
1800
+ # The action code.
1801
+ # Corresponds to the JSON property `action`
1802
+ # @return [String]
1803
+ attr_accessor :action
1804
+
1805
+ # URL for OTA app installation.
1806
+ # Corresponds to the JSON property `appInstallationUrl`
1807
+ # @return [String]
1808
+ attr_accessor :app_installation_url
1809
+
1810
+ # The custom scheme used by mobile app.
1811
+ # Corresponds to the JSON property `appScheme`
1812
+ # @return [String]
1813
+ attr_accessor :app_scheme
1814
+
1815
+ # The opaque value used by the client to maintain context info between the
1816
+ # authentication request and the IDP callback.
1817
+ # Corresponds to the JSON property `context`
1818
+ # @return [String]
1819
+ attr_accessor :context
1820
+
1821
+ # The birth date of the IdP account.
1822
+ # Corresponds to the JSON property `dateOfBirth`
1823
+ # @return [String]
1824
+ attr_accessor :date_of_birth
1825
+
1826
+ # The display name of the user.
1827
+ # Corresponds to the JSON property `displayName`
1828
+ # @return [String]
1829
+ attr_accessor :display_name
1830
+
1831
+ # The email returned by the IdP. NOTE: The federated login user may not own the
1832
+ # email.
1833
+ # Corresponds to the JSON property `email`
1834
+ # @return [String]
1835
+ attr_accessor :email
1836
+
1837
+ # It's true if the email is recycled.
1838
+ # Corresponds to the JSON property `emailRecycled`
1839
+ # @return [Boolean]
1840
+ attr_accessor :email_recycled
1841
+ alias_method :email_recycled?, :email_recycled
1842
+
1843
+ # The value is true if the IDP is also the email provider. It means the user
1844
+ # owns the email.
1845
+ # Corresponds to the JSON property `emailVerified`
1846
+ # @return [Boolean]
1847
+ attr_accessor :email_verified
1848
+ alias_method :email_verified?, :email_verified
1849
+
1850
+ # Client error code.
1851
+ # Corresponds to the JSON property `errorMessage`
1852
+ # @return [String]
1853
+ attr_accessor :error_message
1854
+
1855
+ # If idToken is STS id token, then this field will be expiration time of STS id
1856
+ # token in seconds.
1857
+ # Corresponds to the JSON property `expiresIn`
1858
+ # @return [String]
1859
+ attr_accessor :expires_in
1860
+
1861
+ # The unique ID identifies the IdP account.
1862
+ # Corresponds to the JSON property `federatedId`
1863
+ # @return [String]
1864
+ attr_accessor :federated_id
1865
+
1866
+ # The first name of the user.
1867
+ # Corresponds to the JSON property `firstName`
1868
+ # @return [String]
1869
+ attr_accessor :first_name
1870
+
1871
+ # The full name of the user.
1872
+ # Corresponds to the JSON property `fullName`
1873
+ # @return [String]
1874
+ attr_accessor :full_name
1875
+
1876
+ # The ID token.
1877
+ # Corresponds to the JSON property `idToken`
1878
+ # @return [String]
1879
+ attr_accessor :id_token
1880
+
1881
+ # It's the identifier param in the createAuthUri request if the identifier is an
1882
+ # email. It can be used to check whether the user input email is different from
1883
+ # the asserted email.
1884
+ # Corresponds to the JSON property `inputEmail`
1885
+ # @return [String]
1886
+ attr_accessor :input_email
1887
+
1888
+ # The fixed string "identitytoolkit#VerifyAssertionResponse".
1889
+ # Corresponds to the JSON property `kind`
1890
+ # @return [String]
1891
+ attr_accessor :kind
1892
+
1893
+ # The language preference of the user.
1894
+ # Corresponds to the JSON property `language`
1895
+ # @return [String]
1896
+ attr_accessor :language
1897
+
1898
+ # The last name of the user.
1899
+ # Corresponds to the JSON property `lastName`
1900
+ # @return [String]
1901
+ attr_accessor :last_name
1902
+
1903
+ # The RP local ID if it's already been mapped to the IdP account identified by
1904
+ # the federated ID.
1905
+ # Corresponds to the JSON property `localId`
1906
+ # @return [String]
1907
+ attr_accessor :local_id
1908
+
1909
+ # Whether the assertion is from a non-trusted IDP and need account linking
1910
+ # confirmation.
1911
+ # Corresponds to the JSON property `needConfirmation`
1912
+ # @return [Boolean]
1913
+ attr_accessor :need_confirmation
1914
+ alias_method :need_confirmation?, :need_confirmation
1915
+
1916
+ # Whether need client to supply email to complete the federated login flow.
1917
+ # Corresponds to the JSON property `needEmail`
1918
+ # @return [Boolean]
1919
+ attr_accessor :need_email
1920
+ alias_method :need_email?, :need_email
1921
+
1922
+ # The nick name of the user.
1923
+ # Corresponds to the JSON property `nickName`
1924
+ # @return [String]
1925
+ attr_accessor :nick_name
1926
+
1927
+ # The OAuth2 access token.
1928
+ # Corresponds to the JSON property `oauthAccessToken`
1929
+ # @return [String]
1930
+ attr_accessor :oauth_access_token
1931
+
1932
+ # The OAuth2 authorization code.
1933
+ # Corresponds to the JSON property `oauthAuthorizationCode`
1934
+ # @return [String]
1935
+ attr_accessor :oauth_authorization_code
1936
+
1937
+ # The lifetime in seconds of the OAuth2 access token.
1938
+ # Corresponds to the JSON property `oauthExpireIn`
1939
+ # @return [Fixnum]
1940
+ attr_accessor :oauth_expire_in
1941
+
1942
+ # The OIDC id token.
1943
+ # Corresponds to the JSON property `oauthIdToken`
1944
+ # @return [String]
1945
+ attr_accessor :oauth_id_token
1946
+
1947
+ # The user approved request token for the OpenID OAuth extension.
1948
+ # Corresponds to the JSON property `oauthRequestToken`
1949
+ # @return [String]
1950
+ attr_accessor :oauth_request_token
1951
+
1952
+ # The scope for the OpenID OAuth extension.
1953
+ # Corresponds to the JSON property `oauthScope`
1954
+ # @return [String]
1955
+ attr_accessor :oauth_scope
1956
+
1957
+ # The OAuth1 access token secret.
1958
+ # Corresponds to the JSON property `oauthTokenSecret`
1959
+ # @return [String]
1960
+ attr_accessor :oauth_token_secret
1961
+
1962
+ # The original email stored in the mapping storage. It's returned when the
1963
+ # federated ID is associated to a different email.
1964
+ # Corresponds to the JSON property `originalEmail`
1965
+ # @return [String]
1966
+ attr_accessor :original_email
1967
+
1968
+ # The URI of the public accessible profiel picture.
1969
+ # Corresponds to the JSON property `photoUrl`
1970
+ # @return [String]
1971
+ attr_accessor :photo_url
1972
+
1973
+ # The IdP ID. For white listed IdPs it's a short domain name e.g. google.com,
1974
+ # aol.com, live.net and yahoo.com. If the "providerId" param is set to OpenID OP
1975
+ # identifer other than the whilte listed IdPs the OP identifier is returned. If
1976
+ # the "identifier" param is federated ID in the createAuthUri request. The
1977
+ # domain part of the federated ID is returned.
1978
+ # Corresponds to the JSON property `providerId`
1979
+ # @return [String]
1980
+ attr_accessor :provider_id
1981
+
1982
+ # Raw IDP-returned user info.
1983
+ # Corresponds to the JSON property `rawUserInfo`
1984
+ # @return [String]
1985
+ attr_accessor :raw_user_info
1986
+
1987
+ # If idToken is STS id token, then this field will be refresh token.
1988
+ # Corresponds to the JSON property `refreshToken`
1989
+ # @return [String]
1990
+ attr_accessor :refresh_token
1991
+
1992
+ # The screen_name of a Twitter user or the login name at Github.
1993
+ # Corresponds to the JSON property `screenName`
1994
+ # @return [String]
1995
+ attr_accessor :screen_name
1996
+
1997
+ # The timezone of the user.
1998
+ # Corresponds to the JSON property `timeZone`
1999
+ # @return [String]
2000
+ attr_accessor :time_zone
2001
+
2002
+ # When action is 'map', contains the idps which can be used for confirmation.
2003
+ # Corresponds to the JSON property `verifiedProvider`
2004
+ # @return [Array<String>]
2005
+ attr_accessor :verified_provider
2006
+
2007
+ def initialize(**args)
2008
+ update!(**args)
2009
+ end
2010
+
2011
+ # Update properties of this object
2012
+ def update!(**args)
2013
+ @action = args[:action] if args.key?(:action)
2014
+ @app_installation_url = args[:app_installation_url] if args.key?(:app_installation_url)
2015
+ @app_scheme = args[:app_scheme] if args.key?(:app_scheme)
2016
+ @context = args[:context] if args.key?(:context)
2017
+ @date_of_birth = args[:date_of_birth] if args.key?(:date_of_birth)
2018
+ @display_name = args[:display_name] if args.key?(:display_name)
2019
+ @email = args[:email] if args.key?(:email)
2020
+ @email_recycled = args[:email_recycled] if args.key?(:email_recycled)
2021
+ @email_verified = args[:email_verified] if args.key?(:email_verified)
2022
+ @error_message = args[:error_message] if args.key?(:error_message)
2023
+ @expires_in = args[:expires_in] if args.key?(:expires_in)
2024
+ @federated_id = args[:federated_id] if args.key?(:federated_id)
2025
+ @first_name = args[:first_name] if args.key?(:first_name)
2026
+ @full_name = args[:full_name] if args.key?(:full_name)
2027
+ @id_token = args[:id_token] if args.key?(:id_token)
2028
+ @input_email = args[:input_email] if args.key?(:input_email)
2029
+ @kind = args[:kind] if args.key?(:kind)
2030
+ @language = args[:language] if args.key?(:language)
2031
+ @last_name = args[:last_name] if args.key?(:last_name)
2032
+ @local_id = args[:local_id] if args.key?(:local_id)
2033
+ @need_confirmation = args[:need_confirmation] if args.key?(:need_confirmation)
2034
+ @need_email = args[:need_email] if args.key?(:need_email)
2035
+ @nick_name = args[:nick_name] if args.key?(:nick_name)
2036
+ @oauth_access_token = args[:oauth_access_token] if args.key?(:oauth_access_token)
2037
+ @oauth_authorization_code = args[:oauth_authorization_code] if args.key?(:oauth_authorization_code)
2038
+ @oauth_expire_in = args[:oauth_expire_in] if args.key?(:oauth_expire_in)
2039
+ @oauth_id_token = args[:oauth_id_token] if args.key?(:oauth_id_token)
2040
+ @oauth_request_token = args[:oauth_request_token] if args.key?(:oauth_request_token)
2041
+ @oauth_scope = args[:oauth_scope] if args.key?(:oauth_scope)
2042
+ @oauth_token_secret = args[:oauth_token_secret] if args.key?(:oauth_token_secret)
2043
+ @original_email = args[:original_email] if args.key?(:original_email)
2044
+ @photo_url = args[:photo_url] if args.key?(:photo_url)
2045
+ @provider_id = args[:provider_id] if args.key?(:provider_id)
2046
+ @raw_user_info = args[:raw_user_info] if args.key?(:raw_user_info)
2047
+ @refresh_token = args[:refresh_token] if args.key?(:refresh_token)
2048
+ @screen_name = args[:screen_name] if args.key?(:screen_name)
2049
+ @time_zone = args[:time_zone] if args.key?(:time_zone)
2050
+ @verified_provider = args[:verified_provider] if args.key?(:verified_provider)
2051
+ end
2052
+ end
2053
+
2054
+ # Response from verifying a custom token
2055
+ class VerifyCustomTokenResponse
2056
+ include Google::Apis::Core::Hashable
2057
+
2058
+ # If idToken is STS id token, then this field will be expiration time of STS id
2059
+ # token in seconds.
2060
+ # Corresponds to the JSON property `expiresIn`
2061
+ # @return [String]
2062
+ attr_accessor :expires_in
2063
+
2064
+ # The GITKit token for authenticated user.
2065
+ # Corresponds to the JSON property `idToken`
2066
+ # @return [String]
2067
+ attr_accessor :id_token
2068
+
2069
+ # The fixed string "identitytoolkit#VerifyCustomTokenResponse".
2070
+ # Corresponds to the JSON property `kind`
2071
+ # @return [String]
2072
+ attr_accessor :kind
2073
+
2074
+ # If idToken is STS id token, then this field will be refresh token.
2075
+ # Corresponds to the JSON property `refreshToken`
2076
+ # @return [String]
2077
+ attr_accessor :refresh_token
2078
+
2079
+ def initialize(**args)
2080
+ update!(**args)
2081
+ end
2082
+
2083
+ # Update properties of this object
2084
+ def update!(**args)
2085
+ @expires_in = args[:expires_in] if args.key?(:expires_in)
2086
+ @id_token = args[:id_token] if args.key?(:id_token)
2087
+ @kind = args[:kind] if args.key?(:kind)
2088
+ @refresh_token = args[:refresh_token] if args.key?(:refresh_token)
2089
+ end
2090
+ end
2091
+
2092
+ # Request of verifying the password.
2093
+ class VerifyPasswordResponse
2094
+ include Google::Apis::Core::Hashable
2095
+
2096
+ # The name of the user.
2097
+ # Corresponds to the JSON property `displayName`
2098
+ # @return [String]
2099
+ attr_accessor :display_name
2100
+
2101
+ # The email returned by the IdP. NOTE: The federated login user may not own the
2102
+ # email.
2103
+ # Corresponds to the JSON property `email`
2104
+ # @return [String]
2105
+ attr_accessor :email
2106
+
2107
+ # If idToken is STS id token, then this field will be expiration time of STS id
2108
+ # token in seconds.
2109
+ # Corresponds to the JSON property `expiresIn`
2110
+ # @return [String]
2111
+ attr_accessor :expires_in
2112
+
2113
+ # The GITKit token for authenticated user.
2114
+ # Corresponds to the JSON property `idToken`
2115
+ # @return [String]
2116
+ attr_accessor :id_token
2117
+
2118
+ # The fixed string "identitytoolkit#VerifyPasswordResponse".
2119
+ # Corresponds to the JSON property `kind`
2120
+ # @return [String]
2121
+ attr_accessor :kind
2122
+
2123
+ # The RP local ID if it's already been mapped to the IdP account identified by
2124
+ # the federated ID.
2125
+ # Corresponds to the JSON property `localId`
2126
+ # @return [String]
2127
+ attr_accessor :local_id
2128
+
2129
+ # The OAuth2 access token.
2130
+ # Corresponds to the JSON property `oauthAccessToken`
2131
+ # @return [String]
2132
+ attr_accessor :oauth_access_token
2133
+
2134
+ # The OAuth2 authorization code.
2135
+ # Corresponds to the JSON property `oauthAuthorizationCode`
2136
+ # @return [String]
2137
+ attr_accessor :oauth_authorization_code
2138
+
2139
+ # The lifetime in seconds of the OAuth2 access token.
2140
+ # Corresponds to the JSON property `oauthExpireIn`
2141
+ # @return [Fixnum]
2142
+ attr_accessor :oauth_expire_in
2143
+
2144
+ # The URI of the user's photo at IdP
2145
+ # Corresponds to the JSON property `photoUrl`
2146
+ # @return [String]
2147
+ attr_accessor :photo_url
2148
+
2149
+ # If idToken is STS id token, then this field will be refresh token.
2150
+ # Corresponds to the JSON property `refreshToken`
2151
+ # @return [String]
2152
+ attr_accessor :refresh_token
2153
+
2154
+ # Whether the email is registered.
2155
+ # Corresponds to the JSON property `registered`
2156
+ # @return [Boolean]
2157
+ attr_accessor :registered
2158
+ alias_method :registered?, :registered
2159
+
2160
+ def initialize(**args)
2161
+ update!(**args)
2162
+ end
2163
+
2164
+ # Update properties of this object
2165
+ def update!(**args)
2166
+ @display_name = args[:display_name] if args.key?(:display_name)
2167
+ @email = args[:email] if args.key?(:email)
2168
+ @expires_in = args[:expires_in] if args.key?(:expires_in)
2169
+ @id_token = args[:id_token] if args.key?(:id_token)
2170
+ @kind = args[:kind] if args.key?(:kind)
2171
+ @local_id = args[:local_id] if args.key?(:local_id)
2172
+ @oauth_access_token = args[:oauth_access_token] if args.key?(:oauth_access_token)
2173
+ @oauth_authorization_code = args[:oauth_authorization_code] if args.key?(:oauth_authorization_code)
2174
+ @oauth_expire_in = args[:oauth_expire_in] if args.key?(:oauth_expire_in)
2175
+ @photo_url = args[:photo_url] if args.key?(:photo_url)
2176
+ @refresh_token = args[:refresh_token] if args.key?(:refresh_token)
2177
+ @registered = args[:registered] if args.key?(:registered)
2178
+ end
2179
+ end
2180
+ end
2181
+ end
2182
+ end