google-api-client 0.9.pre3 → 0.9.pre4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/CHANGELOG.md +14 -2
- data/Gemfile +4 -0
- data/MIGRATING.md +1 -1
- data/README.md +17 -3
- data/api_names.yaml +127 -14
- data/api_names_out.yaml +5442 -710
- data/bin/generate-api +16 -14
- data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +213 -2
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +71 -0
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +21 -42
- data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +15 -29
- data/generated/google/apis/admin_datatransfer_v1.rb +37 -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_directory_v1.rb +25 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +718 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +244 -0
- data/generated/google/apis/admin_directory_v1/service.rb +1522 -509
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/admin_reports_v1/service.rb +5 -10
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +6 -0
- data/generated/google/apis/adsense_v1_4/representations.rb +1 -0
- data/generated/google/apis/adsense_v1_4/service.rb +40 -78
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +26 -52
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +11 -13
- data/generated/google/apis/analytics_v3/service.rb +84 -158
- data/generated/google/apis/androidenterprise_v1.rb +2 -2
- data/generated/google/apis/androidenterprise_v1/classes.rb +276 -8
- data/generated/google/apis/androidenterprise_v1/representations.rb +106 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +715 -97
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +2 -2
- data/generated/google/apis/androidpublisher_v2/service.rb +55 -107
- data/generated/google/apis/appengine_v1beta4.rb +35 -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/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appsactivity_v1/service.rb +1 -2
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/appstate_v1/service.rb +6 -11
- data/generated/google/apis/autoscaler_v1beta2/service.rb +10 -20
- data/generated/google/apis/bigquery_v2.rb +4 -1
- data/generated/google/apis/bigquery_v2/classes.rb +231 -16
- data/generated/google/apis/bigquery_v2/representations.rb +62 -0
- data/generated/google/apis/bigquery_v2/service.rb +24 -45
- data/generated/google/apis/blogger_v3/service.rb +33 -66
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +441 -0
- data/generated/google/apis/books_v1/representations.rb +177 -0
- data/generated/google/apis/books_v1/service.rb +210 -90
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +34 -18
- data/generated/google/apis/calendar_v3/service.rb +118 -103
- data/generated/google/apis/civicinfo_v2.rb +1 -1
- data/generated/google/apis/civicinfo_v2/classes.rb +12 -3
- data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
- data/generated/google/apis/civicinfo_v2/service.rb +5 -10
- data/generated/google/apis/classroom_v1.rb +49 -0
- 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/cloudbilling_v1.rb +35 -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/clouddebugger_v2.rb +41 -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/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +6 -12
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +5 -2
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +173 -249
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +36 -68
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +293 -80
- data/generated/google/apis/cloudtrace_v1.rb +35 -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/clouduseraccounts_beta.rb +43 -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/compute_beta.rb +49 -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_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1305 -520
- data/generated/google/apis/compute_v1/representations.rb +122 -15
- data/generated/google/apis/compute_v1/service.rb +2202 -1085
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +56 -31
- data/generated/google/apis/container_v1/representations.rb +12 -0
- data/generated/google/apis/container_v1/service.rb +62 -41
- data/generated/google/apis/content_v2.rb +2 -2
- data/generated/google/apis/content_v2/classes.rb +2252 -56
- data/generated/google/apis/content_v2/representations.rb +917 -87
- data/generated/google/apis/content_v2/service.rb +680 -85
- data/generated/google/apis/coordinate_v1.rb +1 -1
- data/generated/google/apis/coordinate_v1/service.rb +16 -25
- data/generated/google/apis/customsearch_v1/service.rb +1 -2
- data/generated/google/apis/datastore_v1beta2.rb +1 -1
- data/generated/google/apis/datastore_v1beta2/service.rb +12 -18
- data/generated/google/apis/deploymentmanager_v2.rb +44 -0
- data/generated/google/apis/deploymentmanager_v2/classes.rb +1089 -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_v2beta2.rb +5 -2
- data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +22 -3
- data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +3 -0
- data/generated/google/apis/deploymentmanager_v2beta2/service.rb +14 -27
- data/generated/google/apis/dfareporting_v2_1.rb +1 -1
- data/generated/google/apis/dfareporting_v2_1/classes.rb +29 -14
- data/generated/google/apis/dfareporting_v2_1/service.rb +196 -389
- data/generated/google/apis/discovery_v1/classes.rb +7 -0
- data/generated/google/apis/discovery_v1/representations.rb +1 -0
- data/generated/google/apis/discovery_v1/service.rb +2 -4
- data/generated/google/apis/dns_v1.rb +4 -1
- data/generated/google/apis/dns_v1/service.rb +9 -18
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +9 -2
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +1 -0
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -16
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +15 -6
- data/generated/google/apis/doubleclicksearch_v2/representations.rb +1 -0
- data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -23
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +73 -30
- data/generated/google/apis/drive_v2/representations.rb +14 -0
- data/generated/google/apis/drive_v2/service.rb +139 -135
- data/generated/google/apis/drive_v3.rb +55 -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/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/service.rb +14 -27
- data/generated/google/apis/fusiontables_v2/service.rb +40 -73
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration/service.rb +14 -27
- data/generated/google/apis/games_management_v1management.rb +37 -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_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +39 -0
- data/generated/google/apis/games_v1/representations.rb +14 -0
- data/generated/google/apis/games_v1/service.rb +93 -109
- data/generated/google/apis/gan_v1beta1/service.rb +10 -20
- data/generated/google/apis/genomics_v1.rb +5 -3
- data/generated/google/apis/genomics_v1/classes.rb +519 -200
- data/generated/google/apis/genomics_v1/representations.rb +126 -13
- data/generated/google/apis/genomics_v1/service.rb +392 -236
- data/generated/google/apis/gmail_v1.rb +4 -1
- data/generated/google/apis/gmail_v1/service.rb +39 -71
- data/generated/google/apis/groupsmigration_v1/service.rb +2 -3
- data/generated/google/apis/groupssettings_v1/service.rb +3 -6
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +125 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +37 -0
- data/generated/google/apis/identitytoolkit_v3/service.rb +44 -24
- data/generated/google/apis/kgsearch_v1.rb +32 -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/generated/google/apis/licensing_v1.rb +1 -1
- data/generated/google/apis/licensing_v1/service.rb +7 -14
- data/generated/google/apis/logging_v1beta3.rb +16 -4
- data/generated/google/apis/logging_v1beta3/classes.rb +620 -46
- data/generated/google/apis/logging_v1beta3/representations.rb +144 -0
- data/generated/google/apis/logging_v1beta3/service.rb +435 -104
- data/generated/google/apis/manager_v1beta2.rb +3 -0
- data/generated/google/apis/manager_v1beta2/service.rb +8 -16
- data/generated/google/apis/mapsengine_v1.rb +1 -1
- data/generated/google/apis/mapsengine_v1/service.rb +85 -162
- data/generated/google/apis/mirror_v1.rb +1 -1
- data/generated/google/apis/mirror_v1/service.rb +28 -52
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/oauth2_v2/service.rb +4 -8
- data/generated/google/apis/pagespeedonline_v2/service.rb +1 -2
- data/generated/google/apis/partners_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/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_domains_v1/classes.rb +207 -0
- data/generated/google/apis/plus_domains_v1/representations.rb +114 -0
- data/generated/google/apis/plus_domains_v1/service.rb +21 -41
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/plus_v1/classes.rb +207 -0
- data/generated/google/apis/plus_v1/representations.rb +114 -0
- data/generated/google/apis/plus_v1/service.rb +11 -56
- data/generated/google/apis/prediction_v1_6.rb +1 -1
- data/generated/google/apis/prediction_v1_6/service.rb +8 -16
- data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -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/pubsub_v1.rb +37 -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_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +78 -283
- data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -85
- data/generated/google/apis/pubsub_v1beta2/service.rb +79 -87
- data/generated/google/apis/qpx_express_v1/service.rb +1 -2
- data/generated/google/apis/replicapool_v1beta2.rb +3 -0
- data/generated/google/apis/replicapool_v1beta2/service.rb +12 -24
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -1
- data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +46 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +16 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +58 -18
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +19 -1
- data/generated/google/apis/reseller_v1/representations.rb +1 -0
- data/generated/google/apis/reseller_v1/service.rb +16 -30
- data/generated/google/apis/resourceviews_v1beta2.rb +3 -0
- data/generated/google/apis/resourceviews_v1beta2/service.rb +16 -27
- data/generated/google/apis/script_v1.rb +61 -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/site_verification_v1.rb +1 -1
- data/generated/google/apis/site_verification_v1/service.rb +8 -15
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +186 -2
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +70 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +166 -75
- data/generated/google/apis/storage_v1.rb +5 -2
- data/generated/google/apis/storage_v1/classes.rb +47 -4
- data/generated/google/apis/storage_v1/representations.rb +18 -0
- data/generated/google/apis/storage_v1/service.rb +77 -94
- data/generated/google/apis/storagetransfer_v1.rb +35 -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/tagmanager_v1.rb +1 -1
- data/generated/google/apis/tagmanager_v1/classes.rb +189 -31
- data/generated/google/apis/tagmanager_v1/representations.rb +69 -15
- data/generated/google/apis/tagmanager_v1/service.rb +114 -275
- data/generated/google/apis/taskqueue_v1beta2/service.rb +8 -16
- data/generated/google/apis/tasks_v1/service.rb +14 -28
- data/generated/google/apis/translate_v2/service.rb +3 -6
- data/generated/google/apis/urlshortener_v1/service.rb +3 -6
- data/generated/google/apis/webmasters_v3.rb +3 -3
- data/generated/google/apis/webmasters_v3/classes.rb +4 -4
- data/generated/google/apis/webmasters_v3/service.rb +16 -30
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/classes.rb +6 -0
- data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -0
- data/generated/google/apis/youtube_analytics_v1/service.rb +16 -21
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +111 -78
- data/generated/google/apis/youtube_v3/representations.rb +2 -0
- data/generated/google/apis/youtube_v3/service.rb +78 -246
- data/generated/google/apis/youtubereporting_v1.rb +38 -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/google-api-client.gemspec +3 -3
- data/lib/google/api_client/auth/installed_app.rb +2 -2
- data/lib/google/api_client/auth/key_utils.rb +1 -0
- data/lib/google/api_client/auth/storage.rb +1 -0
- data/lib/google/api_client/auth/storages/file_store.rb +1 -0
- data/lib/google/api_client/auth/storages/redis_store.rb +1 -0
- data/lib/google/api_client/client_secrets.rb +4 -5
- data/lib/google/apis/core/api_command.rb +2 -2
- data/lib/google/apis/core/base_service.rb +1 -0
- data/lib/google/apis/core/batch.rb +25 -8
- data/lib/google/apis/core/download.rb +1 -1
- data/lib/google/apis/core/http_command.rb +24 -12
- data/lib/google/apis/core/multipart.rb +20 -6
- data/lib/google/apis/core/upload.rb +11 -4
- data/lib/google/apis/generator/annotator.rb +29 -10
- data/lib/google/apis/generator/helpers.rb +1 -1
- data/lib/google/apis/generator/templates/_method.tmpl +5 -6
- data/lib/google/apis/options.rb +7 -3
- data/lib/google/apis/version.rb +1 -1
- data/samples/calendar/calendar.rb +1 -1
- data/samples/drive/drive.rb +9 -2
- data/samples/pubsub/pubsub.rb +5 -6
- data/samples/translate/translate.rb +1 -5
- data/script/generate +20 -5
- data/spec/fixtures/files/child/.gitignore +0 -0
- data/spec/fixtures/files/invalid.json +1 -0
- data/spec/google/api_client/client_secrets_spec.rb +38 -1
- data/spec/google/apis/core/batch_spec.rb +22 -8
- data/spec/google/apis/core/download_spec.rb +13 -0
- data/spec/google/apis/core/http_command_spec.rb +26 -9
- data/spec/google/apis/core/upload_spec.rb +65 -17
- data/spec/google/apis/options_spec.rb +8 -0
- data/spec/integration_tests/adsense_spec.rb +28 -0
- data/spec/integration_tests/pubsub_spec.rb +3 -3
- data/spec/spec_helper.rb +5 -1
- data/third_party/hurley_patches.rb +103 -0
- metadata +87 -7
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://developers.google.com/gmail/api/
|
|
26
26
|
module GmailV1
|
|
27
27
|
VERSION = 'V1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20151001'
|
|
29
29
|
|
|
30
30
|
# View and manage your mail
|
|
31
31
|
AUTH_SCOPE = 'https://mail.google.com/'
|
|
@@ -44,6 +44,9 @@ module Google
|
|
|
44
44
|
|
|
45
45
|
# View your emails messages and settings
|
|
46
46
|
AUTH_GMAIL_READONLY = 'https://www.googleapis.com/auth/gmail.readonly'
|
|
47
|
+
|
|
48
|
+
# Send email on your behalf
|
|
49
|
+
AUTH_GMAIL_SEND = 'https://www.googleapis.com/auth/gmail.send'
|
|
47
50
|
end
|
|
48
51
|
end
|
|
49
52
|
end
|
|
@@ -78,8 +78,7 @@ module Google
|
|
|
78
78
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
79
79
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
80
80
|
def get_user_profile(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
81
|
-
|
|
82
|
-
command = make_simple_command(:get, path, options)
|
|
81
|
+
command = make_simple_command(:get, '{userId}/profile', options)
|
|
83
82
|
command.response_representation = Google::Apis::GmailV1::Profile::Representation
|
|
84
83
|
command.response_class = Google::Apis::GmailV1::Profile
|
|
85
84
|
command.params['userId'] = user_id unless user_id.nil?
|
|
@@ -115,8 +114,7 @@ module Google
|
|
|
115
114
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
116
115
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
117
116
|
def stop_user(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
118
|
-
|
|
119
|
-
command = make_simple_command(:post, path, options)
|
|
117
|
+
command = make_simple_command(:post, '{userId}/stop', options)
|
|
120
118
|
command.params['userId'] = user_id unless user_id.nil?
|
|
121
119
|
command.query['fields'] = fields unless fields.nil?
|
|
122
120
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -150,9 +148,8 @@ module Google
|
|
|
150
148
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
151
149
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
152
150
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
153
|
-
def
|
|
154
|
-
|
|
155
|
-
command = make_simple_command(:post, path, options)
|
|
151
|
+
def watch_user(user_id, watch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
152
|
+
command = make_simple_command(:post, '{userId}/watch', options)
|
|
156
153
|
command.request_representation = Google::Apis::GmailV1::WatchRequest::Representation
|
|
157
154
|
command.request_object = watch_request_object
|
|
158
155
|
command.response_representation = Google::Apis::GmailV1::WatchResponse::Representation
|
|
@@ -195,11 +192,10 @@ module Google
|
|
|
195
192
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
196
193
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
197
194
|
def create_user_draft(user_id, draft_object = nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
|
198
|
-
path = '{userId}/drafts'
|
|
199
195
|
if upload_source.nil?
|
|
200
|
-
command = make_simple_command(:post,
|
|
196
|
+
command = make_simple_command(:post, '{userId}/drafts', options)
|
|
201
197
|
else
|
|
202
|
-
command = make_upload_command(:post,
|
|
198
|
+
command = make_upload_command(:post, '{userId}/drafts', options)
|
|
203
199
|
command.upload_source = upload_source
|
|
204
200
|
command.upload_content_type = content_type
|
|
205
201
|
end
|
|
@@ -243,8 +239,7 @@ module Google
|
|
|
243
239
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
244
240
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
245
241
|
def delete_user_draft(user_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
246
|
-
|
|
247
|
-
command = make_simple_command(:delete, path, options)
|
|
242
|
+
command = make_simple_command(:delete, '{userId}/drafts/{id}', options)
|
|
248
243
|
command.params['userId'] = user_id unless user_id.nil?
|
|
249
244
|
command.params['id'] = id unless id.nil?
|
|
250
245
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -283,8 +278,7 @@ module Google
|
|
|
283
278
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
284
279
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
285
280
|
def get_user_draft(user_id, id, format: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
286
|
-
|
|
287
|
-
command = make_simple_command(:get, path, options)
|
|
281
|
+
command = make_simple_command(:get, '{userId}/drafts/{id}', options)
|
|
288
282
|
command.response_representation = Google::Apis::GmailV1::Draft::Representation
|
|
289
283
|
command.response_class = Google::Apis::GmailV1::Draft
|
|
290
284
|
command.params['userId'] = user_id unless user_id.nil?
|
|
@@ -326,8 +320,7 @@ module Google
|
|
|
326
320
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
327
321
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
328
322
|
def list_user_drafts(user_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
329
|
-
|
|
330
|
-
command = make_simple_command(:get, path, options)
|
|
323
|
+
command = make_simple_command(:get, '{userId}/drafts', options)
|
|
331
324
|
command.response_representation = Google::Apis::GmailV1::ListDraftsResponse::Representation
|
|
332
325
|
command.response_class = Google::Apis::GmailV1::ListDraftsResponse
|
|
333
326
|
command.params['userId'] = user_id unless user_id.nil?
|
|
@@ -371,11 +364,10 @@ module Google
|
|
|
371
364
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
372
365
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
373
366
|
def send_user_draft(user_id, draft_object = nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
|
374
|
-
path = '{userId}/drafts/send'
|
|
375
367
|
if upload_source.nil?
|
|
376
|
-
command = make_simple_command(:post,
|
|
368
|
+
command = make_simple_command(:post, '{userId}/drafts/send', options)
|
|
377
369
|
else
|
|
378
|
-
command = make_upload_command(:post,
|
|
370
|
+
command = make_upload_command(:post, '{userId}/drafts/send', options)
|
|
379
371
|
command.upload_source = upload_source
|
|
380
372
|
command.upload_content_type = content_type
|
|
381
373
|
end
|
|
@@ -423,11 +415,10 @@ module Google
|
|
|
423
415
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
424
416
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
425
417
|
def update_user_draft(user_id, id, draft_object = nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
|
426
|
-
path = '{userId}/drafts/{id}'
|
|
427
418
|
if upload_source.nil?
|
|
428
|
-
command = make_simple_command(:put,
|
|
419
|
+
command = make_simple_command(:put, '{userId}/drafts/{id}', options)
|
|
429
420
|
else
|
|
430
|
-
command = make_upload_command(:put,
|
|
421
|
+
command = make_upload_command(:put, '{userId}/drafts/{id}', options)
|
|
431
422
|
command.upload_source = upload_source
|
|
432
423
|
command.upload_content_type = content_type
|
|
433
424
|
end
|
|
@@ -487,8 +478,7 @@ module Google
|
|
|
487
478
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
488
479
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
489
480
|
def list_user_histories(user_id, label_id: nil, max_results: nil, page_token: nil, start_history_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
490
|
-
|
|
491
|
-
command = make_simple_command(:get, path, options)
|
|
481
|
+
command = make_simple_command(:get, '{userId}/history', options)
|
|
492
482
|
command.response_representation = Google::Apis::GmailV1::ListHistoryResponse::Representation
|
|
493
483
|
command.response_class = Google::Apis::GmailV1::ListHistoryResponse
|
|
494
484
|
command.params['userId'] = user_id unless user_id.nil?
|
|
@@ -529,8 +519,7 @@ module Google
|
|
|
529
519
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
530
520
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
531
521
|
def create_user_label(user_id, label_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
532
|
-
|
|
533
|
-
command = make_simple_command(:post, path, options)
|
|
522
|
+
command = make_simple_command(:post, '{userId}/labels', options)
|
|
534
523
|
command.request_representation = Google::Apis::GmailV1::Label::Representation
|
|
535
524
|
command.request_object = label_object
|
|
536
525
|
command.response_representation = Google::Apis::GmailV1::Label::Representation
|
|
@@ -571,8 +560,7 @@ module Google
|
|
|
571
560
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
572
561
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
573
562
|
def delete_user_label(user_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
574
|
-
|
|
575
|
-
command = make_simple_command(:delete, path, options)
|
|
563
|
+
command = make_simple_command(:delete, '{userId}/labels/{id}', options)
|
|
576
564
|
command.params['userId'] = user_id unless user_id.nil?
|
|
577
565
|
command.params['id'] = id unless id.nil?
|
|
578
566
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -609,8 +597,7 @@ module Google
|
|
|
609
597
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
610
598
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
611
599
|
def get_user_label(user_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
612
|
-
|
|
613
|
-
command = make_simple_command(:get, path, options)
|
|
600
|
+
command = make_simple_command(:get, '{userId}/labels/{id}', options)
|
|
614
601
|
command.response_representation = Google::Apis::GmailV1::Label::Representation
|
|
615
602
|
command.response_class = Google::Apis::GmailV1::Label
|
|
616
603
|
command.params['userId'] = user_id unless user_id.nil?
|
|
@@ -647,8 +634,7 @@ module Google
|
|
|
647
634
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
648
635
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
649
636
|
def list_user_labels(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
650
|
-
|
|
651
|
-
command = make_simple_command(:get, path, options)
|
|
637
|
+
command = make_simple_command(:get, '{userId}/labels', options)
|
|
652
638
|
command.response_representation = Google::Apis::GmailV1::ListLabelsResponse::Representation
|
|
653
639
|
command.response_class = Google::Apis::GmailV1::ListLabelsResponse
|
|
654
640
|
command.params['userId'] = user_id unless user_id.nil?
|
|
@@ -687,8 +673,7 @@ module Google
|
|
|
687
673
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
688
674
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
689
675
|
def patch_user_label(user_id, id, label_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
690
|
-
|
|
691
|
-
command = make_simple_command(:patch, path, options)
|
|
676
|
+
command = make_simple_command(:patch, '{userId}/labels/{id}', options)
|
|
692
677
|
command.request_representation = Google::Apis::GmailV1::Label::Representation
|
|
693
678
|
command.request_object = label_object
|
|
694
679
|
command.response_representation = Google::Apis::GmailV1::Label::Representation
|
|
@@ -730,8 +715,7 @@ module Google
|
|
|
730
715
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
731
716
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
732
717
|
def update_user_label(user_id, id, label_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
733
|
-
|
|
734
|
-
command = make_simple_command(:put, path, options)
|
|
718
|
+
command = make_simple_command(:put, '{userId}/labels/{id}', options)
|
|
735
719
|
command.request_representation = Google::Apis::GmailV1::Label::Representation
|
|
736
720
|
command.request_object = label_object
|
|
737
721
|
command.response_representation = Google::Apis::GmailV1::Label::Representation
|
|
@@ -773,8 +757,7 @@ module Google
|
|
|
773
757
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
774
758
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
775
759
|
def delete_user_message(user_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
776
|
-
|
|
777
|
-
command = make_simple_command(:delete, path, options)
|
|
760
|
+
command = make_simple_command(:delete, '{userId}/messages/{id}', options)
|
|
778
761
|
command.params['userId'] = user_id unless user_id.nil?
|
|
779
762
|
command.params['id'] = id unless id.nil?
|
|
780
763
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -815,8 +798,7 @@ module Google
|
|
|
815
798
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
816
799
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
817
800
|
def get_user_message(user_id, id, format: nil, metadata_headers: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
818
|
-
|
|
819
|
-
command = make_simple_command(:get, path, options)
|
|
801
|
+
command = make_simple_command(:get, '{userId}/messages/{id}', options)
|
|
820
802
|
command.response_representation = Google::Apis::GmailV1::Message::Representation
|
|
821
803
|
command.response_class = Google::Apis::GmailV1::Message
|
|
822
804
|
command.params['userId'] = user_id unless user_id.nil?
|
|
@@ -874,11 +856,10 @@ module Google
|
|
|
874
856
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
875
857
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
876
858
|
def import_user_message(user_id, message_object = nil, deleted: nil, internal_date_source: nil, never_mark_spam: nil, process_for_calendar: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
|
877
|
-
path = '{userId}/messages/import'
|
|
878
859
|
if upload_source.nil?
|
|
879
|
-
command = make_simple_command(:post,
|
|
860
|
+
command = make_simple_command(:post, '{userId}/messages/import', options)
|
|
880
861
|
else
|
|
881
|
-
command = make_upload_command(:post,
|
|
862
|
+
command = make_upload_command(:post, '{userId}/messages/import', options)
|
|
882
863
|
command.upload_source = upload_source
|
|
883
864
|
command.upload_content_type = content_type
|
|
884
865
|
end
|
|
@@ -935,11 +916,10 @@ module Google
|
|
|
935
916
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
936
917
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
937
918
|
def insert_user_message(user_id, message_object = nil, deleted: nil, internal_date_source: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
|
938
|
-
path = '{userId}/messages'
|
|
939
919
|
if upload_source.nil?
|
|
940
|
-
command = make_simple_command(:post,
|
|
920
|
+
command = make_simple_command(:post, '{userId}/messages', options)
|
|
941
921
|
else
|
|
942
|
-
command = make_upload_command(:post,
|
|
922
|
+
command = make_upload_command(:post, '{userId}/messages', options)
|
|
943
923
|
command.upload_source = upload_source
|
|
944
924
|
command.upload_content_type = content_type
|
|
945
925
|
end
|
|
@@ -994,8 +974,7 @@ module Google
|
|
|
994
974
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
995
975
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
996
976
|
def list_user_messages(user_id, include_spam_trash: nil, label_ids: nil, max_results: nil, page_token: nil, q: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
997
|
-
|
|
998
|
-
command = make_simple_command(:get, path, options)
|
|
977
|
+
command = make_simple_command(:get, '{userId}/messages', options)
|
|
999
978
|
command.response_representation = Google::Apis::GmailV1::ListMessagesResponse::Representation
|
|
1000
979
|
command.response_class = Google::Apis::GmailV1::ListMessagesResponse
|
|
1001
980
|
command.params['userId'] = user_id unless user_id.nil?
|
|
@@ -1039,8 +1018,7 @@ module Google
|
|
|
1039
1018
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1040
1019
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1041
1020
|
def modify_message(user_id, id, modify_message_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1042
|
-
|
|
1043
|
-
command = make_simple_command(:post, path, options)
|
|
1021
|
+
command = make_simple_command(:post, '{userId}/messages/{id}/modify', options)
|
|
1044
1022
|
command.request_representation = Google::Apis::GmailV1::ModifyMessageRequest::Representation
|
|
1045
1023
|
command.request_object = modify_message_request_object
|
|
1046
1024
|
command.response_representation = Google::Apis::GmailV1::Message::Representation
|
|
@@ -1084,11 +1062,10 @@ module Google
|
|
|
1084
1062
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1085
1063
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1086
1064
|
def send_user_message(user_id, message_object = nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
|
1087
|
-
path = '{userId}/messages/send'
|
|
1088
1065
|
if upload_source.nil?
|
|
1089
|
-
command = make_simple_command(:post,
|
|
1066
|
+
command = make_simple_command(:post, '{userId}/messages/send', options)
|
|
1090
1067
|
else
|
|
1091
|
-
command = make_upload_command(:post,
|
|
1068
|
+
command = make_upload_command(:post, '{userId}/messages/send', options)
|
|
1092
1069
|
command.upload_source = upload_source
|
|
1093
1070
|
command.upload_content_type = content_type
|
|
1094
1071
|
end
|
|
@@ -1131,8 +1108,7 @@ module Google
|
|
|
1131
1108
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1132
1109
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1133
1110
|
def trash_user_message(user_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1134
|
-
|
|
1135
|
-
command = make_simple_command(:post, path, options)
|
|
1111
|
+
command = make_simple_command(:post, '{userId}/messages/{id}/trash', options)
|
|
1136
1112
|
command.response_representation = Google::Apis::GmailV1::Message::Representation
|
|
1137
1113
|
command.response_class = Google::Apis::GmailV1::Message
|
|
1138
1114
|
command.params['userId'] = user_id unless user_id.nil?
|
|
@@ -1171,8 +1147,7 @@ module Google
|
|
|
1171
1147
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1172
1148
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1173
1149
|
def untrash_user_message(user_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1174
|
-
|
|
1175
|
-
command = make_simple_command(:post, path, options)
|
|
1150
|
+
command = make_simple_command(:post, '{userId}/messages/{id}/untrash', options)
|
|
1176
1151
|
command.response_representation = Google::Apis::GmailV1::Message::Representation
|
|
1177
1152
|
command.response_class = Google::Apis::GmailV1::Message
|
|
1178
1153
|
command.params['userId'] = user_id unless user_id.nil?
|
|
@@ -1213,8 +1188,7 @@ module Google
|
|
|
1213
1188
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1214
1189
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1215
1190
|
def get_user_message_attachment(user_id, message_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1216
|
-
|
|
1217
|
-
command = make_simple_command(:get, path, options)
|
|
1191
|
+
command = make_simple_command(:get, '{userId}/messages/{messageId}/attachments/{id}', options)
|
|
1218
1192
|
command.response_representation = Google::Apis::GmailV1::MessagePartBody::Representation
|
|
1219
1193
|
command.response_class = Google::Apis::GmailV1::MessagePartBody
|
|
1220
1194
|
command.params['userId'] = user_id unless user_id.nil?
|
|
@@ -1255,8 +1229,7 @@ module Google
|
|
|
1255
1229
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1256
1230
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1257
1231
|
def delete_user_thread(user_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1258
|
-
|
|
1259
|
-
command = make_simple_command(:delete, path, options)
|
|
1232
|
+
command = make_simple_command(:delete, '{userId}/threads/{id}', options)
|
|
1260
1233
|
command.params['userId'] = user_id unless user_id.nil?
|
|
1261
1234
|
command.params['id'] = id unless id.nil?
|
|
1262
1235
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -1297,8 +1270,7 @@ module Google
|
|
|
1297
1270
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1298
1271
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1299
1272
|
def get_user_thread(user_id, id, format: nil, metadata_headers: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1300
|
-
|
|
1301
|
-
command = make_simple_command(:get, path, options)
|
|
1273
|
+
command = make_simple_command(:get, '{userId}/threads/{id}', options)
|
|
1302
1274
|
command.response_representation = Google::Apis::GmailV1::Thread::Representation
|
|
1303
1275
|
command.response_class = Google::Apis::GmailV1::Thread
|
|
1304
1276
|
command.params['userId'] = user_id unless user_id.nil?
|
|
@@ -1349,8 +1321,7 @@ module Google
|
|
|
1349
1321
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1350
1322
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1351
1323
|
def list_user_threads(user_id, include_spam_trash: nil, label_ids: nil, max_results: nil, page_token: nil, q: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1352
|
-
|
|
1353
|
-
command = make_simple_command(:get, path, options)
|
|
1324
|
+
command = make_simple_command(:get, '{userId}/threads', options)
|
|
1354
1325
|
command.response_representation = Google::Apis::GmailV1::ListThreadsResponse::Representation
|
|
1355
1326
|
command.response_class = Google::Apis::GmailV1::ListThreadsResponse
|
|
1356
1327
|
command.params['userId'] = user_id unless user_id.nil?
|
|
@@ -1395,8 +1366,7 @@ module Google
|
|
|
1395
1366
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1396
1367
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1397
1368
|
def modify_thread(user_id, id, modify_thread_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1398
|
-
|
|
1399
|
-
command = make_simple_command(:post, path, options)
|
|
1369
|
+
command = make_simple_command(:post, '{userId}/threads/{id}/modify', options)
|
|
1400
1370
|
command.request_representation = Google::Apis::GmailV1::ModifyThreadRequest::Representation
|
|
1401
1371
|
command.request_object = modify_thread_request_object
|
|
1402
1372
|
command.response_representation = Google::Apis::GmailV1::Thread::Representation
|
|
@@ -1437,8 +1407,7 @@ module Google
|
|
|
1437
1407
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1438
1408
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1439
1409
|
def trash_user_thread(user_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1440
|
-
|
|
1441
|
-
command = make_simple_command(:post, path, options)
|
|
1410
|
+
command = make_simple_command(:post, '{userId}/threads/{id}/trash', options)
|
|
1442
1411
|
command.response_representation = Google::Apis::GmailV1::Thread::Representation
|
|
1443
1412
|
command.response_class = Google::Apis::GmailV1::Thread
|
|
1444
1413
|
command.params['userId'] = user_id unless user_id.nil?
|
|
@@ -1477,8 +1446,7 @@ module Google
|
|
|
1477
1446
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1478
1447
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1479
1448
|
def untrash_user_thread(user_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1480
|
-
|
|
1481
|
-
command = make_simple_command(:post, path, options)
|
|
1449
|
+
command = make_simple_command(:post, '{userId}/threads/{id}/untrash', options)
|
|
1482
1450
|
command.response_representation = Google::Apis::GmailV1::Thread::Representation
|
|
1483
1451
|
command.response_class = Google::Apis::GmailV1::Thread
|
|
1484
1452
|
command.params['userId'] = user_id unless user_id.nil?
|
|
@@ -81,11 +81,10 @@ module Google
|
|
|
81
81
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
82
82
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
83
83
|
def insert_archive(group_id, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
|
84
|
-
path = '{groupId}/archive'
|
|
85
84
|
if upload_source.nil?
|
|
86
|
-
command = make_simple_command(:post,
|
|
85
|
+
command = make_simple_command(:post, '{groupId}/archive', options)
|
|
87
86
|
else
|
|
88
|
-
command = make_upload_command(:post,
|
|
87
|
+
command = make_upload_command(:post, '{groupId}/archive', options)
|
|
89
88
|
command.upload_source = upload_source
|
|
90
89
|
command.upload_content_type = content_type
|
|
91
90
|
end
|
|
@@ -77,8 +77,7 @@ module Google
|
|
|
77
77
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
78
78
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
79
79
|
def get_group(group_unique_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
80
|
-
|
|
81
|
-
command = make_simple_command(:get, path, options)
|
|
80
|
+
command = make_simple_command(:get, '{groupUniqueId}', options)
|
|
82
81
|
command.response_representation = Google::Apis::GroupssettingsV1::Groups::Representation
|
|
83
82
|
command.response_class = Google::Apis::GroupssettingsV1::Groups
|
|
84
83
|
command.params['groupUniqueId'] = group_unique_id unless group_unique_id.nil?
|
|
@@ -114,8 +113,7 @@ module Google
|
|
|
114
113
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
115
114
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
116
115
|
def patch_group(group_unique_id, groups_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
117
|
-
|
|
118
|
-
command = make_simple_command(:patch, path, options)
|
|
116
|
+
command = make_simple_command(:patch, '{groupUniqueId}', options)
|
|
119
117
|
command.request_representation = Google::Apis::GroupssettingsV1::Groups::Representation
|
|
120
118
|
command.request_object = groups_object
|
|
121
119
|
command.response_representation = Google::Apis::GroupssettingsV1::Groups::Representation
|
|
@@ -153,8 +151,7 @@ module Google
|
|
|
153
151
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
154
152
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
155
153
|
def update_group(group_unique_id, groups_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
156
|
-
|
|
157
|
-
command = make_simple_command(:put, path, options)
|
|
154
|
+
command = make_simple_command(:put, '{groupUniqueId}', options)
|
|
158
155
|
command.request_representation = Google::Apis::GroupssettingsV1::Groups::Representation
|
|
159
156
|
command.request_object = groups_object
|
|
160
157
|
command.response_representation = Google::Apis::GroupssettingsV1::Groups::Representation
|
|
@@ -59,6 +59,11 @@ module Google
|
|
|
59
59
|
attr_accessor :registered
|
|
60
60
|
alias_method :registered?, :registered
|
|
61
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
|
+
|
|
62
67
|
def initialize(**args)
|
|
63
68
|
update!(**args)
|
|
64
69
|
end
|
|
@@ -71,6 +76,7 @@ module Google
|
|
|
71
76
|
@kind = args[:kind] unless args[:kind].nil?
|
|
72
77
|
@provider_id = args[:provider_id] unless args[:provider_id].nil?
|
|
73
78
|
@registered = args[:registered] unless args[:registered].nil?
|
|
79
|
+
@session_id = args[:session_id] unless args[:session_id].nil?
|
|
74
80
|
end
|
|
75
81
|
end
|
|
76
82
|
|
|
@@ -155,6 +161,11 @@ module Google
|
|
|
155
161
|
class GetOobConfirmationCodeResponse
|
|
156
162
|
include Google::Apis::Core::Hashable
|
|
157
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
|
+
|
|
158
169
|
# The fixed string "identitytoolkit#GetOobConfirmationCodeResponse".
|
|
159
170
|
# Corresponds to the JSON property `kind`
|
|
160
171
|
# @return [String]
|
|
@@ -171,6 +182,7 @@ module Google
|
|
|
171
182
|
|
|
172
183
|
# Update properties of this object
|
|
173
184
|
def update!(**args)
|
|
185
|
+
@email = args[:email] unless args[:email].nil?
|
|
174
186
|
@kind = args[:kind] unless args[:kind].nil?
|
|
175
187
|
@oob_code = args[:oob_code] unless args[:oob_code].nil?
|
|
176
188
|
end
|
|
@@ -360,6 +372,44 @@ module Google
|
|
|
360
372
|
end
|
|
361
373
|
end
|
|
362
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
|
+
|
|
363
413
|
# Request to reset the password.
|
|
364
414
|
class ResetPasswordRequest
|
|
365
415
|
include Google::Apis::Core::Hashable
|
|
@@ -566,6 +616,11 @@ module Google
|
|
|
566
616
|
attr_accessor :return_refresh_token
|
|
567
617
|
alias_method :return_refresh_token?, :return_refresh_token
|
|
568
618
|
|
|
619
|
+
# Session ID, which should match the one in previous createAuthUri request.
|
|
620
|
+
# Corresponds to the JSON property `sessionId`
|
|
621
|
+
# @return [String]
|
|
622
|
+
attr_accessor :session_id
|
|
623
|
+
|
|
569
624
|
def initialize(**args)
|
|
570
625
|
update!(**args)
|
|
571
626
|
end
|
|
@@ -576,6 +631,7 @@ module Google
|
|
|
576
631
|
@post_body = args[:post_body] unless args[:post_body].nil?
|
|
577
632
|
@request_uri = args[:request_uri] unless args[:request_uri].nil?
|
|
578
633
|
@return_refresh_token = args[:return_refresh_token] unless args[:return_refresh_token].nil?
|
|
634
|
+
@session_id = args[:session_id] unless args[:session_id].nil?
|
|
579
635
|
end
|
|
580
636
|
end
|
|
581
637
|
|
|
@@ -622,6 +678,44 @@ module Google
|
|
|
622
678
|
end
|
|
623
679
|
end
|
|
624
680
|
|
|
681
|
+
# Template for a single idp configuration.
|
|
682
|
+
class IdpConfig
|
|
683
|
+
include Google::Apis::Core::Hashable
|
|
684
|
+
|
|
685
|
+
# OAuth2 client ID.
|
|
686
|
+
# Corresponds to the JSON property `clientId`
|
|
687
|
+
# @return [String]
|
|
688
|
+
attr_accessor :client_id
|
|
689
|
+
|
|
690
|
+
# Whether this IDP is enabled.
|
|
691
|
+
# Corresponds to the JSON property `enabled`
|
|
692
|
+
# @return [Boolean]
|
|
693
|
+
attr_accessor :enabled
|
|
694
|
+
alias_method :enabled?, :enabled
|
|
695
|
+
|
|
696
|
+
# Percent of users who will be prompted/redirected federated login for this IDP.
|
|
697
|
+
# Corresponds to the JSON property `experimentPercent`
|
|
698
|
+
# @return [Fixnum]
|
|
699
|
+
attr_accessor :experiment_percent
|
|
700
|
+
|
|
701
|
+
# OAuth2 provider.
|
|
702
|
+
# Corresponds to the JSON property `provider`
|
|
703
|
+
# @return [String]
|
|
704
|
+
attr_accessor :provider
|
|
705
|
+
|
|
706
|
+
def initialize(**args)
|
|
707
|
+
update!(**args)
|
|
708
|
+
end
|
|
709
|
+
|
|
710
|
+
# Update properties of this object
|
|
711
|
+
def update!(**args)
|
|
712
|
+
@client_id = args[:client_id] unless args[:client_id].nil?
|
|
713
|
+
@enabled = args[:enabled] unless args[:enabled].nil?
|
|
714
|
+
@experiment_percent = args[:experiment_percent] unless args[:experiment_percent].nil?
|
|
715
|
+
@provider = args[:provider] unless args[:provider].nil?
|
|
716
|
+
end
|
|
717
|
+
end
|
|
718
|
+
|
|
625
719
|
# Request of getting a code for user confirmation (reset password, change email
|
|
626
720
|
# etc.)
|
|
627
721
|
class Relyingparty
|
|
@@ -733,6 +827,11 @@ module Google
|
|
|
733
827
|
# @return [String]
|
|
734
828
|
attr_accessor :kind
|
|
735
829
|
|
|
830
|
+
# The new email the user attempts to change to.
|
|
831
|
+
# Corresponds to the JSON property `newEmail`
|
|
832
|
+
# @return [String]
|
|
833
|
+
attr_accessor :new_email
|
|
834
|
+
|
|
736
835
|
# The user's profiles at the associated IdPs.
|
|
737
836
|
# Corresponds to the JSON property `providerUserInfo`
|
|
738
837
|
# @return [Array<Google::Apis::IdentitytoolkitV3::SetAccountInfoResponse::ProviderUserInfo>]
|
|
@@ -748,6 +847,7 @@ module Google
|
|
|
748
847
|
@email = args[:email] unless args[:email].nil?
|
|
749
848
|
@id_token = args[:id_token] unless args[:id_token].nil?
|
|
750
849
|
@kind = args[:kind] unless args[:kind].nil?
|
|
850
|
+
@new_email = args[:new_email] unless args[:new_email].nil?
|
|
751
851
|
@provider_user_info = args[:provider_user_info] unless args[:provider_user_info].nil?
|
|
752
852
|
end
|
|
753
853
|
|
|
@@ -1068,6 +1168,12 @@ module Google
|
|
|
1068
1168
|
attr_accessor :need_confirmation
|
|
1069
1169
|
alias_method :need_confirmation?, :need_confirmation
|
|
1070
1170
|
|
|
1171
|
+
# Whether need client to supply email to complete the federated login flow.
|
|
1172
|
+
# Corresponds to the JSON property `needEmail`
|
|
1173
|
+
# @return [Boolean]
|
|
1174
|
+
attr_accessor :need_email
|
|
1175
|
+
alias_method :need_email?, :need_email
|
|
1176
|
+
|
|
1071
1177
|
# The nick name of the user.
|
|
1072
1178
|
# Corresponds to the JSON property `nickName`
|
|
1073
1179
|
# @return [String]
|
|
@@ -1153,6 +1259,7 @@ module Google
|
|
|
1153
1259
|
@last_name = args[:last_name] unless args[:last_name].nil?
|
|
1154
1260
|
@local_id = args[:local_id] unless args[:local_id].nil?
|
|
1155
1261
|
@need_confirmation = args[:need_confirmation] unless args[:need_confirmation].nil?
|
|
1262
|
+
@need_email = args[:need_email] unless args[:need_email].nil?
|
|
1156
1263
|
@nick_name = args[:nick_name] unless args[:nick_name].nil?
|
|
1157
1264
|
@oauth_access_token = args[:oauth_access_token] unless args[:oauth_access_token].nil?
|
|
1158
1265
|
@oauth_authorization_code = args[:oauth_authorization_code] unless args[:oauth_authorization_code].nil?
|
|
@@ -1198,6 +1305,21 @@ module Google
|
|
|
1198
1305
|
# @return [String]
|
|
1199
1306
|
attr_accessor :local_id
|
|
1200
1307
|
|
|
1308
|
+
# The OAuth2 access token.
|
|
1309
|
+
# Corresponds to the JSON property `oauthAccessToken`
|
|
1310
|
+
# @return [String]
|
|
1311
|
+
attr_accessor :oauth_access_token
|
|
1312
|
+
|
|
1313
|
+
# The OAuth2 authorization code.
|
|
1314
|
+
# Corresponds to the JSON property `oauthAuthorizationCode`
|
|
1315
|
+
# @return [String]
|
|
1316
|
+
attr_accessor :oauth_authorization_code
|
|
1317
|
+
|
|
1318
|
+
# The lifetime in seconds of the OAuth2 access token.
|
|
1319
|
+
# Corresponds to the JSON property `oauthExpireIn`
|
|
1320
|
+
# @return [Fixnum]
|
|
1321
|
+
attr_accessor :oauth_expire_in
|
|
1322
|
+
|
|
1201
1323
|
# The URI of the user's photo at IdP
|
|
1202
1324
|
# Corresponds to the JSON property `photoUrl`
|
|
1203
1325
|
# @return [String]
|
|
@@ -1220,6 +1342,9 @@ module Google
|
|
|
1220
1342
|
@id_token = args[:id_token] unless args[:id_token].nil?
|
|
1221
1343
|
@kind = args[:kind] unless args[:kind].nil?
|
|
1222
1344
|
@local_id = args[:local_id] unless args[:local_id].nil?
|
|
1345
|
+
@oauth_access_token = args[:oauth_access_token] unless args[:oauth_access_token].nil?
|
|
1346
|
+
@oauth_authorization_code = args[:oauth_authorization_code] unless args[:oauth_authorization_code].nil?
|
|
1347
|
+
@oauth_expire_in = args[:oauth_expire_in] unless args[:oauth_expire_in].nil?
|
|
1223
1348
|
@photo_url = args[:photo_url] unless args[:photo_url].nil?
|
|
1224
1349
|
@registered = args[:registered] unless args[:registered].nil?
|
|
1225
1350
|
end
|