google-api-client 0.8.6 → 0.9.3

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 (537) hide show
  1. checksums.yaml +4 -4
  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 +23 -0
  7. data/.yardopts +12 -0
  8. data/CHANGELOG.md +58 -2
  9. data/CONTRIBUTING.md +31 -0
  10. data/Gemfile +38 -2
  11. data/MIGRATING.md +171 -0
  12. data/README.md +189 -147
  13. data/Rakefile +1 -40
  14. data/api_names.yaml +1088 -0
  15. data/api_names_out.yaml +26978 -0
  16. data/bin/generate-api +109 -0
  17. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1335 -0
  18. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +446 -0
  19. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +872 -0
  20. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  21. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +3025 -0
  22. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1240 -0
  23. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +1446 -0
  24. data/generated/google/apis/adexchangebuyer_v1_4.rb +35 -0
  25. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
  26. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +347 -0
  27. data/generated/google/apis/adexchangeseller_v2_0/service.rb +668 -0
  28. data/generated/google/apis/adexchangeseller_v2_0.rb +38 -0
  29. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  30. data/generated/google/apis/admin_datatransfer_v1/representations.rb +130 -0
  31. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  32. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  33. data/generated/google/apis/admin_directory_v1/classes.rb +3141 -0
  34. data/generated/google/apis/admin_directory_v1/representations.rb +1147 -0
  35. data/generated/google/apis/admin_directory_v1/service.rb +3818 -0
  36. data/generated/google/apis/admin_directory_v1.rb +113 -0
  37. data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
  38. data/generated/google/apis/admin_reports_v1/representations.rb +257 -0
  39. data/generated/google/apis/admin_reports_v1/service.rb +336 -0
  40. data/generated/google/apis/admin_reports_v1.rb +38 -0
  41. data/generated/google/apis/adsense_v1_4/classes.rb +1280 -0
  42. data/generated/google/apis/adsense_v1_4/representations.rb +555 -0
  43. data/generated/google/apis/adsense_v1_4/service.rb +1714 -0
  44. data/generated/google/apis/adsense_v1_4.rb +38 -0
  45. data/generated/google/apis/adsensehost_v4_1/classes.rb +837 -0
  46. data/generated/google/apis/adsensehost_v4_1/representations.rb +367 -0
  47. data/generated/google/apis/adsensehost_v4_1/service.rb +1164 -0
  48. data/generated/google/apis/adsensehost_v4_1.rb +35 -0
  49. data/generated/google/apis/analytics_v3/classes.rb +5118 -0
  50. data/generated/google/apis/analytics_v3/representations.rb +1850 -0
  51. data/generated/google/apis/analytics_v3/service.rb +3568 -0
  52. data/generated/google/apis/analytics_v3.rb +49 -0
  53. data/generated/google/apis/androidenterprise_v1/classes.rb +1443 -0
  54. data/generated/google/apis/androidenterprise_v1/representations.rb +614 -0
  55. data/generated/google/apis/androidenterprise_v1/service.rb +2607 -0
  56. data/generated/google/apis/androidenterprise_v1.rb +35 -0
  57. data/generated/google/apis/androidpublisher_v2/classes.rb +1411 -0
  58. data/generated/google/apis/androidpublisher_v2/representations.rb +738 -0
  59. data/generated/google/apis/androidpublisher_v2/service.rb +2338 -0
  60. data/generated/google/apis/androidpublisher_v2.rb +34 -0
  61. data/generated/google/apis/appengine_v1beta4/classes.rb +1585 -0
  62. data/generated/google/apis/appengine_v1beta4/representations.rb +542 -0
  63. data/generated/google/apis/appengine_v1beta4/service.rb +477 -0
  64. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  65. data/generated/google/apis/appengine_v1beta5/classes.rb +1544 -0
  66. data/generated/google/apis/appengine_v1beta5/representations.rb +594 -0
  67. data/generated/google/apis/appengine_v1beta5/service.rb +521 -0
  68. data/generated/google/apis/appengine_v1beta5.rb +35 -0
  69. data/generated/google/apis/appsactivity_v1/classes.rb +392 -0
  70. data/generated/google/apis/appsactivity_v1/representations.rb +206 -0
  71. data/generated/google/apis/appsactivity_v1/service.rb +128 -0
  72. data/generated/google/apis/appsactivity_v1.rb +46 -0
  73. data/generated/google/apis/appstate_v1/classes.rb +154 -0
  74. data/generated/google/apis/appstate_v1/representations.rb +87 -0
  75. data/generated/google/apis/appstate_v1/service.rb +260 -0
  76. data/generated/google/apis/appstate_v1.rb +34 -0
  77. data/generated/google/apis/autoscaler_v1beta2/classes.rb +747 -0
  78. data/generated/google/apis/autoscaler_v1beta2/representations.rb +313 -0
  79. data/generated/google/apis/autoscaler_v1beta2/service.rb +478 -0
  80. data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
  81. data/generated/google/apis/bigquery_v2/classes.rb +2503 -0
  82. data/generated/google/apis/bigquery_v2/representations.rb +914 -0
  83. data/generated/google/apis/bigquery_v2/service.rb +982 -0
  84. data/generated/google/apis/bigquery_v2.rb +52 -0
  85. data/generated/google/apis/blogger_v3/classes.rb +1354 -0
  86. data/generated/google/apis/blogger_v3/representations.rb +632 -0
  87. data/generated/google/apis/blogger_v3/service.rb +1587 -0
  88. data/generated/google/apis/blogger_v3.rb +37 -0
  89. data/generated/google/apis/books_v1/classes.rb +4006 -0
  90. data/generated/google/apis/books_v1/representations.rb +1742 -0
  91. data/generated/google/apis/books_v1/service.rb +2293 -0
  92. data/generated/google/apis/books_v1.rb +34 -0
  93. data/generated/google/apis/calendar_v3/classes.rb +1742 -0
  94. data/generated/google/apis/calendar_v3/representations.rb +631 -0
  95. data/generated/google/apis/calendar_v3/service.rb +1968 -0
  96. data/generated/google/apis/calendar_v3.rb +37 -0
  97. data/generated/google/apis/civicinfo_v2/classes.rb +1127 -0
  98. data/generated/google/apis/civicinfo_v2/representations.rb +423 -0
  99. data/generated/google/apis/civicinfo_v2/service.rb +279 -0
  100. data/generated/google/apis/civicinfo_v2.rb +31 -0
  101. data/generated/google/apis/classroom_v1/classes.rb +512 -0
  102. data/generated/google/apis/classroom_v1/representations.rb +245 -0
  103. data/generated/google/apis/classroom_v1/service.rb +970 -0
  104. data/generated/google/apis/classroom_v1.rb +49 -0
  105. data/generated/google/apis/classroom_v1beta1/classes.rb +447 -0
  106. data/generated/google/apis/classroom_v1beta1/representations.rb +190 -0
  107. data/generated/google/apis/classroom_v1beta1/service.rb +791 -0
  108. data/generated/google/apis/classroom_v1beta1.rb +49 -0
  109. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  110. data/generated/google/apis/cloudbilling_v1/representations.rb +87 -0
  111. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  112. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  113. data/generated/google/apis/cloudbuild_v1/classes.rb +521 -0
  114. data/generated/google/apis/cloudbuild_v1/representations.rb +214 -0
  115. data/generated/google/apis/cloudbuild_v1/service.rb +278 -0
  116. data/generated/google/apis/cloudbuild_v1.rb +35 -0
  117. data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
  118. data/generated/google/apis/clouddebugger_v2/representations.rb +464 -0
  119. data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
  120. data/generated/google/apis/clouddebugger_v2.rb +41 -0
  121. data/generated/google/apis/cloudlatencytest_v2/classes.rb +195 -0
  122. data/generated/google/apis/cloudlatencytest_v2/representations.rb +127 -0
  123. data/generated/google/apis/cloudlatencytest_v2/service.rb +135 -0
  124. data/generated/google/apis/cloudlatencytest_v2.rb +34 -0
  125. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
  126. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +353 -0
  127. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +452 -0
  128. data/generated/google/apis/cloudmonitoring_v2beta2.rb +37 -0
  129. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +450 -0
  130. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +226 -0
  131. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +626 -0
  132. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
  133. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  134. data/generated/google/apis/cloudtrace_v1/representations.rb +102 -0
  135. data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
  136. data/generated/google/apis/cloudtrace_v1.rb +35 -0
  137. data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
  138. data/generated/google/apis/clouduseraccounts_beta/representations.rb +351 -0
  139. data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
  140. data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
  141. data/generated/google/apis/compute_beta/classes.rb +9741 -0
  142. data/generated/google/apis/compute_beta/representations.rb +3649 -0
  143. data/generated/google/apis/compute_beta/service.rb +10636 -0
  144. data/generated/google/apis/compute_beta.rb +49 -0
  145. data/generated/google/apis/compute_v1/classes.rb +9095 -0
  146. data/generated/google/apis/compute_v1/representations.rb +3389 -0
  147. data/generated/google/apis/compute_v1/service.rb +9627 -0
  148. data/generated/google/apis/compute_v1.rb +49 -0
  149. data/generated/google/apis/container_v1/classes.rb +463 -0
  150. data/generated/google/apis/container_v1/representations.rb +195 -0
  151. data/generated/google/apis/container_v1/service.rb +367 -0
  152. data/generated/google/apis/container_v1.rb +35 -0
  153. data/generated/google/apis/container_v1beta1/classes.rb +466 -0
  154. data/generated/google/apis/container_v1beta1/representations.rb +177 -0
  155. data/generated/google/apis/container_v1beta1/service.rb +394 -0
  156. data/generated/google/apis/container_v1beta1.rb +35 -0
  157. data/generated/google/apis/content_v2/classes.rb +6114 -0
  158. data/generated/google/apis/content_v2/representations.rb +2624 -0
  159. data/generated/google/apis/content_v2/service.rb +2338 -0
  160. data/generated/google/apis/content_v2.rb +35 -0
  161. data/generated/google/apis/coordinate_v1/classes.rb +669 -0
  162. data/generated/google/apis/coordinate_v1/representations.rb +321 -0
  163. data/generated/google/apis/coordinate_v1/service.rb +678 -0
  164. data/generated/google/apis/coordinate_v1.rb +37 -0
  165. data/generated/google/apis/customsearch_v1/classes.rb +771 -0
  166. data/generated/google/apis/customsearch_v1/representations.rb +302 -0
  167. data/generated/google/apis/customsearch_v1/service.rb +207 -0
  168. data/{lib/google/api_client/auth/compute_service_account.rb → generated/google/apis/customsearch_v1.rb} +13 -10
  169. data/generated/google/apis/dataproc_v1/classes.rb +1590 -0
  170. data/generated/google/apis/dataproc_v1/representations.rb +653 -0
  171. data/generated/google/apis/dataproc_v1/service.rb +719 -0
  172. data/generated/google/apis/dataproc_v1.rb +43 -0
  173. data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
  174. data/generated/google/apis/datastore_v1beta2/representations.rb +594 -0
  175. data/generated/google/apis/datastore_v1beta2/service.rb +294 -0
  176. data/generated/google/apis/datastore_v1beta2.rb +40 -0
  177. data/generated/google/apis/deploymentmanager_v2/classes.rb +1162 -0
  178. data/generated/google/apis/deploymentmanager_v2/representations.rb +508 -0
  179. data/generated/google/apis/deploymentmanager_v2/service.rb +862 -0
  180. data/generated/google/apis/deploymentmanager_v2.rb +44 -0
  181. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +843 -0
  182. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +306 -0
  183. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +689 -0
  184. data/generated/google/apis/deploymentmanager_v2beta2.rb +44 -0
  185. data/generated/google/apis/dfareporting_v2_1/classes.rb +10770 -0
  186. data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
  187. data/generated/google/apis/dfareporting_v2_1/service.rb +8585 -0
  188. data/generated/google/apis/dfareporting_v2_1.rb +37 -0
  189. data/generated/google/apis/dfareporting_v2_3/classes.rb +10830 -0
  190. data/generated/google/apis/dfareporting_v2_3/representations.rb +3829 -0
  191. data/generated/google/apis/dfareporting_v2_3/service.rb +8581 -0
  192. data/generated/google/apis/dfareporting_v2_3.rb +37 -0
  193. data/generated/google/apis/discovery_v1/classes.rb +961 -0
  194. data/generated/google/apis/discovery_v1/representations.rb +397 -0
  195. data/generated/google/apis/discovery_v1/service.rb +142 -0
  196. data/generated/google/apis/discovery_v1.rb +32 -0
  197. data/generated/google/apis/dns_v1/classes.rb +406 -0
  198. data/generated/google/apis/dns_v1/representations.rb +167 -0
  199. data/generated/google/apis/dns_v1/service.rb +454 -0
  200. data/generated/google/apis/dns_v1.rb +44 -0
  201. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +802 -0
  202. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +371 -0
  203. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +374 -0
  204. data/generated/google/apis/doubleclickbidmanager_v1.rb +31 -0
  205. data/generated/google/apis/doubleclicksearch_v2/classes.rb +958 -0
  206. data/generated/google/apis/doubleclicksearch_v2/representations.rb +350 -0
  207. data/generated/google/apis/doubleclicksearch_v2/service.rb +480 -0
  208. data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
  209. data/generated/google/apis/drive_v2/classes.rb +2569 -0
  210. data/generated/google/apis/drive_v2/representations.rb +878 -0
  211. data/generated/google/apis/drive_v2/service.rb +2740 -0
  212. data/generated/google/apis/drive_v2.rb +58 -0
  213. data/generated/google/apis/drive_v3/classes.rb +1541 -0
  214. data/generated/google/apis/drive_v3/representations.rb +548 -0
  215. data/generated/google/apis/drive_v3/service.rb +1542 -0
  216. data/generated/google/apis/drive_v3.rb +55 -0
  217. data/generated/google/apis/fitness_v1/classes.rb +885 -0
  218. data/generated/google/apis/fitness_v1/representations.rb +360 -0
  219. data/generated/google/apis/fitness_v1/service.rb +675 -0
  220. data/generated/google/apis/fitness_v1.rb +49 -0
  221. data/generated/google/apis/fusiontables_v2/classes.rb +1048 -0
  222. data/generated/google/apis/fusiontables_v2/representations.rb +457 -0
  223. data/generated/google/apis/fusiontables_v2/service.rb +1463 -0
  224. data/generated/google/apis/fusiontables_v2.rb +37 -0
  225. data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
  226. data/generated/google/apis/games_configuration_v1configuration/representations.rb +228 -0
  227. data/generated/google/apis/games_configuration_v1configuration/service.rb +565 -0
  228. data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
  229. data/generated/google/apis/games_management_v1management/classes.rb +533 -0
  230. data/generated/google/apis/games_management_v1management/representations.rb +262 -0
  231. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  232. data/generated/google/apis/games_management_v1management.rb +37 -0
  233. data/generated/google/apis/games_v1/classes.rb +4626 -0
  234. data/generated/google/apis/games_v1/representations.rb +1783 -0
  235. data/generated/google/apis/games_v1/service.rb +2290 -0
  236. data/generated/google/apis/games_v1.rb +40 -0
  237. data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
  238. data/generated/google/apis/gan_v1beta1/representations.rb +462 -0
  239. data/generated/google/apis/gan_v1beta1/service.rb +682 -0
  240. data/generated/google/apis/gan_v1beta1.rb +31 -0
  241. data/generated/google/apis/genomics_v1/classes.rb +2609 -0
  242. data/generated/google/apis/genomics_v1/representations.rb +1029 -0
  243. data/generated/google/apis/genomics_v1/service.rb +1676 -0
  244. data/generated/google/apis/genomics_v1.rb +49 -0
  245. data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
  246. data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
  247. data/generated/google/apis/genomics_v1beta2/service.rb +2392 -0
  248. data/generated/google/apis/genomics_v1beta2.rb +46 -0
  249. data/generated/google/apis/gmail_v1/classes.rb +794 -0
  250. data/generated/google/apis/gmail_v1/representations.rb +383 -0
  251. data/generated/google/apis/gmail_v1/service.rb +1470 -0
  252. data/generated/google/apis/gmail_v1.rb +52 -0
  253. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  254. data/generated/google/apis/groupsmigration_v1/representations.rb +40 -0
  255. data/generated/google/apis/groupsmigration_v1/service.rb +110 -0
  256. data/generated/google/apis/groupsmigration_v1.rb +34 -0
  257. data/generated/google/apis/groupssettings_v1/classes.rb +221 -0
  258. data/generated/google/apis/groupssettings_v1/representations.rb +66 -0
  259. data/generated/google/apis/groupssettings_v1/service.rb +179 -0
  260. data/generated/google/apis/groupssettings_v1.rb +34 -0
  261. data/generated/google/apis/identitytoolkit_v3/classes.rb +1637 -0
  262. data/generated/google/apis/identitytoolkit_v3/representations.rb +618 -0
  263. data/generated/google/apis/identitytoolkit_v3/service.rb +616 -0
  264. data/generated/google/apis/identitytoolkit_v3.rb +31 -0
  265. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  266. data/generated/google/apis/kgsearch_v1/representations.rb +41 -0
  267. data/generated/google/apis/kgsearch_v1/service.rb +111 -0
  268. data/{spec/google/api_client/request_spec.rb → generated/google/apis/kgsearch_v1.rb} +16 -13
  269. data/generated/google/apis/licensing_v1/classes.rb +132 -0
  270. data/generated/google/apis/licensing_v1/representations.rb +74 -0
  271. data/generated/google/apis/licensing_v1/service.rb +369 -0
  272. data/generated/google/apis/licensing_v1.rb +34 -0
  273. data/generated/google/apis/logging_v1beta3/classes.rb +1079 -0
  274. data/generated/google/apis/logging_v1beta3/representations.rb +366 -0
  275. data/generated/google/apis/logging_v1beta3/service.rb +1001 -0
  276. data/generated/google/apis/logging_v1beta3.rb +47 -0
  277. data/generated/google/apis/logging_v2beta1/classes.rb +990 -0
  278. data/generated/google/apis/logging_v2beta1/representations.rb +377 -0
  279. data/generated/google/apis/logging_v2beta1/service.rb +547 -0
  280. data/generated/google/apis/logging_v2beta1.rb +47 -0
  281. data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
  282. data/generated/google/apis/manager_v1beta2/representations.rb +606 -0
  283. data/generated/google/apis/manager_v1beta2/service.rb +372 -0
  284. data/generated/google/apis/manager_v1beta2.rb +53 -0
  285. data/generated/google/apis/mirror_v1/classes.rb +1072 -0
  286. data/generated/google/apis/mirror_v1/representations.rb +390 -0
  287. data/generated/google/apis/mirror_v1/service.rb +977 -0
  288. data/generated/google/apis/mirror_v1.rb +37 -0
  289. data/generated/google/apis/oauth2_v2/classes.rb +245 -0
  290. data/generated/google/apis/oauth2_v2/representations.rb +102 -0
  291. data/generated/google/apis/oauth2_v2/service.rb +199 -0
  292. data/generated/google/apis/oauth2_v2.rb +43 -0
  293. data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
  294. data/generated/google/apis/pagespeedonline_v2/representations.rb +272 -0
  295. data/generated/google/apis/pagespeedonline_v2/service.rb +119 -0
  296. data/generated/google/apis/pagespeedonline_v2.rb +32 -0
  297. data/generated/google/apis/partners_v2/classes.rb +942 -0
  298. data/generated/google/apis/partners_v2/representations.rb +454 -0
  299. data/generated/google/apis/partners_v2/service.rb +400 -0
  300. data/generated/google/apis/partners_v2.rb +32 -0
  301. data/generated/google/apis/people_v1/classes.rb +1521 -0
  302. data/generated/google/apis/people_v1/representations.rb +663 -0
  303. data/generated/google/apis/people_v1/service.rb +189 -0
  304. data/generated/google/apis/people_v1.rb +59 -0
  305. data/generated/google/apis/plus_domains_v1/classes.rb +2609 -0
  306. data/generated/google/apis/plus_domains_v1/representations.rb +1111 -0
  307. data/generated/google/apis/plus_domains_v1/service.rb +904 -0
  308. data/generated/google/apis/plus_domains_v1.rb +61 -0
  309. data/generated/google/apis/plus_v1/classes.rb +2094 -0
  310. data/generated/google/apis/plus_v1/representations.rb +907 -0
  311. data/generated/google/apis/plus_v1/service.rb +470 -0
  312. data/generated/google/apis/plus_v1.rb +43 -0
  313. data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
  314. data/generated/google/apis/prediction_v1_6/representations.rb +369 -0
  315. data/generated/google/apis/prediction_v1_6/service.rb +380 -0
  316. data/generated/google/apis/prediction_v1_6.rb +44 -0
  317. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
  318. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +312 -0
  319. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
  320. data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
  321. data/generated/google/apis/pubsub_v1/classes.rb +614 -0
  322. data/generated/google/apis/pubsub_v1/representations.rb +323 -0
  323. data/generated/google/apis/pubsub_v1/service.rb +774 -0
  324. data/generated/google/apis/pubsub_v1.rb +37 -0
  325. data/generated/google/apis/pubsub_v1beta2/classes.rb +620 -0
  326. data/generated/google/apis/pubsub_v1beta2/representations.rb +282 -0
  327. data/generated/google/apis/pubsub_v1beta2/service.rb +774 -0
  328. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  329. data/generated/google/apis/qpx_express_v1/classes.rb +1268 -0
  330. data/generated/google/apis/qpx_express_v1/representations.rb +472 -0
  331. data/generated/google/apis/qpx_express_v1/service.rb +100 -0
  332. data/generated/google/apis/qpx_express_v1.rb +31 -0
  333. data/generated/google/apis/replicapool_v1beta2/classes.rb +631 -0
  334. data/generated/google/apis/replicapool_v1beta2/representations.rb +264 -0
  335. data/generated/google/apis/replicapool_v1beta2/service.rb +608 -0
  336. data/generated/google/apis/replicapool_v1beta2.rb +44 -0
  337. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +733 -0
  338. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +294 -0
  339. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +508 -0
  340. data/generated/google/apis/replicapoolupdater_v1beta1.rb +44 -0
  341. data/generated/google/apis/reseller_v1/classes.rb +526 -0
  342. data/generated/google/apis/reseller_v1/representations.rb +223 -0
  343. data/generated/google/apis/reseller_v1/service.rb +623 -0
  344. data/generated/google/apis/reseller_v1.rb +37 -0
  345. data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
  346. data/generated/google/apis/resourceviews_v1beta2/representations.rb +301 -0
  347. data/generated/google/apis/resourceviews_v1beta2/service.rb +563 -0
  348. data/generated/google/apis/resourceviews_v1beta2.rb +50 -0
  349. data/generated/google/apis/script_v1/classes.rb +259 -0
  350. data/generated/google/apis/script_v1/representations.rb +118 -0
  351. data/generated/google/apis/script_v1/service.rb +98 -0
  352. data/generated/google/apis/script_v1.rb +61 -0
  353. data/generated/google/apis/site_verification_v1/classes.rb +185 -0
  354. data/generated/google/apis/site_verification_v1/representations.rb +113 -0
  355. data/generated/google/apis/site_verification_v1/service.rb +315 -0
  356. data/generated/google/apis/site_verification_v1.rb +37 -0
  357. data/generated/google/apis/sqladmin_v1beta4/classes.rb +2030 -0
  358. data/generated/google/apis/sqladmin_v1beta4/representations.rb +856 -0
  359. data/generated/google/apis/sqladmin_v1beta4/service.rb +1625 -0
  360. data/generated/google/apis/sqladmin_v1beta4.rb +37 -0
  361. data/generated/google/apis/storage_v1/classes.rb +1222 -0
  362. data/generated/google/apis/storage_v1/representations.rb +497 -0
  363. data/generated/google/apis/storage_v1/service.rb +1903 -0
  364. data/generated/google/apis/storage_v1.rb +46 -0
  365. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  366. data/generated/google/apis/storagetransfer_v1/representations.rb +418 -0
  367. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  368. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  369. data/generated/google/apis/tagmanager_v1/classes.rb +1494 -0
  370. data/generated/google/apis/tagmanager_v1/representations.rb +611 -0
  371. data/generated/google/apis/tagmanager_v1/service.rb +2119 -0
  372. data/generated/google/apis/tagmanager_v1.rb +52 -0
  373. data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
  374. data/generated/google/apis/taskqueue_v1beta2/representations.rb +126 -0
  375. data/generated/google/apis/taskqueue_v1beta2/service.rb +408 -0
  376. data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
  377. data/generated/google/apis/tasks_v1/classes.rb +296 -0
  378. data/generated/google/apis/tasks_v1/representations.rb +125 -0
  379. data/generated/google/apis/tasks_v1/service.rb +643 -0
  380. data/generated/google/apis/tasks_v1.rb +37 -0
  381. data/generated/google/apis/translate_v2/classes.rb +168 -0
  382. data/generated/google/apis/translate_v2/representations.rb +121 -0
  383. data/generated/google/apis/translate_v2/service.rb +182 -0
  384. data/generated/google/apis/translate_v2.rb +31 -0
  385. data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
  386. data/generated/google/apis/urlshortener_v1/representations.rb +121 -0
  387. data/generated/google/apis/urlshortener_v1/service.rb +176 -0
  388. data/generated/google/apis/urlshortener_v1.rb +34 -0
  389. data/generated/google/apis/vision_v1/classes.rb +1259 -0
  390. data/generated/google/apis/vision_v1/representations.rb +418 -0
  391. data/generated/google/apis/vision_v1/service.rb +91 -0
  392. data/generated/google/apis/vision_v1.rb +37 -0
  393. data/generated/google/apis/webmasters_v3/classes.rb +563 -0
  394. data/generated/google/apis/webmasters_v3/representations.rb +282 -0
  395. data/generated/google/apis/webmasters_v3/service.rb +573 -0
  396. data/generated/google/apis/webmasters_v3.rb +37 -0
  397. data/generated/google/apis/youtube_analytics_v1/classes.rb +546 -0
  398. data/generated/google/apis/youtube_analytics_v1/representations.rb +273 -0
  399. data/generated/google/apis/youtube_analytics_v1/service.rb +562 -0
  400. data/generated/google/apis/youtube_analytics_v1.rb +46 -0
  401. data/generated/google/apis/youtube_v3/classes.rb +8071 -0
  402. data/generated/google/apis/youtube_v3/representations.rb +3134 -0
  403. data/generated/google/apis/youtube_v3/service.rb +4403 -0
  404. data/generated/google/apis/youtube_v3.rb +49 -0
  405. data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
  406. data/generated/google/apis/youtubereporting_v1/representations.rb +144 -0
  407. data/generated/google/apis/youtubereporting_v1/service.rb +364 -0
  408. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  409. data/google-api-client.gemspec +25 -39
  410. data/lib/google/api_client/auth/installed_app.rb +7 -5
  411. data/lib/google/api_client/auth/key_utils.rb +1 -0
  412. data/lib/google/api_client/auth/storage.rb +4 -2
  413. data/lib/google/api_client/auth/storages/file_store.rb +2 -3
  414. data/lib/google/api_client/auth/storages/redis_store.rb +7 -2
  415. data/lib/google/api_client/client_secrets.rb +7 -9
  416. data/lib/google/apis/core/api_command.rb +136 -0
  417. data/lib/google/apis/core/base_service.rb +317 -0
  418. data/lib/google/apis/core/batch.rb +239 -0
  419. data/lib/google/apis/core/download.rb +94 -0
  420. data/lib/google/apis/core/hashable.rb +44 -0
  421. data/lib/google/apis/core/http_client_adapter.rb +82 -0
  422. data/lib/google/apis/core/http_command.rb +328 -0
  423. data/lib/google/apis/core/json_representation.rb +145 -0
  424. data/lib/google/{api_client/version.rb → apis/core/logging.rb} +12 -8
  425. data/lib/google/apis/core/multipart.rb +187 -0
  426. data/lib/google/apis/core/upload.rb +289 -0
  427. data/lib/google/{api_client → apis}/errors.rb +39 -28
  428. data/lib/google/apis/generator/annotator.rb +295 -0
  429. data/lib/google/apis/generator/helpers.rb +74 -0
  430. data/lib/google/apis/generator/model.rb +143 -0
  431. data/lib/google/apis/generator/template.rb +124 -0
  432. data/lib/google/apis/generator/templates/_class.tmpl +40 -0
  433. data/lib/google/apis/generator/templates/_method.tmpl +92 -0
  434. data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
  435. data/lib/google/apis/generator/templates/_representation_stub.tmpl +17 -0
  436. data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
  437. data/lib/google/{api_client/reference.rb → apis/generator/templates/classes.rb.tmpl} +11 -9
  438. data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
  439. data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
  440. data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
  441. data/lib/google/apis/generator.rb +70 -0
  442. data/lib/google/apis/options.rb +85 -0
  443. data/lib/google/apis/version.rb +39 -0
  444. data/lib/google/apis.rb +48 -0
  445. data/rakelib/metrics.rake +22 -0
  446. data/rakelib/rubocop.rake +10 -0
  447. data/rakelib/spec.rake +11 -0
  448. data/rakelib/yard.rake +11 -0
  449. data/samples/cli/Gemfile +7 -0
  450. data/samples/cli/README.md +51 -0
  451. data/samples/cli/google-api-samples +32 -0
  452. data/samples/cli/lib/base_cli.rb +95 -0
  453. data/samples/cli/lib/samples/analytics.rb +62 -0
  454. data/samples/cli/lib/samples/androidpublisher.rb +47 -0
  455. data/samples/cli/lib/samples/calendar.rb +83 -0
  456. data/samples/cli/lib/samples/drive.rb +82 -0
  457. data/samples/cli/lib/samples/gmail.rb +50 -0
  458. data/samples/cli/lib/samples/pubsub.rb +114 -0
  459. data/samples/cli/lib/samples/translate.rb +44 -0
  460. data/samples/cli/lib/samples/you_tube.rb +44 -0
  461. data/samples/web/Gemfile +7 -0
  462. data/samples/web/README.md +44 -0
  463. data/samples/web/app.rb +120 -0
  464. data/samples/web/views/calendar.erb +34 -0
  465. data/{lib/google/api_client/service_account.rb → samples/web/views/drive.erb} +20 -8
  466. data/samples/web/views/home.erb +35 -0
  467. data/samples/web/views/layout.erb +40 -0
  468. data/script/generate +100 -0
  469. data/script/package +8 -0
  470. data/script/release +15 -0
  471. data/spec/fixtures/files/api_names.yaml +3 -0
  472. data/spec/fixtures/files/auth_stored_credentials.json +8 -0
  473. data/spec/fixtures/files/child/.gitignore +0 -0
  474. data/spec/fixtures/files/client_secrets.json +1 -0
  475. data/spec/fixtures/files/invalid.json +1 -0
  476. data/spec/fixtures/files/test.blah +1 -0
  477. data/spec/fixtures/files/test.txt +1 -0
  478. data/spec/fixtures/files/test_api.json +440 -0
  479. data/spec/google/api_client/auth/storage_spec.rb +1 -3
  480. data/spec/google/api_client/auth/storages/file_store_spec.rb +1 -2
  481. data/spec/google/api_client/auth/storages/redis_store_spec.rb +1 -3
  482. data/spec/google/api_client/client_secrets_spec.rb +338 -2
  483. data/spec/google/apis/core/api_command_spec.rb +209 -0
  484. data/spec/google/apis/core/batch_spec.rb +142 -0
  485. data/spec/google/apis/core/download_spec.rb +103 -0
  486. data/spec/google/apis/core/hashable_spec.rb +60 -0
  487. data/spec/google/apis/core/http_command_spec.rb +303 -0
  488. data/spec/google/apis/core/json_representation_spec.rb +199 -0
  489. data/spec/google/apis/core/service_spec.rb +247 -0
  490. data/spec/google/apis/core/upload_spec.rb +300 -0
  491. data/{lib/google/api_client/discovery.rb → spec/google/apis/generated_spec.rb} +13 -5
  492. data/spec/google/apis/generator/generator_spec.rb +324 -0
  493. data/spec/google/apis/logging_spec.rb +45 -0
  494. data/spec/google/apis/options_spec.rb +40 -0
  495. data/spec/integration_tests/adsense_spec.rb +29 -0
  496. data/spec/integration_tests/drive_spec.rb +35 -0
  497. data/spec/integration_tests/pubsub_spec.rb +48 -0
  498. data/spec/integration_tests/url_shortener_spec.rb +45 -0
  499. data/spec/spec_helper/load_path_spec.rb +33 -0
  500. data/spec/spec_helper.rb +131 -44
  501. data/third_party/hurley_patches.rb +103 -0
  502. metadata +563 -188
  503. data/lib/compat/multi_json.rb +0 -19
  504. data/lib/google/api_client/auth/file_storage.rb +0 -59
  505. data/lib/google/api_client/auth/jwt_asserter.rb +0 -126
  506. data/lib/google/api_client/auth/pkcs12.rb +0 -41
  507. data/lib/google/api_client/batch.rb +0 -326
  508. data/lib/google/api_client/charset.rb +0 -33
  509. data/lib/google/api_client/discovery/api.rb +0 -310
  510. data/lib/google/api_client/discovery/media.rb +0 -77
  511. data/lib/google/api_client/discovery/method.rb +0 -363
  512. data/lib/google/api_client/discovery/resource.rb +0 -156
  513. data/lib/google/api_client/discovery/schema.rb +0 -117
  514. data/lib/google/api_client/environment.rb +0 -42
  515. data/lib/google/api_client/gzip.rb +0 -28
  516. data/lib/google/api_client/logging.rb +0 -32
  517. data/lib/google/api_client/media.rb +0 -259
  518. data/lib/google/api_client/railtie.rb +0 -18
  519. data/lib/google/api_client/request.rb +0 -350
  520. data/lib/google/api_client/result.rb +0 -255
  521. data/lib/google/api_client/service/batch.rb +0 -110
  522. data/lib/google/api_client/service/request.rb +0 -144
  523. data/lib/google/api_client/service/resource.rb +0 -40
  524. data/lib/google/api_client/service/result.rb +0 -162
  525. data/lib/google/api_client/service/simple_file_store.rb +0 -151
  526. data/lib/google/api_client/service/stub_generator.rb +0 -61
  527. data/lib/google/api_client/service.rb +0 -233
  528. data/lib/google/api_client.rb +0 -750
  529. data/spec/google/api_client/batch_spec.rb +0 -248
  530. data/spec/google/api_client/discovery_spec.rb +0 -708
  531. data/spec/google/api_client/gzip_spec.rb +0 -98
  532. data/spec/google/api_client/media_spec.rb +0 -178
  533. data/spec/google/api_client/result_spec.rb +0 -207
  534. data/spec/google/api_client/service_account_spec.rb +0 -169
  535. data/spec/google/api_client/service_spec.rb +0 -618
  536. data/spec/google/api_client/simple_file_store_spec.rb +0 -133
  537. data/spec/google/api_client_spec.rb +0 -352
@@ -0,0 +1,1637 @@
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
+ # Response of getting account information.
141
+ class GetAccountInfoResponse
142
+ include Google::Apis::Core::Hashable
143
+
144
+ # The fixed string "identitytoolkit#GetAccountInfoResponse".
145
+ # Corresponds to the JSON property `kind`
146
+ # @return [String]
147
+ attr_accessor :kind
148
+
149
+ # The info of the users.
150
+ # Corresponds to the JSON property `users`
151
+ # @return [Array<Google::Apis::IdentitytoolkitV3::UserInfo>]
152
+ attr_accessor :users
153
+
154
+ def initialize(**args)
155
+ update!(**args)
156
+ end
157
+
158
+ # Update properties of this object
159
+ def update!(**args)
160
+ @kind = args[:kind] if args.key?(:kind)
161
+ @users = args[:users] if args.key?(:users)
162
+ end
163
+ end
164
+
165
+ # Response of getting a code for user confirmation (reset password, change email
166
+ # etc.).
167
+ class GetOobConfirmationCodeResponse
168
+ include Google::Apis::Core::Hashable
169
+
170
+ # The email address that the email is sent to.
171
+ # Corresponds to the JSON property `email`
172
+ # @return [String]
173
+ attr_accessor :email
174
+
175
+ # The fixed string "identitytoolkit#GetOobConfirmationCodeResponse".
176
+ # Corresponds to the JSON property `kind`
177
+ # @return [String]
178
+ attr_accessor :kind
179
+
180
+ # The code to be send to the user.
181
+ # Corresponds to the JSON property `oobCode`
182
+ # @return [String]
183
+ attr_accessor :oob_code
184
+
185
+ def initialize(**args)
186
+ update!(**args)
187
+ end
188
+
189
+ # Update properties of this object
190
+ def update!(**args)
191
+ @email = args[:email] if args.key?(:email)
192
+ @kind = args[:kind] if args.key?(:kind)
193
+ @oob_code = args[:oob_code] if args.key?(:oob_code)
194
+ end
195
+ end
196
+
197
+ # Response of getting recaptcha param.
198
+ class GetRecaptchaParamResponse
199
+ include Google::Apis::Core::Hashable
200
+
201
+ # The fixed string "identitytoolkit#GetRecaptchaParamResponse".
202
+ # Corresponds to the JSON property `kind`
203
+ # @return [String]
204
+ attr_accessor :kind
205
+
206
+ # Site key registered at recaptcha.
207
+ # Corresponds to the JSON property `recaptchaSiteKey`
208
+ # @return [String]
209
+ attr_accessor :recaptcha_site_key
210
+
211
+ # The stoken field for the recaptcha widget, used to request captcha challenge.
212
+ # Corresponds to the JSON property `recaptchaStoken`
213
+ # @return [String]
214
+ attr_accessor :recaptcha_stoken
215
+
216
+ def initialize(**args)
217
+ update!(**args)
218
+ end
219
+
220
+ # Update properties of this object
221
+ def update!(**args)
222
+ @kind = args[:kind] if args.key?(:kind)
223
+ @recaptcha_site_key = args[:recaptcha_site_key] if args.key?(:recaptcha_site_key)
224
+ @recaptcha_stoken = args[:recaptcha_stoken] if args.key?(:recaptcha_stoken)
225
+ end
226
+ end
227
+
228
+ # Request to get the IDP authentication URL.
229
+ class CreateAuthUriRequest
230
+ include Google::Apis::Core::Hashable
231
+
232
+ # The app ID of the mobile app, base64(CERT_SHA1):PACKAGE_NAME for Android,
233
+ # BUNDLE_ID for iOS.
234
+ # Corresponds to the JSON property `appId`
235
+ # @return [String]
236
+ attr_accessor :app_id
237
+
238
+ # The relying party OAuth client ID.
239
+ # Corresponds to the JSON property `clientId`
240
+ # @return [String]
241
+ attr_accessor :client_id
242
+
243
+ # The opaque value used by the client to maintain context info between the
244
+ # authentication request and the IDP callback.
245
+ # Corresponds to the JSON property `context`
246
+ # @return [String]
247
+ attr_accessor :context
248
+
249
+ # The URI to which the IDP redirects the user after the federated login flow.
250
+ # Corresponds to the JSON property `continueUri`
251
+ # @return [String]
252
+ attr_accessor :continue_uri
253
+
254
+ # The email or federated ID of the user.
255
+ # Corresponds to the JSON property `identifier`
256
+ # @return [String]
257
+ attr_accessor :identifier
258
+
259
+ # The developer's consumer key for OpenId OAuth Extension
260
+ # Corresponds to the JSON property `oauthConsumerKey`
261
+ # @return [String]
262
+ attr_accessor :oauth_consumer_key
263
+
264
+ # Additional oauth scopes, beyond the basid user profile, that the user would be
265
+ # prompted to grant
266
+ # Corresponds to the JSON property `oauthScope`
267
+ # @return [String]
268
+ attr_accessor :oauth_scope
269
+
270
+ # Optional realm for OpenID protocol. The sub string "scheme://domain:port" of
271
+ # the param "continueUri" is used if this is not set.
272
+ # Corresponds to the JSON property `openidRealm`
273
+ # @return [String]
274
+ attr_accessor :openid_realm
275
+
276
+ # The native app package for OTA installation.
277
+ # Corresponds to the JSON property `otaApp`
278
+ # @return [String]
279
+ attr_accessor :ota_app
280
+
281
+ # The IdP ID. For white listed IdPs it's a short domain name e.g. google.com,
282
+ # aol.com, live.net and yahoo.com. For other OpenID IdPs it's the OP identifier.
283
+ # Corresponds to the JSON property `providerId`
284
+ # @return [String]
285
+ attr_accessor :provider_id
286
+
287
+ def initialize(**args)
288
+ update!(**args)
289
+ end
290
+
291
+ # Update properties of this object
292
+ def update!(**args)
293
+ @app_id = args[:app_id] if args.key?(:app_id)
294
+ @client_id = args[:client_id] if args.key?(:client_id)
295
+ @context = args[:context] if args.key?(:context)
296
+ @continue_uri = args[:continue_uri] if args.key?(:continue_uri)
297
+ @identifier = args[:identifier] if args.key?(:identifier)
298
+ @oauth_consumer_key = args[:oauth_consumer_key] if args.key?(:oauth_consumer_key)
299
+ @oauth_scope = args[:oauth_scope] if args.key?(:oauth_scope)
300
+ @openid_realm = args[:openid_realm] if args.key?(:openid_realm)
301
+ @ota_app = args[:ota_app] if args.key?(:ota_app)
302
+ @provider_id = args[:provider_id] if args.key?(:provider_id)
303
+ end
304
+ end
305
+
306
+ # Request to delete account.
307
+ class DeleteAccountRequest
308
+ include Google::Apis::Core::Hashable
309
+
310
+ # GCP project number of the requesting delegated app. Currently only intended
311
+ # for Firebase V1 migration.
312
+ # Corresponds to the JSON property `delegatedProjectNumber`
313
+ # @return [String]
314
+ attr_accessor :delegated_project_number
315
+
316
+ # The local ID of the user.
317
+ # Corresponds to the JSON property `localId`
318
+ # @return [String]
319
+ attr_accessor :local_id
320
+
321
+ def initialize(**args)
322
+ update!(**args)
323
+ end
324
+
325
+ # Update properties of this object
326
+ def update!(**args)
327
+ @delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number)
328
+ @local_id = args[:local_id] if args.key?(:local_id)
329
+ end
330
+ end
331
+
332
+ # Request to download user account in batch.
333
+ class DownloadAccountRequest
334
+ include Google::Apis::Core::Hashable
335
+
336
+ # GCP project number of the requesting delegated app. Currently only intended
337
+ # for Firebase V1 migration.
338
+ # Corresponds to the JSON property `delegatedProjectNumber`
339
+ # @return [String]
340
+ attr_accessor :delegated_project_number
341
+
342
+ # The max number of results to return in the response.
343
+ # Corresponds to the JSON property `maxResults`
344
+ # @return [Fixnum]
345
+ attr_accessor :max_results
346
+
347
+ # The token for the next page. This should be taken from the previous response.
348
+ # Corresponds to the JSON property `nextPageToken`
349
+ # @return [String]
350
+ attr_accessor :next_page_token
351
+
352
+ def initialize(**args)
353
+ update!(**args)
354
+ end
355
+
356
+ # Update properties of this object
357
+ def update!(**args)
358
+ @delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number)
359
+ @max_results = args[:max_results] if args.key?(:max_results)
360
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
361
+ end
362
+ end
363
+
364
+ # Request to get the account information.
365
+ class GetAccountInfoRequest
366
+ include Google::Apis::Core::Hashable
367
+
368
+ # The list of emails of the users to inquiry.
369
+ # Corresponds to the JSON property `email`
370
+ # @return [Array<String>]
371
+ attr_accessor :email
372
+
373
+ # The GITKit token of the authenticated user.
374
+ # Corresponds to the JSON property `idToken`
375
+ # @return [String]
376
+ attr_accessor :id_token
377
+
378
+ # The list of local ID's of the users to inquiry.
379
+ # Corresponds to the JSON property `localId`
380
+ # @return [Array<String>]
381
+ attr_accessor :local_id
382
+
383
+ def initialize(**args)
384
+ update!(**args)
385
+ end
386
+
387
+ # Update properties of this object
388
+ def update!(**args)
389
+ @email = args[:email] if args.key?(:email)
390
+ @id_token = args[:id_token] if args.key?(:id_token)
391
+ @local_id = args[:local_id] if args.key?(:local_id)
392
+ end
393
+ end
394
+
395
+ # Response of getting the project configuration.
396
+ class GetProjectConfigResponse
397
+ include Google::Apis::Core::Hashable
398
+
399
+ # Whether to allow password user sign in or sign up.
400
+ # Corresponds to the JSON property `allowPasswordUser`
401
+ # @return [Boolean]
402
+ attr_accessor :allow_password_user
403
+ alias_method :allow_password_user?, :allow_password_user
404
+
405
+ # Browser API key, needed when making http request to Apiary.
406
+ # Corresponds to the JSON property `apiKey`
407
+ # @return [String]
408
+ attr_accessor :api_key
409
+
410
+ # OAuth2 provider configuration.
411
+ # Corresponds to the JSON property `idpConfig`
412
+ # @return [Array<Google::Apis::IdentitytoolkitV3::IdpConfig>]
413
+ attr_accessor :idp_config
414
+
415
+ # Project ID of the relying party.
416
+ # Corresponds to the JSON property `projectId`
417
+ # @return [String]
418
+ attr_accessor :project_id
419
+
420
+ def initialize(**args)
421
+ update!(**args)
422
+ end
423
+
424
+ # Update properties of this object
425
+ def update!(**args)
426
+ @allow_password_user = args[:allow_password_user] if args.key?(:allow_password_user)
427
+ @api_key = args[:api_key] if args.key?(:api_key)
428
+ @idp_config = args[:idp_config] if args.key?(:idp_config)
429
+ @project_id = args[:project_id] if args.key?(:project_id)
430
+ end
431
+ end
432
+
433
+ # Request to reset the password.
434
+ class ResetPasswordRequest
435
+ include Google::Apis::Core::Hashable
436
+
437
+ # The email address of the user.
438
+ # Corresponds to the JSON property `email`
439
+ # @return [String]
440
+ attr_accessor :email
441
+
442
+ # The new password inputted by the user.
443
+ # Corresponds to the JSON property `newPassword`
444
+ # @return [String]
445
+ attr_accessor :new_password
446
+
447
+ # The old password inputted by the user.
448
+ # Corresponds to the JSON property `oldPassword`
449
+ # @return [String]
450
+ attr_accessor :old_password
451
+
452
+ # The confirmation code.
453
+ # Corresponds to the JSON property `oobCode`
454
+ # @return [String]
455
+ attr_accessor :oob_code
456
+
457
+ def initialize(**args)
458
+ update!(**args)
459
+ end
460
+
461
+ # Update properties of this object
462
+ def update!(**args)
463
+ @email = args[:email] if args.key?(:email)
464
+ @new_password = args[:new_password] if args.key?(:new_password)
465
+ @old_password = args[:old_password] if args.key?(:old_password)
466
+ @oob_code = args[:oob_code] if args.key?(:oob_code)
467
+ end
468
+ end
469
+
470
+ # Request to set the account information.
471
+ class SetAccountInfoRequest
472
+ include Google::Apis::Core::Hashable
473
+
474
+ # The captcha challenge.
475
+ # Corresponds to the JSON property `captchaChallenge`
476
+ # @return [String]
477
+ attr_accessor :captcha_challenge
478
+
479
+ # Response to the captcha.
480
+ # Corresponds to the JSON property `captchaResponse`
481
+ # @return [String]
482
+ attr_accessor :captcha_response
483
+
484
+ # GCP project number of the requesting delegated app. Currently only intended
485
+ # for Firebase V1 migration.
486
+ # Corresponds to the JSON property `delegatedProjectNumber`
487
+ # @return [String]
488
+ attr_accessor :delegated_project_number
489
+
490
+ # Whether to disable the user.
491
+ # Corresponds to the JSON property `disableUser`
492
+ # @return [Boolean]
493
+ attr_accessor :disable_user
494
+ alias_method :disable_user?, :disable_user
495
+
496
+ # The name of the user.
497
+ # Corresponds to the JSON property `displayName`
498
+ # @return [String]
499
+ attr_accessor :display_name
500
+
501
+ # The email of the user.
502
+ # Corresponds to the JSON property `email`
503
+ # @return [String]
504
+ attr_accessor :email
505
+
506
+ # Mark the email as verified or not.
507
+ # Corresponds to the JSON property `emailVerified`
508
+ # @return [Boolean]
509
+ attr_accessor :email_verified
510
+ alias_method :email_verified?, :email_verified
511
+
512
+ # The GITKit token of the authenticated user.
513
+ # Corresponds to the JSON property `idToken`
514
+ # @return [String]
515
+ attr_accessor :id_token
516
+
517
+ # Instance id token of the app.
518
+ # Corresponds to the JSON property `instanceId`
519
+ # @return [String]
520
+ attr_accessor :instance_id
521
+
522
+ # The local ID of the user.
523
+ # Corresponds to the JSON property `localId`
524
+ # @return [String]
525
+ attr_accessor :local_id
526
+
527
+ # The out-of-band code of the change email request.
528
+ # Corresponds to the JSON property `oobCode`
529
+ # @return [String]
530
+ attr_accessor :oob_code
531
+
532
+ # The new password of the user.
533
+ # Corresponds to the JSON property `password`
534
+ # @return [String]
535
+ attr_accessor :password
536
+
537
+ # The photo url of the user.
538
+ # Corresponds to the JSON property `photoUrl`
539
+ # @return [String]
540
+ attr_accessor :photo_url
541
+
542
+ # The associated IDPs of the user.
543
+ # Corresponds to the JSON property `provider`
544
+ # @return [Array<String>]
545
+ attr_accessor :provider
546
+
547
+ # Mark the user to upgrade to federated login.
548
+ # Corresponds to the JSON property `upgradeToFederatedLogin`
549
+ # @return [Boolean]
550
+ attr_accessor :upgrade_to_federated_login
551
+ alias_method :upgrade_to_federated_login?, :upgrade_to_federated_login
552
+
553
+ # Timestamp in seconds for valid login token.
554
+ # Corresponds to the JSON property `validSince`
555
+ # @return [String]
556
+ attr_accessor :valid_since
557
+
558
+ def initialize(**args)
559
+ update!(**args)
560
+ end
561
+
562
+ # Update properties of this object
563
+ def update!(**args)
564
+ @captcha_challenge = args[:captcha_challenge] if args.key?(:captcha_challenge)
565
+ @captcha_response = args[:captcha_response] if args.key?(:captcha_response)
566
+ @delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number)
567
+ @disable_user = args[:disable_user] if args.key?(:disable_user)
568
+ @display_name = args[:display_name] if args.key?(:display_name)
569
+ @email = args[:email] if args.key?(:email)
570
+ @email_verified = args[:email_verified] if args.key?(:email_verified)
571
+ @id_token = args[:id_token] if args.key?(:id_token)
572
+ @instance_id = args[:instance_id] if args.key?(:instance_id)
573
+ @local_id = args[:local_id] if args.key?(:local_id)
574
+ @oob_code = args[:oob_code] if args.key?(:oob_code)
575
+ @password = args[:password] if args.key?(:password)
576
+ @photo_url = args[:photo_url] if args.key?(:photo_url)
577
+ @provider = args[:provider] if args.key?(:provider)
578
+ @upgrade_to_federated_login = args[:upgrade_to_federated_login] if args.key?(:upgrade_to_federated_login)
579
+ @valid_since = args[:valid_since] if args.key?(:valid_since)
580
+ end
581
+ end
582
+
583
+ # Request to sign out user.
584
+ class SignOutUserRequest
585
+ include Google::Apis::Core::Hashable
586
+
587
+ # Instance id token of the app.
588
+ # Corresponds to the JSON property `instanceId`
589
+ # @return [String]
590
+ attr_accessor :instance_id
591
+
592
+ # The local ID of the user.
593
+ # Corresponds to the JSON property `localId`
594
+ # @return [String]
595
+ attr_accessor :local_id
596
+
597
+ def initialize(**args)
598
+ update!(**args)
599
+ end
600
+
601
+ # Update properties of this object
602
+ def update!(**args)
603
+ @instance_id = args[:instance_id] if args.key?(:instance_id)
604
+ @local_id = args[:local_id] if args.key?(:local_id)
605
+ end
606
+ end
607
+
608
+ # Response of signing out user.
609
+ class SignOutUserResponse
610
+ include Google::Apis::Core::Hashable
611
+
612
+ # The local ID of the user.
613
+ # Corresponds to the JSON property `localId`
614
+ # @return [String]
615
+ attr_accessor :local_id
616
+
617
+ def initialize(**args)
618
+ update!(**args)
619
+ end
620
+
621
+ # Update properties of this object
622
+ def update!(**args)
623
+ @local_id = args[:local_id] if args.key?(:local_id)
624
+ end
625
+ end
626
+
627
+ # Request to signup new user, create anonymous user or anonymous user reauth.
628
+ class SignupNewUserRequest
629
+ include Google::Apis::Core::Hashable
630
+
631
+ # The captcha challenge.
632
+ # Corresponds to the JSON property `captchaChallenge`
633
+ # @return [String]
634
+ attr_accessor :captcha_challenge
635
+
636
+ # Response to the captcha.
637
+ # Corresponds to the JSON property `captchaResponse`
638
+ # @return [String]
639
+ attr_accessor :captcha_response
640
+
641
+ # The name of the user.
642
+ # Corresponds to the JSON property `displayName`
643
+ # @return [String]
644
+ attr_accessor :display_name
645
+
646
+ # The email of the user.
647
+ # Corresponds to the JSON property `email`
648
+ # @return [String]
649
+ attr_accessor :email
650
+
651
+ # The GITKit token of the authenticated user.
652
+ # Corresponds to the JSON property `idToken`
653
+ # @return [String]
654
+ attr_accessor :id_token
655
+
656
+ # Instance id token of the app.
657
+ # Corresponds to the JSON property `instanceId`
658
+ # @return [String]
659
+ attr_accessor :instance_id
660
+
661
+ # The new password of the user.
662
+ # Corresponds to the JSON property `password`
663
+ # @return [String]
664
+ attr_accessor :password
665
+
666
+ def initialize(**args)
667
+ update!(**args)
668
+ end
669
+
670
+ # Update properties of this object
671
+ def update!(**args)
672
+ @captcha_challenge = args[:captcha_challenge] if args.key?(:captcha_challenge)
673
+ @captcha_response = args[:captcha_response] if args.key?(:captcha_response)
674
+ @display_name = args[:display_name] if args.key?(:display_name)
675
+ @email = args[:email] if args.key?(:email)
676
+ @id_token = args[:id_token] if args.key?(:id_token)
677
+ @instance_id = args[:instance_id] if args.key?(:instance_id)
678
+ @password = args[:password] if args.key?(:password)
679
+ end
680
+ end
681
+
682
+ # Request to upload user account in batch.
683
+ class UploadAccountRequest
684
+ include Google::Apis::Core::Hashable
685
+
686
+ # GCP project number of the requesting delegated app. Currently only intended
687
+ # for Firebase V1 migration.
688
+ # Corresponds to the JSON property `delegatedProjectNumber`
689
+ # @return [String]
690
+ attr_accessor :delegated_project_number
691
+
692
+ # The password hash algorithm.
693
+ # Corresponds to the JSON property `hashAlgorithm`
694
+ # @return [String]
695
+ attr_accessor :hash_algorithm
696
+
697
+ # Memory cost for hash calculation. Used by scrypt similar algorithms.
698
+ # Corresponds to the JSON property `memoryCost`
699
+ # @return [Fixnum]
700
+ attr_accessor :memory_cost
701
+
702
+ # Rounds for hash calculation. Used by scrypt and similar algorithms.
703
+ # Corresponds to the JSON property `rounds`
704
+ # @return [Fixnum]
705
+ attr_accessor :rounds
706
+
707
+ # The salt separator.
708
+ # Corresponds to the JSON property `saltSeparator`
709
+ # @return [String]
710
+ attr_accessor :salt_separator
711
+
712
+ # The key for to hash the password.
713
+ # Corresponds to the JSON property `signerKey`
714
+ # @return [String]
715
+ attr_accessor :signer_key
716
+
717
+ # The account info to be stored.
718
+ # Corresponds to the JSON property `users`
719
+ # @return [Array<Google::Apis::IdentitytoolkitV3::UserInfo>]
720
+ attr_accessor :users
721
+
722
+ def initialize(**args)
723
+ update!(**args)
724
+ end
725
+
726
+ # Update properties of this object
727
+ def update!(**args)
728
+ @delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number)
729
+ @hash_algorithm = args[:hash_algorithm] if args.key?(:hash_algorithm)
730
+ @memory_cost = args[:memory_cost] if args.key?(:memory_cost)
731
+ @rounds = args[:rounds] if args.key?(:rounds)
732
+ @salt_separator = args[:salt_separator] if args.key?(:salt_separator)
733
+ @signer_key = args[:signer_key] if args.key?(:signer_key)
734
+ @users = args[:users] if args.key?(:users)
735
+ end
736
+ end
737
+
738
+ # Request to verify the IDP assertion.
739
+ class VerifyAssertionRequest
740
+ include Google::Apis::Core::Hashable
741
+
742
+ # GCP project number of the requesting delegated app. Currently only intended
743
+ # for Firebase V1 migration.
744
+ # Corresponds to the JSON property `delegatedProjectNumber`
745
+ # @return [String]
746
+ attr_accessor :delegated_project_number
747
+
748
+ # The GITKit token of the authenticated user.
749
+ # Corresponds to the JSON property `idToken`
750
+ # @return [String]
751
+ attr_accessor :id_token
752
+
753
+ # Instance id token of the app.
754
+ # Corresponds to the JSON property `instanceId`
755
+ # @return [String]
756
+ attr_accessor :instance_id
757
+
758
+ # The GITKit token for the non-trusted IDP pending to be confirmed by the user.
759
+ # Corresponds to the JSON property `pendingIdToken`
760
+ # @return [String]
761
+ attr_accessor :pending_id_token
762
+
763
+ # The post body if the request is a HTTP POST.
764
+ # Corresponds to the JSON property `postBody`
765
+ # @return [String]
766
+ attr_accessor :post_body
767
+
768
+ # The URI to which the IDP redirects the user back. It may contain federated
769
+ # login result params added by the IDP.
770
+ # Corresponds to the JSON property `requestUri`
771
+ # @return [String]
772
+ attr_accessor :request_uri
773
+
774
+ # Whether to return refresh tokens.
775
+ # Corresponds to the JSON property `returnRefreshToken`
776
+ # @return [Boolean]
777
+ attr_accessor :return_refresh_token
778
+ alias_method :return_refresh_token?, :return_refresh_token
779
+
780
+ # Session ID, which should match the one in previous createAuthUri request.
781
+ # Corresponds to the JSON property `sessionId`
782
+ # @return [String]
783
+ attr_accessor :session_id
784
+
785
+ def initialize(**args)
786
+ update!(**args)
787
+ end
788
+
789
+ # Update properties of this object
790
+ def update!(**args)
791
+ @delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number)
792
+ @id_token = args[:id_token] if args.key?(:id_token)
793
+ @instance_id = args[:instance_id] if args.key?(:instance_id)
794
+ @pending_id_token = args[:pending_id_token] if args.key?(:pending_id_token)
795
+ @post_body = args[:post_body] if args.key?(:post_body)
796
+ @request_uri = args[:request_uri] if args.key?(:request_uri)
797
+ @return_refresh_token = args[:return_refresh_token] if args.key?(:return_refresh_token)
798
+ @session_id = args[:session_id] if args.key?(:session_id)
799
+ end
800
+ end
801
+
802
+ # Request to verify a custom token
803
+ class VerifyCustomTokenRequest
804
+ include Google::Apis::Core::Hashable
805
+
806
+ # Instance id token of the app.
807
+ # Corresponds to the JSON property `instanceId`
808
+ # @return [String]
809
+ attr_accessor :instance_id
810
+
811
+ # The custom token to verify
812
+ # Corresponds to the JSON property `token`
813
+ # @return [String]
814
+ attr_accessor :token
815
+
816
+ def initialize(**args)
817
+ update!(**args)
818
+ end
819
+
820
+ # Update properties of this object
821
+ def update!(**args)
822
+ @instance_id = args[:instance_id] if args.key?(:instance_id)
823
+ @token = args[:token] if args.key?(:token)
824
+ end
825
+ end
826
+
827
+ # Request to verify the password.
828
+ class VerifyPasswordRequest
829
+ include Google::Apis::Core::Hashable
830
+
831
+ # The captcha challenge.
832
+ # Corresponds to the JSON property `captchaChallenge`
833
+ # @return [String]
834
+ attr_accessor :captcha_challenge
835
+
836
+ # Response to the captcha.
837
+ # Corresponds to the JSON property `captchaResponse`
838
+ # @return [String]
839
+ attr_accessor :captcha_response
840
+
841
+ # GCP project number of the requesting delegated app. Currently only intended
842
+ # for Firebase V1 migration.
843
+ # Corresponds to the JSON property `delegatedProjectNumber`
844
+ # @return [String]
845
+ attr_accessor :delegated_project_number
846
+
847
+ # The email of the user.
848
+ # Corresponds to the JSON property `email`
849
+ # @return [String]
850
+ attr_accessor :email
851
+
852
+ # The GITKit token of the authenticated user.
853
+ # Corresponds to the JSON property `idToken`
854
+ # @return [String]
855
+ attr_accessor :id_token
856
+
857
+ # Instance id token of the app.
858
+ # Corresponds to the JSON property `instanceId`
859
+ # @return [String]
860
+ attr_accessor :instance_id
861
+
862
+ # The password inputed by the user.
863
+ # Corresponds to the JSON property `password`
864
+ # @return [String]
865
+ attr_accessor :password
866
+
867
+ # The GITKit token for the non-trusted IDP, which is to be confirmed by the user.
868
+ # Corresponds to the JSON property `pendingIdToken`
869
+ # @return [String]
870
+ attr_accessor :pending_id_token
871
+
872
+ def initialize(**args)
873
+ update!(**args)
874
+ end
875
+
876
+ # Update properties of this object
877
+ def update!(**args)
878
+ @captcha_challenge = args[:captcha_challenge] if args.key?(:captcha_challenge)
879
+ @captcha_response = args[:captcha_response] if args.key?(:captcha_response)
880
+ @delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number)
881
+ @email = args[:email] if args.key?(:email)
882
+ @id_token = args[:id_token] if args.key?(:id_token)
883
+ @instance_id = args[:instance_id] if args.key?(:instance_id)
884
+ @password = args[:password] if args.key?(:password)
885
+ @pending_id_token = args[:pending_id_token] if args.key?(:pending_id_token)
886
+ end
887
+ end
888
+
889
+ # Template for a single idp configuration.
890
+ class IdpConfig
891
+ include Google::Apis::Core::Hashable
892
+
893
+ # OAuth2 client ID.
894
+ # Corresponds to the JSON property `clientId`
895
+ # @return [String]
896
+ attr_accessor :client_id
897
+
898
+ # Whether this IDP is enabled.
899
+ # Corresponds to the JSON property `enabled`
900
+ # @return [Boolean]
901
+ attr_accessor :enabled
902
+ alias_method :enabled?, :enabled
903
+
904
+ # Percent of users who will be prompted/redirected federated login for this IDP.
905
+ # Corresponds to the JSON property `experimentPercent`
906
+ # @return [Fixnum]
907
+ attr_accessor :experiment_percent
908
+
909
+ # OAuth2 provider.
910
+ # Corresponds to the JSON property `provider`
911
+ # @return [String]
912
+ attr_accessor :provider
913
+
914
+ def initialize(**args)
915
+ update!(**args)
916
+ end
917
+
918
+ # Update properties of this object
919
+ def update!(**args)
920
+ @client_id = args[:client_id] if args.key?(:client_id)
921
+ @enabled = args[:enabled] if args.key?(:enabled)
922
+ @experiment_percent = args[:experiment_percent] if args.key?(:experiment_percent)
923
+ @provider = args[:provider] if args.key?(:provider)
924
+ end
925
+ end
926
+
927
+ # Request of getting a code for user confirmation (reset password, change email
928
+ # etc.)
929
+ class Relyingparty
930
+ include Google::Apis::Core::Hashable
931
+
932
+ # The recaptcha response from the user.
933
+ # Corresponds to the JSON property `captchaResp`
934
+ # @return [String]
935
+ attr_accessor :captcha_resp
936
+
937
+ # The recaptcha challenge presented to the user.
938
+ # Corresponds to the JSON property `challenge`
939
+ # @return [String]
940
+ attr_accessor :challenge
941
+
942
+ # The email of the user.
943
+ # Corresponds to the JSON property `email`
944
+ # @return [String]
945
+ attr_accessor :email
946
+
947
+ # The user's Gitkit login token for email change.
948
+ # Corresponds to the JSON property `idToken`
949
+ # @return [String]
950
+ attr_accessor :id_token
951
+
952
+ # The fixed string "identitytoolkit#relyingparty".
953
+ # Corresponds to the JSON property `kind`
954
+ # @return [String]
955
+ attr_accessor :kind
956
+
957
+ # The new email if the code is for email change.
958
+ # Corresponds to the JSON property `newEmail`
959
+ # @return [String]
960
+ attr_accessor :new_email
961
+
962
+ # The request type.
963
+ # Corresponds to the JSON property `requestType`
964
+ # @return [String]
965
+ attr_accessor :request_type
966
+
967
+ # The IP address of the user.
968
+ # Corresponds to the JSON property `userIp`
969
+ # @return [String]
970
+ attr_accessor :user_ip
971
+
972
+ def initialize(**args)
973
+ update!(**args)
974
+ end
975
+
976
+ # Update properties of this object
977
+ def update!(**args)
978
+ @captcha_resp = args[:captcha_resp] if args.key?(:captcha_resp)
979
+ @challenge = args[:challenge] if args.key?(:challenge)
980
+ @email = args[:email] if args.key?(:email)
981
+ @id_token = args[:id_token] if args.key?(:id_token)
982
+ @kind = args[:kind] if args.key?(:kind)
983
+ @new_email = args[:new_email] if args.key?(:new_email)
984
+ @request_type = args[:request_type] if args.key?(:request_type)
985
+ @user_ip = args[:user_ip] if args.key?(:user_ip)
986
+ end
987
+ end
988
+
989
+ # Response of resetting the password.
990
+ class ResetPasswordResponse
991
+ include Google::Apis::Core::Hashable
992
+
993
+ # The user's email.
994
+ # Corresponds to the JSON property `email`
995
+ # @return [String]
996
+ attr_accessor :email
997
+
998
+ # The fixed string "identitytoolkit#ResetPasswordResponse".
999
+ # Corresponds to the JSON property `kind`
1000
+ # @return [String]
1001
+ attr_accessor :kind
1002
+
1003
+ def initialize(**args)
1004
+ update!(**args)
1005
+ end
1006
+
1007
+ # Update properties of this object
1008
+ def update!(**args)
1009
+ @email = args[:email] if args.key?(:email)
1010
+ @kind = args[:kind] if args.key?(:kind)
1011
+ end
1012
+ end
1013
+
1014
+ # Respone of setting the account information.
1015
+ class SetAccountInfoResponse
1016
+ include Google::Apis::Core::Hashable
1017
+
1018
+ # The name of the user.
1019
+ # Corresponds to the JSON property `displayName`
1020
+ # @return [String]
1021
+ attr_accessor :display_name
1022
+
1023
+ # The email of the user.
1024
+ # Corresponds to the JSON property `email`
1025
+ # @return [String]
1026
+ attr_accessor :email
1027
+
1028
+ # The Gitkit id token to login the newly sign up user.
1029
+ # Corresponds to the JSON property `idToken`
1030
+ # @return [String]
1031
+ attr_accessor :id_token
1032
+
1033
+ # The fixed string "identitytoolkit#SetAccountInfoResponse".
1034
+ # Corresponds to the JSON property `kind`
1035
+ # @return [String]
1036
+ attr_accessor :kind
1037
+
1038
+ # The new email the user attempts to change to.
1039
+ # Corresponds to the JSON property `newEmail`
1040
+ # @return [String]
1041
+ attr_accessor :new_email
1042
+
1043
+ # The photo url of the user.
1044
+ # Corresponds to the JSON property `photoUrl`
1045
+ # @return [String]
1046
+ attr_accessor :photo_url
1047
+
1048
+ # The user's profiles at the associated IdPs.
1049
+ # Corresponds to the JSON property `providerUserInfo`
1050
+ # @return [Array<Google::Apis::IdentitytoolkitV3::SetAccountInfoResponse::ProviderUserInfo>]
1051
+ attr_accessor :provider_user_info
1052
+
1053
+ def initialize(**args)
1054
+ update!(**args)
1055
+ end
1056
+
1057
+ # Update properties of this object
1058
+ def update!(**args)
1059
+ @display_name = args[:display_name] if args.key?(:display_name)
1060
+ @email = args[:email] if args.key?(:email)
1061
+ @id_token = args[:id_token] if args.key?(:id_token)
1062
+ @kind = args[:kind] if args.key?(:kind)
1063
+ @new_email = args[:new_email] if args.key?(:new_email)
1064
+ @photo_url = args[:photo_url] if args.key?(:photo_url)
1065
+ @provider_user_info = args[:provider_user_info] if args.key?(:provider_user_info)
1066
+ end
1067
+
1068
+ #
1069
+ class ProviderUserInfo
1070
+ include Google::Apis::Core::Hashable
1071
+
1072
+ # The user's display name at the IDP.
1073
+ # Corresponds to the JSON property `displayName`
1074
+ # @return [String]
1075
+ attr_accessor :display_name
1076
+
1077
+ # The user's photo url at the IDP.
1078
+ # Corresponds to the JSON property `photoUrl`
1079
+ # @return [String]
1080
+ attr_accessor :photo_url
1081
+
1082
+ # The IdP ID. For whitelisted IdPs it's a short domain name, e.g., google.com,
1083
+ # aol.com, live.net and yahoo.com. For other OpenID IdPs it's the OP identifier.
1084
+ # Corresponds to the JSON property `providerId`
1085
+ # @return [String]
1086
+ attr_accessor :provider_id
1087
+
1088
+ def initialize(**args)
1089
+ update!(**args)
1090
+ end
1091
+
1092
+ # Update properties of this object
1093
+ def update!(**args)
1094
+ @display_name = args[:display_name] if args.key?(:display_name)
1095
+ @photo_url = args[:photo_url] if args.key?(:photo_url)
1096
+ @provider_id = args[:provider_id] if args.key?(:provider_id)
1097
+ end
1098
+ end
1099
+ end
1100
+
1101
+ # Response of signing up new user, creating anonymous user or anonymous user
1102
+ # reauth.
1103
+ class SignupNewUserResponse
1104
+ include Google::Apis::Core::Hashable
1105
+
1106
+ # The name of the user.
1107
+ # Corresponds to the JSON property `displayName`
1108
+ # @return [String]
1109
+ attr_accessor :display_name
1110
+
1111
+ # The email of the user.
1112
+ # Corresponds to the JSON property `email`
1113
+ # @return [String]
1114
+ attr_accessor :email
1115
+
1116
+ # The Gitkit id token to login the newly sign up user.
1117
+ # Corresponds to the JSON property `idToken`
1118
+ # @return [String]
1119
+ attr_accessor :id_token
1120
+
1121
+ # The fixed string "identitytoolkit#SignupNewUserResponse".
1122
+ # Corresponds to the JSON property `kind`
1123
+ # @return [String]
1124
+ attr_accessor :kind
1125
+
1126
+ def initialize(**args)
1127
+ update!(**args)
1128
+ end
1129
+
1130
+ # Update properties of this object
1131
+ def update!(**args)
1132
+ @display_name = args[:display_name] if args.key?(:display_name)
1133
+ @email = args[:email] if args.key?(:email)
1134
+ @id_token = args[:id_token] if args.key?(:id_token)
1135
+ @kind = args[:kind] if args.key?(:kind)
1136
+ end
1137
+ end
1138
+
1139
+ # Respone of uploading accounts in batch.
1140
+ class UploadAccountResponse
1141
+ include Google::Apis::Core::Hashable
1142
+
1143
+ # The error encountered while processing the account info.
1144
+ # Corresponds to the JSON property `error`
1145
+ # @return [Array<Google::Apis::IdentitytoolkitV3::UploadAccountResponse::Error>]
1146
+ attr_accessor :error
1147
+
1148
+ # The fixed string "identitytoolkit#UploadAccountResponse".
1149
+ # Corresponds to the JSON property `kind`
1150
+ # @return [String]
1151
+ attr_accessor :kind
1152
+
1153
+ def initialize(**args)
1154
+ update!(**args)
1155
+ end
1156
+
1157
+ # Update properties of this object
1158
+ def update!(**args)
1159
+ @error = args[:error] if args.key?(:error)
1160
+ @kind = args[:kind] if args.key?(:kind)
1161
+ end
1162
+
1163
+ #
1164
+ class Error
1165
+ include Google::Apis::Core::Hashable
1166
+
1167
+ # The index of the malformed account, starting from 0.
1168
+ # Corresponds to the JSON property `index`
1169
+ # @return [Fixnum]
1170
+ attr_accessor :index
1171
+
1172
+ # Detailed error message for the account info.
1173
+ # Corresponds to the JSON property `message`
1174
+ # @return [String]
1175
+ attr_accessor :message
1176
+
1177
+ def initialize(**args)
1178
+ update!(**args)
1179
+ end
1180
+
1181
+ # Update properties of this object
1182
+ def update!(**args)
1183
+ @index = args[:index] if args.key?(:index)
1184
+ @message = args[:message] if args.key?(:message)
1185
+ end
1186
+ end
1187
+ end
1188
+
1189
+ # Template for an individual account info.
1190
+ class UserInfo
1191
+ include Google::Apis::Core::Hashable
1192
+
1193
+ # Whether the user is disabled.
1194
+ # Corresponds to the JSON property `disabled`
1195
+ # @return [Boolean]
1196
+ attr_accessor :disabled
1197
+ alias_method :disabled?, :disabled
1198
+
1199
+ # The name of the user.
1200
+ # Corresponds to the JSON property `displayName`
1201
+ # @return [String]
1202
+ attr_accessor :display_name
1203
+
1204
+ # The email of the user.
1205
+ # Corresponds to the JSON property `email`
1206
+ # @return [String]
1207
+ attr_accessor :email
1208
+
1209
+ # Whether the email has been verified.
1210
+ # Corresponds to the JSON property `emailVerified`
1211
+ # @return [Boolean]
1212
+ attr_accessor :email_verified
1213
+ alias_method :email_verified?, :email_verified
1214
+
1215
+ # The local ID of the user.
1216
+ # Corresponds to the JSON property `localId`
1217
+ # @return [String]
1218
+ attr_accessor :local_id
1219
+
1220
+ # The user's hashed password.
1221
+ # Corresponds to the JSON property `passwordHash`
1222
+ # @return [String]
1223
+ attr_accessor :password_hash
1224
+
1225
+ # The timestamp when the password was last updated.
1226
+ # Corresponds to the JSON property `passwordUpdatedAt`
1227
+ # @return [Float]
1228
+ attr_accessor :password_updated_at
1229
+
1230
+ # The URL of the user profile photo.
1231
+ # Corresponds to the JSON property `photoUrl`
1232
+ # @return [String]
1233
+ attr_accessor :photo_url
1234
+
1235
+ # The IDP of the user.
1236
+ # Corresponds to the JSON property `providerUserInfo`
1237
+ # @return [Array<Google::Apis::IdentitytoolkitV3::UserInfo::ProviderUserInfo>]
1238
+ attr_accessor :provider_user_info
1239
+
1240
+ # The user's password salt.
1241
+ # Corresponds to the JSON property `salt`
1242
+ # @return [String]
1243
+ attr_accessor :salt
1244
+
1245
+ # Timestamp in seconds for valid login token.
1246
+ # Corresponds to the JSON property `validSince`
1247
+ # @return [String]
1248
+ attr_accessor :valid_since
1249
+
1250
+ # Version of the user's password.
1251
+ # Corresponds to the JSON property `version`
1252
+ # @return [Fixnum]
1253
+ attr_accessor :version
1254
+
1255
+ def initialize(**args)
1256
+ update!(**args)
1257
+ end
1258
+
1259
+ # Update properties of this object
1260
+ def update!(**args)
1261
+ @disabled = args[:disabled] if args.key?(:disabled)
1262
+ @display_name = args[:display_name] if args.key?(:display_name)
1263
+ @email = args[:email] if args.key?(:email)
1264
+ @email_verified = args[:email_verified] if args.key?(:email_verified)
1265
+ @local_id = args[:local_id] if args.key?(:local_id)
1266
+ @password_hash = args[:password_hash] if args.key?(:password_hash)
1267
+ @password_updated_at = args[:password_updated_at] if args.key?(:password_updated_at)
1268
+ @photo_url = args[:photo_url] if args.key?(:photo_url)
1269
+ @provider_user_info = args[:provider_user_info] if args.key?(:provider_user_info)
1270
+ @salt = args[:salt] if args.key?(:salt)
1271
+ @valid_since = args[:valid_since] if args.key?(:valid_since)
1272
+ @version = args[:version] if args.key?(:version)
1273
+ end
1274
+
1275
+ #
1276
+ class ProviderUserInfo
1277
+ include Google::Apis::Core::Hashable
1278
+
1279
+ # The user's display name at the IDP.
1280
+ # Corresponds to the JSON property `displayName`
1281
+ # @return [String]
1282
+ attr_accessor :display_name
1283
+
1284
+ # User's email at IDP.
1285
+ # Corresponds to the JSON property `email`
1286
+ # @return [String]
1287
+ attr_accessor :email
1288
+
1289
+ # User's identifier at IDP.
1290
+ # Corresponds to the JSON property `federatedId`
1291
+ # @return [String]
1292
+ attr_accessor :federated_id
1293
+
1294
+ # The user's photo url at the IDP.
1295
+ # Corresponds to the JSON property `photoUrl`
1296
+ # @return [String]
1297
+ attr_accessor :photo_url
1298
+
1299
+ # The IdP ID. For white listed IdPs it's a short domain name, e.g., google.com,
1300
+ # aol.com, live.net and yahoo.com. For other OpenID IdPs it's the OP identifier.
1301
+ # Corresponds to the JSON property `providerId`
1302
+ # @return [String]
1303
+ attr_accessor :provider_id
1304
+
1305
+ def initialize(**args)
1306
+ update!(**args)
1307
+ end
1308
+
1309
+ # Update properties of this object
1310
+ def update!(**args)
1311
+ @display_name = args[:display_name] if args.key?(:display_name)
1312
+ @email = args[:email] if args.key?(:email)
1313
+ @federated_id = args[:federated_id] if args.key?(:federated_id)
1314
+ @photo_url = args[:photo_url] if args.key?(:photo_url)
1315
+ @provider_id = args[:provider_id] if args.key?(:provider_id)
1316
+ end
1317
+ end
1318
+ end
1319
+
1320
+ # Response of verifying the IDP assertion.
1321
+ class VerifyAssertionResponse
1322
+ include Google::Apis::Core::Hashable
1323
+
1324
+ # The action code.
1325
+ # Corresponds to the JSON property `action`
1326
+ # @return [String]
1327
+ attr_accessor :action
1328
+
1329
+ # URL for OTA app installation.
1330
+ # Corresponds to the JSON property `appInstallationUrl`
1331
+ # @return [String]
1332
+ attr_accessor :app_installation_url
1333
+
1334
+ # The custom scheme used by mobile app.
1335
+ # Corresponds to the JSON property `appScheme`
1336
+ # @return [String]
1337
+ attr_accessor :app_scheme
1338
+
1339
+ # The opaque value used by the client to maintain context info between the
1340
+ # authentication request and the IDP callback.
1341
+ # Corresponds to the JSON property `context`
1342
+ # @return [String]
1343
+ attr_accessor :context
1344
+
1345
+ # The birth date of the IdP account.
1346
+ # Corresponds to the JSON property `dateOfBirth`
1347
+ # @return [String]
1348
+ attr_accessor :date_of_birth
1349
+
1350
+ # The display name of the user.
1351
+ # Corresponds to the JSON property `displayName`
1352
+ # @return [String]
1353
+ attr_accessor :display_name
1354
+
1355
+ # The email returned by the IdP. NOTE: The federated login user may not own the
1356
+ # email.
1357
+ # Corresponds to the JSON property `email`
1358
+ # @return [String]
1359
+ attr_accessor :email
1360
+
1361
+ # It's true if the email is recycled.
1362
+ # Corresponds to the JSON property `emailRecycled`
1363
+ # @return [Boolean]
1364
+ attr_accessor :email_recycled
1365
+ alias_method :email_recycled?, :email_recycled
1366
+
1367
+ # The value is true if the IDP is also the email provider. It means the user
1368
+ # owns the email.
1369
+ # Corresponds to the JSON property `emailVerified`
1370
+ # @return [Boolean]
1371
+ attr_accessor :email_verified
1372
+ alias_method :email_verified?, :email_verified
1373
+
1374
+ # The unique ID identifies the IdP account.
1375
+ # Corresponds to the JSON property `federatedId`
1376
+ # @return [String]
1377
+ attr_accessor :federated_id
1378
+
1379
+ # The first name of the user.
1380
+ # Corresponds to the JSON property `firstName`
1381
+ # @return [String]
1382
+ attr_accessor :first_name
1383
+
1384
+ # The full name of the user.
1385
+ # Corresponds to the JSON property `fullName`
1386
+ # @return [String]
1387
+ attr_accessor :full_name
1388
+
1389
+ # The ID token.
1390
+ # Corresponds to the JSON property `idToken`
1391
+ # @return [String]
1392
+ attr_accessor :id_token
1393
+
1394
+ # It's the identifier param in the createAuthUri request if the identifier is an
1395
+ # email. It can be used to check whether the user input email is different from
1396
+ # the asserted email.
1397
+ # Corresponds to the JSON property `inputEmail`
1398
+ # @return [String]
1399
+ attr_accessor :input_email
1400
+
1401
+ # The fixed string "identitytoolkit#VerifyAssertionResponse".
1402
+ # Corresponds to the JSON property `kind`
1403
+ # @return [String]
1404
+ attr_accessor :kind
1405
+
1406
+ # The language preference of the user.
1407
+ # Corresponds to the JSON property `language`
1408
+ # @return [String]
1409
+ attr_accessor :language
1410
+
1411
+ # The last name of the user.
1412
+ # Corresponds to the JSON property `lastName`
1413
+ # @return [String]
1414
+ attr_accessor :last_name
1415
+
1416
+ # The RP local ID if it's already been mapped to the IdP account identified by
1417
+ # the federated ID.
1418
+ # Corresponds to the JSON property `localId`
1419
+ # @return [String]
1420
+ attr_accessor :local_id
1421
+
1422
+ # Whether the assertion is from a non-trusted IDP and need account linking
1423
+ # confirmation.
1424
+ # Corresponds to the JSON property `needConfirmation`
1425
+ # @return [Boolean]
1426
+ attr_accessor :need_confirmation
1427
+ alias_method :need_confirmation?, :need_confirmation
1428
+
1429
+ # Whether need client to supply email to complete the federated login flow.
1430
+ # Corresponds to the JSON property `needEmail`
1431
+ # @return [Boolean]
1432
+ attr_accessor :need_email
1433
+ alias_method :need_email?, :need_email
1434
+
1435
+ # The nick name of the user.
1436
+ # Corresponds to the JSON property `nickName`
1437
+ # @return [String]
1438
+ attr_accessor :nick_name
1439
+
1440
+ # The OAuth2 access token.
1441
+ # Corresponds to the JSON property `oauthAccessToken`
1442
+ # @return [String]
1443
+ attr_accessor :oauth_access_token
1444
+
1445
+ # The OAuth2 authorization code.
1446
+ # Corresponds to the JSON property `oauthAuthorizationCode`
1447
+ # @return [String]
1448
+ attr_accessor :oauth_authorization_code
1449
+
1450
+ # The lifetime in seconds of the OAuth2 access token.
1451
+ # Corresponds to the JSON property `oauthExpireIn`
1452
+ # @return [Fixnum]
1453
+ attr_accessor :oauth_expire_in
1454
+
1455
+ # The user approved request token for the OpenID OAuth extension.
1456
+ # Corresponds to the JSON property `oauthRequestToken`
1457
+ # @return [String]
1458
+ attr_accessor :oauth_request_token
1459
+
1460
+ # The scope for the OpenID OAuth extension.
1461
+ # Corresponds to the JSON property `oauthScope`
1462
+ # @return [String]
1463
+ attr_accessor :oauth_scope
1464
+
1465
+ # The original email stored in the mapping storage. It's returned when the
1466
+ # federated ID is associated to a different email.
1467
+ # Corresponds to the JSON property `originalEmail`
1468
+ # @return [String]
1469
+ attr_accessor :original_email
1470
+
1471
+ # The URI of the public accessible profiel picture.
1472
+ # Corresponds to the JSON property `photoUrl`
1473
+ # @return [String]
1474
+ attr_accessor :photo_url
1475
+
1476
+ # The IdP ID. For white listed IdPs it's a short domain name e.g. google.com,
1477
+ # aol.com, live.net and yahoo.com. If the "providerId" param is set to OpenID OP
1478
+ # identifer other than the whilte listed IdPs the OP identifier is returned. If
1479
+ # the "identifier" param is federated ID in the createAuthUri request. The
1480
+ # domain part of the federated ID is returned.
1481
+ # Corresponds to the JSON property `providerId`
1482
+ # @return [String]
1483
+ attr_accessor :provider_id
1484
+
1485
+ # The timezone of the user.
1486
+ # Corresponds to the JSON property `timeZone`
1487
+ # @return [String]
1488
+ attr_accessor :time_zone
1489
+
1490
+ # When action is 'map', contains the idps which can be used for confirmation.
1491
+ # Corresponds to the JSON property `verifiedProvider`
1492
+ # @return [Array<String>]
1493
+ attr_accessor :verified_provider
1494
+
1495
+ def initialize(**args)
1496
+ update!(**args)
1497
+ end
1498
+
1499
+ # Update properties of this object
1500
+ def update!(**args)
1501
+ @action = args[:action] if args.key?(:action)
1502
+ @app_installation_url = args[:app_installation_url] if args.key?(:app_installation_url)
1503
+ @app_scheme = args[:app_scheme] if args.key?(:app_scheme)
1504
+ @context = args[:context] if args.key?(:context)
1505
+ @date_of_birth = args[:date_of_birth] if args.key?(:date_of_birth)
1506
+ @display_name = args[:display_name] if args.key?(:display_name)
1507
+ @email = args[:email] if args.key?(:email)
1508
+ @email_recycled = args[:email_recycled] if args.key?(:email_recycled)
1509
+ @email_verified = args[:email_verified] if args.key?(:email_verified)
1510
+ @federated_id = args[:federated_id] if args.key?(:federated_id)
1511
+ @first_name = args[:first_name] if args.key?(:first_name)
1512
+ @full_name = args[:full_name] if args.key?(:full_name)
1513
+ @id_token = args[:id_token] if args.key?(:id_token)
1514
+ @input_email = args[:input_email] if args.key?(:input_email)
1515
+ @kind = args[:kind] if args.key?(:kind)
1516
+ @language = args[:language] if args.key?(:language)
1517
+ @last_name = args[:last_name] if args.key?(:last_name)
1518
+ @local_id = args[:local_id] if args.key?(:local_id)
1519
+ @need_confirmation = args[:need_confirmation] if args.key?(:need_confirmation)
1520
+ @need_email = args[:need_email] if args.key?(:need_email)
1521
+ @nick_name = args[:nick_name] if args.key?(:nick_name)
1522
+ @oauth_access_token = args[:oauth_access_token] if args.key?(:oauth_access_token)
1523
+ @oauth_authorization_code = args[:oauth_authorization_code] if args.key?(:oauth_authorization_code)
1524
+ @oauth_expire_in = args[:oauth_expire_in] if args.key?(:oauth_expire_in)
1525
+ @oauth_request_token = args[:oauth_request_token] if args.key?(:oauth_request_token)
1526
+ @oauth_scope = args[:oauth_scope] if args.key?(:oauth_scope)
1527
+ @original_email = args[:original_email] if args.key?(:original_email)
1528
+ @photo_url = args[:photo_url] if args.key?(:photo_url)
1529
+ @provider_id = args[:provider_id] if args.key?(:provider_id)
1530
+ @time_zone = args[:time_zone] if args.key?(:time_zone)
1531
+ @verified_provider = args[:verified_provider] if args.key?(:verified_provider)
1532
+ end
1533
+ end
1534
+
1535
+ # Response from verifying a custom token
1536
+ class VerifyCustomTokenResponse
1537
+ include Google::Apis::Core::Hashable
1538
+
1539
+ # The GITKit token for authenticated user.
1540
+ # Corresponds to the JSON property `idToken`
1541
+ # @return [String]
1542
+ attr_accessor :id_token
1543
+
1544
+ # The fixed string "identitytoolkit#VerifyCustomTokenResponse".
1545
+ # Corresponds to the JSON property `kind`
1546
+ # @return [String]
1547
+ attr_accessor :kind
1548
+
1549
+ def initialize(**args)
1550
+ update!(**args)
1551
+ end
1552
+
1553
+ # Update properties of this object
1554
+ def update!(**args)
1555
+ @id_token = args[:id_token] if args.key?(:id_token)
1556
+ @kind = args[:kind] if args.key?(:kind)
1557
+ end
1558
+ end
1559
+
1560
+ # Request of verifying the password.
1561
+ class VerifyPasswordResponse
1562
+ include Google::Apis::Core::Hashable
1563
+
1564
+ # The name of the user.
1565
+ # Corresponds to the JSON property `displayName`
1566
+ # @return [String]
1567
+ attr_accessor :display_name
1568
+
1569
+ # The email returned by the IdP. NOTE: The federated login user may not own the
1570
+ # email.
1571
+ # Corresponds to the JSON property `email`
1572
+ # @return [String]
1573
+ attr_accessor :email
1574
+
1575
+ # The GITKit token for authenticated user.
1576
+ # Corresponds to the JSON property `idToken`
1577
+ # @return [String]
1578
+ attr_accessor :id_token
1579
+
1580
+ # The fixed string "identitytoolkit#VerifyPasswordResponse".
1581
+ # Corresponds to the JSON property `kind`
1582
+ # @return [String]
1583
+ attr_accessor :kind
1584
+
1585
+ # The RP local ID if it's already been mapped to the IdP account identified by
1586
+ # the federated ID.
1587
+ # Corresponds to the JSON property `localId`
1588
+ # @return [String]
1589
+ attr_accessor :local_id
1590
+
1591
+ # The OAuth2 access token.
1592
+ # Corresponds to the JSON property `oauthAccessToken`
1593
+ # @return [String]
1594
+ attr_accessor :oauth_access_token
1595
+
1596
+ # The OAuth2 authorization code.
1597
+ # Corresponds to the JSON property `oauthAuthorizationCode`
1598
+ # @return [String]
1599
+ attr_accessor :oauth_authorization_code
1600
+
1601
+ # The lifetime in seconds of the OAuth2 access token.
1602
+ # Corresponds to the JSON property `oauthExpireIn`
1603
+ # @return [Fixnum]
1604
+ attr_accessor :oauth_expire_in
1605
+
1606
+ # The URI of the user's photo at IdP
1607
+ # Corresponds to the JSON property `photoUrl`
1608
+ # @return [String]
1609
+ attr_accessor :photo_url
1610
+
1611
+ # Whether the email is registered.
1612
+ # Corresponds to the JSON property `registered`
1613
+ # @return [Boolean]
1614
+ attr_accessor :registered
1615
+ alias_method :registered?, :registered
1616
+
1617
+ def initialize(**args)
1618
+ update!(**args)
1619
+ end
1620
+
1621
+ # Update properties of this object
1622
+ def update!(**args)
1623
+ @display_name = args[:display_name] if args.key?(:display_name)
1624
+ @email = args[:email] if args.key?(:email)
1625
+ @id_token = args[:id_token] if args.key?(:id_token)
1626
+ @kind = args[:kind] if args.key?(:kind)
1627
+ @local_id = args[:local_id] if args.key?(:local_id)
1628
+ @oauth_access_token = args[:oauth_access_token] if args.key?(:oauth_access_token)
1629
+ @oauth_authorization_code = args[:oauth_authorization_code] if args.key?(:oauth_authorization_code)
1630
+ @oauth_expire_in = args[:oauth_expire_in] if args.key?(:oauth_expire_in)
1631
+ @photo_url = args[:photo_url] if args.key?(:photo_url)
1632
+ @registered = args[:registered] if args.key?(:registered)
1633
+ end
1634
+ end
1635
+ end
1636
+ end
1637
+ end