google-api-client 0.8.7 → 0.9.pre1
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 +21 -0
- data/.yardopts +12 -0
- data/CHANGELOG.md +6 -3
- data/CONTRIBUTING.md +31 -0
- data/Gemfile +28 -2
- data/MIGRATING.md +171 -0
- data/README.md +158 -150
- data/Rakefile +1 -40
- data/api_names.yaml +872 -0
- data/api_names_out.yaml +20843 -0
- data/bin/generate-api +93 -0
- data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1124 -0
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +375 -0
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +893 -0
- data/generated/google/apis/adexchangeseller_v2_0.rb +38 -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 +682 -0
- data/generated/google/apis/admin_directory_v1.rb +89 -0
- data/generated/google/apis/admin_directory_v1/classes.rb +2389 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +780 -0
- data/generated/google/apis/admin_directory_v1/service.rb +2805 -0
- data/generated/google/apis/admin_reports_v1.rb +38 -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 +341 -0
- data/generated/google/apis/adsense_v1_4.rb +38 -0
- data/generated/google/apis/adsense_v1_4/classes.rb +1279 -0
- data/generated/google/apis/adsense_v1_4/representations.rb +493 -0
- data/generated/google/apis/adsense_v1_4/service.rb +1752 -0
- data/generated/google/apis/adsensehost_v4_1.rb +35 -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 +1190 -0
- data/generated/google/apis/analytics_v3.rb +49 -0
- data/generated/google/apis/analytics_v3/classes.rb +5113 -0
- data/generated/google/apis/analytics_v3/representations.rb +1661 -0
- data/generated/google/apis/analytics_v3/service.rb +3600 -0
- data/generated/google/apis/androidenterprise_v1.rb +34 -0
- data/generated/google/apis/androidenterprise_v1/classes.rb +1162 -0
- data/generated/google/apis/androidenterprise_v1/representations.rb +431 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +1979 -0
- data/generated/google/apis/androidpublisher_v2.rb +34 -0
- data/generated/google/apis/androidpublisher_v2/classes.rb +1374 -0
- data/generated/google/apis/androidpublisher_v2/representations.rb +630 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +2390 -0
- data/generated/google/apis/appsactivity_v1.rb +46 -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 +129 -0
- data/generated/google/apis/appstate_v1.rb +34 -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 +265 -0
- data/generated/google/apis/autoscaler_v1beta2.rb +38 -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 +488 -0
- data/generated/google/apis/bigquery_v2.rb +49 -0
- data/generated/google/apis/bigquery_v2/classes.rb +2255 -0
- data/generated/google/apis/bigquery_v2/representations.rb +754 -0
- data/generated/google/apis/bigquery_v2/service.rb +1003 -0
- data/generated/google/apis/blogger_v3.rb +37 -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 +1620 -0
- data/generated/google/apis/books_v1.rb +34 -0
- data/generated/google/apis/books_v1/classes.rb +3515 -0
- data/generated/google/apis/books_v1/representations.rb +1361 -0
- data/generated/google/apis/books_v1/service.rb +2170 -0
- data/generated/google/apis/calendar_v3.rb +37 -0
- data/generated/google/apis/calendar_v3/classes.rb +1702 -0
- data/generated/google/apis/calendar_v3/representations.rb +566 -0
- data/generated/google/apis/calendar_v3/service.rb +1943 -0
- data/generated/google/apis/civicinfo_v2.rb +31 -0
- data/generated/google/apis/civicinfo_v2/classes.rb +1057 -0
- data/generated/google/apis/civicinfo_v2/representations.rb +374 -0
- data/generated/google/apis/civicinfo_v2/service.rb +284 -0
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +34 -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 +458 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +139 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +65 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +301 -0
- data/generated/google/apis/compute_v1.rb +49 -0
- data/generated/google/apis/compute_v1/classes.rb +6391 -0
- data/generated/google/apis/compute_v1/representations.rb +2209 -0
- data/generated/google/apis/compute_v1/service.rb +6352 -0
- data/generated/google/apis/container_v1beta1.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/content_v2.rb +35 -0
- data/generated/google/apis/content_v2/classes.rb +3780 -0
- data/generated/google/apis/content_v2/representations.rb +1456 -0
- data/generated/google/apis/content_v2/service.rb +1706 -0
- data/generated/google/apis/coordinate_v1.rb +37 -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 +687 -0
- data/{lib/google/api_client/auth/compute_service_account.rb → generated/google/apis/customsearch_v1.rb} +13 -10
- 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 +208 -0
- data/generated/google/apis/datastore_v1beta2.rb +40 -0
- 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 +300 -0
- data/generated/google/apis/deploymentmanager_v2beta2.rb +41 -0
- data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +820 -0
- data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +303 -0
- data/generated/google/apis/deploymentmanager_v2beta2/service.rb +647 -0
- data/generated/google/apis/dfareporting_v2_1.rb +37 -0
- data/generated/google/apis/dfareporting_v2_1/classes.rb +10755 -0
- data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
- data/generated/google/apis/dfareporting_v2_1/service.rb +8775 -0
- data/generated/google/apis/discovery_v1.rb +32 -0
- data/generated/google/apis/discovery_v1/classes.rb +947 -0
- data/generated/google/apis/discovery_v1/representations.rb +355 -0
- data/generated/google/apis/discovery_v1/service.rb +144 -0
- data/generated/google/apis/dns_v1.rb +41 -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 +460 -0
- data/{spec/google/api_client/request_spec.rb → generated/google/apis/doubleclickbidmanager_v1.rb} +15 -13
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +709 -0
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +297 -0
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +349 -0
- data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +947 -0
- data/generated/google/apis/doubleclicksearch_v2/representations.rb +315 -0
- data/generated/google/apis/doubleclicksearch_v2/service.rb +490 -0
- data/generated/google/apis/drive_v2.rb +55 -0
- data/generated/google/apis/drive_v2/classes.rb +2519 -0
- data/generated/google/apis/drive_v2/representations.rb +781 -0
- data/generated/google/apis/drive_v2/service.rb +2685 -0
- data/generated/google/apis/fitness_v1.rb +49 -0
- data/generated/google/apis/fitness_v1/classes.rb +809 -0
- data/generated/google/apis/fitness_v1/representations.rb +295 -0
- data/generated/google/apis/fitness_v1/service.rb +684 -0
- data/generated/google/apis/fusiontables_v2.rb +37 -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 +1496 -0
- data/generated/google/apis/games_configuration_v1configuration.rb +34 -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 +578 -0
- data/generated/google/apis/games_v1.rb +40 -0
- data/generated/google/apis/games_v1/classes.rb +4578 -0
- data/generated/google/apis/games_v1/representations.rb +1570 -0
- data/generated/google/apis/games_v1/service.rb +2306 -0
- data/generated/google/apis/gan_v1beta1.rb +31 -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 +692 -0
- data/generated/google/apis/genomics_v1beta2.rb +46 -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 +2356 -0
- data/generated/google/apis/gmail_v1.rb +49 -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 +1502 -0
- data/generated/google/apis/groupsmigration_v1.rb +34 -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 +111 -0
- data/generated/google/apis/groupssettings_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/identitytoolkit_v3.rb +31 -0
- data/generated/google/apis/identitytoolkit_v3/classes.rb +1229 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +422 -0
- data/generated/google/apis/identitytoolkit_v3/service.rb +491 -0
- data/generated/google/apis/licensing_v1.rb +34 -0
- 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 +376 -0
- data/generated/google/apis/logging_v1beta3.rb +35 -0
- data/generated/google/apis/logging_v1beta3/classes.rb +505 -0
- data/generated/google/apis/logging_v1beta3/representations.rb +222 -0
- data/generated/google/apis/logging_v1beta3/service.rb +670 -0
- data/generated/google/apis/manager_v1beta2.rb +50 -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 +380 -0
- data/generated/google/apis/mapsengine_v1.rb +38 -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 +3465 -0
- data/generated/google/apis/mirror_v1.rb +37 -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 +1001 -0
- data/generated/google/apis/oauth2_v2.rb +43 -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 +203 -0
- data/generated/google/apis/pagespeedonline_v2.rb +32 -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 +120 -0
- data/generated/google/apis/plus_domains_v1.rb +61 -0
- data/generated/google/apis/plus_domains_v1/classes.rb +2402 -0
- data/generated/google/apis/plus_domains_v1/representations.rb +873 -0
- data/generated/google/apis/plus_domains_v1/service.rb +924 -0
- data/generated/google/apis/plus_v1.rb +43 -0
- data/generated/google/apis/plus_v1/classes.rb +2384 -0
- data/generated/google/apis/plus_v1/representations.rb +812 -0
- data/generated/google/apis/plus_v1/service.rb +616 -0
- data/generated/google/apis/prediction_v1_6.rb +44 -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 +388 -0
- data/generated/google/apis/pubsub_v1beta2.rb +37 -0
- data/generated/google/apis/pubsub_v1beta2/classes.rb +824 -0
- data/generated/google/apis/pubsub_v1beta2/representations.rb +366 -0
- data/generated/google/apis/pubsub_v1beta2/service.rb +778 -0
- data/generated/google/apis/qpx_express_v1.rb +31 -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 +101 -0
- data/generated/google/apis/replicapool_v1beta2.rb +41 -0
- data/generated/google/apis/replicapool_v1beta2/classes.rb +621 -0
- data/generated/google/apis/replicapool_v1beta2/representations.rb +235 -0
- data/generated/google/apis/replicapool_v1beta2/service.rb +620 -0
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +41 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +682 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +247 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +472 -0
- data/generated/google/apis/reseller_v1.rb +37 -0
- data/generated/google/apis/reseller_v1/classes.rb +502 -0
- data/generated/google/apis/reseller_v1/representations.rb +199 -0
- data/generated/google/apis/reseller_v1/service.rb +637 -0
- data/generated/google/apis/resourceviews_v1beta2.rb +47 -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 +574 -0
- data/generated/google/apis/site_verification_v1.rb +37 -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 +322 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +37 -0
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +1817 -0
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +688 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +1534 -0
- data/generated/google/apis/storage_v1.rb +43 -0
- data/generated/google/apis/storage_v1/classes.rb +1177 -0
- data/generated/google/apis/storage_v1/representations.rb +427 -0
- data/generated/google/apis/storage_v1/service.rb +1920 -0
- data/generated/google/apis/tagmanager_v1.rb +52 -0
- data/generated/google/apis/tagmanager_v1/classes.rb +1226 -0
- data/generated/google/apis/tagmanager_v1/representations.rb +461 -0
- data/generated/google/apis/tagmanager_v1/service.rb +1978 -0
- data/generated/google/apis/taskqueue_v1beta2.rb +37 -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 +416 -0
- data/generated/google/apis/tasks_v1.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 +657 -0
- data/generated/google/apis/translate_v2.rb +31 -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 +185 -0
- data/generated/google/apis/urlshortener_v1.rb +34 -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 +179 -0
- data/generated/google/apis/webmasters_v3.rb +37 -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 +587 -0
- data/generated/google/apis/youtube_analytics_v1.rb +46 -0
- data/generated/google/apis/youtube_analytics_v1/classes.rb +540 -0
- data/generated/google/apis/youtube_analytics_v1/representations.rb +242 -0
- data/generated/google/apis/youtube_analytics_v1/service.rb +567 -0
- data/generated/google/apis/youtube_v3.rb +49 -0
- data/generated/google/apis/youtube_v3/classes.rb +7225 -0
- data/generated/google/apis/youtube_v3/representations.rb +2529 -0
- data/generated/google/apis/youtube_v3/service.rb +4051 -0
- data/google-api-client.gemspec +27 -39
- data/lib/google/api_client/auth/storage.rb +3 -2
- data/lib/google/api_client/auth/storages/file_store.rb +1 -3
- data/lib/google/api_client/auth/storages/redis_store.rb +6 -2
- data/lib/google/apis.rb +48 -0
- data/lib/google/apis/core/api_command.rb +128 -0
- data/lib/google/apis/core/base_service.rb +314 -0
- data/lib/google/apis/core/batch.rb +222 -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_command.rb +275 -0
- data/lib/google/apis/core/json_representation.rb +122 -0
- data/lib/google/{api_client/version.rb → apis/core/logging.rb} +12 -8
- data/lib/google/apis/core/multipart.rb +173 -0
- data/lib/google/apis/core/upload.rb +275 -0
- data/lib/google/{api_client → apis}/errors.rb +32 -28
- data/lib/google/apis/generator.rb +70 -0
- data/lib/google/apis/generator/annotator.rb +271 -0
- data/lib/google/apis/generator/helpers.rb +74 -0
- data/lib/google/apis/generator/model.rb +130 -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 +90 -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/options.rb +79 -0
- data/lib/google/apis/version.rb +39 -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/calendar/calendar.rb +43 -0
- data/samples/drive/drive.rb +40 -0
- data/samples/pubsub/pubsub.rb +52 -0
- data/{lib/google/api_client/discovery.rb → samples/translate/translate.rb} +14 -5
- data/script/generate +79 -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/client_secrets.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/apis/core/api_command_spec.rb +170 -0
- data/spec/google/apis/core/batch_spec.rb +128 -0
- data/spec/google/apis/core/download_spec.rb +90 -0
- data/spec/google/apis/core/hashable_spec.rb +60 -0
- data/spec/google/apis/core/http_command_spec.rb +238 -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 +238 -0
- data/{lib/google/api_client/service_account.rb → spec/google/apis/generated_spec.rb} +14 -8
- 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/drive_spec.rb +35 -0
- data/spec/integration_tests/pubsub_spec.rb +48 -0
- data/spec/integration_tests/url_shortener_spec.rb +31 -0
- data/spec/spec_helper.rb +102 -46
- metadata +433 -178
- data/lib/compat/multi_json.rb +0 -19
- data/lib/google/api_client.rb +0 -750
- 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/key_utils.rb +0 -93
- 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.rb +0 -233
- 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/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,64 @@
|
|
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 GroupssettingsV1
|
24
|
+
|
25
|
+
class Groups
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
end
|
28
|
+
|
29
|
+
class Groups
|
30
|
+
# @private
|
31
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
32
|
+
property :allow_external_members, as: 'allowExternalMembers'
|
33
|
+
property :allow_google_communication, as: 'allowGoogleCommunication'
|
34
|
+
property :allow_web_posting, as: 'allowWebPosting'
|
35
|
+
property :archive_only, as: 'archiveOnly'
|
36
|
+
property :custom_reply_to, as: 'customReplyTo'
|
37
|
+
property :default_message_deny_notification_text, as: 'defaultMessageDenyNotificationText'
|
38
|
+
property :description, as: 'description'
|
39
|
+
property :email, as: 'email'
|
40
|
+
property :include_in_global_address_list, as: 'includeInGlobalAddressList'
|
41
|
+
property :is_archived, as: 'isArchived'
|
42
|
+
property :kind, as: 'kind'
|
43
|
+
property :max_message_bytes, as: 'maxMessageBytes'
|
44
|
+
property :members_can_post_as_the_group, as: 'membersCanPostAsTheGroup'
|
45
|
+
property :message_display_font, as: 'messageDisplayFont'
|
46
|
+
property :message_moderation_level, as: 'messageModerationLevel'
|
47
|
+
property :name, as: 'name'
|
48
|
+
property :primary_language, as: 'primaryLanguage'
|
49
|
+
property :reply_to, as: 'replyTo'
|
50
|
+
property :send_message_deny_notification, as: 'sendMessageDenyNotification'
|
51
|
+
property :show_in_group_directory, as: 'showInGroupDirectory'
|
52
|
+
property :spam_moderation_level, as: 'spamModerationLevel'
|
53
|
+
property :who_can_contact_owner, as: 'whoCanContactOwner'
|
54
|
+
property :who_can_invite, as: 'whoCanInvite'
|
55
|
+
property :who_can_join, as: 'whoCanJoin'
|
56
|
+
property :who_can_leave_group, as: 'whoCanLeaveGroup'
|
57
|
+
property :who_can_post_message, as: 'whoCanPostMessage'
|
58
|
+
property :who_can_view_group, as: 'whoCanViewGroup'
|
59
|
+
property :who_can_view_membership, as: 'whoCanViewMembership'
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
@@ -0,0 +1,179 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'google/apis/core/base_service'
|
16
|
+
require 'google/apis/core/json_representation'
|
17
|
+
require 'google/apis/core/hashable'
|
18
|
+
require 'google/apis/errors'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
module GroupssettingsV1
|
23
|
+
# Groups Settings API
|
24
|
+
#
|
25
|
+
# Lets you manage permission levels and related settings of a group.
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# require 'google/apis/groupssettings_v1'
|
29
|
+
#
|
30
|
+
# Groupssettings = Google::Apis::GroupssettingsV1 # Alias the module
|
31
|
+
# service = Groupssettings::GroupssettingsService.new
|
32
|
+
#
|
33
|
+
# @see https://developers.google.com/google-apps/groups-settings/get_started
|
34
|
+
class GroupssettingsService < Google::Apis::Core::BaseService
|
35
|
+
# @return [String]
|
36
|
+
# API key. Your API key identifies your project and provides you with API access,
|
37
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
38
|
+
attr_accessor :key
|
39
|
+
|
40
|
+
# @return [String]
|
41
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
43
|
+
# Overrides userIp if both are provided.
|
44
|
+
attr_accessor :quota_user
|
45
|
+
|
46
|
+
# @return [String]
|
47
|
+
# IP address of the site where the request originates. Use this if you want to
|
48
|
+
# enforce per-user limits.
|
49
|
+
attr_accessor :user_ip
|
50
|
+
|
51
|
+
def initialize
|
52
|
+
super('https://www.googleapis.com/', 'groups/v1/groups/')
|
53
|
+
end
|
54
|
+
|
55
|
+
# Gets one resource by id.
|
56
|
+
# @param [String] group_unique_id
|
57
|
+
# The resource ID
|
58
|
+
# @param [String] fields
|
59
|
+
# Selector specifying which fields to include in a partial response.
|
60
|
+
# @param [String] quota_user
|
61
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
62
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
63
|
+
# Overrides userIp if both are provided.
|
64
|
+
# @param [String] user_ip
|
65
|
+
# IP address of the site where the request originates. Use this if you want to
|
66
|
+
# enforce per-user limits.
|
67
|
+
# @param [Google::Apis::RequestOptions] options
|
68
|
+
# Request-specific options
|
69
|
+
#
|
70
|
+
# @yield [result, err] Result & error if block supplied
|
71
|
+
# @yieldparam result [Google::Apis::GroupssettingsV1::Groups] parsed result object
|
72
|
+
# @yieldparam err [StandardError] error object if request failed
|
73
|
+
#
|
74
|
+
# @return [Google::Apis::GroupssettingsV1::Groups]
|
75
|
+
#
|
76
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
77
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
78
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
79
|
+
def get_group(group_unique_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
80
|
+
path = '{groupUniqueId}'
|
81
|
+
command = make_simple_command(:get, path, options)
|
82
|
+
command.response_representation = Google::Apis::GroupssettingsV1::Groups::Representation
|
83
|
+
command.response_class = Google::Apis::GroupssettingsV1::Groups
|
84
|
+
command.params['groupUniqueId'] = group_unique_id unless group_unique_id.nil?
|
85
|
+
command.query['fields'] = fields unless fields.nil?
|
86
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
87
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
88
|
+
execute_or_queue_command(command, &block)
|
89
|
+
end
|
90
|
+
|
91
|
+
# Updates an existing resource. This method supports patch semantics.
|
92
|
+
# @param [String] group_unique_id
|
93
|
+
# The resource ID
|
94
|
+
# @param [Google::Apis::GroupssettingsV1::Groups] groups_object
|
95
|
+
# @param [String] fields
|
96
|
+
# Selector specifying which fields to include in a partial response.
|
97
|
+
# @param [String] quota_user
|
98
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
99
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
100
|
+
# Overrides userIp if both are provided.
|
101
|
+
# @param [String] user_ip
|
102
|
+
# IP address of the site where the request originates. Use this if you want to
|
103
|
+
# enforce per-user limits.
|
104
|
+
# @param [Google::Apis::RequestOptions] options
|
105
|
+
# Request-specific options
|
106
|
+
#
|
107
|
+
# @yield [result, err] Result & error if block supplied
|
108
|
+
# @yieldparam result [Google::Apis::GroupssettingsV1::Groups] parsed result object
|
109
|
+
# @yieldparam err [StandardError] error object if request failed
|
110
|
+
#
|
111
|
+
# @return [Google::Apis::GroupssettingsV1::Groups]
|
112
|
+
#
|
113
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
114
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
115
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
116
|
+
def patch_group(group_unique_id, groups_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
117
|
+
path = '{groupUniqueId}'
|
118
|
+
command = make_simple_command(:patch, path, options)
|
119
|
+
command.request_representation = Google::Apis::GroupssettingsV1::Groups::Representation
|
120
|
+
command.request_object = groups_object
|
121
|
+
command.response_representation = Google::Apis::GroupssettingsV1::Groups::Representation
|
122
|
+
command.response_class = Google::Apis::GroupssettingsV1::Groups
|
123
|
+
command.params['groupUniqueId'] = group_unique_id unless group_unique_id.nil?
|
124
|
+
command.query['fields'] = fields unless fields.nil?
|
125
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
126
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
127
|
+
execute_or_queue_command(command, &block)
|
128
|
+
end
|
129
|
+
|
130
|
+
# Updates an existing resource.
|
131
|
+
# @param [String] group_unique_id
|
132
|
+
# The resource ID
|
133
|
+
# @param [Google::Apis::GroupssettingsV1::Groups] groups_object
|
134
|
+
# @param [String] fields
|
135
|
+
# Selector specifying which fields to include in a partial response.
|
136
|
+
# @param [String] quota_user
|
137
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
138
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
139
|
+
# Overrides userIp if both are provided.
|
140
|
+
# @param [String] user_ip
|
141
|
+
# IP address of the site where the request originates. Use this if you want to
|
142
|
+
# enforce per-user limits.
|
143
|
+
# @param [Google::Apis::RequestOptions] options
|
144
|
+
# Request-specific options
|
145
|
+
#
|
146
|
+
# @yield [result, err] Result & error if block supplied
|
147
|
+
# @yieldparam result [Google::Apis::GroupssettingsV1::Groups] parsed result object
|
148
|
+
# @yieldparam err [StandardError] error object if request failed
|
149
|
+
#
|
150
|
+
# @return [Google::Apis::GroupssettingsV1::Groups]
|
151
|
+
#
|
152
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
153
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
154
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
155
|
+
def update_group(group_unique_id, groups_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
156
|
+
path = '{groupUniqueId}'
|
157
|
+
command = make_simple_command(:put, path, options)
|
158
|
+
command.request_representation = Google::Apis::GroupssettingsV1::Groups::Representation
|
159
|
+
command.request_object = groups_object
|
160
|
+
command.response_representation = Google::Apis::GroupssettingsV1::Groups::Representation
|
161
|
+
command.response_class = Google::Apis::GroupssettingsV1::Groups
|
162
|
+
command.params['groupUniqueId'] = group_unique_id unless group_unique_id.nil?
|
163
|
+
command.query['fields'] = fields unless fields.nil?
|
164
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
165
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
166
|
+
execute_or_queue_command(command, &block)
|
167
|
+
end
|
168
|
+
|
169
|
+
protected
|
170
|
+
|
171
|
+
def apply_command_defaults(command)
|
172
|
+
command.query['key'] = key unless key.nil?
|
173
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
174
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
175
|
+
end
|
176
|
+
end
|
177
|
+
end
|
178
|
+
end
|
179
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'google/apis/identitytoolkit_v3/service.rb'
|
16
|
+
require 'google/apis/identitytoolkit_v3/classes.rb'
|
17
|
+
require 'google/apis/identitytoolkit_v3/representations.rb'
|
18
|
+
|
19
|
+
module Google
|
20
|
+
module Apis
|
21
|
+
# Google Identity Toolkit API
|
22
|
+
#
|
23
|
+
# Help the third party sites to implement federated login.
|
24
|
+
#
|
25
|
+
# @see https://developers.google.com/identity-toolkit/v3/
|
26
|
+
module IdentitytoolkitV3
|
27
|
+
VERSION = 'V3'
|
28
|
+
REVISION = '20150513'
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,1229 @@
|
|
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
|
+
def initialize(**args)
|
63
|
+
update!(**args)
|
64
|
+
end
|
65
|
+
|
66
|
+
# Update properties of this object
|
67
|
+
def update!(**args)
|
68
|
+
@auth_uri = args[:auth_uri] unless args[:auth_uri].nil?
|
69
|
+
@captcha_required = args[:captcha_required] unless args[:captcha_required].nil?
|
70
|
+
@for_existing_provider = args[:for_existing_provider] unless args[:for_existing_provider].nil?
|
71
|
+
@kind = args[:kind] unless args[:kind].nil?
|
72
|
+
@provider_id = args[:provider_id] unless args[:provider_id].nil?
|
73
|
+
@registered = args[:registered] unless args[:registered].nil?
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
# Respone of deleting account.
|
78
|
+
class DeleteAccountResponse
|
79
|
+
include Google::Apis::Core::Hashable
|
80
|
+
|
81
|
+
# The fixed string "identitytoolkit#DeleteAccountResponse".
|
82
|
+
# Corresponds to the JSON property `kind`
|
83
|
+
# @return [String]
|
84
|
+
attr_accessor :kind
|
85
|
+
|
86
|
+
def initialize(**args)
|
87
|
+
update!(**args)
|
88
|
+
end
|
89
|
+
|
90
|
+
# Update properties of this object
|
91
|
+
def update!(**args)
|
92
|
+
@kind = args[:kind] unless args[:kind].nil?
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
# Respone of downloading accounts in batch.
|
97
|
+
class DownloadAccountResponse
|
98
|
+
include Google::Apis::Core::Hashable
|
99
|
+
|
100
|
+
# The fixed string "identitytoolkit#DownloadAccountResponse".
|
101
|
+
# Corresponds to the JSON property `kind`
|
102
|
+
# @return [String]
|
103
|
+
attr_accessor :kind
|
104
|
+
|
105
|
+
# The next page token. To be used in a subsequent request to return the next
|
106
|
+
# page of results.
|
107
|
+
# Corresponds to the JSON property `nextPageToken`
|
108
|
+
# @return [String]
|
109
|
+
attr_accessor :next_page_token
|
110
|
+
|
111
|
+
# The user accounts data.
|
112
|
+
# Corresponds to the JSON property `users`
|
113
|
+
# @return [Array<Google::Apis::IdentitytoolkitV3::UserInfo>]
|
114
|
+
attr_accessor :users
|
115
|
+
|
116
|
+
def initialize(**args)
|
117
|
+
update!(**args)
|
118
|
+
end
|
119
|
+
|
120
|
+
# Update properties of this object
|
121
|
+
def update!(**args)
|
122
|
+
@kind = args[:kind] unless args[:kind].nil?
|
123
|
+
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
124
|
+
@users = args[:users] unless args[:users].nil?
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
128
|
+
# Response of getting account information.
|
129
|
+
class GetAccountInfoResponse
|
130
|
+
include Google::Apis::Core::Hashable
|
131
|
+
|
132
|
+
# The fixed string "identitytoolkit#GetAccountInfoResponse".
|
133
|
+
# Corresponds to the JSON property `kind`
|
134
|
+
# @return [String]
|
135
|
+
attr_accessor :kind
|
136
|
+
|
137
|
+
# The info of the users.
|
138
|
+
# Corresponds to the JSON property `users`
|
139
|
+
# @return [Array<Google::Apis::IdentitytoolkitV3::UserInfo>]
|
140
|
+
attr_accessor :users
|
141
|
+
|
142
|
+
def initialize(**args)
|
143
|
+
update!(**args)
|
144
|
+
end
|
145
|
+
|
146
|
+
# Update properties of this object
|
147
|
+
def update!(**args)
|
148
|
+
@kind = args[:kind] unless args[:kind].nil?
|
149
|
+
@users = args[:users] unless args[:users].nil?
|
150
|
+
end
|
151
|
+
end
|
152
|
+
|
153
|
+
# Response of getting a code for user confirmation (reset password, change email
|
154
|
+
# etc.).
|
155
|
+
class GetOobConfirmationCodeResponse
|
156
|
+
include Google::Apis::Core::Hashable
|
157
|
+
|
158
|
+
# The fixed string "identitytoolkit#GetOobConfirmationCodeResponse".
|
159
|
+
# Corresponds to the JSON property `kind`
|
160
|
+
# @return [String]
|
161
|
+
attr_accessor :kind
|
162
|
+
|
163
|
+
# The code to be send to the user.
|
164
|
+
# Corresponds to the JSON property `oobCode`
|
165
|
+
# @return [String]
|
166
|
+
attr_accessor :oob_code
|
167
|
+
|
168
|
+
def initialize(**args)
|
169
|
+
update!(**args)
|
170
|
+
end
|
171
|
+
|
172
|
+
# Update properties of this object
|
173
|
+
def update!(**args)
|
174
|
+
@kind = args[:kind] unless args[:kind].nil?
|
175
|
+
@oob_code = args[:oob_code] unless args[:oob_code].nil?
|
176
|
+
end
|
177
|
+
end
|
178
|
+
|
179
|
+
# Response of getting recaptcha param.
|
180
|
+
class GetRecaptchaParamResponse
|
181
|
+
include Google::Apis::Core::Hashable
|
182
|
+
|
183
|
+
# The fixed string "identitytoolkit#GetRecaptchaParamResponse".
|
184
|
+
# Corresponds to the JSON property `kind`
|
185
|
+
# @return [String]
|
186
|
+
attr_accessor :kind
|
187
|
+
|
188
|
+
# Site key registered at recaptcha.
|
189
|
+
# Corresponds to the JSON property `recaptchaSiteKey`
|
190
|
+
# @return [String]
|
191
|
+
attr_accessor :recaptcha_site_key
|
192
|
+
|
193
|
+
# The stoken field for the recaptcha widget, used to request captcha challenge.
|
194
|
+
# Corresponds to the JSON property `recaptchaStoken`
|
195
|
+
# @return [String]
|
196
|
+
attr_accessor :recaptcha_stoken
|
197
|
+
|
198
|
+
def initialize(**args)
|
199
|
+
update!(**args)
|
200
|
+
end
|
201
|
+
|
202
|
+
# Update properties of this object
|
203
|
+
def update!(**args)
|
204
|
+
@kind = args[:kind] unless args[:kind].nil?
|
205
|
+
@recaptcha_site_key = args[:recaptcha_site_key] unless args[:recaptcha_site_key].nil?
|
206
|
+
@recaptcha_stoken = args[:recaptcha_stoken] unless args[:recaptcha_stoken].nil?
|
207
|
+
end
|
208
|
+
end
|
209
|
+
|
210
|
+
# Request to get the IDP authentication URL.
|
211
|
+
class CreateAuthUriRequest
|
212
|
+
include Google::Apis::Core::Hashable
|
213
|
+
|
214
|
+
# The app ID of the mobile app, base64(CERT_SHA1):PACKAGE_NAME for Android,
|
215
|
+
# BUNDLE_ID for iOS.
|
216
|
+
# Corresponds to the JSON property `appId`
|
217
|
+
# @return [String]
|
218
|
+
attr_accessor :app_id
|
219
|
+
|
220
|
+
# The relying party OAuth client ID.
|
221
|
+
# Corresponds to the JSON property `clientId`
|
222
|
+
# @return [String]
|
223
|
+
attr_accessor :client_id
|
224
|
+
|
225
|
+
# The opaque value used by the client to maintain context info between the
|
226
|
+
# authentication request and the IDP callback.
|
227
|
+
# Corresponds to the JSON property `context`
|
228
|
+
# @return [String]
|
229
|
+
attr_accessor :context
|
230
|
+
|
231
|
+
# The URI to which the IDP redirects the user after the federated login flow.
|
232
|
+
# Corresponds to the JSON property `continueUri`
|
233
|
+
# @return [String]
|
234
|
+
attr_accessor :continue_uri
|
235
|
+
|
236
|
+
# The email or federated ID of the user.
|
237
|
+
# Corresponds to the JSON property `identifier`
|
238
|
+
# @return [String]
|
239
|
+
attr_accessor :identifier
|
240
|
+
|
241
|
+
# The developer's consumer key for OpenId OAuth Extension
|
242
|
+
# Corresponds to the JSON property `oauthConsumerKey`
|
243
|
+
# @return [String]
|
244
|
+
attr_accessor :oauth_consumer_key
|
245
|
+
|
246
|
+
# Additional oauth scopes, beyond the basid user profile, that the user would be
|
247
|
+
# prompted to grant
|
248
|
+
# Corresponds to the JSON property `oauthScope`
|
249
|
+
# @return [String]
|
250
|
+
attr_accessor :oauth_scope
|
251
|
+
|
252
|
+
# Optional realm for OpenID protocol. The sub string "scheme://domain:port" of
|
253
|
+
# the param "continueUri" is used if this is not set.
|
254
|
+
# Corresponds to the JSON property `openidRealm`
|
255
|
+
# @return [String]
|
256
|
+
attr_accessor :openid_realm
|
257
|
+
|
258
|
+
# The native app package for OTA installation.
|
259
|
+
# Corresponds to the JSON property `otaApp`
|
260
|
+
# @return [String]
|
261
|
+
attr_accessor :ota_app
|
262
|
+
|
263
|
+
# The IdP ID. For white listed IdPs it's a short domain name e.g. google.com,
|
264
|
+
# aol.com, live.net and yahoo.com. For other OpenID IdPs it's the OP identifier.
|
265
|
+
# Corresponds to the JSON property `providerId`
|
266
|
+
# @return [String]
|
267
|
+
attr_accessor :provider_id
|
268
|
+
|
269
|
+
def initialize(**args)
|
270
|
+
update!(**args)
|
271
|
+
end
|
272
|
+
|
273
|
+
# Update properties of this object
|
274
|
+
def update!(**args)
|
275
|
+
@app_id = args[:app_id] unless args[:app_id].nil?
|
276
|
+
@client_id = args[:client_id] unless args[:client_id].nil?
|
277
|
+
@context = args[:context] unless args[:context].nil?
|
278
|
+
@continue_uri = args[:continue_uri] unless args[:continue_uri].nil?
|
279
|
+
@identifier = args[:identifier] unless args[:identifier].nil?
|
280
|
+
@oauth_consumer_key = args[:oauth_consumer_key] unless args[:oauth_consumer_key].nil?
|
281
|
+
@oauth_scope = args[:oauth_scope] unless args[:oauth_scope].nil?
|
282
|
+
@openid_realm = args[:openid_realm] unless args[:openid_realm].nil?
|
283
|
+
@ota_app = args[:ota_app] unless args[:ota_app].nil?
|
284
|
+
@provider_id = args[:provider_id] unless args[:provider_id].nil?
|
285
|
+
end
|
286
|
+
end
|
287
|
+
|
288
|
+
# Request to delete account.
|
289
|
+
class DeleteAccountRequest
|
290
|
+
include Google::Apis::Core::Hashable
|
291
|
+
|
292
|
+
# The local ID of the user.
|
293
|
+
# Corresponds to the JSON property `localId`
|
294
|
+
# @return [String]
|
295
|
+
attr_accessor :local_id
|
296
|
+
|
297
|
+
def initialize(**args)
|
298
|
+
update!(**args)
|
299
|
+
end
|
300
|
+
|
301
|
+
# Update properties of this object
|
302
|
+
def update!(**args)
|
303
|
+
@local_id = args[:local_id] unless args[:local_id].nil?
|
304
|
+
end
|
305
|
+
end
|
306
|
+
|
307
|
+
# Request to download user account in batch.
|
308
|
+
class DownloadAccountRequest
|
309
|
+
include Google::Apis::Core::Hashable
|
310
|
+
|
311
|
+
# The max number of results to return in the response.
|
312
|
+
# Corresponds to the JSON property `maxResults`
|
313
|
+
# @return [Fixnum]
|
314
|
+
attr_accessor :max_results
|
315
|
+
|
316
|
+
# The token for the next page. This should be taken from the previous response.
|
317
|
+
# Corresponds to the JSON property `nextPageToken`
|
318
|
+
# @return [String]
|
319
|
+
attr_accessor :next_page_token
|
320
|
+
|
321
|
+
def initialize(**args)
|
322
|
+
update!(**args)
|
323
|
+
end
|
324
|
+
|
325
|
+
# Update properties of this object
|
326
|
+
def update!(**args)
|
327
|
+
@max_results = args[:max_results] unless args[:max_results].nil?
|
328
|
+
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
329
|
+
end
|
330
|
+
end
|
331
|
+
|
332
|
+
# Request to get the account information.
|
333
|
+
class GetAccountInfoRequest
|
334
|
+
include Google::Apis::Core::Hashable
|
335
|
+
|
336
|
+
# The list of emails of the users to inquiry.
|
337
|
+
# Corresponds to the JSON property `email`
|
338
|
+
# @return [Array<String>]
|
339
|
+
attr_accessor :email
|
340
|
+
|
341
|
+
# The GITKit token of the authenticated user.
|
342
|
+
# Corresponds to the JSON property `idToken`
|
343
|
+
# @return [String]
|
344
|
+
attr_accessor :id_token
|
345
|
+
|
346
|
+
# The list of local ID's of the users to inquiry.
|
347
|
+
# Corresponds to the JSON property `localId`
|
348
|
+
# @return [Array<String>]
|
349
|
+
attr_accessor :local_id
|
350
|
+
|
351
|
+
def initialize(**args)
|
352
|
+
update!(**args)
|
353
|
+
end
|
354
|
+
|
355
|
+
# Update properties of this object
|
356
|
+
def update!(**args)
|
357
|
+
@email = args[:email] unless args[:email].nil?
|
358
|
+
@id_token = args[:id_token] unless args[:id_token].nil?
|
359
|
+
@local_id = args[:local_id] unless args[:local_id].nil?
|
360
|
+
end
|
361
|
+
end
|
362
|
+
|
363
|
+
# Request to reset the password.
|
364
|
+
class ResetPasswordRequest
|
365
|
+
include Google::Apis::Core::Hashable
|
366
|
+
|
367
|
+
# The email address of the user.
|
368
|
+
# Corresponds to the JSON property `email`
|
369
|
+
# @return [String]
|
370
|
+
attr_accessor :email
|
371
|
+
|
372
|
+
# The new password inputted by the user.
|
373
|
+
# Corresponds to the JSON property `newPassword`
|
374
|
+
# @return [String]
|
375
|
+
attr_accessor :new_password
|
376
|
+
|
377
|
+
# The old password inputted by the user.
|
378
|
+
# Corresponds to the JSON property `oldPassword`
|
379
|
+
# @return [String]
|
380
|
+
attr_accessor :old_password
|
381
|
+
|
382
|
+
# The confirmation code.
|
383
|
+
# Corresponds to the JSON property `oobCode`
|
384
|
+
# @return [String]
|
385
|
+
attr_accessor :oob_code
|
386
|
+
|
387
|
+
def initialize(**args)
|
388
|
+
update!(**args)
|
389
|
+
end
|
390
|
+
|
391
|
+
# Update properties of this object
|
392
|
+
def update!(**args)
|
393
|
+
@email = args[:email] unless args[:email].nil?
|
394
|
+
@new_password = args[:new_password] unless args[:new_password].nil?
|
395
|
+
@old_password = args[:old_password] unless args[:old_password].nil?
|
396
|
+
@oob_code = args[:oob_code] unless args[:oob_code].nil?
|
397
|
+
end
|
398
|
+
end
|
399
|
+
|
400
|
+
# Request to set the account information.
|
401
|
+
class SetAccountInfoRequest
|
402
|
+
include Google::Apis::Core::Hashable
|
403
|
+
|
404
|
+
# The captcha challenge.
|
405
|
+
# Corresponds to the JSON property `captchaChallenge`
|
406
|
+
# @return [String]
|
407
|
+
attr_accessor :captcha_challenge
|
408
|
+
|
409
|
+
# Response to the captcha.
|
410
|
+
# Corresponds to the JSON property `captchaResponse`
|
411
|
+
# @return [String]
|
412
|
+
attr_accessor :captcha_response
|
413
|
+
|
414
|
+
# Whether to disable the user.
|
415
|
+
# Corresponds to the JSON property `disableUser`
|
416
|
+
# @return [Boolean]
|
417
|
+
attr_accessor :disable_user
|
418
|
+
alias_method :disable_user?, :disable_user
|
419
|
+
|
420
|
+
# The name of the user.
|
421
|
+
# Corresponds to the JSON property `displayName`
|
422
|
+
# @return [String]
|
423
|
+
attr_accessor :display_name
|
424
|
+
|
425
|
+
# The email of the user.
|
426
|
+
# Corresponds to the JSON property `email`
|
427
|
+
# @return [String]
|
428
|
+
attr_accessor :email
|
429
|
+
|
430
|
+
# Mark the email as verified or not.
|
431
|
+
# Corresponds to the JSON property `emailVerified`
|
432
|
+
# @return [Boolean]
|
433
|
+
attr_accessor :email_verified
|
434
|
+
alias_method :email_verified?, :email_verified
|
435
|
+
|
436
|
+
# The GITKit token of the authenticated user.
|
437
|
+
# Corresponds to the JSON property `idToken`
|
438
|
+
# @return [String]
|
439
|
+
attr_accessor :id_token
|
440
|
+
|
441
|
+
# The local ID of the user.
|
442
|
+
# Corresponds to the JSON property `localId`
|
443
|
+
# @return [String]
|
444
|
+
attr_accessor :local_id
|
445
|
+
|
446
|
+
# The out-of-band code of the change email request.
|
447
|
+
# Corresponds to the JSON property `oobCode`
|
448
|
+
# @return [String]
|
449
|
+
attr_accessor :oob_code
|
450
|
+
|
451
|
+
# The new password of the user.
|
452
|
+
# Corresponds to the JSON property `password`
|
453
|
+
# @return [String]
|
454
|
+
attr_accessor :password
|
455
|
+
|
456
|
+
# The associated IDPs of the user.
|
457
|
+
# Corresponds to the JSON property `provider`
|
458
|
+
# @return [Array<String>]
|
459
|
+
attr_accessor :provider
|
460
|
+
|
461
|
+
# Mark the user to upgrade to federated login.
|
462
|
+
# Corresponds to the JSON property `upgradeToFederatedLogin`
|
463
|
+
# @return [Boolean]
|
464
|
+
attr_accessor :upgrade_to_federated_login
|
465
|
+
alias_method :upgrade_to_federated_login?, :upgrade_to_federated_login
|
466
|
+
|
467
|
+
# Timestamp in seconds for valid login token.
|
468
|
+
# Corresponds to the JSON property `validSince`
|
469
|
+
# @return [String]
|
470
|
+
attr_accessor :valid_since
|
471
|
+
|
472
|
+
def initialize(**args)
|
473
|
+
update!(**args)
|
474
|
+
end
|
475
|
+
|
476
|
+
# Update properties of this object
|
477
|
+
def update!(**args)
|
478
|
+
@captcha_challenge = args[:captcha_challenge] unless args[:captcha_challenge].nil?
|
479
|
+
@captcha_response = args[:captcha_response] unless args[:captcha_response].nil?
|
480
|
+
@disable_user = args[:disable_user] unless args[:disable_user].nil?
|
481
|
+
@display_name = args[:display_name] unless args[:display_name].nil?
|
482
|
+
@email = args[:email] unless args[:email].nil?
|
483
|
+
@email_verified = args[:email_verified] unless args[:email_verified].nil?
|
484
|
+
@id_token = args[:id_token] unless args[:id_token].nil?
|
485
|
+
@local_id = args[:local_id] unless args[:local_id].nil?
|
486
|
+
@oob_code = args[:oob_code] unless args[:oob_code].nil?
|
487
|
+
@password = args[:password] unless args[:password].nil?
|
488
|
+
@provider = args[:provider] unless args[:provider].nil?
|
489
|
+
@upgrade_to_federated_login = args[:upgrade_to_federated_login] unless args[:upgrade_to_federated_login].nil?
|
490
|
+
@valid_since = args[:valid_since] unless args[:valid_since].nil?
|
491
|
+
end
|
492
|
+
end
|
493
|
+
|
494
|
+
# Request to upload user account in batch.
|
495
|
+
class UploadAccountRequest
|
496
|
+
include Google::Apis::Core::Hashable
|
497
|
+
|
498
|
+
# The password hash algorithm.
|
499
|
+
# Corresponds to the JSON property `hashAlgorithm`
|
500
|
+
# @return [String]
|
501
|
+
attr_accessor :hash_algorithm
|
502
|
+
|
503
|
+
# Memory cost for hash calculation. Used by scrypt similar algorithms.
|
504
|
+
# Corresponds to the JSON property `memoryCost`
|
505
|
+
# @return [Fixnum]
|
506
|
+
attr_accessor :memory_cost
|
507
|
+
|
508
|
+
# Rounds for hash calculation. Used by scrypt and similar algorithms.
|
509
|
+
# Corresponds to the JSON property `rounds`
|
510
|
+
# @return [Fixnum]
|
511
|
+
attr_accessor :rounds
|
512
|
+
|
513
|
+
# The salt separator.
|
514
|
+
# Corresponds to the JSON property `saltSeparator`
|
515
|
+
# @return [String]
|
516
|
+
attr_accessor :salt_separator
|
517
|
+
|
518
|
+
# The key for to hash the password.
|
519
|
+
# Corresponds to the JSON property `signerKey`
|
520
|
+
# @return [String]
|
521
|
+
attr_accessor :signer_key
|
522
|
+
|
523
|
+
# The account info to be stored.
|
524
|
+
# Corresponds to the JSON property `users`
|
525
|
+
# @return [Array<Google::Apis::IdentitytoolkitV3::UserInfo>]
|
526
|
+
attr_accessor :users
|
527
|
+
|
528
|
+
def initialize(**args)
|
529
|
+
update!(**args)
|
530
|
+
end
|
531
|
+
|
532
|
+
# Update properties of this object
|
533
|
+
def update!(**args)
|
534
|
+
@hash_algorithm = args[:hash_algorithm] unless args[:hash_algorithm].nil?
|
535
|
+
@memory_cost = args[:memory_cost] unless args[:memory_cost].nil?
|
536
|
+
@rounds = args[:rounds] unless args[:rounds].nil?
|
537
|
+
@salt_separator = args[:salt_separator] unless args[:salt_separator].nil?
|
538
|
+
@signer_key = args[:signer_key] unless args[:signer_key].nil?
|
539
|
+
@users = args[:users] unless args[:users].nil?
|
540
|
+
end
|
541
|
+
end
|
542
|
+
|
543
|
+
# Request to verify the IDP assertion.
|
544
|
+
class VerifyAssertionRequest
|
545
|
+
include Google::Apis::Core::Hashable
|
546
|
+
|
547
|
+
# The GITKit token for the non-trusted IDP pending to be confirmed by the user.
|
548
|
+
# Corresponds to the JSON property `pendingIdToken`
|
549
|
+
# @return [String]
|
550
|
+
attr_accessor :pending_id_token
|
551
|
+
|
552
|
+
# The post body if the request is a HTTP POST.
|
553
|
+
# Corresponds to the JSON property `postBody`
|
554
|
+
# @return [String]
|
555
|
+
attr_accessor :post_body
|
556
|
+
|
557
|
+
# The URI to which the IDP redirects the user back. It may contain federated
|
558
|
+
# login result params added by the IDP.
|
559
|
+
# Corresponds to the JSON property `requestUri`
|
560
|
+
# @return [String]
|
561
|
+
attr_accessor :request_uri
|
562
|
+
|
563
|
+
# Whether to return refresh tokens.
|
564
|
+
# Corresponds to the JSON property `returnRefreshToken`
|
565
|
+
# @return [Boolean]
|
566
|
+
attr_accessor :return_refresh_token
|
567
|
+
alias_method :return_refresh_token?, :return_refresh_token
|
568
|
+
|
569
|
+
def initialize(**args)
|
570
|
+
update!(**args)
|
571
|
+
end
|
572
|
+
|
573
|
+
# Update properties of this object
|
574
|
+
def update!(**args)
|
575
|
+
@pending_id_token = args[:pending_id_token] unless args[:pending_id_token].nil?
|
576
|
+
@post_body = args[:post_body] unless args[:post_body].nil?
|
577
|
+
@request_uri = args[:request_uri] unless args[:request_uri].nil?
|
578
|
+
@return_refresh_token = args[:return_refresh_token] unless args[:return_refresh_token].nil?
|
579
|
+
end
|
580
|
+
end
|
581
|
+
|
582
|
+
# Request to verify the password.
|
583
|
+
class VerifyPasswordRequest
|
584
|
+
include Google::Apis::Core::Hashable
|
585
|
+
|
586
|
+
# The captcha challenge.
|
587
|
+
# Corresponds to the JSON property `captchaChallenge`
|
588
|
+
# @return [String]
|
589
|
+
attr_accessor :captcha_challenge
|
590
|
+
|
591
|
+
# Response to the captcha.
|
592
|
+
# Corresponds to the JSON property `captchaResponse`
|
593
|
+
# @return [String]
|
594
|
+
attr_accessor :captcha_response
|
595
|
+
|
596
|
+
# The email of the user.
|
597
|
+
# Corresponds to the JSON property `email`
|
598
|
+
# @return [String]
|
599
|
+
attr_accessor :email
|
600
|
+
|
601
|
+
# The password inputed by the user.
|
602
|
+
# Corresponds to the JSON property `password`
|
603
|
+
# @return [String]
|
604
|
+
attr_accessor :password
|
605
|
+
|
606
|
+
# The GITKit token for the non-trusted IDP, which is to be confirmed by the user.
|
607
|
+
# Corresponds to the JSON property `pendingIdToken`
|
608
|
+
# @return [String]
|
609
|
+
attr_accessor :pending_id_token
|
610
|
+
|
611
|
+
def initialize(**args)
|
612
|
+
update!(**args)
|
613
|
+
end
|
614
|
+
|
615
|
+
# Update properties of this object
|
616
|
+
def update!(**args)
|
617
|
+
@captcha_challenge = args[:captcha_challenge] unless args[:captcha_challenge].nil?
|
618
|
+
@captcha_response = args[:captcha_response] unless args[:captcha_response].nil?
|
619
|
+
@email = args[:email] unless args[:email].nil?
|
620
|
+
@password = args[:password] unless args[:password].nil?
|
621
|
+
@pending_id_token = args[:pending_id_token] unless args[:pending_id_token].nil?
|
622
|
+
end
|
623
|
+
end
|
624
|
+
|
625
|
+
# Request of getting a code for user confirmation (reset password, change email
|
626
|
+
# etc.)
|
627
|
+
class Relyingparty
|
628
|
+
include Google::Apis::Core::Hashable
|
629
|
+
|
630
|
+
# The recaptcha response from the user.
|
631
|
+
# Corresponds to the JSON property `captchaResp`
|
632
|
+
# @return [String]
|
633
|
+
attr_accessor :captcha_resp
|
634
|
+
|
635
|
+
# The recaptcha challenge presented to the user.
|
636
|
+
# Corresponds to the JSON property `challenge`
|
637
|
+
# @return [String]
|
638
|
+
attr_accessor :challenge
|
639
|
+
|
640
|
+
# The email of the user.
|
641
|
+
# Corresponds to the JSON property `email`
|
642
|
+
# @return [String]
|
643
|
+
attr_accessor :email
|
644
|
+
|
645
|
+
# The user's Gitkit login token for email change.
|
646
|
+
# Corresponds to the JSON property `idToken`
|
647
|
+
# @return [String]
|
648
|
+
attr_accessor :id_token
|
649
|
+
|
650
|
+
# The fixed string "identitytoolkit#relyingparty".
|
651
|
+
# Corresponds to the JSON property `kind`
|
652
|
+
# @return [String]
|
653
|
+
attr_accessor :kind
|
654
|
+
|
655
|
+
# The new email if the code is for email change.
|
656
|
+
# Corresponds to the JSON property `newEmail`
|
657
|
+
# @return [String]
|
658
|
+
attr_accessor :new_email
|
659
|
+
|
660
|
+
# The request type.
|
661
|
+
# Corresponds to the JSON property `requestType`
|
662
|
+
# @return [String]
|
663
|
+
attr_accessor :request_type
|
664
|
+
|
665
|
+
# The IP address of the user.
|
666
|
+
# Corresponds to the JSON property `userIp`
|
667
|
+
# @return [String]
|
668
|
+
attr_accessor :user_ip
|
669
|
+
|
670
|
+
def initialize(**args)
|
671
|
+
update!(**args)
|
672
|
+
end
|
673
|
+
|
674
|
+
# Update properties of this object
|
675
|
+
def update!(**args)
|
676
|
+
@captcha_resp = args[:captcha_resp] unless args[:captcha_resp].nil?
|
677
|
+
@challenge = args[:challenge] unless args[:challenge].nil?
|
678
|
+
@email = args[:email] unless args[:email].nil?
|
679
|
+
@id_token = args[:id_token] unless args[:id_token].nil?
|
680
|
+
@kind = args[:kind] unless args[:kind].nil?
|
681
|
+
@new_email = args[:new_email] unless args[:new_email].nil?
|
682
|
+
@request_type = args[:request_type] unless args[:request_type].nil?
|
683
|
+
@user_ip = args[:user_ip] unless args[:user_ip].nil?
|
684
|
+
end
|
685
|
+
end
|
686
|
+
|
687
|
+
# Response of resetting the password.
|
688
|
+
class ResetPasswordResponse
|
689
|
+
include Google::Apis::Core::Hashable
|
690
|
+
|
691
|
+
# The user's email.
|
692
|
+
# Corresponds to the JSON property `email`
|
693
|
+
# @return [String]
|
694
|
+
attr_accessor :email
|
695
|
+
|
696
|
+
# The fixed string "identitytoolkit#ResetPasswordResponse".
|
697
|
+
# Corresponds to the JSON property `kind`
|
698
|
+
# @return [String]
|
699
|
+
attr_accessor :kind
|
700
|
+
|
701
|
+
def initialize(**args)
|
702
|
+
update!(**args)
|
703
|
+
end
|
704
|
+
|
705
|
+
# Update properties of this object
|
706
|
+
def update!(**args)
|
707
|
+
@email = args[:email] unless args[:email].nil?
|
708
|
+
@kind = args[:kind] unless args[:kind].nil?
|
709
|
+
end
|
710
|
+
end
|
711
|
+
|
712
|
+
# Respone of setting the account information.
|
713
|
+
class SetAccountInfoResponse
|
714
|
+
include Google::Apis::Core::Hashable
|
715
|
+
|
716
|
+
# The name of the user.
|
717
|
+
# Corresponds to the JSON property `displayName`
|
718
|
+
# @return [String]
|
719
|
+
attr_accessor :display_name
|
720
|
+
|
721
|
+
# The email of the user.
|
722
|
+
# Corresponds to the JSON property `email`
|
723
|
+
# @return [String]
|
724
|
+
attr_accessor :email
|
725
|
+
|
726
|
+
# The Gitkit id token to login the newly sign up user.
|
727
|
+
# Corresponds to the JSON property `idToken`
|
728
|
+
# @return [String]
|
729
|
+
attr_accessor :id_token
|
730
|
+
|
731
|
+
# The fixed string "identitytoolkit#SetAccountInfoResponse".
|
732
|
+
# Corresponds to the JSON property `kind`
|
733
|
+
# @return [String]
|
734
|
+
attr_accessor :kind
|
735
|
+
|
736
|
+
# The user's profiles at the associated IdPs.
|
737
|
+
# Corresponds to the JSON property `providerUserInfo`
|
738
|
+
# @return [Array<Google::Apis::IdentitytoolkitV3::SetAccountInfoResponse::ProviderUserInfo>]
|
739
|
+
attr_accessor :provider_user_info
|
740
|
+
|
741
|
+
def initialize(**args)
|
742
|
+
update!(**args)
|
743
|
+
end
|
744
|
+
|
745
|
+
# Update properties of this object
|
746
|
+
def update!(**args)
|
747
|
+
@display_name = args[:display_name] unless args[:display_name].nil?
|
748
|
+
@email = args[:email] unless args[:email].nil?
|
749
|
+
@id_token = args[:id_token] unless args[:id_token].nil?
|
750
|
+
@kind = args[:kind] unless args[:kind].nil?
|
751
|
+
@provider_user_info = args[:provider_user_info] unless args[:provider_user_info].nil?
|
752
|
+
end
|
753
|
+
|
754
|
+
#
|
755
|
+
class ProviderUserInfo
|
756
|
+
include Google::Apis::Core::Hashable
|
757
|
+
|
758
|
+
# The user's display name at the IDP.
|
759
|
+
# Corresponds to the JSON property `displayName`
|
760
|
+
# @return [String]
|
761
|
+
attr_accessor :display_name
|
762
|
+
|
763
|
+
# The user's photo url at the IDP.
|
764
|
+
# Corresponds to the JSON property `photoUrl`
|
765
|
+
# @return [String]
|
766
|
+
attr_accessor :photo_url
|
767
|
+
|
768
|
+
# The IdP ID. For whitelisted IdPs it's a short domain name, e.g., google.com,
|
769
|
+
# aol.com, live.net and yahoo.com. For other OpenID IdPs it's the OP identifier.
|
770
|
+
# Corresponds to the JSON property `providerId`
|
771
|
+
# @return [String]
|
772
|
+
attr_accessor :provider_id
|
773
|
+
|
774
|
+
def initialize(**args)
|
775
|
+
update!(**args)
|
776
|
+
end
|
777
|
+
|
778
|
+
# Update properties of this object
|
779
|
+
def update!(**args)
|
780
|
+
@display_name = args[:display_name] unless args[:display_name].nil?
|
781
|
+
@photo_url = args[:photo_url] unless args[:photo_url].nil?
|
782
|
+
@provider_id = args[:provider_id] unless args[:provider_id].nil?
|
783
|
+
end
|
784
|
+
end
|
785
|
+
end
|
786
|
+
|
787
|
+
# Respone of uploading accounts in batch.
|
788
|
+
class UploadAccountResponse
|
789
|
+
include Google::Apis::Core::Hashable
|
790
|
+
|
791
|
+
# The error encountered while processing the account info.
|
792
|
+
# Corresponds to the JSON property `error`
|
793
|
+
# @return [Array<Google::Apis::IdentitytoolkitV3::UploadAccountResponse::Error>]
|
794
|
+
attr_accessor :error
|
795
|
+
|
796
|
+
# The fixed string "identitytoolkit#UploadAccountResponse".
|
797
|
+
# Corresponds to the JSON property `kind`
|
798
|
+
# @return [String]
|
799
|
+
attr_accessor :kind
|
800
|
+
|
801
|
+
def initialize(**args)
|
802
|
+
update!(**args)
|
803
|
+
end
|
804
|
+
|
805
|
+
# Update properties of this object
|
806
|
+
def update!(**args)
|
807
|
+
@error = args[:error] unless args[:error].nil?
|
808
|
+
@kind = args[:kind] unless args[:kind].nil?
|
809
|
+
end
|
810
|
+
|
811
|
+
#
|
812
|
+
class Error
|
813
|
+
include Google::Apis::Core::Hashable
|
814
|
+
|
815
|
+
# The index of the malformed account, starting from 0.
|
816
|
+
# Corresponds to the JSON property `index`
|
817
|
+
# @return [Fixnum]
|
818
|
+
attr_accessor :index
|
819
|
+
|
820
|
+
# Detailed error message for the account info.
|
821
|
+
# Corresponds to the JSON property `message`
|
822
|
+
# @return [String]
|
823
|
+
attr_accessor :message
|
824
|
+
|
825
|
+
def initialize(**args)
|
826
|
+
update!(**args)
|
827
|
+
end
|
828
|
+
|
829
|
+
# Update properties of this object
|
830
|
+
def update!(**args)
|
831
|
+
@index = args[:index] unless args[:index].nil?
|
832
|
+
@message = args[:message] unless args[:message].nil?
|
833
|
+
end
|
834
|
+
end
|
835
|
+
end
|
836
|
+
|
837
|
+
# Template for an individual account info.
|
838
|
+
class UserInfo
|
839
|
+
include Google::Apis::Core::Hashable
|
840
|
+
|
841
|
+
# Whether the user is disabled.
|
842
|
+
# Corresponds to the JSON property `disabled`
|
843
|
+
# @return [Boolean]
|
844
|
+
attr_accessor :disabled
|
845
|
+
alias_method :disabled?, :disabled
|
846
|
+
|
847
|
+
# The name of the user.
|
848
|
+
# Corresponds to the JSON property `displayName`
|
849
|
+
# @return [String]
|
850
|
+
attr_accessor :display_name
|
851
|
+
|
852
|
+
# The email of the user.
|
853
|
+
# Corresponds to the JSON property `email`
|
854
|
+
# @return [String]
|
855
|
+
attr_accessor :email
|
856
|
+
|
857
|
+
# Whether the email has been verified.
|
858
|
+
# Corresponds to the JSON property `emailVerified`
|
859
|
+
# @return [Boolean]
|
860
|
+
attr_accessor :email_verified
|
861
|
+
alias_method :email_verified?, :email_verified
|
862
|
+
|
863
|
+
# The local ID of the user.
|
864
|
+
# Corresponds to the JSON property `localId`
|
865
|
+
# @return [String]
|
866
|
+
attr_accessor :local_id
|
867
|
+
|
868
|
+
# The user's hashed password.
|
869
|
+
# Corresponds to the JSON property `passwordHash`
|
870
|
+
# @return [String]
|
871
|
+
attr_accessor :password_hash
|
872
|
+
|
873
|
+
# The timestamp when the password was last updated.
|
874
|
+
# Corresponds to the JSON property `passwordUpdatedAt`
|
875
|
+
# @return [Float]
|
876
|
+
attr_accessor :password_updated_at
|
877
|
+
|
878
|
+
# The URL of the user profile photo.
|
879
|
+
# Corresponds to the JSON property `photoUrl`
|
880
|
+
# @return [String]
|
881
|
+
attr_accessor :photo_url
|
882
|
+
|
883
|
+
# The IDP of the user.
|
884
|
+
# Corresponds to the JSON property `providerUserInfo`
|
885
|
+
# @return [Array<Google::Apis::IdentitytoolkitV3::UserInfo::ProviderUserInfo>]
|
886
|
+
attr_accessor :provider_user_info
|
887
|
+
|
888
|
+
# The user's password salt.
|
889
|
+
# Corresponds to the JSON property `salt`
|
890
|
+
# @return [String]
|
891
|
+
attr_accessor :salt
|
892
|
+
|
893
|
+
# Timestamp in seconds for valid login token.
|
894
|
+
# Corresponds to the JSON property `validSince`
|
895
|
+
# @return [String]
|
896
|
+
attr_accessor :valid_since
|
897
|
+
|
898
|
+
# Version of the user's password.
|
899
|
+
# Corresponds to the JSON property `version`
|
900
|
+
# @return [Fixnum]
|
901
|
+
attr_accessor :version
|
902
|
+
|
903
|
+
def initialize(**args)
|
904
|
+
update!(**args)
|
905
|
+
end
|
906
|
+
|
907
|
+
# Update properties of this object
|
908
|
+
def update!(**args)
|
909
|
+
@disabled = args[:disabled] unless args[:disabled].nil?
|
910
|
+
@display_name = args[:display_name] unless args[:display_name].nil?
|
911
|
+
@email = args[:email] unless args[:email].nil?
|
912
|
+
@email_verified = args[:email_verified] unless args[:email_verified].nil?
|
913
|
+
@local_id = args[:local_id] unless args[:local_id].nil?
|
914
|
+
@password_hash = args[:password_hash] unless args[:password_hash].nil?
|
915
|
+
@password_updated_at = args[:password_updated_at] unless args[:password_updated_at].nil?
|
916
|
+
@photo_url = args[:photo_url] unless args[:photo_url].nil?
|
917
|
+
@provider_user_info = args[:provider_user_info] unless args[:provider_user_info].nil?
|
918
|
+
@salt = args[:salt] unless args[:salt].nil?
|
919
|
+
@valid_since = args[:valid_since] unless args[:valid_since].nil?
|
920
|
+
@version = args[:version] unless args[:version].nil?
|
921
|
+
end
|
922
|
+
|
923
|
+
#
|
924
|
+
class ProviderUserInfo
|
925
|
+
include Google::Apis::Core::Hashable
|
926
|
+
|
927
|
+
# The user's display name at the IDP.
|
928
|
+
# Corresponds to the JSON property `displayName`
|
929
|
+
# @return [String]
|
930
|
+
attr_accessor :display_name
|
931
|
+
|
932
|
+
# User's identifier at IDP.
|
933
|
+
# Corresponds to the JSON property `federatedId`
|
934
|
+
# @return [String]
|
935
|
+
attr_accessor :federated_id
|
936
|
+
|
937
|
+
# The user's photo url at the IDP.
|
938
|
+
# Corresponds to the JSON property `photoUrl`
|
939
|
+
# @return [String]
|
940
|
+
attr_accessor :photo_url
|
941
|
+
|
942
|
+
# The IdP ID. For white listed IdPs it's a short domain name, e.g., google.com,
|
943
|
+
# aol.com, live.net and yahoo.com. For other OpenID IdPs it's the OP identifier.
|
944
|
+
# Corresponds to the JSON property `providerId`
|
945
|
+
# @return [String]
|
946
|
+
attr_accessor :provider_id
|
947
|
+
|
948
|
+
def initialize(**args)
|
949
|
+
update!(**args)
|
950
|
+
end
|
951
|
+
|
952
|
+
# Update properties of this object
|
953
|
+
def update!(**args)
|
954
|
+
@display_name = args[:display_name] unless args[:display_name].nil?
|
955
|
+
@federated_id = args[:federated_id] unless args[:federated_id].nil?
|
956
|
+
@photo_url = args[:photo_url] unless args[:photo_url].nil?
|
957
|
+
@provider_id = args[:provider_id] unless args[:provider_id].nil?
|
958
|
+
end
|
959
|
+
end
|
960
|
+
end
|
961
|
+
|
962
|
+
# Response of verifying the IDP assertion.
|
963
|
+
class VerifyAssertionResponse
|
964
|
+
include Google::Apis::Core::Hashable
|
965
|
+
|
966
|
+
# The action code.
|
967
|
+
# Corresponds to the JSON property `action`
|
968
|
+
# @return [String]
|
969
|
+
attr_accessor :action
|
970
|
+
|
971
|
+
# URL for OTA app installation.
|
972
|
+
# Corresponds to the JSON property `appInstallationUrl`
|
973
|
+
# @return [String]
|
974
|
+
attr_accessor :app_installation_url
|
975
|
+
|
976
|
+
# The custom scheme used by mobile app.
|
977
|
+
# Corresponds to the JSON property `appScheme`
|
978
|
+
# @return [String]
|
979
|
+
attr_accessor :app_scheme
|
980
|
+
|
981
|
+
# The opaque value used by the client to maintain context info between the
|
982
|
+
# authentication request and the IDP callback.
|
983
|
+
# Corresponds to the JSON property `context`
|
984
|
+
# @return [String]
|
985
|
+
attr_accessor :context
|
986
|
+
|
987
|
+
# The birth date of the IdP account.
|
988
|
+
# Corresponds to the JSON property `dateOfBirth`
|
989
|
+
# @return [String]
|
990
|
+
attr_accessor :date_of_birth
|
991
|
+
|
992
|
+
# The display name of the user.
|
993
|
+
# Corresponds to the JSON property `displayName`
|
994
|
+
# @return [String]
|
995
|
+
attr_accessor :display_name
|
996
|
+
|
997
|
+
# The email returned by the IdP. NOTE: The federated login user may not own the
|
998
|
+
# email.
|
999
|
+
# Corresponds to the JSON property `email`
|
1000
|
+
# @return [String]
|
1001
|
+
attr_accessor :email
|
1002
|
+
|
1003
|
+
# It's true if the email is recycled.
|
1004
|
+
# Corresponds to the JSON property `emailRecycled`
|
1005
|
+
# @return [Boolean]
|
1006
|
+
attr_accessor :email_recycled
|
1007
|
+
alias_method :email_recycled?, :email_recycled
|
1008
|
+
|
1009
|
+
# The value is true if the IDP is also the email provider. It means the user
|
1010
|
+
# owns the email.
|
1011
|
+
# Corresponds to the JSON property `emailVerified`
|
1012
|
+
# @return [Boolean]
|
1013
|
+
attr_accessor :email_verified
|
1014
|
+
alias_method :email_verified?, :email_verified
|
1015
|
+
|
1016
|
+
# The unique ID identifies the IdP account.
|
1017
|
+
# Corresponds to the JSON property `federatedId`
|
1018
|
+
# @return [String]
|
1019
|
+
attr_accessor :federated_id
|
1020
|
+
|
1021
|
+
# The first name of the user.
|
1022
|
+
# Corresponds to the JSON property `firstName`
|
1023
|
+
# @return [String]
|
1024
|
+
attr_accessor :first_name
|
1025
|
+
|
1026
|
+
# The full name of the user.
|
1027
|
+
# Corresponds to the JSON property `fullName`
|
1028
|
+
# @return [String]
|
1029
|
+
attr_accessor :full_name
|
1030
|
+
|
1031
|
+
# The ID token.
|
1032
|
+
# Corresponds to the JSON property `idToken`
|
1033
|
+
# @return [String]
|
1034
|
+
attr_accessor :id_token
|
1035
|
+
|
1036
|
+
# It's the identifier param in the createAuthUri request if the identifier is an
|
1037
|
+
# email. It can be used to check whether the user input email is different from
|
1038
|
+
# the asserted email.
|
1039
|
+
# Corresponds to the JSON property `inputEmail`
|
1040
|
+
# @return [String]
|
1041
|
+
attr_accessor :input_email
|
1042
|
+
|
1043
|
+
# The fixed string "identitytoolkit#VerifyAssertionResponse".
|
1044
|
+
# Corresponds to the JSON property `kind`
|
1045
|
+
# @return [String]
|
1046
|
+
attr_accessor :kind
|
1047
|
+
|
1048
|
+
# The language preference of the user.
|
1049
|
+
# Corresponds to the JSON property `language`
|
1050
|
+
# @return [String]
|
1051
|
+
attr_accessor :language
|
1052
|
+
|
1053
|
+
# The last name of the user.
|
1054
|
+
# Corresponds to the JSON property `lastName`
|
1055
|
+
# @return [String]
|
1056
|
+
attr_accessor :last_name
|
1057
|
+
|
1058
|
+
# The RP local ID if it's already been mapped to the IdP account identified by
|
1059
|
+
# the federated ID.
|
1060
|
+
# Corresponds to the JSON property `localId`
|
1061
|
+
# @return [String]
|
1062
|
+
attr_accessor :local_id
|
1063
|
+
|
1064
|
+
# Whether the assertion is from a non-trusted IDP and need account linking
|
1065
|
+
# confirmation.
|
1066
|
+
# Corresponds to the JSON property `needConfirmation`
|
1067
|
+
# @return [Boolean]
|
1068
|
+
attr_accessor :need_confirmation
|
1069
|
+
alias_method :need_confirmation?, :need_confirmation
|
1070
|
+
|
1071
|
+
# The nick name of the user.
|
1072
|
+
# Corresponds to the JSON property `nickName`
|
1073
|
+
# @return [String]
|
1074
|
+
attr_accessor :nick_name
|
1075
|
+
|
1076
|
+
# The OAuth2 access token.
|
1077
|
+
# Corresponds to the JSON property `oauthAccessToken`
|
1078
|
+
# @return [String]
|
1079
|
+
attr_accessor :oauth_access_token
|
1080
|
+
|
1081
|
+
# The OAuth2 authorization code.
|
1082
|
+
# Corresponds to the JSON property `oauthAuthorizationCode`
|
1083
|
+
# @return [String]
|
1084
|
+
attr_accessor :oauth_authorization_code
|
1085
|
+
|
1086
|
+
# The lifetime in seconds of the OAuth2 access token.
|
1087
|
+
# Corresponds to the JSON property `oauthExpireIn`
|
1088
|
+
# @return [Fixnum]
|
1089
|
+
attr_accessor :oauth_expire_in
|
1090
|
+
|
1091
|
+
# The user approved request token for the OpenID OAuth extension.
|
1092
|
+
# Corresponds to the JSON property `oauthRequestToken`
|
1093
|
+
# @return [String]
|
1094
|
+
attr_accessor :oauth_request_token
|
1095
|
+
|
1096
|
+
# The scope for the OpenID OAuth extension.
|
1097
|
+
# Corresponds to the JSON property `oauthScope`
|
1098
|
+
# @return [String]
|
1099
|
+
attr_accessor :oauth_scope
|
1100
|
+
|
1101
|
+
# The original email stored in the mapping storage. It's returned when the
|
1102
|
+
# federated ID is associated to a different email.
|
1103
|
+
# Corresponds to the JSON property `originalEmail`
|
1104
|
+
# @return [String]
|
1105
|
+
attr_accessor :original_email
|
1106
|
+
|
1107
|
+
# The URI of the public accessible profiel picture.
|
1108
|
+
# Corresponds to the JSON property `photoUrl`
|
1109
|
+
# @return [String]
|
1110
|
+
attr_accessor :photo_url
|
1111
|
+
|
1112
|
+
# The IdP ID. For white listed IdPs it's a short domain name e.g. google.com,
|
1113
|
+
# aol.com, live.net and yahoo.com. If the "providerId" param is set to OpenID OP
|
1114
|
+
# identifer other than the whilte listed IdPs the OP identifier is returned. If
|
1115
|
+
# the "identifier" param is federated ID in the createAuthUri request. The
|
1116
|
+
# domain part of the federated ID is returned.
|
1117
|
+
# Corresponds to the JSON property `providerId`
|
1118
|
+
# @return [String]
|
1119
|
+
attr_accessor :provider_id
|
1120
|
+
|
1121
|
+
# The timezone of the user.
|
1122
|
+
# Corresponds to the JSON property `timeZone`
|
1123
|
+
# @return [String]
|
1124
|
+
attr_accessor :time_zone
|
1125
|
+
|
1126
|
+
# When action is 'map', contains the idps which can be used for confirmation.
|
1127
|
+
# Corresponds to the JSON property `verifiedProvider`
|
1128
|
+
# @return [Array<String>]
|
1129
|
+
attr_accessor :verified_provider
|
1130
|
+
|
1131
|
+
def initialize(**args)
|
1132
|
+
update!(**args)
|
1133
|
+
end
|
1134
|
+
|
1135
|
+
# Update properties of this object
|
1136
|
+
def update!(**args)
|
1137
|
+
@action = args[:action] unless args[:action].nil?
|
1138
|
+
@app_installation_url = args[:app_installation_url] unless args[:app_installation_url].nil?
|
1139
|
+
@app_scheme = args[:app_scheme] unless args[:app_scheme].nil?
|
1140
|
+
@context = args[:context] unless args[:context].nil?
|
1141
|
+
@date_of_birth = args[:date_of_birth] unless args[:date_of_birth].nil?
|
1142
|
+
@display_name = args[:display_name] unless args[:display_name].nil?
|
1143
|
+
@email = args[:email] unless args[:email].nil?
|
1144
|
+
@email_recycled = args[:email_recycled] unless args[:email_recycled].nil?
|
1145
|
+
@email_verified = args[:email_verified] unless args[:email_verified].nil?
|
1146
|
+
@federated_id = args[:federated_id] unless args[:federated_id].nil?
|
1147
|
+
@first_name = args[:first_name] unless args[:first_name].nil?
|
1148
|
+
@full_name = args[:full_name] unless args[:full_name].nil?
|
1149
|
+
@id_token = args[:id_token] unless args[:id_token].nil?
|
1150
|
+
@input_email = args[:input_email] unless args[:input_email].nil?
|
1151
|
+
@kind = args[:kind] unless args[:kind].nil?
|
1152
|
+
@language = args[:language] unless args[:language].nil?
|
1153
|
+
@last_name = args[:last_name] unless args[:last_name].nil?
|
1154
|
+
@local_id = args[:local_id] unless args[:local_id].nil?
|
1155
|
+
@need_confirmation = args[:need_confirmation] unless args[:need_confirmation].nil?
|
1156
|
+
@nick_name = args[:nick_name] unless args[:nick_name].nil?
|
1157
|
+
@oauth_access_token = args[:oauth_access_token] unless args[:oauth_access_token].nil?
|
1158
|
+
@oauth_authorization_code = args[:oauth_authorization_code] unless args[:oauth_authorization_code].nil?
|
1159
|
+
@oauth_expire_in = args[:oauth_expire_in] unless args[:oauth_expire_in].nil?
|
1160
|
+
@oauth_request_token = args[:oauth_request_token] unless args[:oauth_request_token].nil?
|
1161
|
+
@oauth_scope = args[:oauth_scope] unless args[:oauth_scope].nil?
|
1162
|
+
@original_email = args[:original_email] unless args[:original_email].nil?
|
1163
|
+
@photo_url = args[:photo_url] unless args[:photo_url].nil?
|
1164
|
+
@provider_id = args[:provider_id] unless args[:provider_id].nil?
|
1165
|
+
@time_zone = args[:time_zone] unless args[:time_zone].nil?
|
1166
|
+
@verified_provider = args[:verified_provider] unless args[:verified_provider].nil?
|
1167
|
+
end
|
1168
|
+
end
|
1169
|
+
|
1170
|
+
# Request of verifying the password.
|
1171
|
+
class VerifyPasswordResponse
|
1172
|
+
include Google::Apis::Core::Hashable
|
1173
|
+
|
1174
|
+
# The name of the user.
|
1175
|
+
# Corresponds to the JSON property `displayName`
|
1176
|
+
# @return [String]
|
1177
|
+
attr_accessor :display_name
|
1178
|
+
|
1179
|
+
# The email returned by the IdP. NOTE: The federated login user may not own the
|
1180
|
+
# email.
|
1181
|
+
# Corresponds to the JSON property `email`
|
1182
|
+
# @return [String]
|
1183
|
+
attr_accessor :email
|
1184
|
+
|
1185
|
+
# The GITKit token for authenticated user.
|
1186
|
+
# Corresponds to the JSON property `idToken`
|
1187
|
+
# @return [String]
|
1188
|
+
attr_accessor :id_token
|
1189
|
+
|
1190
|
+
# The fixed string "identitytoolkit#VerifyPasswordResponse".
|
1191
|
+
# Corresponds to the JSON property `kind`
|
1192
|
+
# @return [String]
|
1193
|
+
attr_accessor :kind
|
1194
|
+
|
1195
|
+
# The RP local ID if it's already been mapped to the IdP account identified by
|
1196
|
+
# the federated ID.
|
1197
|
+
# Corresponds to the JSON property `localId`
|
1198
|
+
# @return [String]
|
1199
|
+
attr_accessor :local_id
|
1200
|
+
|
1201
|
+
# The URI of the user's photo at IdP
|
1202
|
+
# Corresponds to the JSON property `photoUrl`
|
1203
|
+
# @return [String]
|
1204
|
+
attr_accessor :photo_url
|
1205
|
+
|
1206
|
+
# Whether the email is registered.
|
1207
|
+
# Corresponds to the JSON property `registered`
|
1208
|
+
# @return [Boolean]
|
1209
|
+
attr_accessor :registered
|
1210
|
+
alias_method :registered?, :registered
|
1211
|
+
|
1212
|
+
def initialize(**args)
|
1213
|
+
update!(**args)
|
1214
|
+
end
|
1215
|
+
|
1216
|
+
# Update properties of this object
|
1217
|
+
def update!(**args)
|
1218
|
+
@display_name = args[:display_name] unless args[:display_name].nil?
|
1219
|
+
@email = args[:email] unless args[:email].nil?
|
1220
|
+
@id_token = args[:id_token] unless args[:id_token].nil?
|
1221
|
+
@kind = args[:kind] unless args[:kind].nil?
|
1222
|
+
@local_id = args[:local_id] unless args[:local_id].nil?
|
1223
|
+
@photo_url = args[:photo_url] unless args[:photo_url].nil?
|
1224
|
+
@registered = args[:registered] unless args[:registered].nil?
|
1225
|
+
end
|
1226
|
+
end
|
1227
|
+
end
|
1228
|
+
end
|
1229
|
+
end
|