google-api-client 0.9.8 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +15 -8
- data/CHANGELOG.md +84 -0
- data/Gemfile +10 -2
- data/README.md +10 -2
- data/api_names.yaml +37172 -135
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1200 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +526 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +844 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +310 -28
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +84 -0
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
- data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +206 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +63 -0
- data/generated/google/apis/admin_directory_v1/service.rb +41 -2
- data/generated/google/apis/admin_reports_v1.rb +5 -5
- data/generated/google/apis/admin_reports_v1/service.rb +6 -6
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +379 -3
- data/generated/google/apis/analytics_v3/representations.rb +136 -0
- data/generated/google/apis/analytics_v3/service.rb +256 -0
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +858 -823
- data/generated/google/apis/analyticsreporting_v4/representations.rb +194 -193
- data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +913 -220
- data/generated/google/apis/androidenterprise_v1/representations.rb +337 -30
- data/generated/google/apis/androidenterprise_v1/service.rb +1163 -561
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +230 -8
- data/generated/google/apis/androidpublisher_v2/representations.rb +90 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +116 -3
- data/generated/google/apis/appengine_v1beta5.rb +7 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +810 -395
- data/generated/google/apis/appengine_v1beta5/representations.rb +188 -22
- data/generated/google/apis/appengine_v1beta5/service.rb +343 -39
- data/generated/google/apis/appsactivity_v1.rb +3 -3
- data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
- data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
- data/generated/google/apis/appsactivity_v1/service.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +360 -38
- data/generated/google/apis/bigquery_v2/representations.rb +106 -0
- data/generated/google/apis/bigquery_v2/service.rb +18 -4
- data/generated/google/apis/books_v1.rb +2 -2
- data/generated/google/apis/books_v1/classes.rb +83 -0
- data/generated/google/apis/books_v1/representations.rb +35 -0
- data/generated/google/apis/books_v1/service.rb +7 -3
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +208 -5
- data/generated/google/apis/calendar_v3/representations.rb +97 -0
- data/generated/google/apis/civicinfo_v2.rb +3 -2
- data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
- data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
- data/generated/google/apis/civicinfo_v2/service.rb +27 -6
- data/generated/google/apis/classroom_v1.rb +22 -25
- data/generated/google/apis/classroom_v1/classes.rb +998 -761
- data/generated/google/apis/classroom_v1/representations.rb +263 -198
- data/generated/google/apis/classroom_v1/service.rb +1349 -672
- data/generated/google/apis/cloudbilling_v1.rb +3 -3
- data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
- data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
- data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +661 -264
- data/generated/google/apis/cloudbuild_v1/representations.rb +198 -48
- data/generated/google/apis/cloudbuild_v1/service.rb +259 -44
- data/generated/google/apis/clouddebugger_v2.rb +5 -8
- data/generated/google/apis/clouddebugger_v2/classes.rb +686 -616
- data/generated/google/apis/clouddebugger_v2/representations.rb +151 -151
- data/generated/google/apis/clouddebugger_v2/service.rb +165 -159
- data/generated/google/apis/cloudkms_v1.rb +35 -0
- data/generated/google/apis/cloudkms_v1/classes.rb +1022 -0
- data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1/service.rb +933 -0
- data/generated/google/apis/cloudkms_v1beta1.rb +35 -0
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +1039 -0
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1beta1/service.rb +933 -0
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1529 -167
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +491 -26
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +1593 -135
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +1155 -235
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +344 -44
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +702 -310
- data/generated/google/apis/cloudtrace_v1.rb +9 -9
- data/generated/google/apis/cloudtrace_v1/classes.rb +98 -92
- data/generated/google/apis/cloudtrace_v1/representations.rb +24 -24
- data/generated/google/apis/cloudtrace_v1/service.rb +42 -37
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +7007 -3648
- data/generated/google/apis/compute_beta/representations.rb +1459 -120
- data/generated/google/apis/compute_beta/service.rb +7943 -3726
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +2567 -370
- data/generated/google/apis/compute_v1/representations.rb +855 -0
- data/generated/google/apis/compute_v1/service.rb +6388 -2908
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +287 -16
- data/generated/google/apis/container_v1/representations.rb +113 -2
- data/generated/google/apis/container_v1/service.rb +130 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +778 -10
- data/generated/google/apis/content_v2/representations.rb +339 -0
- data/generated/google/apis/content_v2/service.rb +364 -49
- data/generated/google/apis/dataflow_v1b3.rb +37 -0
- data/generated/google/apis/dataflow_v1b3/classes.rb +4941 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +2037 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +957 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1235 -963
- data/generated/google/apis/dataproc_v1/representations.rb +299 -225
- data/generated/google/apis/dataproc_v1/service.rb +277 -192
- data/generated/google/apis/datastore_v1.rb +38 -0
- data/generated/google/apis/datastore_v1/classes.rb +1289 -0
- data/generated/google/apis/datastore_v1/representations.rb +572 -0
- data/generated/google/apis/datastore_v1/service.rb +259 -0
- data/generated/google/apis/datastore_v1beta3.rb +38 -0
- data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +436 -3
- data/generated/google/apis/deploymentmanager_v2/representations.rb +178 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +226 -61
- data/generated/google/apis/dfareporting_v2_5.rb +40 -0
- data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
- data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
- data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
- data/generated/google/apis/dfareporting_v2_6.rb +40 -0
- data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
- data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
- data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
- data/generated/google/apis/dfareporting_v2_7.rb +40 -0
- data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
- data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
- data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +43 -0
- data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
- data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
- data/generated/google/apis/dns_v2beta1/service.rb +768 -0
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +595 -37
- data/generated/google/apis/drive_v2/representations.rb +140 -0
- data/generated/google/apis/drive_v2/service.rb +406 -40
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +507 -40
- data/generated/google/apis/drive_v3/representations.rb +105 -0
- data/generated/google/apis/drive_v3/service.rb +326 -29
- data/generated/google/apis/fitness_v1.rb +38 -2
- data/generated/google/apis/fitness_v1/classes.rb +65 -7
- data/generated/google/apis/fitness_v1/representations.rb +20 -0
- data/generated/google/apis/fitness_v1/service.rb +17 -18
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +10 -12
- data/generated/google/apis/genomics_v1/classes.rb +2276 -2165
- data/generated/google/apis/genomics_v1/representations.rb +468 -496
- data/generated/google/apis/genomics_v1/service.rb +978 -882
- data/generated/google/apis/gmail_v1.rb +11 -2
- data/generated/google/apis/gmail_v1/classes.rb +655 -5
- data/generated/google/apis/gmail_v1/representations.rb +261 -0
- data/generated/google/apis/gmail_v1/service.rb +1211 -48
- data/generated/google/apis/groupssettings_v1.rb +2 -2
- data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
- data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
- data/generated/google/apis/iam_v1.rb +2 -2
- data/generated/google/apis/iam_v1/classes.rb +446 -368
- data/generated/google/apis/iam_v1/representations.rb +109 -91
- data/generated/google/apis/iam_v1/service.rb +249 -162
- data/generated/google/apis/identitytoolkit_v3.rb +7 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +254 -2
- data/generated/google/apis/identitytoolkit_v3/representations.rb +38 -0
- data/generated/google/apis/kgsearch_v1.rb +2 -3
- data/generated/google/apis/kgsearch_v1/classes.rb +13 -13
- data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
- data/generated/google/apis/kgsearch_v1/service.rb +26 -24
- data/generated/google/apis/language_v1beta1.rb +36 -0
- data/generated/google/apis/language_v1beta1/classes.rb +757 -0
- data/generated/google/apis/language_v1beta1/representations.rb +339 -0
- data/generated/google/apis/language_v1beta1/service.rb +185 -0
- data/generated/google/apis/licensing_v1.rb +3 -3
- data/generated/google/apis/licensing_v1/classes.rb +14 -2
- data/generated/google/apis/licensing_v1/representations.rb +2 -0
- data/generated/google/apis/licensing_v1/service.rb +1 -1
- data/generated/google/apis/logging_v2beta1.rb +6 -6
- data/generated/google/apis/logging_v2beta1/classes.rb +900 -775
- data/generated/google/apis/logging_v2beta1/representations.rb +163 -142
- data/generated/google/apis/logging_v2beta1/service.rb +427 -155
- data/generated/google/apis/manufacturers_v1.rb +34 -0
- data/generated/google/apis/manufacturers_v1/classes.rb +605 -0
- data/generated/google/apis/manufacturers_v1/representations.rb +223 -0
- data/generated/google/apis/manufacturers_v1/service.rb +138 -0
- data/generated/google/apis/mirror_v1.rb +2 -2
- data/generated/google/apis/mirror_v1/service.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +45 -0
- data/generated/google/apis/monitoring_v3/classes.rb +1333 -0
- data/generated/google/apis/monitoring_v3/representations.rb +516 -0
- data/generated/google/apis/monitoring_v3/service.rb +706 -0
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/partners_v2.rb +3 -3
- data/generated/google/apis/partners_v2/classes.rb +1831 -477
- data/generated/google/apis/partners_v2/representations.rb +571 -114
- data/generated/google/apis/partners_v2/service.rb +898 -167
- data/generated/google/apis/people_v1.rb +15 -16
- data/generated/google/apis/people_v1/classes.rb +1047 -859
- data/generated/google/apis/people_v1/representations.rb +252 -213
- data/generated/google/apis/people_v1/service.rb +75 -62
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +527 -456
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +101 -100
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +467 -343
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +363 -310
- data/generated/google/apis/pubsub_v1/representations.rb +76 -76
- data/generated/google/apis/pubsub_v1/service.rb +464 -335
- data/generated/google/apis/qpx_express_v1.rb +1 -1
- data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
- data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
- data/generated/google/apis/replicapool_v1beta2.rb +1 -1
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +222 -61
- data/generated/google/apis/reseller_v1/representations.rb +28 -0
- data/generated/google/apis/reseller_v1/service.rb +240 -47
- data/generated/google/apis/script_v1.rb +19 -19
- data/generated/google/apis/script_v1/classes.rb +151 -137
- data/generated/google/apis/script_v1/representations.rb +26 -26
- data/generated/google/apis/script_v1/service.rb +9 -8
- data/generated/google/apis/sheets_v4.rb +7 -7
- data/generated/google/apis/sheets_v4/classes.rb +4530 -3506
- data/generated/google/apis/sheets_v4/representations.rb +988 -737
- data/generated/google/apis/sheets_v4/service.rb +266 -99
- data/generated/google/apis/site_verification_v1.rb +1 -1
- data/generated/google/apis/slides_v1.rb +49 -0
- data/generated/google/apis/slides_v1/classes.rb +4480 -0
- data/generated/google/apis/slides_v1/representations.rb +1926 -0
- data/generated/google/apis/slides_v1/service.rb +245 -0
- data/generated/google/apis/speech_v1beta1.rb +34 -0
- data/generated/google/apis/speech_v1beta1/classes.rb +498 -0
- data/generated/google/apis/speech_v1beta1/representations.rb +206 -0
- data/generated/google/apis/speech_v1beta1/service.rb +270 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +131 -10
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +50 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +92 -2
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +205 -21
- data/generated/google/apis/storage_v1/representations.rb +51 -1
- data/generated/google/apis/storage_v1/service.rb +263 -9
- data/generated/google/apis/tagmanager_v1.rb +5 -5
- data/generated/google/apis/translate_v2.rb +2 -2
- data/generated/google/apis/translate_v2/service.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1275 -731
- data/generated/google/apis/vision_v1/representations.rb +378 -111
- data/generated/google/apis/vision_v1/service.rb +4 -4
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/classes.rb +0 -209
- data/generated/google/apis/youtube_analytics_v1/representations.rb +0 -99
- data/generated/google/apis/youtube_analytics_v1/service.rb +5 -77
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +155 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +69 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +107 -3
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +430 -22
- data/generated/google/apis/youtube_v3/representations.rb +171 -4
- data/generated/google/apis/youtube_v3/service.rb +100 -9
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +140 -131
- data/generated/google/apis/youtubereporting_v1/representations.rb +37 -37
- data/generated/google/apis/youtubereporting_v1/service.rb +139 -135
- data/google-api-client.gemspec +4 -3
- data/lib/google/apis/core/api_command.rb +16 -6
- data/lib/google/apis/core/base_service.rb +17 -9
- data/lib/google/apis/core/download.rb +7 -2
- data/lib/google/apis/core/http_command.rb +5 -1
- data/lib/google/apis/core/json_representation.rb +2 -2
- data/lib/google/apis/core/upload.rb +7 -1
- data/lib/google/apis/errors.rb +6 -2
- data/lib/google/apis/generator/annotator.rb +6 -0
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/bigquery.rb +101 -0
- data/samples/cli/lib/samples/calendar.rb +1 -1
- data/samples/cli/lib/samples/gmail.rb +74 -0
- data/samples/cli/lib/samples/sheets.rb +61 -0
- data/samples/cli/lib/samples/you_tube.rb +4 -1
- data/sync.rb +71 -0
- metadata +86 -18
@@ -25,9 +25,9 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/gmail/api/
|
26
26
|
module GmailV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20170222'
|
29
29
|
|
30
|
-
#
|
30
|
+
# Read, send, delete, and manage your email
|
31
31
|
AUTH_SCOPE = 'https://mail.google.com/'
|
32
32
|
|
33
33
|
# Manage drafts and send emails
|
@@ -39,6 +39,9 @@ module Google
|
|
39
39
|
# Manage mailbox labels
|
40
40
|
AUTH_GMAIL_LABELS = 'https://www.googleapis.com/auth/gmail.labels'
|
41
41
|
|
42
|
+
# View your email message metadata such as labels and headers, but not the email body
|
43
|
+
AUTH_GMAIL_METADATA = 'https://www.googleapis.com/auth/gmail.metadata'
|
44
|
+
|
42
45
|
# View and modify but not delete your email
|
43
46
|
AUTH_GMAIL_MODIFY = 'https://www.googleapis.com/auth/gmail.modify'
|
44
47
|
|
@@ -47,6 +50,12 @@ module Google
|
|
47
50
|
|
48
51
|
# Send email on your behalf
|
49
52
|
AUTH_GMAIL_SEND = 'https://www.googleapis.com/auth/gmail.send'
|
53
|
+
|
54
|
+
# Manage your basic mail settings
|
55
|
+
AUTH_GMAIL_SETTINGS_BASIC = 'https://www.googleapis.com/auth/gmail.settings.basic'
|
56
|
+
|
57
|
+
# Manage your sensitive mail settings, including who can manage your mail
|
58
|
+
AUTH_GMAIL_SETTINGS_SHARING = 'https://www.googleapis.com/auth/gmail.settings.sharing'
|
50
59
|
end
|
51
60
|
end
|
52
61
|
end
|
@@ -22,6 +22,39 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module GmailV1
|
24
24
|
|
25
|
+
# Auto-forwarding settings for an account.
|
26
|
+
class AutoForwarding
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# The state that a message should be left in after it has been forwarded.
|
30
|
+
# Corresponds to the JSON property `disposition`
|
31
|
+
# @return [String]
|
32
|
+
attr_accessor :disposition
|
33
|
+
|
34
|
+
# Email address to which all incoming messages are forwarded. This email address
|
35
|
+
# must be a verified member of the forwarding addresses.
|
36
|
+
# Corresponds to the JSON property `emailAddress`
|
37
|
+
# @return [String]
|
38
|
+
attr_accessor :email_address
|
39
|
+
|
40
|
+
# Whether all incoming mail is automatically forwarded to another address.
|
41
|
+
# Corresponds to the JSON property `enabled`
|
42
|
+
# @return [Boolean]
|
43
|
+
attr_accessor :enabled
|
44
|
+
alias_method :enabled?, :enabled
|
45
|
+
|
46
|
+
def initialize(**args)
|
47
|
+
update!(**args)
|
48
|
+
end
|
49
|
+
|
50
|
+
# Update properties of this object
|
51
|
+
def update!(**args)
|
52
|
+
@disposition = args[:disposition] if args.key?(:disposition)
|
53
|
+
@email_address = args[:email_address] if args.key?(:email_address)
|
54
|
+
@enabled = args[:enabled] if args.key?(:enabled)
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
25
58
|
#
|
26
59
|
class BatchDeleteMessagesRequest
|
27
60
|
include Google::Apis::Core::Hashable
|
@@ -41,6 +74,37 @@ module Google
|
|
41
74
|
end
|
42
75
|
end
|
43
76
|
|
77
|
+
#
|
78
|
+
class BatchModifyMessagesRequest
|
79
|
+
include Google::Apis::Core::Hashable
|
80
|
+
|
81
|
+
# A list of label IDs to add to messages.
|
82
|
+
# Corresponds to the JSON property `addLabelIds`
|
83
|
+
# @return [Array<String>]
|
84
|
+
attr_accessor :add_label_ids
|
85
|
+
|
86
|
+
# The IDs of the messages to modify. There is a limit of 1000 ids per request.
|
87
|
+
# Corresponds to the JSON property `ids`
|
88
|
+
# @return [Array<String>]
|
89
|
+
attr_accessor :ids
|
90
|
+
|
91
|
+
# A list of label IDs to remove from messages.
|
92
|
+
# Corresponds to the JSON property `removeLabelIds`
|
93
|
+
# @return [Array<String>]
|
94
|
+
attr_accessor :remove_label_ids
|
95
|
+
|
96
|
+
def initialize(**args)
|
97
|
+
update!(**args)
|
98
|
+
end
|
99
|
+
|
100
|
+
# Update properties of this object
|
101
|
+
def update!(**args)
|
102
|
+
@add_label_ids = args[:add_label_ids] if args.key?(:add_label_ids)
|
103
|
+
@ids = args[:ids] if args.key?(:ids)
|
104
|
+
@remove_label_ids = args[:remove_label_ids] if args.key?(:remove_label_ids)
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
44
108
|
# A draft email in the user's mailbox.
|
45
109
|
class Draft
|
46
110
|
include Google::Apis::Core::Hashable
|
@@ -66,6 +130,173 @@ module Google
|
|
66
130
|
end
|
67
131
|
end
|
68
132
|
|
133
|
+
# Resource definition for Gmail filters. Filters apply to specific messages
|
134
|
+
# instead of an entire email thread.
|
135
|
+
class Filter
|
136
|
+
include Google::Apis::Core::Hashable
|
137
|
+
|
138
|
+
# A set of actions to perform on a message.
|
139
|
+
# Corresponds to the JSON property `action`
|
140
|
+
# @return [Google::Apis::GmailV1::FilterAction]
|
141
|
+
attr_accessor :action
|
142
|
+
|
143
|
+
# Message matching criteria.
|
144
|
+
# Corresponds to the JSON property `criteria`
|
145
|
+
# @return [Google::Apis::GmailV1::FilterCriteria]
|
146
|
+
attr_accessor :criteria
|
147
|
+
|
148
|
+
# The server assigned ID of the filter.
|
149
|
+
# Corresponds to the JSON property `id`
|
150
|
+
# @return [String]
|
151
|
+
attr_accessor :id
|
152
|
+
|
153
|
+
def initialize(**args)
|
154
|
+
update!(**args)
|
155
|
+
end
|
156
|
+
|
157
|
+
# Update properties of this object
|
158
|
+
def update!(**args)
|
159
|
+
@action = args[:action] if args.key?(:action)
|
160
|
+
@criteria = args[:criteria] if args.key?(:criteria)
|
161
|
+
@id = args[:id] if args.key?(:id)
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
165
|
+
# A set of actions to perform on a message.
|
166
|
+
class FilterAction
|
167
|
+
include Google::Apis::Core::Hashable
|
168
|
+
|
169
|
+
# List of labels to add to the message.
|
170
|
+
# Corresponds to the JSON property `addLabelIds`
|
171
|
+
# @return [Array<String>]
|
172
|
+
attr_accessor :add_label_ids
|
173
|
+
|
174
|
+
# Email address that the message should be forwarded to.
|
175
|
+
# Corresponds to the JSON property `forward`
|
176
|
+
# @return [String]
|
177
|
+
attr_accessor :forward
|
178
|
+
|
179
|
+
# List of labels to remove from the message.
|
180
|
+
# Corresponds to the JSON property `removeLabelIds`
|
181
|
+
# @return [Array<String>]
|
182
|
+
attr_accessor :remove_label_ids
|
183
|
+
|
184
|
+
def initialize(**args)
|
185
|
+
update!(**args)
|
186
|
+
end
|
187
|
+
|
188
|
+
# Update properties of this object
|
189
|
+
def update!(**args)
|
190
|
+
@add_label_ids = args[:add_label_ids] if args.key?(:add_label_ids)
|
191
|
+
@forward = args[:forward] if args.key?(:forward)
|
192
|
+
@remove_label_ids = args[:remove_label_ids] if args.key?(:remove_label_ids)
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
# Message matching criteria.
|
197
|
+
class FilterCriteria
|
198
|
+
include Google::Apis::Core::Hashable
|
199
|
+
|
200
|
+
# Whether the response should exclude chats.
|
201
|
+
# Corresponds to the JSON property `excludeChats`
|
202
|
+
# @return [Boolean]
|
203
|
+
attr_accessor :exclude_chats
|
204
|
+
alias_method :exclude_chats?, :exclude_chats
|
205
|
+
|
206
|
+
# The sender's display name or email address.
|
207
|
+
# Corresponds to the JSON property `from`
|
208
|
+
# @return [String]
|
209
|
+
attr_accessor :from
|
210
|
+
|
211
|
+
# Whether the message has any attachment.
|
212
|
+
# Corresponds to the JSON property `hasAttachment`
|
213
|
+
# @return [Boolean]
|
214
|
+
attr_accessor :has_attachment
|
215
|
+
alias_method :has_attachment?, :has_attachment
|
216
|
+
|
217
|
+
# Only return messages not matching the specified query. Supports the same query
|
218
|
+
# format as the Gmail search box. For example, "from:someuser@example.com
|
219
|
+
# rfc822msgid: is:unread".
|
220
|
+
# Corresponds to the JSON property `negatedQuery`
|
221
|
+
# @return [String]
|
222
|
+
attr_accessor :negated_query
|
223
|
+
|
224
|
+
# Only return messages matching the specified query. Supports the same query
|
225
|
+
# format as the Gmail search box. For example, "from:someuser@example.com
|
226
|
+
# rfc822msgid: is:unread".
|
227
|
+
# Corresponds to the JSON property `query`
|
228
|
+
# @return [String]
|
229
|
+
attr_accessor :query
|
230
|
+
|
231
|
+
# The size of the entire RFC822 message in bytes, including all headers and
|
232
|
+
# attachments.
|
233
|
+
# Corresponds to the JSON property `size`
|
234
|
+
# @return [Fixnum]
|
235
|
+
attr_accessor :size
|
236
|
+
|
237
|
+
# How the message size in bytes should be in relation to the size field.
|
238
|
+
# Corresponds to the JSON property `sizeComparison`
|
239
|
+
# @return [String]
|
240
|
+
attr_accessor :size_comparison
|
241
|
+
|
242
|
+
# Case-insensitive phrase found in the message's subject. Trailing and leading
|
243
|
+
# whitespace are be trimmed and adjacent spaces are collapsed.
|
244
|
+
# Corresponds to the JSON property `subject`
|
245
|
+
# @return [String]
|
246
|
+
attr_accessor :subject
|
247
|
+
|
248
|
+
# The recipient's display name or email address. Includes recipients in the "to",
|
249
|
+
# "cc", and "bcc" header fields. You can use simply the local part of the email
|
250
|
+
# address. For example, "example" and "example@" both match "example@gmail.com".
|
251
|
+
# This field is case-insensitive.
|
252
|
+
# Corresponds to the JSON property `to`
|
253
|
+
# @return [String]
|
254
|
+
attr_accessor :to
|
255
|
+
|
256
|
+
def initialize(**args)
|
257
|
+
update!(**args)
|
258
|
+
end
|
259
|
+
|
260
|
+
# Update properties of this object
|
261
|
+
def update!(**args)
|
262
|
+
@exclude_chats = args[:exclude_chats] if args.key?(:exclude_chats)
|
263
|
+
@from = args[:from] if args.key?(:from)
|
264
|
+
@has_attachment = args[:has_attachment] if args.key?(:has_attachment)
|
265
|
+
@negated_query = args[:negated_query] if args.key?(:negated_query)
|
266
|
+
@query = args[:query] if args.key?(:query)
|
267
|
+
@size = args[:size] if args.key?(:size)
|
268
|
+
@size_comparison = args[:size_comparison] if args.key?(:size_comparison)
|
269
|
+
@subject = args[:subject] if args.key?(:subject)
|
270
|
+
@to = args[:to] if args.key?(:to)
|
271
|
+
end
|
272
|
+
end
|
273
|
+
|
274
|
+
# Settings for a forwarding address.
|
275
|
+
class ForwardingAddress
|
276
|
+
include Google::Apis::Core::Hashable
|
277
|
+
|
278
|
+
# An email address to which messages can be forwarded.
|
279
|
+
# Corresponds to the JSON property `forwardingEmail`
|
280
|
+
# @return [String]
|
281
|
+
attr_accessor :forwarding_email
|
282
|
+
|
283
|
+
# Indicates whether this address has been verified and is usable for forwarding.
|
284
|
+
# Read-only.
|
285
|
+
# Corresponds to the JSON property `verificationStatus`
|
286
|
+
# @return [String]
|
287
|
+
attr_accessor :verification_status
|
288
|
+
|
289
|
+
def initialize(**args)
|
290
|
+
update!(**args)
|
291
|
+
end
|
292
|
+
|
293
|
+
# Update properties of this object
|
294
|
+
def update!(**args)
|
295
|
+
@forwarding_email = args[:forwarding_email] if args.key?(:forwarding_email)
|
296
|
+
@verification_status = args[:verification_status] if args.key?(:verification_status)
|
297
|
+
end
|
298
|
+
end
|
299
|
+
|
69
300
|
# A record of a change to the user's mailbox. Each history change may affect
|
70
301
|
# multiple messages in multiple ways.
|
71
302
|
class History
|
@@ -206,6 +437,50 @@ module Google
|
|
206
437
|
end
|
207
438
|
end
|
208
439
|
|
440
|
+
# IMAP settings for an account.
|
441
|
+
class ImapSettings
|
442
|
+
include Google::Apis::Core::Hashable
|
443
|
+
|
444
|
+
# If this value is true, Gmail will immediately expunge a message when it is
|
445
|
+
# marked as deleted in IMAP. Otherwise, Gmail will wait for an update from the
|
446
|
+
# client before expunging messages marked as deleted.
|
447
|
+
# Corresponds to the JSON property `autoExpunge`
|
448
|
+
# @return [Boolean]
|
449
|
+
attr_accessor :auto_expunge
|
450
|
+
alias_method :auto_expunge?, :auto_expunge
|
451
|
+
|
452
|
+
# Whether IMAP is enabled for the account.
|
453
|
+
# Corresponds to the JSON property `enabled`
|
454
|
+
# @return [Boolean]
|
455
|
+
attr_accessor :enabled
|
456
|
+
alias_method :enabled?, :enabled
|
457
|
+
|
458
|
+
# The action that will be executed on a message when it is marked as deleted and
|
459
|
+
# expunged from the last visible IMAP folder.
|
460
|
+
# Corresponds to the JSON property `expungeBehavior`
|
461
|
+
# @return [String]
|
462
|
+
attr_accessor :expunge_behavior
|
463
|
+
|
464
|
+
# An optional limit on the number of messages that an IMAP folder may contain.
|
465
|
+
# Legal values are 0, 1000, 2000, 5000 or 10000. A value of zero is interpreted
|
466
|
+
# to mean that there is no limit.
|
467
|
+
# Corresponds to the JSON property `maxFolderSize`
|
468
|
+
# @return [Fixnum]
|
469
|
+
attr_accessor :max_folder_size
|
470
|
+
|
471
|
+
def initialize(**args)
|
472
|
+
update!(**args)
|
473
|
+
end
|
474
|
+
|
475
|
+
# Update properties of this object
|
476
|
+
def update!(**args)
|
477
|
+
@auto_expunge = args[:auto_expunge] if args.key?(:auto_expunge)
|
478
|
+
@enabled = args[:enabled] if args.key?(:enabled)
|
479
|
+
@expunge_behavior = args[:expunge_behavior] if args.key?(:expunge_behavior)
|
480
|
+
@max_folder_size = args[:max_folder_size] if args.key?(:max_folder_size)
|
481
|
+
end
|
482
|
+
end
|
483
|
+
|
209
484
|
# Labels are used to categorize messages and threads within the user's mailbox.
|
210
485
|
class Label
|
211
486
|
include Google::Apis::Core::Hashable
|
@@ -311,6 +586,44 @@ module Google
|
|
311
586
|
end
|
312
587
|
end
|
313
588
|
|
589
|
+
# Response for the ListFilters method.
|
590
|
+
class ListFiltersResponse
|
591
|
+
include Google::Apis::Core::Hashable
|
592
|
+
|
593
|
+
# List of a user's filters.
|
594
|
+
# Corresponds to the JSON property `filter`
|
595
|
+
# @return [Array<Google::Apis::GmailV1::Filter>]
|
596
|
+
attr_accessor :filter
|
597
|
+
|
598
|
+
def initialize(**args)
|
599
|
+
update!(**args)
|
600
|
+
end
|
601
|
+
|
602
|
+
# Update properties of this object
|
603
|
+
def update!(**args)
|
604
|
+
@filter = args[:filter] if args.key?(:filter)
|
605
|
+
end
|
606
|
+
end
|
607
|
+
|
608
|
+
# Response for the ListForwardingAddresses method.
|
609
|
+
class ListForwardingAddressesResponse
|
610
|
+
include Google::Apis::Core::Hashable
|
611
|
+
|
612
|
+
# List of addresses that may be used for forwarding.
|
613
|
+
# Corresponds to the JSON property `forwardingAddresses`
|
614
|
+
# @return [Array<Google::Apis::GmailV1::ForwardingAddress>]
|
615
|
+
attr_accessor :forwarding_addresses
|
616
|
+
|
617
|
+
def initialize(**args)
|
618
|
+
update!(**args)
|
619
|
+
end
|
620
|
+
|
621
|
+
# Update properties of this object
|
622
|
+
def update!(**args)
|
623
|
+
@forwarding_addresses = args[:forwarding_addresses] if args.key?(:forwarding_addresses)
|
624
|
+
end
|
625
|
+
end
|
626
|
+
|
314
627
|
#
|
315
628
|
class ListHistoryResponse
|
316
629
|
include Google::Apis::Core::Hashable
|
@@ -393,6 +706,44 @@ module Google
|
|
393
706
|
end
|
394
707
|
end
|
395
708
|
|
709
|
+
# Response for the ListSendAs method.
|
710
|
+
class ListSendAsResponse
|
711
|
+
include Google::Apis::Core::Hashable
|
712
|
+
|
713
|
+
# List of send-as aliases.
|
714
|
+
# Corresponds to the JSON property `sendAs`
|
715
|
+
# @return [Array<Google::Apis::GmailV1::SendAs>]
|
716
|
+
attr_accessor :send_as
|
717
|
+
|
718
|
+
def initialize(**args)
|
719
|
+
update!(**args)
|
720
|
+
end
|
721
|
+
|
722
|
+
# Update properties of this object
|
723
|
+
def update!(**args)
|
724
|
+
@send_as = args[:send_as] if args.key?(:send_as)
|
725
|
+
end
|
726
|
+
end
|
727
|
+
|
728
|
+
#
|
729
|
+
class ListSmimeInfoResponse
|
730
|
+
include Google::Apis::Core::Hashable
|
731
|
+
|
732
|
+
# List of SmimeInfo.
|
733
|
+
# Corresponds to the JSON property `smimeInfo`
|
734
|
+
# @return [Array<Google::Apis::GmailV1::SmimeInfo>]
|
735
|
+
attr_accessor :smime_info
|
736
|
+
|
737
|
+
def initialize(**args)
|
738
|
+
update!(**args)
|
739
|
+
end
|
740
|
+
|
741
|
+
# Update properties of this object
|
742
|
+
def update!(**args)
|
743
|
+
@smime_info = args[:smime_info] if args.key?(:smime_info)
|
744
|
+
end
|
745
|
+
end
|
746
|
+
|
396
747
|
#
|
397
748
|
class ListThreadsResponse
|
398
749
|
include Google::Apis::Core::Hashable
|
@@ -569,15 +920,15 @@ module Google
|
|
569
920
|
# @return [String]
|
570
921
|
attr_accessor :attachment_id
|
571
922
|
|
572
|
-
# The body data of a MIME message part
|
573
|
-
# that have no message body or when the body data
|
574
|
-
# attachment. An attachment ID is present if the body data
|
575
|
-
# separate attachment.
|
923
|
+
# The body data of a MIME message part as a base64url encoded string. May be
|
924
|
+
# empty for MIME container types that have no message body or when the body data
|
925
|
+
# is sent as a separate attachment. An attachment ID is present if the body data
|
926
|
+
# is contained in a separate attachment.
|
576
927
|
# Corresponds to the JSON property `data`
|
577
928
|
# @return [String]
|
578
929
|
attr_accessor :data
|
579
930
|
|
580
|
-
#
|
931
|
+
# Number of bytes for the message part data (encoding notwithstanding).
|
581
932
|
# Corresponds to the JSON property `size`
|
582
933
|
# @return [Fixnum]
|
583
934
|
attr_accessor :size
|
@@ -670,6 +1021,32 @@ module Google
|
|
670
1021
|
end
|
671
1022
|
end
|
672
1023
|
|
1024
|
+
# POP settings for an account.
|
1025
|
+
class PopSettings
|
1026
|
+
include Google::Apis::Core::Hashable
|
1027
|
+
|
1028
|
+
# The range of messages which are accessible via POP.
|
1029
|
+
# Corresponds to the JSON property `accessWindow`
|
1030
|
+
# @return [String]
|
1031
|
+
attr_accessor :access_window
|
1032
|
+
|
1033
|
+
# The action that will be executed on a message after it has been fetched via
|
1034
|
+
# POP.
|
1035
|
+
# Corresponds to the JSON property `disposition`
|
1036
|
+
# @return [String]
|
1037
|
+
attr_accessor :disposition
|
1038
|
+
|
1039
|
+
def initialize(**args)
|
1040
|
+
update!(**args)
|
1041
|
+
end
|
1042
|
+
|
1043
|
+
# Update properties of this object
|
1044
|
+
def update!(**args)
|
1045
|
+
@access_window = args[:access_window] if args.key?(:access_window)
|
1046
|
+
@disposition = args[:disposition] if args.key?(:disposition)
|
1047
|
+
end
|
1048
|
+
end
|
1049
|
+
|
673
1050
|
# Profile for a Gmail user.
|
674
1051
|
class Profile
|
675
1052
|
include Google::Apis::Core::Hashable
|
@@ -707,6 +1084,204 @@ module Google
|
|
707
1084
|
end
|
708
1085
|
end
|
709
1086
|
|
1087
|
+
# Settings associated with a send-as alias, which can be either the primary
|
1088
|
+
# login address associated with the account or a custom "from" address. Send-as
|
1089
|
+
# aliases correspond to the "Send Mail As" feature in the web interface.
|
1090
|
+
class SendAs
|
1091
|
+
include Google::Apis::Core::Hashable
|
1092
|
+
|
1093
|
+
# A name that appears in the "From:" header for mail sent using this alias. For
|
1094
|
+
# custom "from" addresses, when this is empty, Gmail will populate the "From:"
|
1095
|
+
# header with the name that is used for the primary address associated with the
|
1096
|
+
# account.
|
1097
|
+
# Corresponds to the JSON property `displayName`
|
1098
|
+
# @return [String]
|
1099
|
+
attr_accessor :display_name
|
1100
|
+
|
1101
|
+
# Whether this address is selected as the default "From:" address in situations
|
1102
|
+
# such as composing a new message or sending a vacation auto-reply. Every Gmail
|
1103
|
+
# account has exactly one default send-as address, so the only legal value that
|
1104
|
+
# clients may write to this field is true. Changing this from false to true for
|
1105
|
+
# an address will result in this field becoming false for the other previous
|
1106
|
+
# default address.
|
1107
|
+
# Corresponds to the JSON property `isDefault`
|
1108
|
+
# @return [Boolean]
|
1109
|
+
attr_accessor :is_default
|
1110
|
+
alias_method :is_default?, :is_default
|
1111
|
+
|
1112
|
+
# Whether this address is the primary address used to login to the account.
|
1113
|
+
# Every Gmail account has exactly one primary address, and it cannot be deleted
|
1114
|
+
# from the collection of send-as aliases. This field is read-only.
|
1115
|
+
# Corresponds to the JSON property `isPrimary`
|
1116
|
+
# @return [Boolean]
|
1117
|
+
attr_accessor :is_primary
|
1118
|
+
alias_method :is_primary?, :is_primary
|
1119
|
+
|
1120
|
+
# An optional email address that is included in a "Reply-To:" header for mail
|
1121
|
+
# sent using this alias. If this is empty, Gmail will not generate a "Reply-To:"
|
1122
|
+
# header.
|
1123
|
+
# Corresponds to the JSON property `replyToAddress`
|
1124
|
+
# @return [String]
|
1125
|
+
attr_accessor :reply_to_address
|
1126
|
+
|
1127
|
+
# The email address that appears in the "From:" header for mail sent using this
|
1128
|
+
# alias. This is read-only for all operations except create.
|
1129
|
+
# Corresponds to the JSON property `sendAsEmail`
|
1130
|
+
# @return [String]
|
1131
|
+
attr_accessor :send_as_email
|
1132
|
+
|
1133
|
+
# An optional HTML signature that is included in messages composed with this
|
1134
|
+
# alias in the Gmail web UI.
|
1135
|
+
# Corresponds to the JSON property `signature`
|
1136
|
+
# @return [String]
|
1137
|
+
attr_accessor :signature
|
1138
|
+
|
1139
|
+
# Configuration for communication with an SMTP service.
|
1140
|
+
# Corresponds to the JSON property `smtpMsa`
|
1141
|
+
# @return [Google::Apis::GmailV1::SmtpMsa]
|
1142
|
+
attr_accessor :smtp_msa
|
1143
|
+
|
1144
|
+
# Whether Gmail should treat this address as an alias for the user's primary
|
1145
|
+
# email address. This setting only applies to custom "from" aliases.
|
1146
|
+
# Corresponds to the JSON property `treatAsAlias`
|
1147
|
+
# @return [Boolean]
|
1148
|
+
attr_accessor :treat_as_alias
|
1149
|
+
alias_method :treat_as_alias?, :treat_as_alias
|
1150
|
+
|
1151
|
+
# Indicates whether this address has been verified for use as a send-as alias.
|
1152
|
+
# Read-only. This setting only applies to custom "from" aliases.
|
1153
|
+
# Corresponds to the JSON property `verificationStatus`
|
1154
|
+
# @return [String]
|
1155
|
+
attr_accessor :verification_status
|
1156
|
+
|
1157
|
+
def initialize(**args)
|
1158
|
+
update!(**args)
|
1159
|
+
end
|
1160
|
+
|
1161
|
+
# Update properties of this object
|
1162
|
+
def update!(**args)
|
1163
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
1164
|
+
@is_default = args[:is_default] if args.key?(:is_default)
|
1165
|
+
@is_primary = args[:is_primary] if args.key?(:is_primary)
|
1166
|
+
@reply_to_address = args[:reply_to_address] if args.key?(:reply_to_address)
|
1167
|
+
@send_as_email = args[:send_as_email] if args.key?(:send_as_email)
|
1168
|
+
@signature = args[:signature] if args.key?(:signature)
|
1169
|
+
@smtp_msa = args[:smtp_msa] if args.key?(:smtp_msa)
|
1170
|
+
@treat_as_alias = args[:treat_as_alias] if args.key?(:treat_as_alias)
|
1171
|
+
@verification_status = args[:verification_status] if args.key?(:verification_status)
|
1172
|
+
end
|
1173
|
+
end
|
1174
|
+
|
1175
|
+
# An S/MIME email config.
|
1176
|
+
class SmimeInfo
|
1177
|
+
include Google::Apis::Core::Hashable
|
1178
|
+
|
1179
|
+
# Encrypted key password, when key is encrypted.
|
1180
|
+
# Corresponds to the JSON property `encryptedKeyPassword`
|
1181
|
+
# @return [String]
|
1182
|
+
attr_accessor :encrypted_key_password
|
1183
|
+
|
1184
|
+
# When the certificate expires (in milliseconds since epoch).
|
1185
|
+
# Corresponds to the JSON property `expiration`
|
1186
|
+
# @return [String]
|
1187
|
+
attr_accessor :expiration
|
1188
|
+
|
1189
|
+
# The immutable ID for the SmimeInfo.
|
1190
|
+
# Corresponds to the JSON property `id`
|
1191
|
+
# @return [String]
|
1192
|
+
attr_accessor :id
|
1193
|
+
|
1194
|
+
# Whether this SmimeInfo is the default one for this user's send-as address.
|
1195
|
+
# Corresponds to the JSON property `isDefault`
|
1196
|
+
# @return [Boolean]
|
1197
|
+
attr_accessor :is_default
|
1198
|
+
alias_method :is_default?, :is_default
|
1199
|
+
|
1200
|
+
# The S/MIME certificate issuer's common name.
|
1201
|
+
# Corresponds to the JSON property `issuerCn`
|
1202
|
+
# @return [String]
|
1203
|
+
attr_accessor :issuer_cn
|
1204
|
+
|
1205
|
+
# PEM formatted X509 concatenated certificate string (standard base64 encoding).
|
1206
|
+
# Format used for returning key, which includes public key as well as
|
1207
|
+
# certificate chain (not private key).
|
1208
|
+
# Corresponds to the JSON property `pem`
|
1209
|
+
# @return [String]
|
1210
|
+
attr_accessor :pem
|
1211
|
+
|
1212
|
+
# PKCS#12 format containing a single private/public key pair and certificate
|
1213
|
+
# chain. This format is only accepted from client for creating a new SmimeInfo
|
1214
|
+
# and is never returned, because the private key is not intended to be exported.
|
1215
|
+
# PKCS#12 may be encrypted, in which case encryptedKeyPassword should be set
|
1216
|
+
# appropriately.
|
1217
|
+
# Corresponds to the JSON property `pkcs12`
|
1218
|
+
# @return [String]
|
1219
|
+
attr_accessor :pkcs12
|
1220
|
+
|
1221
|
+
def initialize(**args)
|
1222
|
+
update!(**args)
|
1223
|
+
end
|
1224
|
+
|
1225
|
+
# Update properties of this object
|
1226
|
+
def update!(**args)
|
1227
|
+
@encrypted_key_password = args[:encrypted_key_password] if args.key?(:encrypted_key_password)
|
1228
|
+
@expiration = args[:expiration] if args.key?(:expiration)
|
1229
|
+
@id = args[:id] if args.key?(:id)
|
1230
|
+
@is_default = args[:is_default] if args.key?(:is_default)
|
1231
|
+
@issuer_cn = args[:issuer_cn] if args.key?(:issuer_cn)
|
1232
|
+
@pem = args[:pem] if args.key?(:pem)
|
1233
|
+
@pkcs12 = args[:pkcs12] if args.key?(:pkcs12)
|
1234
|
+
end
|
1235
|
+
end
|
1236
|
+
|
1237
|
+
# Configuration for communication with an SMTP service.
|
1238
|
+
class SmtpMsa
|
1239
|
+
include Google::Apis::Core::Hashable
|
1240
|
+
|
1241
|
+
# The hostname of the SMTP service. Required.
|
1242
|
+
# Corresponds to the JSON property `host`
|
1243
|
+
# @return [String]
|
1244
|
+
attr_accessor :host
|
1245
|
+
|
1246
|
+
# The password that will be used for authentication with the SMTP service. This
|
1247
|
+
# is a write-only field that can be specified in requests to create or update
|
1248
|
+
# SendAs settings; it is never populated in responses.
|
1249
|
+
# Corresponds to the JSON property `password`
|
1250
|
+
# @return [String]
|
1251
|
+
attr_accessor :password
|
1252
|
+
|
1253
|
+
# The port of the SMTP service. Required.
|
1254
|
+
# Corresponds to the JSON property `port`
|
1255
|
+
# @return [Fixnum]
|
1256
|
+
attr_accessor :port
|
1257
|
+
|
1258
|
+
# The protocol that will be used to secure communication with the SMTP service.
|
1259
|
+
# Required.
|
1260
|
+
# Corresponds to the JSON property `securityMode`
|
1261
|
+
# @return [String]
|
1262
|
+
attr_accessor :security_mode
|
1263
|
+
|
1264
|
+
# The username that will be used for authentication with the SMTP service. This
|
1265
|
+
# is a write-only field that can be specified in requests to create or update
|
1266
|
+
# SendAs settings; it is never populated in responses.
|
1267
|
+
# Corresponds to the JSON property `username`
|
1268
|
+
# @return [String]
|
1269
|
+
attr_accessor :username
|
1270
|
+
|
1271
|
+
def initialize(**args)
|
1272
|
+
update!(**args)
|
1273
|
+
end
|
1274
|
+
|
1275
|
+
# Update properties of this object
|
1276
|
+
def update!(**args)
|
1277
|
+
@host = args[:host] if args.key?(:host)
|
1278
|
+
@password = args[:password] if args.key?(:password)
|
1279
|
+
@port = args[:port] if args.key?(:port)
|
1280
|
+
@security_mode = args[:security_mode] if args.key?(:security_mode)
|
1281
|
+
@username = args[:username] if args.key?(:username)
|
1282
|
+
end
|
1283
|
+
end
|
1284
|
+
|
710
1285
|
# A collection of messages representing a conversation.
|
711
1286
|
class Thread
|
712
1287
|
include Google::Apis::Core::Hashable
|
@@ -744,6 +1319,81 @@ module Google
|
|
744
1319
|
end
|
745
1320
|
end
|
746
1321
|
|
1322
|
+
# Vacation auto-reply settings for an account. These settings correspond to the "
|
1323
|
+
# Vacation responder" feature in the web interface.
|
1324
|
+
class VacationSettings
|
1325
|
+
include Google::Apis::Core::Hashable
|
1326
|
+
|
1327
|
+
# Flag that controls whether Gmail automatically replies to messages.
|
1328
|
+
# Corresponds to the JSON property `enableAutoReply`
|
1329
|
+
# @return [Boolean]
|
1330
|
+
attr_accessor :enable_auto_reply
|
1331
|
+
alias_method :enable_auto_reply?, :enable_auto_reply
|
1332
|
+
|
1333
|
+
# An optional end time for sending auto-replies (epoch ms). When this is
|
1334
|
+
# specified, Gmail will automatically reply only to messages that it receives
|
1335
|
+
# before the end time. If both startTime and endTime are specified, startTime
|
1336
|
+
# must precede endTime.
|
1337
|
+
# Corresponds to the JSON property `endTime`
|
1338
|
+
# @return [String]
|
1339
|
+
attr_accessor :end_time
|
1340
|
+
|
1341
|
+
# Response body in HTML format. Gmail will sanitize the HTML before storing it.
|
1342
|
+
# Corresponds to the JSON property `responseBodyHtml`
|
1343
|
+
# @return [String]
|
1344
|
+
attr_accessor :response_body_html
|
1345
|
+
|
1346
|
+
# Response body in plain text format.
|
1347
|
+
# Corresponds to the JSON property `responseBodyPlainText`
|
1348
|
+
# @return [String]
|
1349
|
+
attr_accessor :response_body_plain_text
|
1350
|
+
|
1351
|
+
# Optional text to prepend to the subject line in vacation responses. In order
|
1352
|
+
# to enable auto-replies, either the response subject or the response body must
|
1353
|
+
# be nonempty.
|
1354
|
+
# Corresponds to the JSON property `responseSubject`
|
1355
|
+
# @return [String]
|
1356
|
+
attr_accessor :response_subject
|
1357
|
+
|
1358
|
+
# Flag that determines whether responses are sent to recipients who are not in
|
1359
|
+
# the user's list of contacts.
|
1360
|
+
# Corresponds to the JSON property `restrictToContacts`
|
1361
|
+
# @return [Boolean]
|
1362
|
+
attr_accessor :restrict_to_contacts
|
1363
|
+
alias_method :restrict_to_contacts?, :restrict_to_contacts
|
1364
|
+
|
1365
|
+
# Flag that determines whether responses are sent to recipients who are outside
|
1366
|
+
# of the user's domain. This feature is only available for G Suite users.
|
1367
|
+
# Corresponds to the JSON property `restrictToDomain`
|
1368
|
+
# @return [Boolean]
|
1369
|
+
attr_accessor :restrict_to_domain
|
1370
|
+
alias_method :restrict_to_domain?, :restrict_to_domain
|
1371
|
+
|
1372
|
+
# An optional start time for sending auto-replies (epoch ms). When this is
|
1373
|
+
# specified, Gmail will automatically reply only to messages that it receives
|
1374
|
+
# after the start time. If both startTime and endTime are specified, startTime
|
1375
|
+
# must precede endTime.
|
1376
|
+
# Corresponds to the JSON property `startTime`
|
1377
|
+
# @return [String]
|
1378
|
+
attr_accessor :start_time
|
1379
|
+
|
1380
|
+
def initialize(**args)
|
1381
|
+
update!(**args)
|
1382
|
+
end
|
1383
|
+
|
1384
|
+
# Update properties of this object
|
1385
|
+
def update!(**args)
|
1386
|
+
@enable_auto_reply = args[:enable_auto_reply] if args.key?(:enable_auto_reply)
|
1387
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
1388
|
+
@response_body_html = args[:response_body_html] if args.key?(:response_body_html)
|
1389
|
+
@response_body_plain_text = args[:response_body_plain_text] if args.key?(:response_body_plain_text)
|
1390
|
+
@response_subject = args[:response_subject] if args.key?(:response_subject)
|
1391
|
+
@restrict_to_contacts = args[:restrict_to_contacts] if args.key?(:restrict_to_contacts)
|
1392
|
+
@restrict_to_domain = args[:restrict_to_domain] if args.key?(:restrict_to_domain)
|
1393
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
1394
|
+
end
|
1395
|
+
end
|
1396
|
+
|
747
1397
|
# Set up or update a new push notification watch on this user's mailbox.
|
748
1398
|
class WatchRequest
|
749
1399
|
include Google::Apis::Core::Hashable
|