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