google-api-client 0.9.8 → 0.9.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (238) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +37 -0
  3. data/Gemfile +9 -1
  4. data/README.md +10 -2
  5. data/api_names.yaml +63 -110
  6. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
  10. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +260 -13
  12. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +81 -0
  13. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
  14. data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
  15. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
  16. data/generated/google/apis/admin_directory_v1.rb +1 -1
  17. data/generated/google/apis/admin_directory_v1/classes.rb +86 -0
  18. data/generated/google/apis/admin_directory_v1/representations.rb +24 -0
  19. data/generated/google/apis/admin_directory_v1/service.rb +41 -2
  20. data/generated/google/apis/admin_reports_v1.rb +3 -3
  21. data/generated/google/apis/admin_reports_v1/service.rb +2 -2
  22. data/generated/google/apis/adsense_v1_4.rb +1 -1
  23. data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
  24. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  25. data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
  26. data/generated/google/apis/analytics_v3.rb +1 -1
  27. data/generated/google/apis/analytics_v3/classes.rb +379 -3
  28. data/generated/google/apis/analytics_v3/representations.rb +136 -0
  29. data/generated/google/apis/analytics_v3/service.rb +217 -0
  30. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  31. data/generated/google/apis/analyticsreporting_v4/classes.rb +50 -22
  32. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  33. data/generated/google/apis/androidenterprise_v1/classes.rb +813 -49
  34. data/generated/google/apis/androidenterprise_v1/representations.rb +336 -0
  35. data/generated/google/apis/androidenterprise_v1/service.rb +1234 -145
  36. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  37. data/generated/google/apis/androidpublisher_v2/classes.rb +47 -8
  38. data/generated/google/apis/androidpublisher_v2/representations.rb +27 -0
  39. data/generated/google/apis/androidpublisher_v2/service.rb +55 -0
  40. data/generated/google/apis/appengine_v1beta5.rb +7 -1
  41. data/generated/google/apis/appengine_v1beta5/classes.rb +516 -313
  42. data/generated/google/apis/appengine_v1beta5/representations.rb +115 -22
  43. data/generated/google/apis/appengine_v1beta5/service.rb +329 -33
  44. data/generated/google/apis/appsactivity_v1.rb +1 -1
  45. data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
  46. data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
  47. data/generated/google/apis/appstate_v1.rb +1 -1
  48. data/generated/google/apis/bigquery_v2.rb +1 -1
  49. data/generated/google/apis/bigquery_v2/classes.rb +277 -20
  50. data/generated/google/apis/bigquery_v2/representations.rb +86 -0
  51. data/generated/google/apis/bigquery_v2/service.rb +8 -2
  52. data/generated/google/apis/books_v1.rb +2 -2
  53. data/generated/google/apis/books_v1/classes.rb +79 -1
  54. data/generated/google/apis/books_v1/representations.rb +34 -0
  55. data/generated/google/apis/books_v1/service.rb +7 -3
  56. data/generated/google/apis/calendar_v3.rb +1 -1
  57. data/generated/google/apis/civicinfo_v2.rb +3 -2
  58. data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
  59. data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
  60. data/generated/google/apis/civicinfo_v2/service.rb +27 -6
  61. data/generated/google/apis/classroom_v1.rb +1 -1
  62. data/generated/google/apis/classroom_v1/classes.rb +183 -37
  63. data/generated/google/apis/classroom_v1/representations.rb +74 -9
  64. data/generated/google/apis/classroom_v1/service.rb +403 -38
  65. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  66. data/generated/google/apis/cloudbuild_v1/classes.rb +381 -17
  67. data/generated/google/apis/cloudbuild_v1/representations.rb +137 -2
  68. data/generated/google/apis/cloudbuild_v1/service.rb +174 -1
  69. data/generated/google/apis/clouddebugger_v2.rb +3 -6
  70. data/generated/google/apis/clouddebugger_v2/service.rb +4 -4
  71. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  72. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  73. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +502 -111
  74. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +162 -24
  75. data/generated/google/apis/cloudresourcemanager_v1/service.rb +274 -30
  76. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  77. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +121 -9
  78. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +46 -0
  79. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +71 -58
  80. data/generated/google/apis/compute_beta.rb +1 -1
  81. data/generated/google/apis/compute_beta/classes.rb +2299 -434
  82. data/generated/google/apis/compute_beta/representations.rb +752 -33
  83. data/generated/google/apis/compute_beta/service.rb +6067 -3153
  84. data/generated/google/apis/compute_v1.rb +1 -1
  85. data/generated/google/apis/compute_v1/classes.rb +1681 -207
  86. data/generated/google/apis/compute_v1/representations.rb +552 -0
  87. data/generated/google/apis/compute_v1/service.rb +2797 -1171
  88. data/generated/google/apis/content_v2.rb +1 -1
  89. data/generated/google/apis/content_v2/classes.rb +757 -1
  90. data/generated/google/apis/content_v2/representations.rb +337 -0
  91. data/generated/google/apis/content_v2/service.rb +244 -0
  92. data/generated/google/apis/dataflow_v1b3.rb +38 -0
  93. data/generated/google/apis/dataflow_v1b3/classes.rb +4053 -0
  94. data/generated/google/apis/dataflow_v1b3/representations.rb +1736 -0
  95. data/generated/google/apis/dataflow_v1b3/service.rb +875 -0
  96. data/generated/google/apis/dataproc_v1.rb +2 -2
  97. data/generated/google/apis/dataproc_v1/classes.rb +213 -68
  98. data/generated/google/apis/dataproc_v1/representations.rb +38 -0
  99. data/generated/google/apis/dataproc_v1/service.rb +78 -48
  100. data/generated/google/apis/datastore_v1.rb +38 -0
  101. data/generated/google/apis/datastore_v1/classes.rb +1284 -0
  102. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  103. data/generated/google/apis/datastore_v1/service.rb +259 -0
  104. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  105. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  106. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  107. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  108. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  109. data/generated/google/apis/deploymentmanager_v2/classes.rb +384 -2
  110. data/generated/google/apis/deploymentmanager_v2/representations.rb +161 -0
  111. data/generated/google/apis/deploymentmanager_v2/service.rb +217 -55
  112. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  113. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  114. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  115. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  116. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  117. data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
  118. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  119. data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
  120. data/generated/google/apis/dns_v1.rb +1 -1
  121. data/generated/google/apis/dns_v1/classes.rb +1 -1
  122. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  123. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
  124. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
  125. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
  126. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  127. data/generated/google/apis/drive_v2.rb +1 -1
  128. data/generated/google/apis/drive_v2/classes.rb +27 -3
  129. data/generated/google/apis/drive_v2/representations.rb +4 -0
  130. data/generated/google/apis/drive_v2/service.rb +16 -3
  131. data/generated/google/apis/drive_v3.rb +1 -1
  132. data/generated/google/apis/drive_v3/classes.rb +50 -16
  133. data/generated/google/apis/drive_v3/representations.rb +4 -0
  134. data/generated/google/apis/drive_v3/service.rb +12 -2
  135. data/generated/google/apis/fitness_v1.rb +8 -2
  136. data/generated/google/apis/fitness_v1/classes.rb +64 -6
  137. data/generated/google/apis/fitness_v1/representations.rb +20 -0
  138. data/generated/google/apis/fitness_v1/service.rb +17 -18
  139. data/generated/google/apis/fusiontables_v2.rb +1 -1
  140. data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
  141. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  142. data/generated/google/apis/games_management_v1management.rb +1 -1
  143. data/generated/google/apis/games_v1.rb +1 -1
  144. data/generated/google/apis/genomics_v1.rb +2 -4
  145. data/generated/google/apis/genomics_v1/classes.rb +143 -34
  146. data/generated/google/apis/genomics_v1/representations.rb +48 -11
  147. data/generated/google/apis/genomics_v1/service.rb +35 -37
  148. data/generated/google/apis/gmail_v1.rb +10 -1
  149. data/generated/google/apis/gmail_v1/classes.rb +542 -4
  150. data/generated/google/apis/gmail_v1/representations.rb +213 -0
  151. data/generated/google/apis/gmail_v1/service.rb +898 -1
  152. data/generated/google/apis/groupssettings_v1.rb +1 -1
  153. data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
  154. data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
  155. data/generated/google/apis/iam_v1.rb +2 -2
  156. data/generated/google/apis/iam_v1/classes.rb +181 -206
  157. data/generated/google/apis/iam_v1/representations.rb +36 -45
  158. data/generated/google/apis/iam_v1/service.rb +101 -67
  159. data/generated/google/apis/identitytoolkit_v3.rb +4 -1
  160. data/generated/google/apis/identitytoolkit_v3/classes.rb +171 -1
  161. data/generated/google/apis/identitytoolkit_v3/representations.rb +26 -0
  162. data/generated/google/apis/language_v1beta1.rb +36 -0
  163. data/generated/google/apis/language_v1beta1/classes.rb +599 -0
  164. data/generated/google/apis/language_v1beta1/representations.rb +289 -0
  165. data/generated/google/apis/language_v1beta1/service.rb +152 -0
  166. data/generated/google/apis/logging_v2beta1.rb +6 -6
  167. data/generated/google/apis/logging_v2beta1/classes.rb +760 -731
  168. data/generated/google/apis/logging_v2beta1/representations.rb +136 -147
  169. data/generated/google/apis/logging_v2beta1/service.rb +290 -209
  170. data/generated/google/apis/mirror_v1.rb +2 -2
  171. data/generated/google/apis/mirror_v1/service.rb +1 -1
  172. data/generated/google/apis/monitoring_v3.rb +45 -0
  173. data/generated/google/apis/monitoring_v3/classes.rb +1337 -0
  174. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  175. data/generated/google/apis/monitoring_v3/service.rb +711 -0
  176. data/generated/google/apis/oauth2_v2.rb +1 -1
  177. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  178. data/generated/google/apis/plus_domains_v1.rb +1 -1
  179. data/generated/google/apis/plus_v1.rb +1 -1
  180. data/generated/google/apis/pubsub_v1.rb +1 -1
  181. data/generated/google/apis/pubsub_v1/classes.rb +10 -9
  182. data/generated/google/apis/pubsub_v1/service.rb +128 -27
  183. data/generated/google/apis/qpx_express_v1.rb +1 -1
  184. data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
  185. data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
  186. data/generated/google/apis/replicapool_v1beta2.rb +1 -1
  187. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
  188. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
  189. data/generated/google/apis/script_v1.rb +1 -1
  190. data/generated/google/apis/script_v1/classes.rb +6 -0
  191. data/generated/google/apis/script_v1/representations.rb +1 -0
  192. data/generated/google/apis/sheets_v4.rb +1 -1
  193. data/generated/google/apis/sheets_v4/classes.rb +910 -89
  194. data/generated/google/apis/sheets_v4/representations.rb +194 -10
  195. data/generated/google/apis/sheets_v4/service.rb +216 -49
  196. data/generated/google/apis/slides_v1.rb +49 -0
  197. data/generated/google/apis/slides_v1/classes.rb +3926 -0
  198. data/generated/google/apis/slides_v1/representations.rb +1722 -0
  199. data/generated/google/apis/slides_v1/service.rb +202 -0
  200. data/generated/google/apis/speech_v1beta1.rb +34 -0
  201. data/generated/google/apis/speech_v1beta1/classes.rb +511 -0
  202. data/generated/google/apis/speech_v1beta1/representations.rb +218 -0
  203. data/generated/google/apis/speech_v1beta1/service.rb +271 -0
  204. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  205. data/generated/google/apis/sqladmin_v1beta4/classes.rb +32 -8
  206. data/generated/google/apis/sqladmin_v1beta4/representations.rb +3 -0
  207. data/generated/google/apis/sqladmin_v1beta4/service.rb +42 -0
  208. data/generated/google/apis/storage_v1.rb +1 -1
  209. data/generated/google/apis/storage_v1/classes.rb +43 -18
  210. data/generated/google/apis/storage_v1/representations.rb +4 -1
  211. data/generated/google/apis/storage_v1/service.rb +5 -2
  212. data/generated/google/apis/translate_v2.rb +2 -2
  213. data/generated/google/apis/translate_v2/service.rb +1 -1
  214. data/generated/google/apis/vision_v1.rb +1 -1
  215. data/generated/google/apis/vision_v1/classes.rb +12 -11
  216. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  217. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  218. data/generated/google/apis/youtube_partner_v1/classes.rb +6 -0
  219. data/generated/google/apis/youtube_partner_v1/representations.rb +2 -0
  220. data/generated/google/apis/youtube_partner_v1/service.rb +15 -3
  221. data/generated/google/apis/youtube_v3.rb +1 -1
  222. data/generated/google/apis/youtube_v3/classes.rb +183 -21
  223. data/generated/google/apis/youtube_v3/representations.rb +85 -4
  224. data/generated/google/apis/youtube_v3/service.rb +41 -5
  225. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  226. data/google-api-client.gemspec +2 -1
  227. data/lib/google/apis/core/api_command.rb +4 -0
  228. data/lib/google/apis/core/base_service.rb +10 -4
  229. data/lib/google/apis/core/download.rb +7 -2
  230. data/lib/google/apis/core/http_command.rb +5 -1
  231. data/lib/google/apis/core/upload.rb +7 -1
  232. data/lib/google/apis/errors.rb +2 -2
  233. data/lib/google/apis/generator/annotator.rb +6 -0
  234. data/lib/google/apis/version.rb +1 -1
  235. data/samples/cli/lib/samples/bigquery.rb +101 -0
  236. data/samples/cli/lib/samples/sheets.rb +61 -0
  237. data/sync.rb +71 -0
  238. metadata +55 -13
@@ -25,7 +25,10 @@ module Google
25
25
  # @see https://developers.google.com/identity-toolkit/v3/
26
26
  module IdentitytoolkitV3
27
27
  VERSION = 'V3'
28
- REVISION = '20160510'
28
+ REVISION = '20161024'
29
+
30
+ # View and administer all your Firebase data and settings
31
+ AUTH_FIREBASE = 'https://www.googleapis.com/auth/firebase'
29
32
  end
30
33
  end
31
34
  end
@@ -284,6 +284,12 @@ module Google
284
284
  # @return [String]
285
285
  attr_accessor :app_id
286
286
 
287
+ # Explicitly specify the auth flow type. Currently only support "CODE_FLOW" type.
288
+ # The field is only used for Google provider.
289
+ # Corresponds to the JSON property `authFlowType`
290
+ # @return [String]
291
+ attr_accessor :auth_flow_type
292
+
287
293
  # The relying party OAuth client ID.
288
294
  # Corresponds to the JSON property `clientId`
289
295
  # @return [String]
@@ -300,6 +306,19 @@ module Google
300
306
  # @return [String]
301
307
  attr_accessor :continue_uri
302
308
 
309
+ # The query parameter that client can customize by themselves in auth url. The
310
+ # following parameters are reserved for server so that they cannot be customized
311
+ # by clients: client_id, response_type, scope, redirect_uri, state, oauth_token.
312
+ # Corresponds to the JSON property `customParameter`
313
+ # @return [Hash<String,String>]
314
+ attr_accessor :custom_parameter
315
+
316
+ # The hosted domain to restrict sign-in to accounts at that domain for Google
317
+ # Apps hosted accounts.
318
+ # Corresponds to the JSON property `hostedDomain`
319
+ # @return [String]
320
+ attr_accessor :hosted_domain
321
+
303
322
  # The email or federated ID of the user.
304
323
  # Corresponds to the JSON property `identifier`
305
324
  # @return [String]
@@ -333,6 +352,11 @@ module Google
333
352
  # @return [String]
334
353
  attr_accessor :provider_id
335
354
 
355
+ # The session_id passed by client.
356
+ # Corresponds to the JSON property `sessionId`
357
+ # @return [String]
358
+ attr_accessor :session_id
359
+
336
360
  def initialize(**args)
337
361
  update!(**args)
338
362
  end
@@ -340,15 +364,19 @@ module Google
340
364
  # Update properties of this object
341
365
  def update!(**args)
342
366
  @app_id = args[:app_id] if args.key?(:app_id)
367
+ @auth_flow_type = args[:auth_flow_type] if args.key?(:auth_flow_type)
343
368
  @client_id = args[:client_id] if args.key?(:client_id)
344
369
  @context = args[:context] if args.key?(:context)
345
370
  @continue_uri = args[:continue_uri] if args.key?(:continue_uri)
371
+ @custom_parameter = args[:custom_parameter] if args.key?(:custom_parameter)
372
+ @hosted_domain = args[:hosted_domain] if args.key?(:hosted_domain)
346
373
  @identifier = args[:identifier] if args.key?(:identifier)
347
374
  @oauth_consumer_key = args[:oauth_consumer_key] if args.key?(:oauth_consumer_key)
348
375
  @oauth_scope = args[:oauth_scope] if args.key?(:oauth_scope)
349
376
  @openid_realm = args[:openid_realm] if args.key?(:openid_realm)
350
377
  @ota_app = args[:ota_app] if args.key?(:ota_app)
351
378
  @provider_id = args[:provider_id] if args.key?(:provider_id)
379
+ @session_id = args[:session_id] if args.key?(:session_id)
352
380
  end
353
381
  end
354
382
 
@@ -479,6 +507,11 @@ module Google
479
507
  # @return [Google::Apis::IdentitytoolkitV3::EmailTemplate]
480
508
  attr_accessor :change_email_template
481
509
 
510
+ #
511
+ # Corresponds to the JSON property `dynamicLinksDomain`
512
+ # @return [String]
513
+ attr_accessor :dynamic_links_domain
514
+
482
515
  # Whether anonymous user is enabled.
483
516
  # Corresponds to the JSON property `enableAnonymousUser`
484
517
  # @return [Boolean]
@@ -526,6 +559,7 @@ module Google
526
559
  @api_key = args[:api_key] if args.key?(:api_key)
527
560
  @authorized_domains = args[:authorized_domains] if args.key?(:authorized_domains)
528
561
  @change_email_template = args[:change_email_template] if args.key?(:change_email_template)
562
+ @dynamic_links_domain = args[:dynamic_links_domain] if args.key?(:dynamic_links_domain)
529
563
  @enable_anonymous_user = args[:enable_anonymous_user] if args.key?(:enable_anonymous_user)
530
564
  @idp_config = args[:idp_config] if args.key?(:idp_config)
531
565
  @legacy_reset_password_template = args[:legacy_reset_password_template] if args.key?(:legacy_reset_password_template)
@@ -587,6 +621,11 @@ module Google
587
621
  # @return [String]
588
622
  attr_accessor :captcha_response
589
623
 
624
+ # The timestamp when the account is created.
625
+ # Corresponds to the JSON property `createdAt`
626
+ # @return [String]
627
+ attr_accessor :created_at
628
+
590
629
  # GCP project number of the requesting delegated app. Currently only intended
591
630
  # for Firebase V1 migration.
592
631
  # Corresponds to the JSON property `delegatedProjectNumber`
@@ -635,6 +674,11 @@ module Google
635
674
  # @return [String]
636
675
  attr_accessor :instance_id
637
676
 
677
+ # Last login timestamp.
678
+ # Corresponds to the JSON property `lastLoginAt`
679
+ # @return [String]
680
+ attr_accessor :last_login_at
681
+
638
682
  # The local ID of the user.
639
683
  # Corresponds to the JSON property `localId`
640
684
  # @return [String]
@@ -685,6 +729,7 @@ module Google
685
729
  def update!(**args)
686
730
  @captcha_challenge = args[:captcha_challenge] if args.key?(:captcha_challenge)
687
731
  @captcha_response = args[:captcha_response] if args.key?(:captcha_response)
732
+ @created_at = args[:created_at] if args.key?(:created_at)
688
733
  @delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number)
689
734
  @delete_attribute = args[:delete_attribute] if args.key?(:delete_attribute)
690
735
  @delete_provider = args[:delete_provider] if args.key?(:delete_provider)
@@ -694,6 +739,7 @@ module Google
694
739
  @email_verified = args[:email_verified] if args.key?(:email_verified)
695
740
  @id_token = args[:id_token] if args.key?(:id_token)
696
741
  @instance_id = args[:instance_id] if args.key?(:instance_id)
742
+ @last_login_at = args[:last_login_at] if args.key?(:last_login_at)
697
743
  @local_id = args[:local_id] if args.key?(:local_id)
698
744
  @oob_code = args[:oob_code] if args.key?(:oob_code)
699
745
  @password = args[:password] if args.key?(:password)
@@ -865,6 +911,12 @@ module Google
865
911
  # @return [String]
866
912
  attr_accessor :captcha_response
867
913
 
914
+ # Whether to disable the user. Only can be used by service account.
915
+ # Corresponds to the JSON property `disabled`
916
+ # @return [Boolean]
917
+ attr_accessor :disabled
918
+ alias_method :disabled?, :disabled
919
+
868
920
  # The name of the user.
869
921
  # Corresponds to the JSON property `displayName`
870
922
  # @return [String]
@@ -875,6 +927,12 @@ module Google
875
927
  # @return [String]
876
928
  attr_accessor :email
877
929
 
930
+ # Mark the email as verified or not. Only can be used by service account.
931
+ # Corresponds to the JSON property `emailVerified`
932
+ # @return [Boolean]
933
+ attr_accessor :email_verified
934
+ alias_method :email_verified?, :email_verified
935
+
878
936
  # The GITKit token of the authenticated user.
879
937
  # Corresponds to the JSON property `idToken`
880
938
  # @return [String]
@@ -890,6 +948,11 @@ module Google
890
948
  # @return [String]
891
949
  attr_accessor :password
892
950
 
951
+ # The photo url of the user.
952
+ # Corresponds to the JSON property `photoUrl`
953
+ # @return [String]
954
+ attr_accessor :photo_url
955
+
893
956
  def initialize(**args)
894
957
  update!(**args)
895
958
  end
@@ -898,11 +961,14 @@ module Google
898
961
  def update!(**args)
899
962
  @captcha_challenge = args[:captcha_challenge] if args.key?(:captcha_challenge)
900
963
  @captcha_response = args[:captcha_response] if args.key?(:captcha_response)
964
+ @disabled = args[:disabled] if args.key?(:disabled)
901
965
  @display_name = args[:display_name] if args.key?(:display_name)
902
966
  @email = args[:email] if args.key?(:email)
967
+ @email_verified = args[:email_verified] if args.key?(:email_verified)
903
968
  @id_token = args[:id_token] if args.key?(:id_token)
904
969
  @instance_id = args[:instance_id] if args.key?(:instance_id)
905
970
  @password = args[:password] if args.key?(:password)
971
+ @photo_url = args[:photo_url] if args.key?(:photo_url)
906
972
  end
907
973
  end
908
974
 
@@ -910,6 +976,12 @@ module Google
910
976
  class UploadAccountRequest
911
977
  include Google::Apis::Core::Hashable
912
978
 
979
+ # Whether allow overwrite existing account when user local_id exists.
980
+ # Corresponds to the JSON property `allowOverwrite`
981
+ # @return [Boolean]
982
+ attr_accessor :allow_overwrite
983
+ alias_method :allow_overwrite?, :allow_overwrite
984
+
913
985
  # GCP project number of the requesting delegated app. Currently only intended
914
986
  # for Firebase V1 migration.
915
987
  # Corresponds to the JSON property `delegatedProjectNumber`
@@ -936,11 +1008,24 @@ module Google
936
1008
  # @return [String]
937
1009
  attr_accessor :salt_separator
938
1010
 
1011
+ # If true, backend will do sanity check(including duplicate email and federated
1012
+ # id) when uploading account.
1013
+ # Corresponds to the JSON property `sanityCheck`
1014
+ # @return [Boolean]
1015
+ attr_accessor :sanity_check
1016
+ alias_method :sanity_check?, :sanity_check
1017
+
939
1018
  # The key for to hash the password.
940
1019
  # Corresponds to the JSON property `signerKey`
941
1020
  # @return [String]
942
1021
  attr_accessor :signer_key
943
1022
 
1023
+ # Specify which project (field value is actually project id) to operate. Only
1024
+ # used when provided credential.
1025
+ # Corresponds to the JSON property `targetProjectId`
1026
+ # @return [String]
1027
+ attr_accessor :target_project_id
1028
+
944
1029
  # The account info to be stored.
945
1030
  # Corresponds to the JSON property `users`
946
1031
  # @return [Array<Google::Apis::IdentitytoolkitV3::UserInfo>]
@@ -952,12 +1037,15 @@ module Google
952
1037
 
953
1038
  # Update properties of this object
954
1039
  def update!(**args)
1040
+ @allow_overwrite = args[:allow_overwrite] if args.key?(:allow_overwrite)
955
1041
  @delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number)
956
1042
  @hash_algorithm = args[:hash_algorithm] if args.key?(:hash_algorithm)
957
1043
  @memory_cost = args[:memory_cost] if args.key?(:memory_cost)
958
1044
  @rounds = args[:rounds] if args.key?(:rounds)
959
1045
  @salt_separator = args[:salt_separator] if args.key?(:salt_separator)
1046
+ @sanity_check = args[:sanity_check] if args.key?(:sanity_check)
960
1047
  @signer_key = args[:signer_key] if args.key?(:signer_key)
1048
+ @target_project_id = args[:target_project_id] if args.key?(:target_project_id)
961
1049
  @users = args[:users] if args.key?(:users)
962
1050
  end
963
1051
  end
@@ -998,6 +1086,13 @@ module Google
998
1086
  # @return [String]
999
1087
  attr_accessor :request_uri
1000
1088
 
1089
+ # Whether return 200 and IDP credential rather than throw exception when
1090
+ # federated id is already linked.
1091
+ # Corresponds to the JSON property `returnIdpCredential`
1092
+ # @return [Boolean]
1093
+ attr_accessor :return_idp_credential
1094
+ alias_method :return_idp_credential?, :return_idp_credential
1095
+
1001
1096
  # Whether to return refresh tokens.
1002
1097
  # Corresponds to the JSON property `returnRefreshToken`
1003
1098
  # @return [Boolean]
@@ -1027,6 +1122,7 @@ module Google
1027
1122
  @pending_id_token = args[:pending_id_token] if args.key?(:pending_id_token)
1028
1123
  @post_body = args[:post_body] if args.key?(:post_body)
1029
1124
  @request_uri = args[:request_uri] if args.key?(:request_uri)
1125
+ @return_idp_credential = args[:return_idp_credential] if args.key?(:return_idp_credential)
1030
1126
  @return_refresh_token = args[:return_refresh_token] if args.key?(:return_refresh_token)
1031
1127
  @return_secure_token = args[:return_secure_token] if args.key?(:return_secure_token)
1032
1128
  @session_id = args[:session_id] if args.key?(:session_id)
@@ -1171,6 +1267,11 @@ module Google
1171
1267
  # @return [String]
1172
1268
  attr_accessor :secret
1173
1269
 
1270
+ # Whitelisted client IDs for audience check.
1271
+ # Corresponds to the JSON property `whitelistedAudiences`
1272
+ # @return [Array<String>]
1273
+ attr_accessor :whitelisted_audiences
1274
+
1174
1275
  def initialize(**args)
1175
1276
  update!(**args)
1176
1277
  end
@@ -1182,6 +1283,7 @@ module Google
1182
1283
  @experiment_percent = args[:experiment_percent] if args.key?(:experiment_percent)
1183
1284
  @provider = args[:provider] if args.key?(:provider)
1184
1285
  @secret = args[:secret] if args.key?(:secret)
1286
+ @whitelisted_audiences = args[:whitelisted_audiences] if args.key?(:whitelisted_audiences)
1185
1287
  end
1186
1288
  end
1187
1289
 
@@ -1251,7 +1353,8 @@ module Google
1251
1353
  class ResetPasswordResponse
1252
1354
  include Google::Apis::Core::Hashable
1253
1355
 
1254
- # The user's email.
1356
+ # The user's email. If the out-of-band code is for email recovery, the user's
1357
+ # original email.
1255
1358
  # Corresponds to the JSON property `email`
1256
1359
  # @return [String]
1257
1360
  attr_accessor :email
@@ -1261,6 +1364,16 @@ module Google
1261
1364
  # @return [String]
1262
1365
  attr_accessor :kind
1263
1366
 
1367
+ # If the out-of-band code is for email recovery, the user's new email.
1368
+ # Corresponds to the JSON property `newEmail`
1369
+ # @return [String]
1370
+ attr_accessor :new_email
1371
+
1372
+ # The request type.
1373
+ # Corresponds to the JSON property `requestType`
1374
+ # @return [String]
1375
+ attr_accessor :request_type
1376
+
1264
1377
  def initialize(**args)
1265
1378
  update!(**args)
1266
1379
  end
@@ -1269,6 +1382,8 @@ module Google
1269
1382
  def update!(**args)
1270
1383
  @email = args[:email] if args.key?(:email)
1271
1384
  @kind = args[:kind] if args.key?(:kind)
1385
+ @new_email = args[:new_email] if args.key?(:new_email)
1386
+ @request_type = args[:request_type] if args.key?(:request_type)
1272
1387
  end
1273
1388
  end
1274
1389
 
@@ -1501,6 +1616,17 @@ module Google
1501
1616
  class UserInfo
1502
1617
  include Google::Apis::Core::Hashable
1503
1618
 
1619
+ # User creation timestamp.
1620
+ # Corresponds to the JSON property `createdAt`
1621
+ # @return [String]
1622
+ attr_accessor :created_at
1623
+
1624
+ # Whether the user is authenticated by the developer.
1625
+ # Corresponds to the JSON property `customAuth`
1626
+ # @return [Boolean]
1627
+ attr_accessor :custom_auth
1628
+ alias_method :custom_auth?, :custom_auth
1629
+
1504
1630
  # Whether the user is disabled.
1505
1631
  # Corresponds to the JSON property `disabled`
1506
1632
  # @return [Boolean]
@@ -1523,6 +1649,11 @@ module Google
1523
1649
  attr_accessor :email_verified
1524
1650
  alias_method :email_verified?, :email_verified
1525
1651
 
1652
+ # last login timestamp.
1653
+ # Corresponds to the JSON property `lastLoginAt`
1654
+ # @return [String]
1655
+ attr_accessor :last_login_at
1656
+
1526
1657
  # The local ID of the user.
1527
1658
  # Corresponds to the JSON property `localId`
1528
1659
  # @return [String]
@@ -1548,11 +1679,21 @@ module Google
1548
1679
  # @return [Array<Google::Apis::IdentitytoolkitV3::UserInfo::ProviderUserInfo>]
1549
1680
  attr_accessor :provider_user_info
1550
1681
 
1682
+ # The user's plain text password.
1683
+ # Corresponds to the JSON property `rawPassword`
1684
+ # @return [String]
1685
+ attr_accessor :raw_password
1686
+
1551
1687
  # The user's password salt.
1552
1688
  # Corresponds to the JSON property `salt`
1553
1689
  # @return [String]
1554
1690
  attr_accessor :salt
1555
1691
 
1692
+ # User's screen name at Twitter or login name at Github.
1693
+ # Corresponds to the JSON property `screenName`
1694
+ # @return [String]
1695
+ attr_accessor :screen_name
1696
+
1556
1697
  # Timestamp in seconds for valid login token.
1557
1698
  # Corresponds to the JSON property `validSince`
1558
1699
  # @return [String]
@@ -1569,16 +1710,21 @@ module Google
1569
1710
 
1570
1711
  # Update properties of this object
1571
1712
  def update!(**args)
1713
+ @created_at = args[:created_at] if args.key?(:created_at)
1714
+ @custom_auth = args[:custom_auth] if args.key?(:custom_auth)
1572
1715
  @disabled = args[:disabled] if args.key?(:disabled)
1573
1716
  @display_name = args[:display_name] if args.key?(:display_name)
1574
1717
  @email = args[:email] if args.key?(:email)
1575
1718
  @email_verified = args[:email_verified] if args.key?(:email_verified)
1719
+ @last_login_at = args[:last_login_at] if args.key?(:last_login_at)
1576
1720
  @local_id = args[:local_id] if args.key?(:local_id)
1577
1721
  @password_hash = args[:password_hash] if args.key?(:password_hash)
1578
1722
  @password_updated_at = args[:password_updated_at] if args.key?(:password_updated_at)
1579
1723
  @photo_url = args[:photo_url] if args.key?(:photo_url)
1580
1724
  @provider_user_info = args[:provider_user_info] if args.key?(:provider_user_info)
1725
+ @raw_password = args[:raw_password] if args.key?(:raw_password)
1581
1726
  @salt = args[:salt] if args.key?(:salt)
1727
+ @screen_name = args[:screen_name] if args.key?(:screen_name)
1582
1728
  @valid_since = args[:valid_since] if args.key?(:valid_since)
1583
1729
  @version = args[:version] if args.key?(:version)
1584
1730
  end
@@ -1618,6 +1764,11 @@ module Google
1618
1764
  # @return [String]
1619
1765
  attr_accessor :raw_id
1620
1766
 
1767
+ # User's screen name at Twitter or login name at Github.
1768
+ # Corresponds to the JSON property `screenName`
1769
+ # @return [String]
1770
+ attr_accessor :screen_name
1771
+
1621
1772
  def initialize(**args)
1622
1773
  update!(**args)
1623
1774
  end
@@ -1630,6 +1781,7 @@ module Google
1630
1781
  @photo_url = args[:photo_url] if args.key?(:photo_url)
1631
1782
  @provider_id = args[:provider_id] if args.key?(:provider_id)
1632
1783
  @raw_id = args[:raw_id] if args.key?(:raw_id)
1784
+ @screen_name = args[:screen_name] if args.key?(:screen_name)
1633
1785
  end
1634
1786
  end
1635
1787
  end
@@ -1688,6 +1840,11 @@ module Google
1688
1840
  attr_accessor :email_verified
1689
1841
  alias_method :email_verified?, :email_verified
1690
1842
 
1843
+ # Client error code.
1844
+ # Corresponds to the JSON property `errorMessage`
1845
+ # @return [String]
1846
+ attr_accessor :error_message
1847
+
1691
1848
  # If idToken is STS id token, then this field will be expiration time of STS id
1692
1849
  # token in seconds.
1693
1850
  # Corresponds to the JSON property `expiresIn`
@@ -1815,11 +1972,21 @@ module Google
1815
1972
  # @return [String]
1816
1973
  attr_accessor :provider_id
1817
1974
 
1975
+ # Raw IDP-returned user info.
1976
+ # Corresponds to the JSON property `rawUserInfo`
1977
+ # @return [String]
1978
+ attr_accessor :raw_user_info
1979
+
1818
1980
  # If idToken is STS id token, then this field will be refresh token.
1819
1981
  # Corresponds to the JSON property `refreshToken`
1820
1982
  # @return [String]
1821
1983
  attr_accessor :refresh_token
1822
1984
 
1985
+ # The screen_name of a Twitter user or the login name at Github.
1986
+ # Corresponds to the JSON property `screenName`
1987
+ # @return [String]
1988
+ attr_accessor :screen_name
1989
+
1823
1990
  # The timezone of the user.
1824
1991
  # Corresponds to the JSON property `timeZone`
1825
1992
  # @return [String]
@@ -1845,6 +2012,7 @@ module Google
1845
2012
  @email = args[:email] if args.key?(:email)
1846
2013
  @email_recycled = args[:email_recycled] if args.key?(:email_recycled)
1847
2014
  @email_verified = args[:email_verified] if args.key?(:email_verified)
2015
+ @error_message = args[:error_message] if args.key?(:error_message)
1848
2016
  @expires_in = args[:expires_in] if args.key?(:expires_in)
1849
2017
  @federated_id = args[:federated_id] if args.key?(:federated_id)
1850
2018
  @first_name = args[:first_name] if args.key?(:first_name)
@@ -1868,7 +2036,9 @@ module Google
1868
2036
  @original_email = args[:original_email] if args.key?(:original_email)
1869
2037
  @photo_url = args[:photo_url] if args.key?(:photo_url)
1870
2038
  @provider_id = args[:provider_id] if args.key?(:provider_id)
2039
+ @raw_user_info = args[:raw_user_info] if args.key?(:raw_user_info)
1871
2040
  @refresh_token = args[:refresh_token] if args.key?(:refresh_token)
2041
+ @screen_name = args[:screen_name] if args.key?(:screen_name)
1872
2042
  @time_zone = args[:time_zone] if args.key?(:time_zone)
1873
2043
  @verified_provider = args[:verified_provider] if args.key?(:verified_provider)
1874
2044
  end