google-api-client 0.39.3 → 0.40.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (416) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +242 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  4. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +3 -1
  5. data/generated/google/apis/admob_v1.rb +1 -1
  6. data/generated/google/apis/admob_v1/classes.rb +5 -6
  7. data/generated/google/apis/androidenterprise_v1.rb +2 -2
  8. data/generated/google/apis/androidenterprise_v1/classes.rb +547 -724
  9. data/generated/google/apis/androidenterprise_v1/representations.rb +0 -54
  10. data/generated/google/apis/androidenterprise_v1/service.rb +540 -795
  11. data/generated/google/apis/androidpublisher_v3.rb +3 -3
  12. data/generated/google/apis/androidpublisher_v3/classes.rb +473 -736
  13. data/generated/google/apis/androidpublisher_v3/representations.rb +10 -201
  14. data/generated/google/apis/androidpublisher_v3/service.rb +531 -863
  15. data/generated/google/apis/apigee_v1.rb +1 -1
  16. data/generated/google/apis/apigee_v1/classes.rb +58 -10
  17. data/generated/google/apis/apigee_v1/representations.rb +7 -0
  18. data/generated/google/apis/apigee_v1/service.rb +24 -14
  19. data/generated/google/apis/appsmarket_v2.rb +3 -3
  20. data/generated/google/apis/appsmarket_v2/classes.rb +160 -159
  21. data/generated/google/apis/appsmarket_v2/representations.rb +78 -78
  22. data/generated/google/apis/appsmarket_v2/service.rb +24 -39
  23. data/generated/google/apis/artifactregistry_v1beta1.rb +38 -0
  24. data/generated/google/apis/artifactregistry_v1beta1/classes.rb +1123 -0
  25. data/generated/google/apis/artifactregistry_v1beta1/representations.rb +441 -0
  26. data/generated/google/apis/artifactregistry_v1beta1/service.rb +957 -0
  27. data/generated/google/apis/bigquery_v2.rb +1 -1
  28. data/generated/google/apis/bigquery_v2/classes.rb +54 -1
  29. data/generated/google/apis/bigquery_v2/representations.rb +4 -0
  30. data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
  31. data/generated/google/apis/bigqueryreservation_v1/classes.rb +2 -0
  32. data/generated/google/apis/bigqueryreservation_v1/service.rb +8 -8
  33. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  34. data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +20 -14
  35. data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +93 -68
  36. data/generated/google/apis/bigtableadmin_v1.rb +1 -1
  37. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  38. data/generated/google/apis/bigtableadmin_v2/service.rb +4 -4
  39. data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
  40. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +21 -0
  41. data/generated/google/apis/billingbudgets_v1beta1/representations.rb +6 -0
  42. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  43. data/generated/google/apis/books_v1.rb +1 -1
  44. data/generated/google/apis/books_v1/service.rb +2 -2
  45. data/generated/google/apis/calendar_v3.rb +1 -1
  46. data/generated/google/apis/calendar_v3/classes.rb +1 -1
  47. data/generated/google/apis/{pagespeedonline_v2.rb → chromeuxreport_v1.rb} +10 -10
  48. data/generated/google/apis/chromeuxreport_v1/classes.rb +297 -0
  49. data/generated/google/apis/chromeuxreport_v1/representations.rb +147 -0
  50. data/generated/google/apis/chromeuxreport_v1/service.rb +92 -0
  51. data/generated/google/apis/cloudasset_v1.rb +1 -1
  52. data/generated/google/apis/cloudasset_v1/classes.rb +70 -43
  53. data/generated/google/apis/cloudasset_v1/representations.rb +2 -0
  54. data/generated/google/apis/cloudasset_v1/service.rb +14 -11
  55. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  56. data/generated/google/apis/cloudasset_v1beta1/classes.rb +29 -16
  57. data/generated/google/apis/cloudasset_v1beta1/service.rb +16 -7
  58. data/generated/google/apis/cloudasset_v1p1beta1.rb +1 -1
  59. data/generated/google/apis/cloudasset_v1p1beta1/classes.rb +48 -16
  60. data/generated/google/apis/cloudasset_v1p1beta1/representations.rb +2 -0
  61. data/generated/google/apis/cloudasset_v1p1beta1/service.rb +15 -16
  62. data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
  63. data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +26 -8
  64. data/generated/google/apis/cloudasset_v1p4beta1/service.rb +24 -3
  65. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  66. data/generated/google/apis/cloudbuild_v1/classes.rb +17 -4
  67. data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
  68. data/generated/google/apis/cloudbuild_v1/service.rb +163 -0
  69. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  70. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +156 -2
  71. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +61 -0
  72. data/generated/google/apis/cloudbuild_v1alpha1/service.rb +121 -0
  73. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  74. data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +156 -2
  75. data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +61 -0
  76. data/generated/google/apis/cloudbuild_v1alpha2/service.rb +121 -0
  77. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  78. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +6 -0
  79. data/generated/google/apis/cloudidentity_v1beta1/representations.rb +1 -0
  80. data/generated/google/apis/cloudiot_v1.rb +1 -1
  81. data/generated/google/apis/cloudiot_v1/classes.rb +26 -10
  82. data/generated/google/apis/cloudkms_v1.rb +1 -1
  83. data/generated/google/apis/cloudkms_v1/classes.rb +288 -7
  84. data/generated/google/apis/cloudkms_v1/representations.rb +17 -0
  85. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  86. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +6 -6
  87. data/generated/google/apis/cloudresourcemanager_v1/service.rb +6 -8
  88. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  89. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +6 -6
  90. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +8 -8
  91. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  92. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +6 -6
  93. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  94. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +6 -6
  95. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  96. data/generated/google/apis/cloudsearch_v1/classes.rb +8 -6
  97. data/generated/google/apis/cloudsearch_v1/service.rb +1 -1
  98. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  99. data/generated/google/apis/cloudtasks_v2/classes.rb +8 -6
  100. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  101. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +11 -2
  102. data/generated/google/apis/cloudtasks_v2beta3/representations.rb +1 -0
  103. data/generated/google/apis/composer_v1beta1.rb +1 -1
  104. data/generated/google/apis/composer_v1beta1/classes.rb +58 -0
  105. data/generated/google/apis/composer_v1beta1/representations.rb +30 -0
  106. data/generated/google/apis/composer_v1beta1/service.rb +5 -0
  107. data/generated/google/apis/compute_alpha.rb +1 -1
  108. data/generated/google/apis/compute_alpha/classes.rb +318 -166
  109. data/generated/google/apis/compute_alpha/representations.rb +80 -33
  110. data/generated/google/apis/compute_alpha/service.rb +194 -0
  111. data/generated/google/apis/compute_beta.rb +1 -1
  112. data/generated/google/apis/compute_beta/classes.rb +237 -83
  113. data/generated/google/apis/compute_beta/representations.rb +52 -0
  114. data/generated/google/apis/compute_v1.rb +1 -1
  115. data/generated/google/apis/compute_v1/classes.rb +155 -58
  116. data/generated/google/apis/compute_v1/representations.rb +21 -0
  117. data/generated/google/apis/compute_v1/service.rb +83 -0
  118. data/generated/google/apis/container_v1.rb +1 -1
  119. data/generated/google/apis/container_v1/classes.rb +2 -4
  120. data/generated/google/apis/container_v1beta1.rb +1 -1
  121. data/generated/google/apis/container_v1beta1/classes.rb +62 -4
  122. data/generated/google/apis/container_v1beta1/representations.rb +33 -0
  123. data/generated/google/apis/content_v2.rb +1 -1
  124. data/generated/google/apis/content_v2/classes.rb +34 -0
  125. data/generated/google/apis/content_v2/representations.rb +16 -0
  126. data/generated/google/apis/content_v2/service.rb +5 -1
  127. data/generated/google/apis/content_v2_1.rb +1 -1
  128. data/generated/google/apis/content_v2_1/classes.rb +363 -5
  129. data/generated/google/apis/content_v2_1/representations.rb +136 -0
  130. data/generated/google/apis/content_v2_1/service.rb +85 -1
  131. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  132. data/generated/google/apis/datacatalog_v1beta1/classes.rb +26 -10
  133. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  134. data/generated/google/apis/dataflow_v1b3/classes.rb +331 -0
  135. data/generated/google/apis/dataflow_v1b3/representations.rb +164 -0
  136. data/generated/google/apis/dataflow_v1b3/service.rb +261 -0
  137. data/generated/google/apis/datafusion_v1beta1.rb +1 -1
  138. data/generated/google/apis/datafusion_v1beta1/classes.rb +64 -19
  139. data/generated/google/apis/datafusion_v1beta1/representations.rb +16 -0
  140. data/generated/google/apis/datafusion_v1beta1/service.rb +49 -2
  141. data/generated/google/apis/dataproc_v1.rb +1 -1
  142. data/generated/google/apis/dataproc_v1/classes.rb +22 -22
  143. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  144. data/generated/google/apis/dataproc_v1beta2/classes.rb +49 -35
  145. data/generated/google/apis/dataproc_v1beta2/service.rb +35 -21
  146. data/generated/google/apis/datastore_v1.rb +1 -1
  147. data/generated/google/apis/datastore_v1/classes.rb +1 -1
  148. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  149. data/generated/google/apis/datastore_v1beta3/classes.rb +1 -1
  150. data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
  151. data/generated/google/apis/deploymentmanager_alpha/classes.rb +362 -176
  152. data/generated/google/apis/deploymentmanager_alpha/representations.rb +22 -4
  153. data/generated/google/apis/deploymentmanager_alpha/service.rb +198 -311
  154. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  155. data/generated/google/apis/deploymentmanager_v2/classes.rb +295 -146
  156. data/generated/google/apis/deploymentmanager_v2/representations.rb +17 -1
  157. data/generated/google/apis/deploymentmanager_v2/service.rb +101 -99
  158. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  159. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +350 -170
  160. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +18 -1
  161. data/generated/google/apis/deploymentmanager_v2beta/service.rb +154 -152
  162. data/generated/google/apis/dfareporting_v3_3.rb +1 -1
  163. data/generated/google/apis/dfareporting_v3_3/classes.rb +2 -2
  164. data/generated/google/apis/dfareporting_v3_3/service.rb +2 -2
  165. data/generated/google/apis/dfareporting_v3_4.rb +1 -1
  166. data/generated/google/apis/dfareporting_v3_4/classes.rb +2 -2
  167. data/generated/google/apis/dfareporting_v3_4/service.rb +2 -2
  168. data/generated/google/apis/dialogflow_v2.rb +1 -1
  169. data/generated/google/apis/dialogflow_v2/classes.rb +549 -9
  170. data/generated/google/apis/dialogflow_v2/representations.rb +234 -0
  171. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  172. data/generated/google/apis/dialogflow_v2beta1/classes.rb +540 -8
  173. data/generated/google/apis/dialogflow_v2beta1/representations.rb +234 -0
  174. data/generated/google/apis/dialogflow_v2beta1/service.rb +46 -2
  175. data/generated/google/apis/displayvideo_v1.rb +1 -1
  176. data/generated/google/apis/displayvideo_v1/classes.rb +612 -0
  177. data/generated/google/apis/displayvideo_v1/representations.rb +314 -0
  178. data/generated/google/apis/displayvideo_v1/service.rb +1968 -337
  179. data/generated/google/apis/dlp_v2.rb +1 -1
  180. data/generated/google/apis/dlp_v2/classes.rb +17 -27
  181. data/generated/google/apis/dlp_v2/service.rb +247 -204
  182. data/generated/google/apis/dns_v1.rb +1 -1
  183. data/generated/google/apis/dns_v1/classes.rb +160 -261
  184. data/generated/google/apis/dns_v1/representations.rb +17 -0
  185. data/generated/google/apis/dns_v1/service.rb +21 -141
  186. data/generated/google/apis/dns_v1beta2.rb +1 -1
  187. data/generated/google/apis/dns_v1beta2/classes.rb +189 -273
  188. data/generated/google/apis/dns_v1beta2/representations.rb +32 -0
  189. data/generated/google/apis/dns_v1beta2/service.rb +21 -141
  190. data/generated/google/apis/dns_v2beta1.rb +1 -1
  191. data/generated/google/apis/dns_v2beta1/classes.rb +160 -261
  192. data/generated/google/apis/dns_v2beta1/representations.rb +17 -0
  193. data/generated/google/apis/dns_v2beta1/service.rb +21 -141
  194. data/generated/google/apis/fcm_v1.rb +1 -1
  195. data/generated/google/apis/file_v1.rb +1 -1
  196. data/generated/google/apis/file_v1/classes.rb +31 -0
  197. data/generated/google/apis/file_v1/representations.rb +15 -0
  198. data/generated/google/apis/file_v1beta1.rb +1 -1
  199. data/generated/google/apis/file_v1beta1/classes.rb +98 -0
  200. data/generated/google/apis/file_v1beta1/representations.rb +34 -0
  201. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  202. data/generated/google/apis/firebase_v1beta1/classes.rb +2 -12
  203. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  204. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +30 -25
  205. data/generated/google/apis/{pagespeedonline_v4.rb → firebaseml_v1.rb} +12 -10
  206. data/generated/google/apis/firebaseml_v1/classes.rb +213 -0
  207. data/generated/google/apis/firebaseml_v1/representations.rb +112 -0
  208. data/generated/google/apis/firebaseml_v1/service.rb +181 -0
  209. data/generated/google/apis/fitness_v1.rb +4 -4
  210. data/generated/google/apis/fitness_v1/classes.rb +185 -158
  211. data/generated/google/apis/fitness_v1/service.rb +187 -215
  212. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  213. data/generated/google/apis/games_configuration_v1configuration/service.rb +1 -1
  214. data/generated/google/apis/games_management_v1management.rb +1 -1
  215. data/generated/google/apis/games_management_v1management/service.rb +1 -1
  216. data/generated/google/apis/games_v1.rb +1 -1
  217. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  218. data/generated/google/apis/genomics_v2alpha1/classes.rb +84 -0
  219. data/generated/google/apis/genomics_v2alpha1/representations.rb +28 -0
  220. data/generated/google/apis/genomics_v2alpha1/service.rb +38 -2
  221. data/generated/google/apis/gmail_v1.rb +3 -2
  222. data/generated/google/apis/gmail_v1/classes.rb +263 -200
  223. data/generated/google/apis/gmail_v1/service.rb +551 -743
  224. data/generated/google/apis/groupsmigration_v1.rb +3 -2
  225. data/generated/google/apis/groupsmigration_v1/service.rb +10 -17
  226. data/generated/google/apis/healthcare_v1.rb +1 -1
  227. data/generated/google/apis/healthcare_v1/classes.rb +39 -30
  228. data/generated/google/apis/healthcare_v1/service.rb +64 -32
  229. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  230. data/generated/google/apis/healthcare_v1beta1/classes.rb +41 -37
  231. data/generated/google/apis/healthcare_v1beta1/service.rb +165 -147
  232. data/generated/google/apis/homegraph_v1.rb +1 -1
  233. data/generated/google/apis/homegraph_v1/classes.rb +3 -0
  234. data/generated/google/apis/iam_v1.rb +1 -1
  235. data/generated/google/apis/iam_v1/classes.rb +111 -93
  236. data/generated/google/apis/iam_v1/service.rb +166 -144
  237. data/generated/google/apis/iamcredentials_v1.rb +1 -1
  238. data/generated/google/apis/iamcredentials_v1/classes.rb +30 -5
  239. data/generated/google/apis/jobs_v3.rb +1 -1
  240. data/generated/google/apis/jobs_v3/classes.rb +4 -2
  241. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  242. data/generated/google/apis/jobs_v3p1beta1/classes.rb +4 -2
  243. data/generated/google/apis/memcache_v1beta2.rb +1 -1
  244. data/generated/google/apis/memcache_v1beta2/classes.rb +66 -23
  245. data/generated/google/apis/memcache_v1beta2/representations.rb +15 -0
  246. data/generated/google/apis/memcache_v1beta2/service.rb +5 -2
  247. data/generated/google/apis/ml_v1.rb +1 -1
  248. data/generated/google/apis/ml_v1/classes.rb +84 -18
  249. data/generated/google/apis/ml_v1/representations.rb +4 -0
  250. data/generated/google/apis/ml_v1/service.rb +11 -6
  251. data/generated/google/apis/monitoring_v1.rb +1 -1
  252. data/generated/google/apis/monitoring_v1/classes.rb +46 -0
  253. data/generated/google/apis/monitoring_v1/representations.rb +18 -0
  254. data/generated/google/apis/monitoring_v3.rb +1 -1
  255. data/generated/google/apis/monitoring_v3/classes.rb +17 -0
  256. data/generated/google/apis/monitoring_v3/representations.rb +2 -0
  257. data/generated/google/apis/monitoring_v3/service.rb +1 -1
  258. data/generated/google/apis/networkmanagement_v1.rb +35 -0
  259. data/generated/google/apis/networkmanagement_v1/classes.rb +1868 -0
  260. data/generated/google/apis/networkmanagement_v1/representations.rb +661 -0
  261. data/generated/google/apis/networkmanagement_v1/service.rb +667 -0
  262. data/generated/google/apis/osconfig_v1.rb +1 -1
  263. data/generated/google/apis/osconfig_v1/classes.rb +2 -2
  264. data/generated/google/apis/osconfig_v1beta.rb +1 -1
  265. data/generated/google/apis/osconfig_v1beta/classes.rb +6 -7
  266. data/generated/google/apis/pagespeedonline_v5.rb +1 -1
  267. data/generated/google/apis/pagespeedonline_v5/classes.rb +7 -0
  268. data/generated/google/apis/pagespeedonline_v5/representations.rb +1 -0
  269. data/generated/google/apis/people_v1.rb +1 -1
  270. data/generated/google/apis/people_v1/classes.rb +216 -0
  271. data/generated/google/apis/people_v1/representations.rb +82 -0
  272. data/generated/google/apis/people_v1/service.rb +371 -9
  273. data/generated/google/apis/playcustomapp_v1.rb +3 -3
  274. data/generated/google/apis/playcustomapp_v1/classes.rb +7 -0
  275. data/generated/google/apis/playcustomapp_v1/representations.rb +1 -0
  276. data/generated/google/apis/playcustomapp_v1/service.rb +11 -19
  277. data/generated/google/apis/policytroubleshooter_v1.rb +1 -1
  278. data/generated/google/apis/policytroubleshooter_v1/classes.rb +6 -6
  279. data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
  280. data/generated/google/apis/policytroubleshooter_v1beta/classes.rb +6 -6
  281. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  282. data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +30 -0
  283. data/generated/google/apis/pubsub_v1.rb +1 -1
  284. data/generated/google/apis/pubsub_v1/classes.rb +70 -15
  285. data/generated/google/apis/pubsub_v1/representations.rb +28 -0
  286. data/generated/google/apis/pubsub_v1/service.rb +35 -1
  287. data/generated/google/apis/{pagespeedonline_v1.rb → recommender_v1.rb} +11 -9
  288. data/generated/google/apis/recommender_v1/classes.rb +505 -0
  289. data/generated/google/apis/recommender_v1/representations.rb +232 -0
  290. data/generated/google/apis/recommender_v1/service.rb +266 -0
  291. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  292. data/generated/google/apis/remotebuildexecution_v1/classes.rb +6 -0
  293. data/generated/google/apis/remotebuildexecution_v1/representations.rb +1 -0
  294. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  295. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +6 -0
  296. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +1 -0
  297. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  298. data/generated/google/apis/remotebuildexecution_v2/classes.rb +6 -0
  299. data/generated/google/apis/remotebuildexecution_v2/representations.rb +1 -0
  300. data/generated/google/apis/run_v1.rb +1 -1
  301. data/generated/google/apis/run_v1/classes.rb +9 -0
  302. data/generated/google/apis/run_v1/representations.rb +1 -0
  303. data/generated/google/apis/run_v1alpha1.rb +1 -1
  304. data/generated/google/apis/run_v1alpha1/classes.rb +9 -0
  305. data/generated/google/apis/run_v1alpha1/representations.rb +1 -0
  306. data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
  307. data/generated/google/apis/sasportal_v1alpha1/service.rb +30 -0
  308. data/generated/google/apis/secretmanager_v1.rb +1 -1
  309. data/generated/google/apis/secretmanager_v1/classes.rb +32 -19
  310. data/generated/google/apis/secretmanager_v1/service.rb +3 -0
  311. data/generated/google/apis/secretmanager_v1beta1.rb +1 -1
  312. data/generated/google/apis/secretmanager_v1beta1/classes.rb +29 -16
  313. data/generated/google/apis/secretmanager_v1beta1/service.rb +3 -0
  314. data/generated/google/apis/securitycenter_v1.rb +1 -1
  315. data/generated/google/apis/securitycenter_v1/classes.rb +133 -18
  316. data/generated/google/apis/securitycenter_v1/representations.rb +38 -0
  317. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  318. data/generated/google/apis/securitycenter_v1beta1/classes.rb +133 -18
  319. data/generated/google/apis/securitycenter_v1beta1/representations.rb +38 -0
  320. data/generated/google/apis/securitycenter_v1p1alpha1.rb +1 -1
  321. data/generated/google/apis/securitycenter_v1p1alpha1/classes.rb +100 -0
  322. data/generated/google/apis/securitycenter_v1p1alpha1/representations.rb +38 -0
  323. data/generated/google/apis/securitycenter_v1p1beta1.rb +1 -1
  324. data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +133 -18
  325. data/generated/google/apis/securitycenter_v1p1beta1/representations.rb +38 -0
  326. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  327. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +205 -75
  328. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +32 -2
  329. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
  330. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +211 -75
  331. data/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +33 -2
  332. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  333. data/generated/google/apis/servicecontrol_v1/classes.rb +6 -6
  334. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  335. data/generated/google/apis/servicemanagement_v1/classes.rb +6 -43
  336. data/generated/google/apis/servicemanagement_v1/representations.rb +0 -2
  337. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  338. data/generated/google/apis/servicenetworking_v1/classes.rb +488 -75
  339. data/generated/google/apis/servicenetworking_v1/representations.rb +209 -2
  340. data/generated/google/apis/servicenetworking_v1/service.rb +187 -0
  341. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  342. data/generated/google/apis/servicenetworking_v1beta/classes.rb +297 -75
  343. data/generated/google/apis/servicenetworking_v1beta/representations.rb +130 -2
  344. data/generated/google/apis/serviceusage_v1.rb +1 -1
  345. data/generated/google/apis/serviceusage_v1/classes.rb +197 -75
  346. data/generated/google/apis/serviceusage_v1/representations.rb +32 -2
  347. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  348. data/generated/google/apis/serviceusage_v1beta1/classes.rb +203 -75
  349. data/generated/google/apis/serviceusage_v1beta1/representations.rb +33 -2
  350. data/generated/google/apis/serviceusage_v1beta1/service.rb +34 -0
  351. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  352. data/generated/google/apis/sourcerepo_v1/classes.rb +23 -10
  353. data/generated/google/apis/sourcerepo_v1/service.rb +3 -0
  354. data/generated/google/apis/spanner_v1.rb +1 -1
  355. data/generated/google/apis/spanner_v1/classes.rb +30 -12
  356. data/generated/google/apis/spanner_v1/service.rb +8 -8
  357. data/generated/google/apis/sql_v1beta4.rb +1 -1
  358. data/generated/google/apis/sql_v1beta4/classes.rb +7 -0
  359. data/generated/google/apis/sql_v1beta4/representations.rb +1 -0
  360. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  361. data/generated/google/apis/storagetransfer_v1/classes.rb +2 -1
  362. data/generated/google/apis/tasks_v1.rb +3 -3
  363. data/generated/google/apis/tasks_v1/classes.rb +26 -25
  364. data/generated/google/apis/tasks_v1/representations.rb +4 -8
  365. data/generated/google/apis/tasks_v1/service.rb +79 -128
  366. data/generated/google/apis/testing_v1.rb +1 -1
  367. data/generated/google/apis/testing_v1/classes.rb +2 -1
  368. data/generated/google/apis/texttospeech_v1.rb +1 -1
  369. data/generated/google/apis/texttospeech_v1/classes.rb +1 -1
  370. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  371. data/generated/google/apis/texttospeech_v1beta1/classes.rb +1 -1
  372. data/generated/google/apis/tpu_v1.rb +1 -1
  373. data/generated/google/apis/tpu_v1/classes.rb +3 -3
  374. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  375. data/generated/google/apis/tpu_v1alpha1/classes.rb +3 -3
  376. data/generated/google/apis/translate_v3.rb +1 -1
  377. data/generated/google/apis/verifiedaccess_v1.rb +3 -3
  378. data/generated/google/apis/verifiedaccess_v1/service.rb +2 -2
  379. data/generated/google/apis/videointelligence_v1.rb +1 -1
  380. data/generated/google/apis/videointelligence_v1/classes.rb +1 -1
  381. data/generated/google/apis/videointelligence_v1/service.rb +32 -0
  382. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  383. data/generated/google/apis/videointelligence_v1beta2/classes.rb +1 -1
  384. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  385. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +1 -1
  386. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  387. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +1 -1
  388. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  389. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +1 -1
  390. data/generated/google/apis/websecurityscanner_v1.rb +2 -2
  391. data/generated/google/apis/websecurityscanner_v1/classes.rb +7 -5
  392. data/generated/google/apis/websecurityscanner_v1/service.rb +1 -1
  393. data/generated/google/apis/websecurityscanner_v1alpha.rb +2 -2
  394. data/generated/google/apis/websecurityscanner_v1alpha/classes.rb +5 -4
  395. data/generated/google/apis/websecurityscanner_v1alpha/service.rb +1 -1
  396. data/generated/google/apis/websecurityscanner_v1beta.rb +2 -2
  397. data/generated/google/apis/websecurityscanner_v1beta/classes.rb +9 -7
  398. data/generated/google/apis/websecurityscanner_v1beta/service.rb +1 -1
  399. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  400. data/generated/google/apis/youtube_v3.rb +5 -5
  401. data/generated/google/apis/youtube_v3/classes.rb +1260 -1244
  402. data/generated/google/apis/youtube_v3/representations.rb +64 -192
  403. data/generated/google/apis/youtube_v3/service.rb +1827 -2154
  404. data/lib/google/apis/core/api_command.rb +12 -7
  405. data/lib/google/apis/options.rb +5 -1
  406. data/lib/google/apis/version.rb +1 -1
  407. metadata +23 -15
  408. data/generated/google/apis/pagespeedonline_v1/classes.rb +0 -542
  409. data/generated/google/apis/pagespeedonline_v1/representations.rb +0 -258
  410. data/generated/google/apis/pagespeedonline_v1/service.rb +0 -116
  411. data/generated/google/apis/pagespeedonline_v2/classes.rb +0 -621
  412. data/generated/google/apis/pagespeedonline_v2/representations.rb +0 -273
  413. data/generated/google/apis/pagespeedonline_v2/service.rb +0 -116
  414. data/generated/google/apis/pagespeedonline_v4/classes.rb +0 -795
  415. data/generated/google/apis/pagespeedonline_v4/representations.rb +0 -335
  416. data/generated/google/apis/pagespeedonline_v4/service.rb +0 -125
@@ -22,7 +22,8 @@ module Google
22
22
  module GmailV1
23
23
  # Gmail API
24
24
  #
25
- # Access Gmail mailboxes including sending user email.
25
+ # The Gmail API lets you view and manage Gmail mailbox data like
26
+ # threads, messages, and labels.
26
27
  #
27
28
  # @example
28
29
  # require 'google/apis/gmail_v1'
@@ -38,30 +39,24 @@ module Google
38
39
  attr_accessor :key
39
40
 
40
41
  # @return [String]
41
- # An opaque string that represents a user for quota purposes. Must not exceed 40
42
- # characters.
42
+ # Available to use for quota purposes for server-side applications. Can be any
43
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
44
  attr_accessor :quota_user
44
45
 
45
- # @return [String]
46
- # Deprecated. Please use quotaUser instead.
47
- attr_accessor :user_ip
48
-
49
46
  def initialize
50
- super('https://www.googleapis.com/', 'gmail/v1/users/')
47
+ super('https://www.googleapis.com/', '')
51
48
  @batch_path = 'batch/gmail/v1'
52
49
  end
53
50
 
54
51
  # Gets the current user's Gmail profile.
55
52
  # @param [String] user_id
56
- # The user's email address. The special value me can be used to indicate the
57
- # authenticated user.
53
+ # The user's email address. The special value <code>me</code>
54
+ # can be used to indicate the authenticated user.
58
55
  # @param [String] fields
59
56
  # Selector specifying which fields to include in a partial response.
60
57
  # @param [String] quota_user
61
- # An opaque string that represents a user for quota purposes. Must not exceed 40
62
- # characters.
63
- # @param [String] user_ip
64
- # Deprecated. Please use quotaUser instead.
58
+ # Available to use for quota purposes for server-side applications. Can be any
59
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
65
60
  # @param [Google::Apis::RequestOptions] options
66
61
  # Request-specific options
67
62
  #
@@ -74,28 +69,25 @@ module Google
74
69
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
75
70
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
76
71
  # @raise [Google::Apis::AuthorizationError] Authorization is required
77
- def get_user_profile(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
78
- command = make_simple_command(:get, '{userId}/profile', options)
72
+ def get_user_profile(user_id, fields: nil, quota_user: nil, options: nil, &block)
73
+ command = make_simple_command(:get, 'gmail/v1/users/{userId}/profile', options)
79
74
  command.response_representation = Google::Apis::GmailV1::Profile::Representation
80
75
  command.response_class = Google::Apis::GmailV1::Profile
81
76
  command.params['userId'] = user_id unless user_id.nil?
82
77
  command.query['fields'] = fields unless fields.nil?
83
78
  command.query['quotaUser'] = quota_user unless quota_user.nil?
84
- command.query['userIp'] = user_ip unless user_ip.nil?
85
79
  execute_or_queue_command(command, &block)
86
80
  end
87
81
 
88
82
  # Stop receiving push notifications for the given user mailbox.
89
83
  # @param [String] user_id
90
- # The user's email address. The special value me can be used to indicate the
91
- # authenticated user.
84
+ # The user's email address. The special value <code>me</code>
85
+ # can be used to indicate the authenticated user.
92
86
  # @param [String] fields
93
87
  # Selector specifying which fields to include in a partial response.
94
88
  # @param [String] quota_user
95
- # An opaque string that represents a user for quota purposes. Must not exceed 40
96
- # characters.
97
- # @param [String] user_ip
98
- # Deprecated. Please use quotaUser instead.
89
+ # Available to use for quota purposes for server-side applications. Can be any
90
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
99
91
  # @param [Google::Apis::RequestOptions] options
100
92
  # Request-specific options
101
93
  #
@@ -108,27 +100,24 @@ module Google
108
100
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
109
101
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
110
102
  # @raise [Google::Apis::AuthorizationError] Authorization is required
111
- def stop_user(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
112
- command = make_simple_command(:post, '{userId}/stop', options)
103
+ def stop_user(user_id, fields: nil, quota_user: nil, options: nil, &block)
104
+ command = make_simple_command(:post, 'gmail/v1/users/{userId}/stop', options)
113
105
  command.params['userId'] = user_id unless user_id.nil?
114
106
  command.query['fields'] = fields unless fields.nil?
115
107
  command.query['quotaUser'] = quota_user unless quota_user.nil?
116
- command.query['userIp'] = user_ip unless user_ip.nil?
117
108
  execute_or_queue_command(command, &block)
118
109
  end
119
110
 
120
111
  # Set up or update a push notification watch on the given user mailbox.
121
112
  # @param [String] user_id
122
- # The user's email address. The special value me can be used to indicate the
123
- # authenticated user.
113
+ # The user's email address. The special value <code>me</code>
114
+ # can be used to indicate the authenticated user.
124
115
  # @param [Google::Apis::GmailV1::WatchRequest] watch_request_object
125
116
  # @param [String] fields
126
117
  # Selector specifying which fields to include in a partial response.
127
118
  # @param [String] quota_user
128
- # An opaque string that represents a user for quota purposes. Must not exceed 40
129
- # characters.
130
- # @param [String] user_ip
131
- # Deprecated. Please use quotaUser instead.
119
+ # Available to use for quota purposes for server-side applications. Can be any
120
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
132
121
  # @param [Google::Apis::RequestOptions] options
133
122
  # Request-specific options
134
123
  #
@@ -141,8 +130,8 @@ module Google
141
130
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
142
131
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
143
132
  # @raise [Google::Apis::AuthorizationError] Authorization is required
144
- def watch_user(user_id, watch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
145
- command = make_simple_command(:post, '{userId}/watch', options)
133
+ def watch_user(user_id, watch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
134
+ command = make_simple_command(:post, 'gmail/v1/users/{userId}/watch', options)
146
135
  command.request_representation = Google::Apis::GmailV1::WatchRequest::Representation
147
136
  command.request_object = watch_request_object
148
137
  command.response_representation = Google::Apis::GmailV1::WatchResponse::Representation
@@ -150,22 +139,19 @@ module Google
150
139
  command.params['userId'] = user_id unless user_id.nil?
151
140
  command.query['fields'] = fields unless fields.nil?
152
141
  command.query['quotaUser'] = quota_user unless quota_user.nil?
153
- command.query['userIp'] = user_ip unless user_ip.nil?
154
142
  execute_or_queue_command(command, &block)
155
143
  end
156
144
 
157
- # Creates a new draft with the DRAFT label.
145
+ # Creates a new draft with the <code>DRAFT</code> label.
158
146
  # @param [String] user_id
159
- # The user's email address. The special value me can be used to indicate the
160
- # authenticated user.
147
+ # The user's email address. The special value <code>me</code>
148
+ # can be used to indicate the authenticated user.
161
149
  # @param [Google::Apis::GmailV1::Draft] draft_object
162
150
  # @param [String] fields
163
151
  # Selector specifying which fields to include in a partial response.
164
152
  # @param [String] quota_user
165
- # An opaque string that represents a user for quota purposes. Must not exceed 40
166
- # characters.
167
- # @param [String] user_ip
168
- # Deprecated. Please use quotaUser instead.
153
+ # Available to use for quota purposes for server-side applications. Can be any
154
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
169
155
  # @param [IO, String] upload_source
170
156
  # IO stream or filename containing content to upload
171
157
  # @param [String] content_type
@@ -182,11 +168,11 @@ module Google
182
168
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
183
169
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
184
170
  # @raise [Google::Apis::AuthorizationError] Authorization is required
185
- 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)
171
+ def create_user_draft(user_id, draft_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
186
172
  if upload_source.nil?
187
- command = make_simple_command(:post, '{userId}/drafts', options)
173
+ command = make_simple_command(:post, 'gmail/v1/users/{userId}/drafts', options)
188
174
  else
189
- command = make_upload_command(:post, '{userId}/drafts', options)
175
+ command = make_upload_command(:post, 'gmail/v1/users/{userId}/drafts', options)
190
176
  command.upload_source = upload_source
191
177
  command.upload_content_type = content_type
192
178
  end
@@ -197,24 +183,21 @@ module Google
197
183
  command.params['userId'] = user_id unless user_id.nil?
198
184
  command.query['fields'] = fields unless fields.nil?
199
185
  command.query['quotaUser'] = quota_user unless quota_user.nil?
200
- command.query['userIp'] = user_ip unless user_ip.nil?
201
186
  execute_or_queue_command(command, &block)
202
187
  end
203
188
 
204
- # Immediately and permanently deletes the specified draft. Does not simply trash
205
- # it.
189
+ # Immediately and permanently deletes the specified draft.
190
+ # Does not simply trash it.
206
191
  # @param [String] user_id
207
- # The user's email address. The special value me can be used to indicate the
208
- # authenticated user.
192
+ # The user's email address. The special value <code>me</code>
193
+ # can be used to indicate the authenticated user.
209
194
  # @param [String] id
210
195
  # The ID of the draft to delete.
211
196
  # @param [String] fields
212
197
  # Selector specifying which fields to include in a partial response.
213
198
  # @param [String] quota_user
214
- # An opaque string that represents a user for quota purposes. Must not exceed 40
215
- # characters.
216
- # @param [String] user_ip
217
- # Deprecated. Please use quotaUser instead.
199
+ # Available to use for quota purposes for server-side applications. Can be any
200
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
218
201
  # @param [Google::Apis::RequestOptions] options
219
202
  # Request-specific options
220
203
  #
@@ -227,20 +210,19 @@ module Google
227
210
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
228
211
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
229
212
  # @raise [Google::Apis::AuthorizationError] Authorization is required
230
- def delete_user_draft(user_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
231
- command = make_simple_command(:delete, '{userId}/drafts/{id}', options)
213
+ def delete_user_draft(user_id, id, fields: nil, quota_user: nil, options: nil, &block)
214
+ command = make_simple_command(:delete, 'gmail/v1/users/{userId}/drafts/{id}', options)
232
215
  command.params['userId'] = user_id unless user_id.nil?
233
216
  command.params['id'] = id unless id.nil?
234
217
  command.query['fields'] = fields unless fields.nil?
235
218
  command.query['quotaUser'] = quota_user unless quota_user.nil?
236
- command.query['userIp'] = user_ip unless user_ip.nil?
237
219
  execute_or_queue_command(command, &block)
238
220
  end
239
221
 
240
222
  # Gets the specified draft.
241
223
  # @param [String] user_id
242
- # The user's email address. The special value me can be used to indicate the
243
- # authenticated user.
224
+ # The user's email address. The special value <code>me</code>
225
+ # can be used to indicate the authenticated user.
244
226
  # @param [String] id
245
227
  # The ID of the draft to retrieve.
246
228
  # @param [String] format
@@ -248,10 +230,8 @@ module Google
248
230
  # @param [String] fields
249
231
  # Selector specifying which fields to include in a partial response.
250
232
  # @param [String] quota_user
251
- # An opaque string that represents a user for quota purposes. Must not exceed 40
252
- # characters.
253
- # @param [String] user_ip
254
- # Deprecated. Please use quotaUser instead.
233
+ # Available to use for quota purposes for server-side applications. Can be any
234
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
255
235
  # @param [Google::Apis::RequestOptions] options
256
236
  # Request-specific options
257
237
  #
@@ -264,8 +244,8 @@ module Google
264
244
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
265
245
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
266
246
  # @raise [Google::Apis::AuthorizationError] Authorization is required
267
- def get_user_draft(user_id, id, format: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
268
- command = make_simple_command(:get, '{userId}/drafts/{id}', options)
247
+ def get_user_draft(user_id, id, format: nil, fields: nil, quota_user: nil, options: nil, &block)
248
+ command = make_simple_command(:get, 'gmail/v1/users/{userId}/drafts/{id}', options)
269
249
  command.response_representation = Google::Apis::GmailV1::Draft::Representation
270
250
  command.response_class = Google::Apis::GmailV1::Draft
271
251
  command.params['userId'] = user_id unless user_id.nil?
@@ -273,31 +253,30 @@ module Google
273
253
  command.query['format'] = format unless format.nil?
274
254
  command.query['fields'] = fields unless fields.nil?
275
255
  command.query['quotaUser'] = quota_user unless quota_user.nil?
276
- command.query['userIp'] = user_ip unless user_ip.nil?
277
256
  execute_or_queue_command(command, &block)
278
257
  end
279
258
 
280
259
  # Lists the drafts in the user's mailbox.
281
260
  # @param [String] user_id
282
- # The user's email address. The special value me can be used to indicate the
283
- # authenticated user.
261
+ # The user's email address. The special value <code>me</code>
262
+ # can be used to indicate the authenticated user.
284
263
  # @param [Boolean] include_spam_trash
285
- # Include drafts from SPAM and TRASH in the results.
264
+ # Include drafts from <code>SPAM</code> and <code>TRASH</code>
265
+ # in the results.
286
266
  # @param [Fixnum] max_results
287
267
  # Maximum number of drafts to return.
288
268
  # @param [String] page_token
289
269
  # Page token to retrieve a specific page of results in the list.
290
270
  # @param [String] q
291
271
  # Only return draft messages matching the specified query. Supports the same
292
- # query format as the Gmail search box. For example, "from:someuser@example.com
293
- # rfc822msgid: is:unread".
272
+ # query format as the Gmail search box. For example,
273
+ # <code>"from:someuser@example.com rfc822msgid:<somemsgid@example.com>
274
+ # is:unread"</code>.
294
275
  # @param [String] fields
295
276
  # Selector specifying which fields to include in a partial response.
296
277
  # @param [String] quota_user
297
- # An opaque string that represents a user for quota purposes. Must not exceed 40
298
- # characters.
299
- # @param [String] user_ip
300
- # Deprecated. Please use quotaUser instead.
278
+ # Available to use for quota purposes for server-side applications. Can be any
279
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
301
280
  # @param [Google::Apis::RequestOptions] options
302
281
  # Request-specific options
303
282
  #
@@ -310,8 +289,8 @@ module Google
310
289
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
311
290
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
312
291
  # @raise [Google::Apis::AuthorizationError] Authorization is required
313
- def list_user_drafts(user_id, include_spam_trash: nil, max_results: nil, page_token: nil, q: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
314
- command = make_simple_command(:get, '{userId}/drafts', options)
292
+ def list_user_drafts(user_id, include_spam_trash: nil, max_results: nil, page_token: nil, q: nil, fields: nil, quota_user: nil, options: nil, &block)
293
+ command = make_simple_command(:get, 'gmail/v1/users/{userId}/drafts', options)
315
294
  command.response_representation = Google::Apis::GmailV1::ListDraftsResponse::Representation
316
295
  command.response_class = Google::Apis::GmailV1::ListDraftsResponse
317
296
  command.params['userId'] = user_id unless user_id.nil?
@@ -321,23 +300,20 @@ module Google
321
300
  command.query['q'] = q unless q.nil?
322
301
  command.query['fields'] = fields unless fields.nil?
323
302
  command.query['quotaUser'] = quota_user unless quota_user.nil?
324
- command.query['userIp'] = user_ip unless user_ip.nil?
325
303
  execute_or_queue_command(command, &block)
326
304
  end
327
305
 
328
- # Sends the specified, existing draft to the recipients in the To, Cc, and Bcc
329
- # headers.
306
+ # Sends the specified, existing draft to the recipients in the
307
+ # <code>To</code>, <code>Cc</code>, and <code>Bcc</code> headers.
330
308
  # @param [String] user_id
331
- # The user's email address. The special value me can be used to indicate the
332
- # authenticated user.
309
+ # The user's email address. The special value <code>me</code>
310
+ # can be used to indicate the authenticated user.
333
311
  # @param [Google::Apis::GmailV1::Draft] draft_object
334
312
  # @param [String] fields
335
313
  # Selector specifying which fields to include in a partial response.
336
314
  # @param [String] quota_user
337
- # An opaque string that represents a user for quota purposes. Must not exceed 40
338
- # characters.
339
- # @param [String] user_ip
340
- # Deprecated. Please use quotaUser instead.
315
+ # Available to use for quota purposes for server-side applications. Can be any
316
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
341
317
  # @param [IO, String] upload_source
342
318
  # IO stream or filename containing content to upload
343
319
  # @param [String] content_type
@@ -354,11 +330,11 @@ module Google
354
330
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
355
331
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
356
332
  # @raise [Google::Apis::AuthorizationError] Authorization is required
357
- 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)
333
+ def send_user_draft(user_id, draft_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
358
334
  if upload_source.nil?
359
- command = make_simple_command(:post, '{userId}/drafts/send', options)
335
+ command = make_simple_command(:post, 'gmail/v1/users/{userId}/drafts/send', options)
360
336
  else
361
- command = make_upload_command(:post, '{userId}/drafts/send', options)
337
+ command = make_upload_command(:post, 'gmail/v1/users/{userId}/drafts/send', options)
362
338
  command.upload_source = upload_source
363
339
  command.upload_content_type = content_type
364
340
  end
@@ -369,24 +345,21 @@ module Google
369
345
  command.params['userId'] = user_id unless user_id.nil?
370
346
  command.query['fields'] = fields unless fields.nil?
371
347
  command.query['quotaUser'] = quota_user unless quota_user.nil?
372
- command.query['userIp'] = user_ip unless user_ip.nil?
373
348
  execute_or_queue_command(command, &block)
374
349
  end
375
350
 
376
351
  # Replaces a draft's content.
377
352
  # @param [String] user_id
378
- # The user's email address. The special value me can be used to indicate the
379
- # authenticated user.
353
+ # The user's email address. The special value <code>me</code>
354
+ # can be used to indicate the authenticated user.
380
355
  # @param [String] id
381
356
  # The ID of the draft to update.
382
357
  # @param [Google::Apis::GmailV1::Draft] draft_object
383
358
  # @param [String] fields
384
359
  # Selector specifying which fields to include in a partial response.
385
360
  # @param [String] quota_user
386
- # An opaque string that represents a user for quota purposes. Must not exceed 40
387
- # characters.
388
- # @param [String] user_ip
389
- # Deprecated. Please use quotaUser instead.
361
+ # Available to use for quota purposes for server-side applications. Can be any
362
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
390
363
  # @param [IO, String] upload_source
391
364
  # IO stream or filename containing content to upload
392
365
  # @param [String] content_type
@@ -403,11 +376,11 @@ module Google
403
376
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
404
377
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
405
378
  # @raise [Google::Apis::AuthorizationError] Authorization is required
406
- 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)
379
+ def update_user_draft(user_id, id, draft_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
407
380
  if upload_source.nil?
408
- command = make_simple_command(:put, '{userId}/drafts/{id}', options)
381
+ command = make_simple_command(:put, 'gmail/v1/users/{userId}/drafts/{id}', options)
409
382
  else
410
- command = make_upload_command(:put, '{userId}/drafts/{id}', options)
383
+ command = make_upload_command(:put, 'gmail/v1/users/{userId}/drafts/{id}', options)
411
384
  command.upload_source = upload_source
412
385
  command.upload_content_type = content_type
413
386
  end
@@ -419,15 +392,14 @@ module Google
419
392
  command.params['id'] = id unless id.nil?
420
393
  command.query['fields'] = fields unless fields.nil?
421
394
  command.query['quotaUser'] = quota_user unless quota_user.nil?
422
- command.query['userIp'] = user_ip unless user_ip.nil?
423
395
  execute_or_queue_command(command, &block)
424
396
  end
425
397
 
426
398
  # Lists the history of all changes to the given mailbox. History results are
427
- # returned in chronological order (increasing historyId).
399
+ # returned in chronological order (increasing <code>historyId</code>).
428
400
  # @param [String] user_id
429
- # The user's email address. The special value me can be used to indicate the
430
- # authenticated user.
401
+ # The user's email address. The special value <code>me</code>
402
+ # can be used to indicate the authenticated user.
431
403
  # @param [Array<String>, String] history_types
432
404
  # History types to be returned by the function
433
405
  # @param [String] label_id
@@ -437,23 +409,24 @@ module Google
437
409
  # @param [String] page_token
438
410
  # Page token to retrieve a specific page of results in the list.
439
411
  # @param [Fixnum] start_history_id
440
- # Required. Returns history records after the specified startHistoryId. The
441
- # supplied startHistoryId should be obtained from the historyId of a message,
442
- # thread, or previous list response. History IDs increase chronologically but
443
- # are not contiguous with random gaps in between valid IDs. Supplying an invalid
444
- # or out of date startHistoryId typically returns an HTTP 404 error code. A
445
- # historyId is typically valid for at least a week, but in some rare
446
- # circumstances may be valid for only a few hours. If you receive an HTTP 404
447
- # error response, your application should perform a full sync. If you receive no
448
- # nextPageToken in the response, there are no updates to retrieve and you can
449
- # store the returned historyId for a future request.
412
+ # Required. Returns history records after the specified
413
+ # <code>startHistoryId</code>. The supplied <code>startHistoryId</code>
414
+ # should be obtained from the <code>historyId</code> of a message, thread, or
415
+ # previous <code>list</code> response. History IDs increase
416
+ # chronologically but are not contiguous with random gaps in between valid
417
+ # IDs. Supplying an invalid or out of date <code>startHistoryId</code>
418
+ # typically returns an <code>HTTP 404</code> error code. A
419
+ # <code>historyId</code> is typically valid for at least a week, but in some
420
+ # rare circumstances may be valid for only a few hours. If you receive an
421
+ # <code>HTTP 404</code> error response, your application should perform a
422
+ # full sync. If you receive no <code>nextPageToken</code> in the response,
423
+ # there are no updates to retrieve and you can store the returned
424
+ # <code>historyId</code> for a future request.
450
425
  # @param [String] fields
451
426
  # Selector specifying which fields to include in a partial response.
452
427
  # @param [String] quota_user
453
- # An opaque string that represents a user for quota purposes. Must not exceed 40
454
- # characters.
455
- # @param [String] user_ip
456
- # Deprecated. Please use quotaUser instead.
428
+ # Available to use for quota purposes for server-side applications. Can be any
429
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
457
430
  # @param [Google::Apis::RequestOptions] options
458
431
  # Request-specific options
459
432
  #
@@ -466,8 +439,8 @@ module Google
466
439
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
467
440
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
468
441
  # @raise [Google::Apis::AuthorizationError] Authorization is required
469
- def list_user_histories(user_id, history_types: nil, label_id: nil, max_results: nil, page_token: nil, start_history_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
470
- command = make_simple_command(:get, '{userId}/history', options)
442
+ def list_user_histories(user_id, history_types: nil, label_id: nil, max_results: nil, page_token: nil, start_history_id: nil, fields: nil, quota_user: nil, options: nil, &block)
443
+ command = make_simple_command(:get, 'gmail/v1/users/{userId}/history', options)
471
444
  command.response_representation = Google::Apis::GmailV1::ListHistoryResponse::Representation
472
445
  command.response_class = Google::Apis::GmailV1::ListHistoryResponse
473
446
  command.params['userId'] = user_id unless user_id.nil?
@@ -478,22 +451,19 @@ module Google
478
451
  command.query['startHistoryId'] = start_history_id unless start_history_id.nil?
479
452
  command.query['fields'] = fields unless fields.nil?
480
453
  command.query['quotaUser'] = quota_user unless quota_user.nil?
481
- command.query['userIp'] = user_ip unless user_ip.nil?
482
454
  execute_or_queue_command(command, &block)
483
455
  end
484
456
 
485
457
  # Creates a new label.
486
458
  # @param [String] user_id
487
- # The user's email address. The special value me can be used to indicate the
488
- # authenticated user.
459
+ # The user's email address. The special value <code>me</code>
460
+ # can be used to indicate the authenticated user.
489
461
  # @param [Google::Apis::GmailV1::Label] label_object
490
462
  # @param [String] fields
491
463
  # Selector specifying which fields to include in a partial response.
492
464
  # @param [String] quota_user
493
- # An opaque string that represents a user for quota purposes. Must not exceed 40
494
- # characters.
495
- # @param [String] user_ip
496
- # Deprecated. Please use quotaUser instead.
465
+ # Available to use for quota purposes for server-side applications. Can be any
466
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
497
467
  # @param [Google::Apis::RequestOptions] options
498
468
  # Request-specific options
499
469
  #
@@ -506,8 +476,8 @@ module Google
506
476
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
507
477
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
508
478
  # @raise [Google::Apis::AuthorizationError] Authorization is required
509
- def create_user_label(user_id, label_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
510
- command = make_simple_command(:post, '{userId}/labels', options)
479
+ def create_user_label(user_id, label_object = nil, fields: nil, quota_user: nil, options: nil, &block)
480
+ command = make_simple_command(:post, 'gmail/v1/users/{userId}/labels', options)
511
481
  command.request_representation = Google::Apis::GmailV1::Label::Representation
512
482
  command.request_object = label_object
513
483
  command.response_representation = Google::Apis::GmailV1::Label::Representation
@@ -515,24 +485,21 @@ module Google
515
485
  command.params['userId'] = user_id unless user_id.nil?
516
486
  command.query['fields'] = fields unless fields.nil?
517
487
  command.query['quotaUser'] = quota_user unless quota_user.nil?
518
- command.query['userIp'] = user_ip unless user_ip.nil?
519
488
  execute_or_queue_command(command, &block)
520
489
  end
521
490
 
522
491
  # Immediately and permanently deletes the specified label and removes it from
523
492
  # any messages and threads that it is applied to.
524
493
  # @param [String] user_id
525
- # The user's email address. The special value me can be used to indicate the
526
- # authenticated user.
494
+ # The user's email address. The special value <code>me</code>
495
+ # can be used to indicate the authenticated user.
527
496
  # @param [String] id
528
497
  # The ID of the label to delete.
529
498
  # @param [String] fields
530
499
  # Selector specifying which fields to include in a partial response.
531
500
  # @param [String] quota_user
532
- # An opaque string that represents a user for quota purposes. Must not exceed 40
533
- # characters.
534
- # @param [String] user_ip
535
- # Deprecated. Please use quotaUser instead.
501
+ # Available to use for quota purposes for server-side applications. Can be any
502
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
536
503
  # @param [Google::Apis::RequestOptions] options
537
504
  # Request-specific options
538
505
  #
@@ -545,29 +512,26 @@ module Google
545
512
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
546
513
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
547
514
  # @raise [Google::Apis::AuthorizationError] Authorization is required
548
- def delete_user_label(user_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
549
- command = make_simple_command(:delete, '{userId}/labels/{id}', options)
515
+ def delete_user_label(user_id, id, fields: nil, quota_user: nil, options: nil, &block)
516
+ command = make_simple_command(:delete, 'gmail/v1/users/{userId}/labels/{id}', options)
550
517
  command.params['userId'] = user_id unless user_id.nil?
551
518
  command.params['id'] = id unless id.nil?
552
519
  command.query['fields'] = fields unless fields.nil?
553
520
  command.query['quotaUser'] = quota_user unless quota_user.nil?
554
- command.query['userIp'] = user_ip unless user_ip.nil?
555
521
  execute_or_queue_command(command, &block)
556
522
  end
557
523
 
558
524
  # Gets the specified label.
559
525
  # @param [String] user_id
560
- # The user's email address. The special value me can be used to indicate the
561
- # authenticated user.
526
+ # The user's email address. The special value <code>me</code>
527
+ # can be used to indicate the authenticated user.
562
528
  # @param [String] id
563
529
  # The ID of the label to retrieve.
564
530
  # @param [String] fields
565
531
  # Selector specifying which fields to include in a partial response.
566
532
  # @param [String] quota_user
567
- # An opaque string that represents a user for quota purposes. Must not exceed 40
568
- # characters.
569
- # @param [String] user_ip
570
- # Deprecated. Please use quotaUser instead.
533
+ # Available to use for quota purposes for server-side applications. Can be any
534
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
571
535
  # @param [Google::Apis::RequestOptions] options
572
536
  # Request-specific options
573
537
  #
@@ -580,29 +544,26 @@ module Google
580
544
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
581
545
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
582
546
  # @raise [Google::Apis::AuthorizationError] Authorization is required
583
- def get_user_label(user_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
584
- command = make_simple_command(:get, '{userId}/labels/{id}', options)
547
+ def get_user_label(user_id, id, fields: nil, quota_user: nil, options: nil, &block)
548
+ command = make_simple_command(:get, 'gmail/v1/users/{userId}/labels/{id}', options)
585
549
  command.response_representation = Google::Apis::GmailV1::Label::Representation
586
550
  command.response_class = Google::Apis::GmailV1::Label
587
551
  command.params['userId'] = user_id unless user_id.nil?
588
552
  command.params['id'] = id unless id.nil?
589
553
  command.query['fields'] = fields unless fields.nil?
590
554
  command.query['quotaUser'] = quota_user unless quota_user.nil?
591
- command.query['userIp'] = user_ip unless user_ip.nil?
592
555
  execute_or_queue_command(command, &block)
593
556
  end
594
557
 
595
558
  # Lists all labels in the user's mailbox.
596
559
  # @param [String] user_id
597
- # The user's email address. The special value me can be used to indicate the
598
- # authenticated user.
560
+ # The user's email address. The special value <code>me</code>
561
+ # can be used to indicate the authenticated user.
599
562
  # @param [String] fields
600
563
  # Selector specifying which fields to include in a partial response.
601
564
  # @param [String] quota_user
602
- # An opaque string that represents a user for quota purposes. Must not exceed 40
603
- # characters.
604
- # @param [String] user_ip
605
- # Deprecated. Please use quotaUser instead.
565
+ # Available to use for quota purposes for server-side applications. Can be any
566
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
606
567
  # @param [Google::Apis::RequestOptions] options
607
568
  # Request-specific options
608
569
  #
@@ -615,31 +576,28 @@ module Google
615
576
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
616
577
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
617
578
  # @raise [Google::Apis::AuthorizationError] Authorization is required
618
- def list_user_labels(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
619
- command = make_simple_command(:get, '{userId}/labels', options)
579
+ def list_user_labels(user_id, fields: nil, quota_user: nil, options: nil, &block)
580
+ command = make_simple_command(:get, 'gmail/v1/users/{userId}/labels', options)
620
581
  command.response_representation = Google::Apis::GmailV1::ListLabelsResponse::Representation
621
582
  command.response_class = Google::Apis::GmailV1::ListLabelsResponse
622
583
  command.params['userId'] = user_id unless user_id.nil?
623
584
  command.query['fields'] = fields unless fields.nil?
624
585
  command.query['quotaUser'] = quota_user unless quota_user.nil?
625
- command.query['userIp'] = user_ip unless user_ip.nil?
626
586
  execute_or_queue_command(command, &block)
627
587
  end
628
588
 
629
- # Updates the specified label. This method supports patch semantics.
589
+ # Patch the specified label.
630
590
  # @param [String] user_id
631
- # The user's email address. The special value me can be used to indicate the
632
- # authenticated user.
591
+ # The user's email address. The special value <code>me</code>
592
+ # can be used to indicate the authenticated user.
633
593
  # @param [String] id
634
594
  # The ID of the label to update.
635
595
  # @param [Google::Apis::GmailV1::Label] label_object
636
596
  # @param [String] fields
637
597
  # Selector specifying which fields to include in a partial response.
638
598
  # @param [String] quota_user
639
- # An opaque string that represents a user for quota purposes. Must not exceed 40
640
- # characters.
641
- # @param [String] user_ip
642
- # Deprecated. Please use quotaUser instead.
599
+ # Available to use for quota purposes for server-side applications. Can be any
600
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
643
601
  # @param [Google::Apis::RequestOptions] options
644
602
  # Request-specific options
645
603
  #
@@ -652,8 +610,8 @@ module Google
652
610
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
653
611
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
654
612
  # @raise [Google::Apis::AuthorizationError] Authorization is required
655
- def patch_user_label(user_id, id, label_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
656
- command = make_simple_command(:patch, '{userId}/labels/{id}', options)
613
+ def patch_user_label(user_id, id, label_object = nil, fields: nil, quota_user: nil, options: nil, &block)
614
+ command = make_simple_command(:patch, 'gmail/v1/users/{userId}/labels/{id}', options)
657
615
  command.request_representation = Google::Apis::GmailV1::Label::Representation
658
616
  command.request_object = label_object
659
617
  command.response_representation = Google::Apis::GmailV1::Label::Representation
@@ -662,24 +620,21 @@ module Google
662
620
  command.params['id'] = id unless id.nil?
663
621
  command.query['fields'] = fields unless fields.nil?
664
622
  command.query['quotaUser'] = quota_user unless quota_user.nil?
665
- command.query['userIp'] = user_ip unless user_ip.nil?
666
623
  execute_or_queue_command(command, &block)
667
624
  end
668
625
 
669
626
  # Updates the specified label.
670
627
  # @param [String] user_id
671
- # The user's email address. The special value me can be used to indicate the
672
- # authenticated user.
628
+ # The user's email address. The special value <code>me</code>
629
+ # can be used to indicate the authenticated user.
673
630
  # @param [String] id
674
631
  # The ID of the label to update.
675
632
  # @param [Google::Apis::GmailV1::Label] label_object
676
633
  # @param [String] fields
677
634
  # Selector specifying which fields to include in a partial response.
678
635
  # @param [String] quota_user
679
- # An opaque string that represents a user for quota purposes. Must not exceed 40
680
- # characters.
681
- # @param [String] user_ip
682
- # Deprecated. Please use quotaUser instead.
636
+ # Available to use for quota purposes for server-side applications. Can be any
637
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
683
638
  # @param [Google::Apis::RequestOptions] options
684
639
  # Request-specific options
685
640
  #
@@ -692,8 +647,8 @@ module Google
692
647
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
693
648
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
694
649
  # @raise [Google::Apis::AuthorizationError] Authorization is required
695
- def update_user_label(user_id, id, label_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
696
- command = make_simple_command(:put, '{userId}/labels/{id}', options)
650
+ def update_user_label(user_id, id, label_object = nil, fields: nil, quota_user: nil, options: nil, &block)
651
+ command = make_simple_command(:put, 'gmail/v1/users/{userId}/labels/{id}', options)
697
652
  command.request_representation = Google::Apis::GmailV1::Label::Representation
698
653
  command.request_object = label_object
699
654
  command.response_representation = Google::Apis::GmailV1::Label::Representation
@@ -702,23 +657,20 @@ module Google
702
657
  command.params['id'] = id unless id.nil?
703
658
  command.query['fields'] = fields unless fields.nil?
704
659
  command.query['quotaUser'] = quota_user unless quota_user.nil?
705
- command.query['userIp'] = user_ip unless user_ip.nil?
706
660
  execute_or_queue_command(command, &block)
707
661
  end
708
662
 
709
- # Deletes many messages by message ID. Provides no guarantees that messages were
710
- # not already deleted or even existed at all.
663
+ # Deletes many messages by message ID. Provides no guarantees that messages
664
+ # were not already deleted or even existed at all.
711
665
  # @param [String] user_id
712
- # The user's email address. The special value me can be used to indicate the
713
- # authenticated user.
666
+ # The user's email address. The special value <code>me</code>
667
+ # can be used to indicate the authenticated user.
714
668
  # @param [Google::Apis::GmailV1::BatchDeleteMessagesRequest] batch_delete_messages_request_object
715
669
  # @param [String] fields
716
670
  # Selector specifying which fields to include in a partial response.
717
671
  # @param [String] quota_user
718
- # An opaque string that represents a user for quota purposes. Must not exceed 40
719
- # characters.
720
- # @param [String] user_ip
721
- # Deprecated. Please use quotaUser instead.
672
+ # Available to use for quota purposes for server-side applications. Can be any
673
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
722
674
  # @param [Google::Apis::RequestOptions] options
723
675
  # Request-specific options
724
676
  #
@@ -731,29 +683,26 @@ module Google
731
683
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
732
684
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
733
685
  # @raise [Google::Apis::AuthorizationError] Authorization is required
734
- def batch_delete_messages(user_id, batch_delete_messages_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
735
- command = make_simple_command(:post, '{userId}/messages/batchDelete', options)
686
+ def batch_delete_messages(user_id, batch_delete_messages_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
687
+ command = make_simple_command(:post, 'gmail/v1/users/{userId}/messages/batchDelete', options)
736
688
  command.request_representation = Google::Apis::GmailV1::BatchDeleteMessagesRequest::Representation
737
689
  command.request_object = batch_delete_messages_request_object
738
690
  command.params['userId'] = user_id unless user_id.nil?
739
691
  command.query['fields'] = fields unless fields.nil?
740
692
  command.query['quotaUser'] = quota_user unless quota_user.nil?
741
- command.query['userIp'] = user_ip unless user_ip.nil?
742
693
  execute_or_queue_command(command, &block)
743
694
  end
744
695
 
745
696
  # Modifies the labels on the specified messages.
746
697
  # @param [String] user_id
747
- # The user's email address. The special value me can be used to indicate the
748
- # authenticated user.
698
+ # The user's email address. The special value <code>me</code>
699
+ # can be used to indicate the authenticated user.
749
700
  # @param [Google::Apis::GmailV1::BatchModifyMessagesRequest] batch_modify_messages_request_object
750
701
  # @param [String] fields
751
702
  # Selector specifying which fields to include in a partial response.
752
703
  # @param [String] quota_user
753
- # An opaque string that represents a user for quota purposes. Must not exceed 40
754
- # characters.
755
- # @param [String] user_ip
756
- # Deprecated. Please use quotaUser instead.
704
+ # Available to use for quota purposes for server-side applications. Can be any
705
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
757
706
  # @param [Google::Apis::RequestOptions] options
758
707
  # Request-specific options
759
708
  #
@@ -766,31 +715,28 @@ module Google
766
715
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
767
716
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
768
717
  # @raise [Google::Apis::AuthorizationError] Authorization is required
769
- def batch_modify_messages(user_id, batch_modify_messages_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
770
- command = make_simple_command(:post, '{userId}/messages/batchModify', options)
718
+ def batch_modify_messages(user_id, batch_modify_messages_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
719
+ command = make_simple_command(:post, 'gmail/v1/users/{userId}/messages/batchModify', options)
771
720
  command.request_representation = Google::Apis::GmailV1::BatchModifyMessagesRequest::Representation
772
721
  command.request_object = batch_modify_messages_request_object
773
722
  command.params['userId'] = user_id unless user_id.nil?
774
723
  command.query['fields'] = fields unless fields.nil?
775
724
  command.query['quotaUser'] = quota_user unless quota_user.nil?
776
- command.query['userIp'] = user_ip unless user_ip.nil?
777
725
  execute_or_queue_command(command, &block)
778
726
  end
779
727
 
780
728
  # Immediately and permanently deletes the specified message. This operation
781
- # cannot be undone. Prefer messages.trash instead.
729
+ # cannot be undone. Prefer <code>messages.trash</code> instead.
782
730
  # @param [String] user_id
783
- # The user's email address. The special value me can be used to indicate the
784
- # authenticated user.
731
+ # The user's email address. The special value <code>me</code>
732
+ # can be used to indicate the authenticated user.
785
733
  # @param [String] id
786
734
  # The ID of the message to delete.
787
735
  # @param [String] fields
788
736
  # Selector specifying which fields to include in a partial response.
789
737
  # @param [String] quota_user
790
- # An opaque string that represents a user for quota purposes. Must not exceed 40
791
- # characters.
792
- # @param [String] user_ip
793
- # Deprecated. Please use quotaUser instead.
738
+ # Available to use for quota purposes for server-side applications. Can be any
739
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
794
740
  # @param [Google::Apis::RequestOptions] options
795
741
  # Request-specific options
796
742
  #
@@ -803,20 +749,19 @@ module Google
803
749
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
804
750
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
805
751
  # @raise [Google::Apis::AuthorizationError] Authorization is required
806
- def delete_user_message(user_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
807
- command = make_simple_command(:delete, '{userId}/messages/{id}', options)
752
+ def delete_user_message(user_id, id, fields: nil, quota_user: nil, options: nil, &block)
753
+ command = make_simple_command(:delete, 'gmail/v1/users/{userId}/messages/{id}', options)
808
754
  command.params['userId'] = user_id unless user_id.nil?
809
755
  command.params['id'] = id unless id.nil?
810
756
  command.query['fields'] = fields unless fields.nil?
811
757
  command.query['quotaUser'] = quota_user unless quota_user.nil?
812
- command.query['userIp'] = user_ip unless user_ip.nil?
813
758
  execute_or_queue_command(command, &block)
814
759
  end
815
760
 
816
761
  # Gets the specified message.
817
762
  # @param [String] user_id
818
- # The user's email address. The special value me can be used to indicate the
819
- # authenticated user.
763
+ # The user's email address. The special value <code>me</code>
764
+ # can be used to indicate the authenticated user.
820
765
  # @param [String] id
821
766
  # The ID of the message to retrieve.
822
767
  # @param [String] format
@@ -826,10 +771,8 @@ module Google
826
771
  # @param [String] fields
827
772
  # Selector specifying which fields to include in a partial response.
828
773
  # @param [String] quota_user
829
- # An opaque string that represents a user for quota purposes. Must not exceed 40
830
- # characters.
831
- # @param [String] user_ip
832
- # Deprecated. Please use quotaUser instead.
774
+ # Available to use for quota purposes for server-side applications. Can be any
775
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
833
776
  # @param [Google::Apis::RequestOptions] options
834
777
  # Request-specific options
835
778
  #
@@ -842,8 +785,8 @@ module Google
842
785
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
843
786
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
844
787
  # @raise [Google::Apis::AuthorizationError] Authorization is required
845
- def get_user_message(user_id, id, format: nil, metadata_headers: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
846
- command = make_simple_command(:get, '{userId}/messages/{id}', options)
788
+ def get_user_message(user_id, id, format: nil, metadata_headers: nil, fields: nil, quota_user: nil, options: nil, &block)
789
+ command = make_simple_command(:get, 'gmail/v1/users/{userId}/messages/{id}', options)
847
790
  command.response_representation = Google::Apis::GmailV1::Message::Representation
848
791
  command.response_class = Google::Apis::GmailV1::Message
849
792
  command.params['userId'] = user_id unless user_id.nil?
@@ -852,35 +795,34 @@ module Google
852
795
  command.query['metadataHeaders'] = metadata_headers unless metadata_headers.nil?
853
796
  command.query['fields'] = fields unless fields.nil?
854
797
  command.query['quotaUser'] = quota_user unless quota_user.nil?
855
- command.query['userIp'] = user_ip unless user_ip.nil?
856
798
  execute_or_queue_command(command, &block)
857
799
  end
858
800
 
859
- # Imports a message into only this user's mailbox, with standard email delivery
860
- # scanning and classification similar to receiving via SMTP. Does not send a
861
- # message.
801
+ # Imports a message into only this user's mailbox, with standard
802
+ # email delivery scanning and classification similar to receiving via SMTP.
803
+ # Does not send a message.
862
804
  # @param [String] user_id
863
- # The user's email address. The special value me can be used to indicate the
864
- # authenticated user.
805
+ # The user's email address. The special value <code>me</code>
806
+ # can be used to indicate the authenticated user.
865
807
  # @param [Google::Apis::GmailV1::Message] message_object
866
808
  # @param [Boolean] deleted
867
- # Mark the email as permanently deleted (not TRASH) and only visible in Google
868
- # Vault to a Vault administrator. Only used for G Suite accounts.
809
+ # Mark the email as permanently deleted (not TRASH) and
810
+ # only visible in
811
+ # <a href="http://support.google.com/vault/">Google Vault</a> to
812
+ # a Vault administrator. Only used for G Suite accounts.
869
813
  # @param [String] internal_date_source
870
814
  # Source for Gmail's internal date of the message.
871
815
  # @param [Boolean] never_mark_spam
872
- # Ignore the Gmail spam classifier decision and never mark this email as SPAM in
873
- # the mailbox.
816
+ # Ignore the Gmail spam classifier decision and never mark
817
+ # this email as SPAM in the mailbox.
874
818
  # @param [Boolean] process_for_calendar
875
- # Process calendar invites in the email and add any extracted meetings to the
876
- # Google Calendar for this user.
819
+ # Process calendar invites in the email and add any extracted
820
+ # meetings to the Google Calendar for this user.
877
821
  # @param [String] fields
878
822
  # Selector specifying which fields to include in a partial response.
879
823
  # @param [String] quota_user
880
- # An opaque string that represents a user for quota purposes. Must not exceed 40
881
- # characters.
882
- # @param [String] user_ip
883
- # Deprecated. Please use quotaUser instead.
824
+ # Available to use for quota purposes for server-side applications. Can be any
825
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
884
826
  # @param [IO, String] upload_source
885
827
  # IO stream or filename containing content to upload
886
828
  # @param [String] content_type
@@ -897,11 +839,11 @@ module Google
897
839
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
898
840
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
899
841
  # @raise [Google::Apis::AuthorizationError] Authorization is required
900
- 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)
842
+ 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, upload_source: nil, content_type: nil, options: nil, &block)
901
843
  if upload_source.nil?
902
- command = make_simple_command(:post, '{userId}/messages/import', options)
844
+ command = make_simple_command(:post, 'gmail/v1/users/{userId}/messages/import', options)
903
845
  else
904
- command = make_upload_command(:post, '{userId}/messages/import', options)
846
+ command = make_upload_command(:post, 'gmail/v1/users/{userId}/messages/import', options)
905
847
  command.upload_source = upload_source
906
848
  command.upload_content_type = content_type
907
849
  end
@@ -916,28 +858,28 @@ module Google
916
858
  command.query['processForCalendar'] = process_for_calendar unless process_for_calendar.nil?
917
859
  command.query['fields'] = fields unless fields.nil?
918
860
  command.query['quotaUser'] = quota_user unless quota_user.nil?
919
- command.query['userIp'] = user_ip unless user_ip.nil?
920
861
  execute_or_queue_command(command, &block)
921
862
  end
922
863
 
923
- # Directly inserts a message into only this user's mailbox similar to IMAP
924
- # APPEND, bypassing most scanning and classification. Does not send a message.
864
+ # Directly inserts a message into only this user's mailbox similar to
865
+ # <code>IMAP APPEND</code>, bypassing most scanning and classification.
866
+ # Does not send a message.
925
867
  # @param [String] user_id
926
- # The user's email address. The special value me can be used to indicate the
927
- # authenticated user.
868
+ # The user's email address. The special value <code>me</code>
869
+ # can be used to indicate the authenticated user.
928
870
  # @param [Google::Apis::GmailV1::Message] message_object
929
871
  # @param [Boolean] deleted
930
- # Mark the email as permanently deleted (not TRASH) and only visible in Google
931
- # Vault to a Vault administrator. Only used for G Suite accounts.
872
+ # Mark the email as permanently deleted (not TRASH) and
873
+ # only visible in
874
+ # <a href="http://support.google.com/vault/">Google Vault</a> to
875
+ # a Vault administrator. Only used for G Suite accounts.
932
876
  # @param [String] internal_date_source
933
877
  # Source for Gmail's internal date of the message.
934
878
  # @param [String] fields
935
879
  # Selector specifying which fields to include in a partial response.
936
880
  # @param [String] quota_user
937
- # An opaque string that represents a user for quota purposes. Must not exceed 40
938
- # characters.
939
- # @param [String] user_ip
940
- # Deprecated. Please use quotaUser instead.
881
+ # Available to use for quota purposes for server-side applications. Can be any
882
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
941
883
  # @param [IO, String] upload_source
942
884
  # IO stream or filename containing content to upload
943
885
  # @param [String] content_type
@@ -954,11 +896,11 @@ module Google
954
896
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
955
897
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
956
898
  # @raise [Google::Apis::AuthorizationError] Authorization is required
957
- 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)
899
+ def insert_user_message(user_id, message_object = nil, deleted: nil, internal_date_source: nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
958
900
  if upload_source.nil?
959
- command = make_simple_command(:post, '{userId}/messages', options)
901
+ command = make_simple_command(:post, 'gmail/v1/users/{userId}/messages', options)
960
902
  else
961
- command = make_upload_command(:post, '{userId}/messages', options)
903
+ command = make_upload_command(:post, 'gmail/v1/users/{userId}/messages', options)
962
904
  command.upload_source = upload_source
963
905
  command.upload_content_type = content_type
964
906
  end
@@ -971,16 +913,16 @@ module Google
971
913
  command.query['internalDateSource'] = internal_date_source unless internal_date_source.nil?
972
914
  command.query['fields'] = fields unless fields.nil?
973
915
  command.query['quotaUser'] = quota_user unless quota_user.nil?
974
- command.query['userIp'] = user_ip unless user_ip.nil?
975
916
  execute_or_queue_command(command, &block)
976
917
  end
977
918
 
978
919
  # Lists the messages in the user's mailbox.
979
920
  # @param [String] user_id
980
- # The user's email address. The special value me can be used to indicate the
981
- # authenticated user.
921
+ # The user's email address. The special value <code>me</code>
922
+ # can be used to indicate the authenticated user.
982
923
  # @param [Boolean] include_spam_trash
983
- # Include messages from SPAM and TRASH in the results.
924
+ # Include messages from <code>SPAM</code> and <code>TRASH</code>
925
+ # in the results.
984
926
  # @param [Array<String>, String] label_ids
985
927
  # Only return messages with labels that match all of the specified label IDs.
986
928
  # @param [Fixnum] max_results
@@ -988,17 +930,16 @@ module Google
988
930
  # @param [String] page_token
989
931
  # Page token to retrieve a specific page of results in the list.
990
932
  # @param [String] q
991
- # Only return messages matching the specified query. Supports the same query
992
- # format as the Gmail search box. For example, "from:someuser@example.com
993
- # rfc822msgid:<somemsgid@example.com> is:unread". Parameter cannot be used when
994
- # accessing the api using the gmail.metadata scope.
933
+ # Only return messages matching the specified query. Supports the same
934
+ # query format as the Gmail search box. For example,
935
+ # <code>"from:someuser@example.com rfc822msgid:&lt;somemsgid@example.com&gt;
936
+ # is:unread"</code>. Parameter cannot be used when accessing the api
937
+ # using the gmail.metadata scope.
995
938
  # @param [String] fields
996
939
  # Selector specifying which fields to include in a partial response.
997
940
  # @param [String] quota_user
998
- # An opaque string that represents a user for quota purposes. Must not exceed 40
999
- # characters.
1000
- # @param [String] user_ip
1001
- # Deprecated. Please use quotaUser instead.
941
+ # Available to use for quota purposes for server-side applications. Can be any
942
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1002
943
  # @param [Google::Apis::RequestOptions] options
1003
944
  # Request-specific options
1004
945
  #
@@ -1011,8 +952,8 @@ module Google
1011
952
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1012
953
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1013
954
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1014
- 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)
1015
- command = make_simple_command(:get, '{userId}/messages', options)
955
+ 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, options: nil, &block)
956
+ command = make_simple_command(:get, 'gmail/v1/users/{userId}/messages', options)
1016
957
  command.response_representation = Google::Apis::GmailV1::ListMessagesResponse::Representation
1017
958
  command.response_class = Google::Apis::GmailV1::ListMessagesResponse
1018
959
  command.params['userId'] = user_id unless user_id.nil?
@@ -1023,24 +964,21 @@ module Google
1023
964
  command.query['q'] = q unless q.nil?
1024
965
  command.query['fields'] = fields unless fields.nil?
1025
966
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1026
- command.query['userIp'] = user_ip unless user_ip.nil?
1027
967
  execute_or_queue_command(command, &block)
1028
968
  end
1029
969
 
1030
970
  # Modifies the labels on the specified message.
1031
971
  # @param [String] user_id
1032
- # The user's email address. The special value me can be used to indicate the
1033
- # authenticated user.
972
+ # The user's email address. The special value <code>me</code>
973
+ # can be used to indicate the authenticated user.
1034
974
  # @param [String] id
1035
975
  # The ID of the message to modify.
1036
976
  # @param [Google::Apis::GmailV1::ModifyMessageRequest] modify_message_request_object
1037
977
  # @param [String] fields
1038
978
  # Selector specifying which fields to include in a partial response.
1039
979
  # @param [String] quota_user
1040
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1041
- # characters.
1042
- # @param [String] user_ip
1043
- # Deprecated. Please use quotaUser instead.
980
+ # Available to use for quota purposes for server-side applications. Can be any
981
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1044
982
  # @param [Google::Apis::RequestOptions] options
1045
983
  # Request-specific options
1046
984
  #
@@ -1053,8 +991,8 @@ module Google
1053
991
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1054
992
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1055
993
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1056
- def modify_message(user_id, id, modify_message_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1057
- command = make_simple_command(:post, '{userId}/messages/{id}/modify', options)
994
+ def modify_message(user_id, id, modify_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
995
+ command = make_simple_command(:post, 'gmail/v1/users/{userId}/messages/{id}/modify', options)
1058
996
  command.request_representation = Google::Apis::GmailV1::ModifyMessageRequest::Representation
1059
997
  command.request_object = modify_message_request_object
1060
998
  command.response_representation = Google::Apis::GmailV1::Message::Representation
@@ -1063,22 +1001,20 @@ module Google
1063
1001
  command.params['id'] = id unless id.nil?
1064
1002
  command.query['fields'] = fields unless fields.nil?
1065
1003
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1066
- command.query['userIp'] = user_ip unless user_ip.nil?
1067
1004
  execute_or_queue_command(command, &block)
1068
1005
  end
1069
1006
 
1070
- # Sends the specified message to the recipients in the To, Cc, and Bcc headers.
1007
+ # Sends the specified message to the recipients in the
1008
+ # <code>To</code>, <code>Cc</code>, and <code>Bcc</code> headers.
1071
1009
  # @param [String] user_id
1072
- # The user's email address. The special value me can be used to indicate the
1073
- # authenticated user.
1010
+ # The user's email address. The special value <code>me</code>
1011
+ # can be used to indicate the authenticated user.
1074
1012
  # @param [Google::Apis::GmailV1::Message] message_object
1075
1013
  # @param [String] fields
1076
1014
  # Selector specifying which fields to include in a partial response.
1077
1015
  # @param [String] quota_user
1078
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1079
- # characters.
1080
- # @param [String] user_ip
1081
- # Deprecated. Please use quotaUser instead.
1016
+ # Available to use for quota purposes for server-side applications. Can be any
1017
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1082
1018
  # @param [IO, String] upload_source
1083
1019
  # IO stream or filename containing content to upload
1084
1020
  # @param [String] content_type
@@ -1095,11 +1031,11 @@ module Google
1095
1031
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1096
1032
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1097
1033
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1098
- 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)
1034
+ def send_user_message(user_id, message_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
1099
1035
  if upload_source.nil?
1100
- command = make_simple_command(:post, '{userId}/messages/send', options)
1036
+ command = make_simple_command(:post, 'gmail/v1/users/{userId}/messages/send', options)
1101
1037
  else
1102
- command = make_upload_command(:post, '{userId}/messages/send', options)
1038
+ command = make_upload_command(:post, 'gmail/v1/users/{userId}/messages/send', options)
1103
1039
  command.upload_source = upload_source
1104
1040
  command.upload_content_type = content_type
1105
1041
  end
@@ -1110,23 +1046,20 @@ module Google
1110
1046
  command.params['userId'] = user_id unless user_id.nil?
1111
1047
  command.query['fields'] = fields unless fields.nil?
1112
1048
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1113
- command.query['userIp'] = user_ip unless user_ip.nil?
1114
1049
  execute_or_queue_command(command, &block)
1115
1050
  end
1116
1051
 
1117
1052
  # Moves the specified message to the trash.
1118
1053
  # @param [String] user_id
1119
- # The user's email address. The special value me can be used to indicate the
1120
- # authenticated user.
1054
+ # The user's email address. The special value <code>me</code>
1055
+ # can be used to indicate the authenticated user.
1121
1056
  # @param [String] id
1122
1057
  # The ID of the message to Trash.
1123
1058
  # @param [String] fields
1124
1059
  # Selector specifying which fields to include in a partial response.
1125
1060
  # @param [String] quota_user
1126
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1127
- # characters.
1128
- # @param [String] user_ip
1129
- # Deprecated. Please use quotaUser instead.
1061
+ # Available to use for quota purposes for server-side applications. Can be any
1062
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1130
1063
  # @param [Google::Apis::RequestOptions] options
1131
1064
  # Request-specific options
1132
1065
  #
@@ -1139,31 +1072,28 @@ module Google
1139
1072
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1140
1073
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1141
1074
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1142
- def trash_user_message(user_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1143
- command = make_simple_command(:post, '{userId}/messages/{id}/trash', options)
1075
+ def trash_user_message(user_id, id, fields: nil, quota_user: nil, options: nil, &block)
1076
+ command = make_simple_command(:post, 'gmail/v1/users/{userId}/messages/{id}/trash', options)
1144
1077
  command.response_representation = Google::Apis::GmailV1::Message::Representation
1145
1078
  command.response_class = Google::Apis::GmailV1::Message
1146
1079
  command.params['userId'] = user_id unless user_id.nil?
1147
1080
  command.params['id'] = id unless id.nil?
1148
1081
  command.query['fields'] = fields unless fields.nil?
1149
1082
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1150
- command.query['userIp'] = user_ip unless user_ip.nil?
1151
1083
  execute_or_queue_command(command, &block)
1152
1084
  end
1153
1085
 
1154
1086
  # Removes the specified message from the trash.
1155
1087
  # @param [String] user_id
1156
- # The user's email address. The special value me can be used to indicate the
1157
- # authenticated user.
1088
+ # The user's email address. The special value <code>me</code>
1089
+ # can be used to indicate the authenticated user.
1158
1090
  # @param [String] id
1159
1091
  # The ID of the message to remove from Trash.
1160
1092
  # @param [String] fields
1161
1093
  # Selector specifying which fields to include in a partial response.
1162
1094
  # @param [String] quota_user
1163
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1164
- # characters.
1165
- # @param [String] user_ip
1166
- # Deprecated. Please use quotaUser instead.
1095
+ # Available to use for quota purposes for server-side applications. Can be any
1096
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1167
1097
  # @param [Google::Apis::RequestOptions] options
1168
1098
  # Request-specific options
1169
1099
  #
@@ -1176,22 +1106,21 @@ module Google
1176
1106
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1177
1107
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1178
1108
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1179
- def untrash_user_message(user_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1180
- command = make_simple_command(:post, '{userId}/messages/{id}/untrash', options)
1109
+ def untrash_user_message(user_id, id, fields: nil, quota_user: nil, options: nil, &block)
1110
+ command = make_simple_command(:post, 'gmail/v1/users/{userId}/messages/{id}/untrash', options)
1181
1111
  command.response_representation = Google::Apis::GmailV1::Message::Representation
1182
1112
  command.response_class = Google::Apis::GmailV1::Message
1183
1113
  command.params['userId'] = user_id unless user_id.nil?
1184
1114
  command.params['id'] = id unless id.nil?
1185
1115
  command.query['fields'] = fields unless fields.nil?
1186
1116
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1187
- command.query['userIp'] = user_ip unless user_ip.nil?
1188
1117
  execute_or_queue_command(command, &block)
1189
1118
  end
1190
1119
 
1191
1120
  # Gets the specified message attachment.
1192
1121
  # @param [String] user_id
1193
- # The user's email address. The special value me can be used to indicate the
1194
- # authenticated user.
1122
+ # The user's email address. The special value <code>me</code>
1123
+ # can be used to indicate the authenticated user.
1195
1124
  # @param [String] message_id
1196
1125
  # The ID of the message containing the attachment.
1197
1126
  # @param [String] id
@@ -1199,10 +1128,8 @@ module Google
1199
1128
  # @param [String] fields
1200
1129
  # Selector specifying which fields to include in a partial response.
1201
1130
  # @param [String] quota_user
1202
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1203
- # characters.
1204
- # @param [String] user_ip
1205
- # Deprecated. Please use quotaUser instead.
1131
+ # Available to use for quota purposes for server-side applications. Can be any
1132
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1206
1133
  # @param [Google::Apis::RequestOptions] options
1207
1134
  # Request-specific options
1208
1135
  #
@@ -1215,8 +1142,8 @@ module Google
1215
1142
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1216
1143
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1217
1144
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1218
- def get_user_message_attachment(user_id, message_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1219
- command = make_simple_command(:get, '{userId}/messages/{messageId}/attachments/{id}', options)
1145
+ def get_user_message_attachment(user_id, message_id, id, fields: nil, quota_user: nil, options: nil, &block)
1146
+ command = make_simple_command(:get, 'gmail/v1/users/{userId}/messages/{messageId}/attachments/{id}', options)
1220
1147
  command.response_representation = Google::Apis::GmailV1::MessagePartBody::Representation
1221
1148
  command.response_class = Google::Apis::GmailV1::MessagePartBody
1222
1149
  command.params['userId'] = user_id unless user_id.nil?
@@ -1224,21 +1151,18 @@ module Google
1224
1151
  command.params['id'] = id unless id.nil?
1225
1152
  command.query['fields'] = fields unless fields.nil?
1226
1153
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1227
- command.query['userIp'] = user_ip unless user_ip.nil?
1228
1154
  execute_or_queue_command(command, &block)
1229
1155
  end
1230
1156
 
1231
1157
  # Gets the auto-forwarding setting for the specified account.
1232
1158
  # @param [String] user_id
1233
- # User's email address. The special value "me" can be used to indicate the
1234
- # authenticated user.
1159
+ # User's email address. The special value "me"
1160
+ # can be used to indicate the authenticated user.
1235
1161
  # @param [String] fields
1236
1162
  # Selector specifying which fields to include in a partial response.
1237
1163
  # @param [String] quota_user
1238
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1239
- # characters.
1240
- # @param [String] user_ip
1241
- # Deprecated. Please use quotaUser instead.
1164
+ # Available to use for quota purposes for server-side applications. Can be any
1165
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1242
1166
  # @param [Google::Apis::RequestOptions] options
1243
1167
  # Request-specific options
1244
1168
  #
@@ -1251,28 +1175,25 @@ module Google
1251
1175
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1252
1176
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1253
1177
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1254
- def get_user_setting_auto_forwarding(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1255
- command = make_simple_command(:get, '{userId}/settings/autoForwarding', options)
1178
+ def get_user_setting_auto_forwarding(user_id, fields: nil, quota_user: nil, options: nil, &block)
1179
+ command = make_simple_command(:get, 'gmail/v1/users/{userId}/settings/autoForwarding', options)
1256
1180
  command.response_representation = Google::Apis::GmailV1::AutoForwarding::Representation
1257
1181
  command.response_class = Google::Apis::GmailV1::AutoForwarding
1258
1182
  command.params['userId'] = user_id unless user_id.nil?
1259
1183
  command.query['fields'] = fields unless fields.nil?
1260
1184
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1261
- command.query['userIp'] = user_ip unless user_ip.nil?
1262
1185
  execute_or_queue_command(command, &block)
1263
1186
  end
1264
1187
 
1265
1188
  # Gets IMAP settings.
1266
1189
  # @param [String] user_id
1267
- # User's email address. The special value "me" can be used to indicate the
1268
- # authenticated user.
1190
+ # User's email address. The special value "me"
1191
+ # can be used to indicate the authenticated user.
1269
1192
  # @param [String] fields
1270
1193
  # Selector specifying which fields to include in a partial response.
1271
1194
  # @param [String] quota_user
1272
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1273
- # characters.
1274
- # @param [String] user_ip
1275
- # Deprecated. Please use quotaUser instead.
1195
+ # Available to use for quota purposes for server-side applications. Can be any
1196
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1276
1197
  # @param [Google::Apis::RequestOptions] options
1277
1198
  # Request-specific options
1278
1199
  #
@@ -1285,28 +1206,25 @@ module Google
1285
1206
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1286
1207
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1287
1208
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1288
- def get_user_setting_imap(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1289
- command = make_simple_command(:get, '{userId}/settings/imap', options)
1209
+ def get_user_setting_imap(user_id, fields: nil, quota_user: nil, options: nil, &block)
1210
+ command = make_simple_command(:get, 'gmail/v1/users/{userId}/settings/imap', options)
1290
1211
  command.response_representation = Google::Apis::GmailV1::ImapSettings::Representation
1291
1212
  command.response_class = Google::Apis::GmailV1::ImapSettings
1292
1213
  command.params['userId'] = user_id unless user_id.nil?
1293
1214
  command.query['fields'] = fields unless fields.nil?
1294
1215
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1295
- command.query['userIp'] = user_ip unless user_ip.nil?
1296
1216
  execute_or_queue_command(command, &block)
1297
1217
  end
1298
1218
 
1299
1219
  # Gets language settings.
1300
1220
  # @param [String] user_id
1301
- # User's email address. The special value "me" can be used to indicate the
1302
- # authenticated user.
1221
+ # User's email address. The special value "me"
1222
+ # can be used to indicate the authenticated user.
1303
1223
  # @param [String] fields
1304
1224
  # Selector specifying which fields to include in a partial response.
1305
1225
  # @param [String] quota_user
1306
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1307
- # characters.
1308
- # @param [String] user_ip
1309
- # Deprecated. Please use quotaUser instead.
1226
+ # Available to use for quota purposes for server-side applications. Can be any
1227
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1310
1228
  # @param [Google::Apis::RequestOptions] options
1311
1229
  # Request-specific options
1312
1230
  #
@@ -1319,28 +1237,25 @@ module Google
1319
1237
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1320
1238
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1321
1239
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1322
- def get_user_setting_language(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1323
- command = make_simple_command(:get, '{userId}/settings/language', options)
1240
+ def get_user_setting_language(user_id, fields: nil, quota_user: nil, options: nil, &block)
1241
+ command = make_simple_command(:get, 'gmail/v1/users/{userId}/settings/language', options)
1324
1242
  command.response_representation = Google::Apis::GmailV1::LanguageSettings::Representation
1325
1243
  command.response_class = Google::Apis::GmailV1::LanguageSettings
1326
1244
  command.params['userId'] = user_id unless user_id.nil?
1327
1245
  command.query['fields'] = fields unless fields.nil?
1328
1246
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1329
- command.query['userIp'] = user_ip unless user_ip.nil?
1330
1247
  execute_or_queue_command(command, &block)
1331
1248
  end
1332
1249
 
1333
1250
  # Gets POP settings.
1334
1251
  # @param [String] user_id
1335
- # User's email address. The special value "me" can be used to indicate the
1336
- # authenticated user.
1252
+ # User's email address. The special value "me"
1253
+ # can be used to indicate the authenticated user.
1337
1254
  # @param [String] fields
1338
1255
  # Selector specifying which fields to include in a partial response.
1339
1256
  # @param [String] quota_user
1340
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1341
- # characters.
1342
- # @param [String] user_ip
1343
- # Deprecated. Please use quotaUser instead.
1257
+ # Available to use for quota purposes for server-side applications. Can be any
1258
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1344
1259
  # @param [Google::Apis::RequestOptions] options
1345
1260
  # Request-specific options
1346
1261
  #
@@ -1353,28 +1268,25 @@ module Google
1353
1268
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1354
1269
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1355
1270
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1356
- def get_user_setting_pop(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1357
- command = make_simple_command(:get, '{userId}/settings/pop', options)
1271
+ def get_user_setting_pop(user_id, fields: nil, quota_user: nil, options: nil, &block)
1272
+ command = make_simple_command(:get, 'gmail/v1/users/{userId}/settings/pop', options)
1358
1273
  command.response_representation = Google::Apis::GmailV1::PopSettings::Representation
1359
1274
  command.response_class = Google::Apis::GmailV1::PopSettings
1360
1275
  command.params['userId'] = user_id unless user_id.nil?
1361
1276
  command.query['fields'] = fields unless fields.nil?
1362
1277
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1363
- command.query['userIp'] = user_ip unless user_ip.nil?
1364
1278
  execute_or_queue_command(command, &block)
1365
1279
  end
1366
1280
 
1367
1281
  # Gets vacation responder settings.
1368
1282
  # @param [String] user_id
1369
- # User's email address. The special value "me" can be used to indicate the
1370
- # authenticated user.
1283
+ # User's email address. The special value "me"
1284
+ # can be used to indicate the authenticated user.
1371
1285
  # @param [String] fields
1372
1286
  # Selector specifying which fields to include in a partial response.
1373
1287
  # @param [String] quota_user
1374
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1375
- # characters.
1376
- # @param [String] user_ip
1377
- # Deprecated. Please use quotaUser instead.
1288
+ # Available to use for quota purposes for server-side applications. Can be any
1289
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1378
1290
  # @param [Google::Apis::RequestOptions] options
1379
1291
  # Request-specific options
1380
1292
  #
@@ -1387,32 +1299,29 @@ module Google
1387
1299
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1388
1300
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1389
1301
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1390
- def get_user_setting_vacation(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1391
- command = make_simple_command(:get, '{userId}/settings/vacation', options)
1302
+ def get_user_setting_vacation(user_id, fields: nil, quota_user: nil, options: nil, &block)
1303
+ command = make_simple_command(:get, 'gmail/v1/users/{userId}/settings/vacation', options)
1392
1304
  command.response_representation = Google::Apis::GmailV1::VacationSettings::Representation
1393
1305
  command.response_class = Google::Apis::GmailV1::VacationSettings
1394
1306
  command.params['userId'] = user_id unless user_id.nil?
1395
1307
  command.query['fields'] = fields unless fields.nil?
1396
1308
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1397
- command.query['userIp'] = user_ip unless user_ip.nil?
1398
1309
  execute_or_queue_command(command, &block)
1399
1310
  end
1400
1311
 
1401
- # Updates the auto-forwarding setting for the specified account. A verified
1312
+ # Updates the auto-forwarding setting for the specified account. A verified
1402
1313
  # forwarding address must be specified when auto-forwarding is enabled.
1403
1314
  # This method is only available to service account clients that have been
1404
1315
  # delegated domain-wide authority.
1405
1316
  # @param [String] user_id
1406
- # User's email address. The special value "me" can be used to indicate the
1407
- # authenticated user.
1317
+ # User's email address. The special value "me"
1318
+ # can be used to indicate the authenticated user.
1408
1319
  # @param [Google::Apis::GmailV1::AutoForwarding] auto_forwarding_object
1409
1320
  # @param [String] fields
1410
1321
  # Selector specifying which fields to include in a partial response.
1411
1322
  # @param [String] quota_user
1412
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1413
- # characters.
1414
- # @param [String] user_ip
1415
- # Deprecated. Please use quotaUser instead.
1323
+ # Available to use for quota purposes for server-side applications. Can be any
1324
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1416
1325
  # @param [Google::Apis::RequestOptions] options
1417
1326
  # Request-specific options
1418
1327
  #
@@ -1425,8 +1334,8 @@ module Google
1425
1334
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1426
1335
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1427
1336
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1428
- def update_user_setting_auto_forwarding(user_id, auto_forwarding_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1429
- command = make_simple_command(:put, '{userId}/settings/autoForwarding', options)
1337
+ def update_user_setting_auto_forwarding(user_id, auto_forwarding_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1338
+ command = make_simple_command(:put, 'gmail/v1/users/{userId}/settings/autoForwarding', options)
1430
1339
  command.request_representation = Google::Apis::GmailV1::AutoForwarding::Representation
1431
1340
  command.request_object = auto_forwarding_object
1432
1341
  command.response_representation = Google::Apis::GmailV1::AutoForwarding::Representation
@@ -1434,22 +1343,19 @@ module Google
1434
1343
  command.params['userId'] = user_id unless user_id.nil?
1435
1344
  command.query['fields'] = fields unless fields.nil?
1436
1345
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1437
- command.query['userIp'] = user_ip unless user_ip.nil?
1438
1346
  execute_or_queue_command(command, &block)
1439
1347
  end
1440
1348
 
1441
1349
  # Updates IMAP settings.
1442
1350
  # @param [String] user_id
1443
- # User's email address. The special value "me" can be used to indicate the
1444
- # authenticated user.
1351
+ # User's email address. The special value "me"
1352
+ # can be used to indicate the authenticated user.
1445
1353
  # @param [Google::Apis::GmailV1::ImapSettings] imap_settings_object
1446
1354
  # @param [String] fields
1447
1355
  # Selector specifying which fields to include in a partial response.
1448
1356
  # @param [String] quota_user
1449
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1450
- # characters.
1451
- # @param [String] user_ip
1452
- # Deprecated. Please use quotaUser instead.
1357
+ # Available to use for quota purposes for server-side applications. Can be any
1358
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1453
1359
  # @param [Google::Apis::RequestOptions] options
1454
1360
  # Request-specific options
1455
1361
  #
@@ -1462,8 +1368,8 @@ module Google
1462
1368
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1463
1369
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1464
1370
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1465
- def update_user_setting_imap(user_id, imap_settings_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1466
- command = make_simple_command(:put, '{userId}/settings/imap', options)
1371
+ def update_user_setting_imap(user_id, imap_settings_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1372
+ command = make_simple_command(:put, 'gmail/v1/users/{userId}/settings/imap', options)
1467
1373
  command.request_representation = Google::Apis::GmailV1::ImapSettings::Representation
1468
1374
  command.request_object = imap_settings_object
1469
1375
  command.response_representation = Google::Apis::GmailV1::ImapSettings::Representation
@@ -1471,27 +1377,24 @@ module Google
1471
1377
  command.params['userId'] = user_id unless user_id.nil?
1472
1378
  command.query['fields'] = fields unless fields.nil?
1473
1379
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1474
- command.query['userIp'] = user_ip unless user_ip.nil?
1475
1380
  execute_or_queue_command(command, &block)
1476
1381
  end
1477
1382
 
1478
1383
  # Updates language settings.
1479
- # If successful, the return object contains the displayLanguage that was saved
1480
- # for the user, which may differ from the value passed into the request. This is
1481
- # because the requested displayLanguage may not be directly supported by Gmail
1482
- # but have a close variant that is, and so the variant may be chosen and saved
1483
- # instead.
1484
- # @param [String] user_id
1485
- # User's email address. The special value "me" can be used to indicate the
1486
- # authenticated user.
1384
+ # If successful, the return object contains the <code>displayLanguage</code>
1385
+ # that was saved for the user, which may differ from the value passed into
1386
+ # the request. This is because the requested <code>displayLanguage</code> may
1387
+ # not be directly supported by Gmail but have a close variant that is, and so
1388
+ # the variant may be chosen and saved instead.
1389
+ # @param [String] user_id
1390
+ # User's email address. The special value "me"
1391
+ # can be used to indicate the authenticated user.
1487
1392
  # @param [Google::Apis::GmailV1::LanguageSettings] language_settings_object
1488
1393
  # @param [String] fields
1489
1394
  # Selector specifying which fields to include in a partial response.
1490
1395
  # @param [String] quota_user
1491
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1492
- # characters.
1493
- # @param [String] user_ip
1494
- # Deprecated. Please use quotaUser instead.
1396
+ # Available to use for quota purposes for server-side applications. Can be any
1397
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1495
1398
  # @param [Google::Apis::RequestOptions] options
1496
1399
  # Request-specific options
1497
1400
  #
@@ -1504,8 +1407,8 @@ module Google
1504
1407
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1505
1408
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1506
1409
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1507
- def update_user_setting_language(user_id, language_settings_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1508
- command = make_simple_command(:put, '{userId}/settings/language', options)
1410
+ def update_user_setting_language(user_id, language_settings_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1411
+ command = make_simple_command(:put, 'gmail/v1/users/{userId}/settings/language', options)
1509
1412
  command.request_representation = Google::Apis::GmailV1::LanguageSettings::Representation
1510
1413
  command.request_object = language_settings_object
1511
1414
  command.response_representation = Google::Apis::GmailV1::LanguageSettings::Representation
@@ -1513,22 +1416,19 @@ module Google
1513
1416
  command.params['userId'] = user_id unless user_id.nil?
1514
1417
  command.query['fields'] = fields unless fields.nil?
1515
1418
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1516
- command.query['userIp'] = user_ip unless user_ip.nil?
1517
1419
  execute_or_queue_command(command, &block)
1518
1420
  end
1519
1421
 
1520
1422
  # Updates POP settings.
1521
1423
  # @param [String] user_id
1522
- # User's email address. The special value "me" can be used to indicate the
1523
- # authenticated user.
1424
+ # User's email address. The special value "me"
1425
+ # can be used to indicate the authenticated user.
1524
1426
  # @param [Google::Apis::GmailV1::PopSettings] pop_settings_object
1525
1427
  # @param [String] fields
1526
1428
  # Selector specifying which fields to include in a partial response.
1527
1429
  # @param [String] quota_user
1528
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1529
- # characters.
1530
- # @param [String] user_ip
1531
- # Deprecated. Please use quotaUser instead.
1430
+ # Available to use for quota purposes for server-side applications. Can be any
1431
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1532
1432
  # @param [Google::Apis::RequestOptions] options
1533
1433
  # Request-specific options
1534
1434
  #
@@ -1541,8 +1441,8 @@ module Google
1541
1441
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1542
1442
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1543
1443
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1544
- def update_user_setting_pop(user_id, pop_settings_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1545
- command = make_simple_command(:put, '{userId}/settings/pop', options)
1444
+ def update_user_setting_pop(user_id, pop_settings_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1445
+ command = make_simple_command(:put, 'gmail/v1/users/{userId}/settings/pop', options)
1546
1446
  command.request_representation = Google::Apis::GmailV1::PopSettings::Representation
1547
1447
  command.request_object = pop_settings_object
1548
1448
  command.response_representation = Google::Apis::GmailV1::PopSettings::Representation
@@ -1550,22 +1450,19 @@ module Google
1550
1450
  command.params['userId'] = user_id unless user_id.nil?
1551
1451
  command.query['fields'] = fields unless fields.nil?
1552
1452
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1553
- command.query['userIp'] = user_ip unless user_ip.nil?
1554
1453
  execute_or_queue_command(command, &block)
1555
1454
  end
1556
1455
 
1557
1456
  # Updates vacation responder settings.
1558
1457
  # @param [String] user_id
1559
- # User's email address. The special value "me" can be used to indicate the
1560
- # authenticated user.
1458
+ # User's email address. The special value "me"
1459
+ # can be used to indicate the authenticated user.
1561
1460
  # @param [Google::Apis::GmailV1::VacationSettings] vacation_settings_object
1562
1461
  # @param [String] fields
1563
1462
  # Selector specifying which fields to include in a partial response.
1564
1463
  # @param [String] quota_user
1565
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1566
- # characters.
1567
- # @param [String] user_ip
1568
- # Deprecated. Please use quotaUser instead.
1464
+ # Available to use for quota purposes for server-side applications. Can be any
1465
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1569
1466
  # @param [Google::Apis::RequestOptions] options
1570
1467
  # Request-specific options
1571
1468
  #
@@ -1578,8 +1475,8 @@ module Google
1578
1475
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1579
1476
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1580
1477
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1581
- def update_user_setting_vacation(user_id, vacation_settings_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1582
- command = make_simple_command(:put, '{userId}/settings/vacation', options)
1478
+ def update_user_setting_vacation(user_id, vacation_settings_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1479
+ command = make_simple_command(:put, 'gmail/v1/users/{userId}/settings/vacation', options)
1583
1480
  command.request_representation = Google::Apis::GmailV1::VacationSettings::Representation
1584
1481
  command.request_object = vacation_settings_object
1585
1482
  command.response_representation = Google::Apis::GmailV1::VacationSettings::Representation
@@ -1587,33 +1484,32 @@ module Google
1587
1484
  command.params['userId'] = user_id unless user_id.nil?
1588
1485
  command.query['fields'] = fields unless fields.nil?
1589
1486
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1590
- command.query['userIp'] = user_ip unless user_ip.nil?
1591
1487
  execute_or_queue_command(command, &block)
1592
1488
  end
1593
1489
 
1594
- # Adds a delegate with its verification status set directly to accepted, without
1595
- # sending any verification email. The delegate user must be a member of the same
1596
- # G Suite organization as the delegator user.
1597
- # Gmail imposes limitations on the number of delegates and delegators each user
1598
- # in a G Suite organization can have. These limits depend on your organization,
1599
- # but in general each user can have up to 25 delegates and up to 10 delegators.
1600
- # Note that a delegate user must be referred to by their primary email address,
1601
- # and not an email alias.
1602
- # Also note that when a new delegate is created, there may be up to a one minute
1603
- # delay before the new delegate is available for use.
1490
+ # Adds a delegate with its verification status set directly to
1491
+ # <code>accepted</code>, without sending any verification email. The
1492
+ # delegate user must be a member of the same G Suite organization as the
1493
+ # delegator user.
1494
+ # Gmail imposes limitations on the number of delegates and delegators each
1495
+ # user in a G Suite organization can have. These limits depend on your
1496
+ # organization, but in general each user can have up to 25 delegates and
1497
+ # up to 10 delegators.
1498
+ # Note that a delegate user must be referred to by their primary email
1499
+ # address, and not an email alias.
1500
+ # Also note that when a new delegate is created, there may be up to a one
1501
+ # minute delay before the new delegate is available for use.
1604
1502
  # This method is only available to service account clients that have been
1605
1503
  # delegated domain-wide authority.
1606
1504
  # @param [String] user_id
1607
- # User's email address. The special value "me" can be used to indicate the
1608
- # authenticated user.
1505
+ # User's email address. The special value "me"
1506
+ # can be used to indicate the authenticated user.
1609
1507
  # @param [Google::Apis::GmailV1::Delegate] delegate_object
1610
1508
  # @param [String] fields
1611
1509
  # Selector specifying which fields to include in a partial response.
1612
1510
  # @param [String] quota_user
1613
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1614
- # characters.
1615
- # @param [String] user_ip
1616
- # Deprecated. Please use quotaUser instead.
1511
+ # Available to use for quota purposes for server-side applications. Can be any
1512
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1617
1513
  # @param [Google::Apis::RequestOptions] options
1618
1514
  # Request-specific options
1619
1515
  #
@@ -1626,8 +1522,8 @@ module Google
1626
1522
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1627
1523
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1628
1524
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1629
- def create_user_setting_delegate(user_id, delegate_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1630
- command = make_simple_command(:post, '{userId}/settings/delegates', options)
1525
+ def create_user_setting_delegate(user_id, delegate_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1526
+ command = make_simple_command(:post, 'gmail/v1/users/{userId}/settings/delegates', options)
1631
1527
  command.request_representation = Google::Apis::GmailV1::Delegate::Representation
1632
1528
  command.request_object = delegate_object
1633
1529
  command.response_representation = Google::Apis::GmailV1::Delegate::Representation
@@ -1635,28 +1531,25 @@ module Google
1635
1531
  command.params['userId'] = user_id unless user_id.nil?
1636
1532
  command.query['fields'] = fields unless fields.nil?
1637
1533
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1638
- command.query['userIp'] = user_ip unless user_ip.nil?
1639
1534
  execute_or_queue_command(command, &block)
1640
1535
  end
1641
1536
 
1642
- # Removes the specified delegate (which can be of any verification status), and
1643
- # revokes any verification that may have been required for using it.
1644
- # Note that a delegate user must be referred to by their primary email address,
1645
- # and not an email alias.
1537
+ # Removes the specified delegate (which can be of any verification status),
1538
+ # and revokes any verification that may have been required for using it.
1539
+ # Note that a delegate user must be referred to by their primary email
1540
+ # address, and not an email alias.
1646
1541
  # This method is only available to service account clients that have been
1647
1542
  # delegated domain-wide authority.
1648
1543
  # @param [String] user_id
1649
- # User's email address. The special value "me" can be used to indicate the
1650
- # authenticated user.
1544
+ # User's email address. The special value "me"
1545
+ # can be used to indicate the authenticated user.
1651
1546
  # @param [String] delegate_email
1652
1547
  # The email address of the user to be removed as a delegate.
1653
1548
  # @param [String] fields
1654
1549
  # Selector specifying which fields to include in a partial response.
1655
1550
  # @param [String] quota_user
1656
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1657
- # characters.
1658
- # @param [String] user_ip
1659
- # Deprecated. Please use quotaUser instead.
1551
+ # Available to use for quota purposes for server-side applications. Can be any
1552
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1660
1553
  # @param [Google::Apis::RequestOptions] options
1661
1554
  # Request-specific options
1662
1555
  #
@@ -1669,33 +1562,31 @@ module Google
1669
1562
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1670
1563
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1671
1564
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1672
- def delete_user_setting_delegate(user_id, delegate_email, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1673
- command = make_simple_command(:delete, '{userId}/settings/delegates/{delegateEmail}', options)
1565
+ def delete_user_setting_delegate(user_id, delegate_email, fields: nil, quota_user: nil, options: nil, &block)
1566
+ command = make_simple_command(:delete, 'gmail/v1/users/{userId}/settings/delegates/{delegateEmail}', options)
1674
1567
  command.params['userId'] = user_id unless user_id.nil?
1675
1568
  command.params['delegateEmail'] = delegate_email unless delegate_email.nil?
1676
1569
  command.query['fields'] = fields unless fields.nil?
1677
1570
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1678
- command.query['userIp'] = user_ip unless user_ip.nil?
1679
1571
  execute_or_queue_command(command, &block)
1680
1572
  end
1681
1573
 
1682
1574
  # Gets the specified delegate.
1683
- # Note that a delegate user must be referred to by their primary email address,
1684
- # and not an email alias.
1575
+ # Note that a delegate user must be referred to by their primary email
1576
+ # address, and not an email alias.
1685
1577
  # This method is only available to service account clients that have been
1686
1578
  # delegated domain-wide authority.
1687
1579
  # @param [String] user_id
1688
- # User's email address. The special value "me" can be used to indicate the
1689
- # authenticated user.
1580
+ # User's email address. The special value "me"
1581
+ # can be used to indicate the authenticated user.
1690
1582
  # @param [String] delegate_email
1691
- # The email address of the user whose delegate relationship is to be retrieved.
1583
+ # The email address of the user whose delegate relationship is to be
1584
+ # retrieved.
1692
1585
  # @param [String] fields
1693
1586
  # Selector specifying which fields to include in a partial response.
1694
1587
  # @param [String] quota_user
1695
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1696
- # characters.
1697
- # @param [String] user_ip
1698
- # Deprecated. Please use quotaUser instead.
1588
+ # Available to use for quota purposes for server-side applications. Can be any
1589
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1699
1590
  # @param [Google::Apis::RequestOptions] options
1700
1591
  # Request-specific options
1701
1592
  #
@@ -1708,15 +1599,14 @@ module Google
1708
1599
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1709
1600
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1710
1601
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1711
- def get_user_setting_delegate(user_id, delegate_email, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1712
- command = make_simple_command(:get, '{userId}/settings/delegates/{delegateEmail}', options)
1602
+ def get_user_setting_delegate(user_id, delegate_email, fields: nil, quota_user: nil, options: nil, &block)
1603
+ command = make_simple_command(:get, 'gmail/v1/users/{userId}/settings/delegates/{delegateEmail}', options)
1713
1604
  command.response_representation = Google::Apis::GmailV1::Delegate::Representation
1714
1605
  command.response_class = Google::Apis::GmailV1::Delegate
1715
1606
  command.params['userId'] = user_id unless user_id.nil?
1716
1607
  command.params['delegateEmail'] = delegate_email unless delegate_email.nil?
1717
1608
  command.query['fields'] = fields unless fields.nil?
1718
1609
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1719
- command.query['userIp'] = user_ip unless user_ip.nil?
1720
1610
  execute_or_queue_command(command, &block)
1721
1611
  end
1722
1612
 
@@ -1724,15 +1614,13 @@ module Google
1724
1614
  # This method is only available to service account clients that have been
1725
1615
  # delegated domain-wide authority.
1726
1616
  # @param [String] user_id
1727
- # User's email address. The special value "me" can be used to indicate the
1728
- # authenticated user.
1617
+ # User's email address. The special value "me"
1618
+ # can be used to indicate the authenticated user.
1729
1619
  # @param [String] fields
1730
1620
  # Selector specifying which fields to include in a partial response.
1731
1621
  # @param [String] quota_user
1732
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1733
- # characters.
1734
- # @param [String] user_ip
1735
- # Deprecated. Please use quotaUser instead.
1622
+ # Available to use for quota purposes for server-side applications. Can be any
1623
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1736
1624
  # @param [Google::Apis::RequestOptions] options
1737
1625
  # Request-specific options
1738
1626
  #
@@ -1745,29 +1633,26 @@ module Google
1745
1633
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1746
1634
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1747
1635
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1748
- def list_user_setting_delegates(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1749
- command = make_simple_command(:get, '{userId}/settings/delegates', options)
1636
+ def list_user_setting_delegates(user_id, fields: nil, quota_user: nil, options: nil, &block)
1637
+ command = make_simple_command(:get, 'gmail/v1/users/{userId}/settings/delegates', options)
1750
1638
  command.response_representation = Google::Apis::GmailV1::ListDelegatesResponse::Representation
1751
1639
  command.response_class = Google::Apis::GmailV1::ListDelegatesResponse
1752
1640
  command.params['userId'] = user_id unless user_id.nil?
1753
1641
  command.query['fields'] = fields unless fields.nil?
1754
1642
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1755
- command.query['userIp'] = user_ip unless user_ip.nil?
1756
1643
  execute_or_queue_command(command, &block)
1757
1644
  end
1758
1645
 
1759
1646
  # Creates a filter.
1760
1647
  # @param [String] user_id
1761
- # User's email address. The special value "me" can be used to indicate the
1762
- # authenticated user.
1648
+ # User's email address. The special value "me"
1649
+ # can be used to indicate the authenticated user.
1763
1650
  # @param [Google::Apis::GmailV1::Filter] filter_object
1764
1651
  # @param [String] fields
1765
1652
  # Selector specifying which fields to include in a partial response.
1766
1653
  # @param [String] quota_user
1767
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1768
- # characters.
1769
- # @param [String] user_ip
1770
- # Deprecated. Please use quotaUser instead.
1654
+ # Available to use for quota purposes for server-side applications. Can be any
1655
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1771
1656
  # @param [Google::Apis::RequestOptions] options
1772
1657
  # Request-specific options
1773
1658
  #
@@ -1780,8 +1665,8 @@ module Google
1780
1665
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1781
1666
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1782
1667
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1783
- def create_user_setting_filter(user_id, filter_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1784
- command = make_simple_command(:post, '{userId}/settings/filters', options)
1668
+ def create_user_setting_filter(user_id, filter_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1669
+ command = make_simple_command(:post, 'gmail/v1/users/{userId}/settings/filters', options)
1785
1670
  command.request_representation = Google::Apis::GmailV1::Filter::Representation
1786
1671
  command.request_object = filter_object
1787
1672
  command.response_representation = Google::Apis::GmailV1::Filter::Representation
@@ -1789,23 +1674,20 @@ module Google
1789
1674
  command.params['userId'] = user_id unless user_id.nil?
1790
1675
  command.query['fields'] = fields unless fields.nil?
1791
1676
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1792
- command.query['userIp'] = user_ip unless user_ip.nil?
1793
1677
  execute_or_queue_command(command, &block)
1794
1678
  end
1795
1679
 
1796
1680
  # Deletes a filter.
1797
1681
  # @param [String] user_id
1798
- # User's email address. The special value "me" can be used to indicate the
1799
- # authenticated user.
1682
+ # User's email address. The special value "me"
1683
+ # can be used to indicate the authenticated user.
1800
1684
  # @param [String] id
1801
1685
  # The ID of the filter to be deleted.
1802
1686
  # @param [String] fields
1803
1687
  # Selector specifying which fields to include in a partial response.
1804
1688
  # @param [String] quota_user
1805
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1806
- # characters.
1807
- # @param [String] user_ip
1808
- # Deprecated. Please use quotaUser instead.
1689
+ # Available to use for quota purposes for server-side applications. Can be any
1690
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1809
1691
  # @param [Google::Apis::RequestOptions] options
1810
1692
  # Request-specific options
1811
1693
  #
@@ -1818,29 +1700,26 @@ module Google
1818
1700
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1819
1701
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1820
1702
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1821
- def delete_user_setting_filter(user_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1822
- command = make_simple_command(:delete, '{userId}/settings/filters/{id}', options)
1703
+ def delete_user_setting_filter(user_id, id, fields: nil, quota_user: nil, options: nil, &block)
1704
+ command = make_simple_command(:delete, 'gmail/v1/users/{userId}/settings/filters/{id}', options)
1823
1705
  command.params['userId'] = user_id unless user_id.nil?
1824
1706
  command.params['id'] = id unless id.nil?
1825
1707
  command.query['fields'] = fields unless fields.nil?
1826
1708
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1827
- command.query['userIp'] = user_ip unless user_ip.nil?
1828
1709
  execute_or_queue_command(command, &block)
1829
1710
  end
1830
1711
 
1831
1712
  # Gets a filter.
1832
1713
  # @param [String] user_id
1833
- # User's email address. The special value "me" can be used to indicate the
1834
- # authenticated user.
1714
+ # User's email address. The special value "me"
1715
+ # can be used to indicate the authenticated user.
1835
1716
  # @param [String] id
1836
1717
  # The ID of the filter to be fetched.
1837
1718
  # @param [String] fields
1838
1719
  # Selector specifying which fields to include in a partial response.
1839
1720
  # @param [String] quota_user
1840
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1841
- # characters.
1842
- # @param [String] user_ip
1843
- # Deprecated. Please use quotaUser instead.
1721
+ # Available to use for quota purposes for server-side applications. Can be any
1722
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1844
1723
  # @param [Google::Apis::RequestOptions] options
1845
1724
  # Request-specific options
1846
1725
  #
@@ -1853,29 +1732,26 @@ module Google
1853
1732
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1854
1733
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1855
1734
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1856
- def get_user_setting_filter(user_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1857
- command = make_simple_command(:get, '{userId}/settings/filters/{id}', options)
1735
+ def get_user_setting_filter(user_id, id, fields: nil, quota_user: nil, options: nil, &block)
1736
+ command = make_simple_command(:get, 'gmail/v1/users/{userId}/settings/filters/{id}', options)
1858
1737
  command.response_representation = Google::Apis::GmailV1::Filter::Representation
1859
1738
  command.response_class = Google::Apis::GmailV1::Filter
1860
1739
  command.params['userId'] = user_id unless user_id.nil?
1861
1740
  command.params['id'] = id unless id.nil?
1862
1741
  command.query['fields'] = fields unless fields.nil?
1863
1742
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1864
- command.query['userIp'] = user_ip unless user_ip.nil?
1865
1743
  execute_or_queue_command(command, &block)
1866
1744
  end
1867
1745
 
1868
1746
  # Lists the message filters of a Gmail user.
1869
1747
  # @param [String] user_id
1870
- # User's email address. The special value "me" can be used to indicate the
1871
- # authenticated user.
1748
+ # User's email address. The special value "me"
1749
+ # can be used to indicate the authenticated user.
1872
1750
  # @param [String] fields
1873
1751
  # Selector specifying which fields to include in a partial response.
1874
1752
  # @param [String] quota_user
1875
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1876
- # characters.
1877
- # @param [String] user_ip
1878
- # Deprecated. Please use quotaUser instead.
1753
+ # Available to use for quota purposes for server-side applications. Can be any
1754
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1879
1755
  # @param [Google::Apis::RequestOptions] options
1880
1756
  # Request-specific options
1881
1757
  #
@@ -1888,34 +1764,31 @@ module Google
1888
1764
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1889
1765
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1890
1766
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1891
- def list_user_setting_filters(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1892
- command = make_simple_command(:get, '{userId}/settings/filters', options)
1767
+ def list_user_setting_filters(user_id, fields: nil, quota_user: nil, options: nil, &block)
1768
+ command = make_simple_command(:get, 'gmail/v1/users/{userId}/settings/filters', options)
1893
1769
  command.response_representation = Google::Apis::GmailV1::ListFiltersResponse::Representation
1894
1770
  command.response_class = Google::Apis::GmailV1::ListFiltersResponse
1895
1771
  command.params['userId'] = user_id unless user_id.nil?
1896
1772
  command.query['fields'] = fields unless fields.nil?
1897
1773
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1898
- command.query['userIp'] = user_ip unless user_ip.nil?
1899
1774
  execute_or_queue_command(command, &block)
1900
1775
  end
1901
1776
 
1902
- # Creates a forwarding address. If ownership verification is required, a message
1903
- # will be sent to the recipient and the resource's verification status will be
1904
- # set to pending; otherwise, the resource will be created with verification
1905
- # status set to accepted.
1777
+ # Creates a forwarding address. If ownership verification is required, a
1778
+ # message will be sent to the recipient and the resource's verification
1779
+ # status will be set to <code>pending</code>; otherwise, the resource will be
1780
+ # created with verification status set to <code>accepted</code>.
1906
1781
  # This method is only available to service account clients that have been
1907
1782
  # delegated domain-wide authority.
1908
1783
  # @param [String] user_id
1909
- # User's email address. The special value "me" can be used to indicate the
1910
- # authenticated user.
1784
+ # User's email address. The special value "me"
1785
+ # can be used to indicate the authenticated user.
1911
1786
  # @param [Google::Apis::GmailV1::ForwardingAddress] forwarding_address_object
1912
1787
  # @param [String] fields
1913
1788
  # Selector specifying which fields to include in a partial response.
1914
1789
  # @param [String] quota_user
1915
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1916
- # characters.
1917
- # @param [String] user_ip
1918
- # Deprecated. Please use quotaUser instead.
1790
+ # Available to use for quota purposes for server-side applications. Can be any
1791
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1919
1792
  # @param [Google::Apis::RequestOptions] options
1920
1793
  # Request-specific options
1921
1794
  #
@@ -1928,8 +1801,8 @@ module Google
1928
1801
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1929
1802
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1930
1803
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1931
- def create_user_setting_forwarding_address(user_id, forwarding_address_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1932
- command = make_simple_command(:post, '{userId}/settings/forwardingAddresses', options)
1804
+ def create_user_setting_forwarding_address(user_id, forwarding_address_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1805
+ command = make_simple_command(:post, 'gmail/v1/users/{userId}/settings/forwardingAddresses', options)
1933
1806
  command.request_representation = Google::Apis::GmailV1::ForwardingAddress::Representation
1934
1807
  command.request_object = forwarding_address_object
1935
1808
  command.response_representation = Google::Apis::GmailV1::ForwardingAddress::Representation
@@ -1937,26 +1810,23 @@ module Google
1937
1810
  command.params['userId'] = user_id unless user_id.nil?
1938
1811
  command.query['fields'] = fields unless fields.nil?
1939
1812
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1940
- command.query['userIp'] = user_ip unless user_ip.nil?
1941
1813
  execute_or_queue_command(command, &block)
1942
1814
  end
1943
1815
 
1944
- # Deletes the specified forwarding address and revokes any verification that may
1945
- # have been required.
1816
+ # Deletes the specified forwarding address and revokes any verification that
1817
+ # may have been required.
1946
1818
  # This method is only available to service account clients that have been
1947
1819
  # delegated domain-wide authority.
1948
1820
  # @param [String] user_id
1949
- # User's email address. The special value "me" can be used to indicate the
1950
- # authenticated user.
1821
+ # User's email address. The special value "me"
1822
+ # can be used to indicate the authenticated user.
1951
1823
  # @param [String] forwarding_email
1952
1824
  # The forwarding address to be deleted.
1953
1825
  # @param [String] fields
1954
1826
  # Selector specifying which fields to include in a partial response.
1955
1827
  # @param [String] quota_user
1956
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1957
- # characters.
1958
- # @param [String] user_ip
1959
- # Deprecated. Please use quotaUser instead.
1828
+ # Available to use for quota purposes for server-side applications. Can be any
1829
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1960
1830
  # @param [Google::Apis::RequestOptions] options
1961
1831
  # Request-specific options
1962
1832
  #
@@ -1969,29 +1839,26 @@ module Google
1969
1839
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1970
1840
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1971
1841
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1972
- def delete_user_setting_forwarding_address(user_id, forwarding_email, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1973
- command = make_simple_command(:delete, '{userId}/settings/forwardingAddresses/{forwardingEmail}', options)
1842
+ def delete_user_setting_forwarding_address(user_id, forwarding_email, fields: nil, quota_user: nil, options: nil, &block)
1843
+ command = make_simple_command(:delete, 'gmail/v1/users/{userId}/settings/forwardingAddresses/{forwardingEmail}', options)
1974
1844
  command.params['userId'] = user_id unless user_id.nil?
1975
1845
  command.params['forwardingEmail'] = forwarding_email unless forwarding_email.nil?
1976
1846
  command.query['fields'] = fields unless fields.nil?
1977
1847
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1978
- command.query['userIp'] = user_ip unless user_ip.nil?
1979
1848
  execute_or_queue_command(command, &block)
1980
1849
  end
1981
1850
 
1982
1851
  # Gets the specified forwarding address.
1983
1852
  # @param [String] user_id
1984
- # User's email address. The special value "me" can be used to indicate the
1985
- # authenticated user.
1853
+ # User's email address. The special value "me"
1854
+ # can be used to indicate the authenticated user.
1986
1855
  # @param [String] forwarding_email
1987
1856
  # The forwarding address to be retrieved.
1988
1857
  # @param [String] fields
1989
1858
  # Selector specifying which fields to include in a partial response.
1990
1859
  # @param [String] quota_user
1991
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1992
- # characters.
1993
- # @param [String] user_ip
1994
- # Deprecated. Please use quotaUser instead.
1860
+ # Available to use for quota purposes for server-side applications. Can be any
1861
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1995
1862
  # @param [Google::Apis::RequestOptions] options
1996
1863
  # Request-specific options
1997
1864
  #
@@ -2004,29 +1871,26 @@ module Google
2004
1871
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2005
1872
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2006
1873
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2007
- def get_user_setting_forwarding_address(user_id, forwarding_email, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2008
- command = make_simple_command(:get, '{userId}/settings/forwardingAddresses/{forwardingEmail}', options)
1874
+ def get_user_setting_forwarding_address(user_id, forwarding_email, fields: nil, quota_user: nil, options: nil, &block)
1875
+ command = make_simple_command(:get, 'gmail/v1/users/{userId}/settings/forwardingAddresses/{forwardingEmail}', options)
2009
1876
  command.response_representation = Google::Apis::GmailV1::ForwardingAddress::Representation
2010
1877
  command.response_class = Google::Apis::GmailV1::ForwardingAddress
2011
1878
  command.params['userId'] = user_id unless user_id.nil?
2012
1879
  command.params['forwardingEmail'] = forwarding_email unless forwarding_email.nil?
2013
1880
  command.query['fields'] = fields unless fields.nil?
2014
1881
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2015
- command.query['userIp'] = user_ip unless user_ip.nil?
2016
1882
  execute_or_queue_command(command, &block)
2017
1883
  end
2018
1884
 
2019
1885
  # Lists the forwarding addresses for the specified account.
2020
1886
  # @param [String] user_id
2021
- # User's email address. The special value "me" can be used to indicate the
2022
- # authenticated user.
1887
+ # User's email address. The special value "me"
1888
+ # can be used to indicate the authenticated user.
2023
1889
  # @param [String] fields
2024
1890
  # Selector specifying which fields to include in a partial response.
2025
1891
  # @param [String] quota_user
2026
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2027
- # characters.
2028
- # @param [String] user_ip
2029
- # Deprecated. Please use quotaUser instead.
1892
+ # Available to use for quota purposes for server-side applications. Can be any
1893
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2030
1894
  # @param [Google::Apis::RequestOptions] options
2031
1895
  # Request-specific options
2032
1896
  #
@@ -2039,37 +1903,35 @@ module Google
2039
1903
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2040
1904
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2041
1905
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2042
- def list_user_setting_forwarding_addresses(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2043
- command = make_simple_command(:get, '{userId}/settings/forwardingAddresses', options)
1906
+ def list_user_setting_forwarding_addresses(user_id, fields: nil, quota_user: nil, options: nil, &block)
1907
+ command = make_simple_command(:get, 'gmail/v1/users/{userId}/settings/forwardingAddresses', options)
2044
1908
  command.response_representation = Google::Apis::GmailV1::ListForwardingAddressesResponse::Representation
2045
1909
  command.response_class = Google::Apis::GmailV1::ListForwardingAddressesResponse
2046
1910
  command.params['userId'] = user_id unless user_id.nil?
2047
1911
  command.query['fields'] = fields unless fields.nil?
2048
1912
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2049
- command.query['userIp'] = user_ip unless user_ip.nil?
2050
1913
  execute_or_queue_command(command, &block)
2051
1914
  end
2052
1915
 
2053
- # Creates a custom "from" send-as alias. If an SMTP MSA is specified, Gmail will
2054
- # attempt to connect to the SMTP service to validate the configuration before
2055
- # creating the alias. If ownership verification is required for the alias, a
2056
- # message will be sent to the email address and the resource's verification
2057
- # status will be set to pending; otherwise, the resource will be created with
2058
- # verification status set to accepted. If a signature is provided, Gmail will
2059
- # sanitize the HTML before saving it with the alias.
1916
+ # Creates a custom "from" send-as alias. If an SMTP MSA is specified, Gmail
1917
+ # will attempt to connect to the SMTP service to validate the configuration
1918
+ # before creating the alias. If ownership verification is required for the
1919
+ # alias, a message will be sent to the email address and the resource's
1920
+ # verification status will be set to <code>pending</code>; otherwise, the
1921
+ # resource will be created with verification status set to
1922
+ # <code>accepted</code>. If a signature is provided, Gmail will sanitize the
1923
+ # HTML before saving it with the alias.
2060
1924
  # This method is only available to service account clients that have been
2061
1925
  # delegated domain-wide authority.
2062
1926
  # @param [String] user_id
2063
- # User's email address. The special value "me" can be used to indicate the
2064
- # authenticated user.
1927
+ # User's email address. The special value "me"
1928
+ # can be used to indicate the authenticated user.
2065
1929
  # @param [Google::Apis::GmailV1::SendAs] send_as_object
2066
1930
  # @param [String] fields
2067
1931
  # Selector specifying which fields to include in a partial response.
2068
1932
  # @param [String] quota_user
2069
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2070
- # characters.
2071
- # @param [String] user_ip
2072
- # Deprecated. Please use quotaUser instead.
1933
+ # Available to use for quota purposes for server-side applications. Can be any
1934
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2073
1935
  # @param [Google::Apis::RequestOptions] options
2074
1936
  # Request-specific options
2075
1937
  #
@@ -2082,8 +1944,8 @@ module Google
2082
1944
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2083
1945
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2084
1946
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2085
- def create_user_setting_send_as(user_id, send_as_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2086
- command = make_simple_command(:post, '{userId}/settings/sendAs', options)
1947
+ def create_user_setting_send_as(user_id, send_as_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1948
+ command = make_simple_command(:post, 'gmail/v1/users/{userId}/settings/sendAs', options)
2087
1949
  command.request_representation = Google::Apis::GmailV1::SendAs::Representation
2088
1950
  command.request_object = send_as_object
2089
1951
  command.response_representation = Google::Apis::GmailV1::SendAs::Representation
@@ -2091,26 +1953,23 @@ module Google
2091
1953
  command.params['userId'] = user_id unless user_id.nil?
2092
1954
  command.query['fields'] = fields unless fields.nil?
2093
1955
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2094
- command.query['userIp'] = user_ip unless user_ip.nil?
2095
1956
  execute_or_queue_command(command, &block)
2096
1957
  end
2097
1958
 
2098
- # Deletes the specified send-as alias. Revokes any verification that may have
2099
- # been required for using it.
1959
+ # Deletes the specified send-as alias. Revokes any verification that may
1960
+ # have been required for using it.
2100
1961
  # This method is only available to service account clients that have been
2101
1962
  # delegated domain-wide authority.
2102
1963
  # @param [String] user_id
2103
- # User's email address. The special value "me" can be used to indicate the
2104
- # authenticated user.
1964
+ # User's email address. The special value "me"
1965
+ # can be used to indicate the authenticated user.
2105
1966
  # @param [String] send_as_email
2106
1967
  # The send-as alias to be deleted.
2107
1968
  # @param [String] fields
2108
1969
  # Selector specifying which fields to include in a partial response.
2109
1970
  # @param [String] quota_user
2110
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2111
- # characters.
2112
- # @param [String] user_ip
2113
- # Deprecated. Please use quotaUser instead.
1971
+ # Available to use for quota purposes for server-side applications. Can be any
1972
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2114
1973
  # @param [Google::Apis::RequestOptions] options
2115
1974
  # Request-specific options
2116
1975
  #
@@ -2123,30 +1982,27 @@ module Google
2123
1982
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2124
1983
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2125
1984
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2126
- def delete_user_setting_send_as(user_id, send_as_email, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2127
- command = make_simple_command(:delete, '{userId}/settings/sendAs/{sendAsEmail}', options)
1985
+ def delete_user_setting_send_as(user_id, send_as_email, fields: nil, quota_user: nil, options: nil, &block)
1986
+ command = make_simple_command(:delete, 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}', options)
2128
1987
  command.params['userId'] = user_id unless user_id.nil?
2129
1988
  command.params['sendAsEmail'] = send_as_email unless send_as_email.nil?
2130
1989
  command.query['fields'] = fields unless fields.nil?
2131
1990
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2132
- command.query['userIp'] = user_ip unless user_ip.nil?
2133
1991
  execute_or_queue_command(command, &block)
2134
1992
  end
2135
1993
 
2136
- # Gets the specified send-as alias. Fails with an HTTP 404 error if the
1994
+ # Gets the specified send-as alias. Fails with an HTTP 404 error if the
2137
1995
  # specified address is not a member of the collection.
2138
1996
  # @param [String] user_id
2139
- # User's email address. The special value "me" can be used to indicate the
2140
- # authenticated user.
1997
+ # User's email address. The special value "me"
1998
+ # can be used to indicate the authenticated user.
2141
1999
  # @param [String] send_as_email
2142
2000
  # The send-as alias to be retrieved.
2143
2001
  # @param [String] fields
2144
2002
  # Selector specifying which fields to include in a partial response.
2145
2003
  # @param [String] quota_user
2146
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2147
- # characters.
2148
- # @param [String] user_ip
2149
- # Deprecated. Please use quotaUser instead.
2004
+ # Available to use for quota purposes for server-side applications. Can be any
2005
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2150
2006
  # @param [Google::Apis::RequestOptions] options
2151
2007
  # Request-specific options
2152
2008
  #
@@ -2159,31 +2015,28 @@ module Google
2159
2015
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2160
2016
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2161
2017
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2162
- def get_user_setting_send_as(user_id, send_as_email, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2163
- command = make_simple_command(:get, '{userId}/settings/sendAs/{sendAsEmail}', options)
2018
+ def get_user_setting_send_as(user_id, send_as_email, fields: nil, quota_user: nil, options: nil, &block)
2019
+ command = make_simple_command(:get, 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}', options)
2164
2020
  command.response_representation = Google::Apis::GmailV1::SendAs::Representation
2165
2021
  command.response_class = Google::Apis::GmailV1::SendAs
2166
2022
  command.params['userId'] = user_id unless user_id.nil?
2167
2023
  command.params['sendAsEmail'] = send_as_email unless send_as_email.nil?
2168
2024
  command.query['fields'] = fields unless fields.nil?
2169
2025
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2170
- command.query['userIp'] = user_ip unless user_ip.nil?
2171
2026
  execute_or_queue_command(command, &block)
2172
2027
  end
2173
2028
 
2174
- # Lists the send-as aliases for the specified account. The result includes the
2175
- # primary send-as address associated with the account as well as any custom "
2176
- # from" aliases.
2029
+ # Lists the send-as aliases for the specified account. The result includes
2030
+ # the primary send-as address associated with the account as well as any
2031
+ # custom "from" aliases.
2177
2032
  # @param [String] user_id
2178
- # User's email address. The special value "me" can be used to indicate the
2179
- # authenticated user.
2033
+ # User's email address. The special value "me"
2034
+ # can be used to indicate the authenticated user.
2180
2035
  # @param [String] fields
2181
2036
  # Selector specifying which fields to include in a partial response.
2182
2037
  # @param [String] quota_user
2183
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2184
- # characters.
2185
- # @param [String] user_ip
2186
- # Deprecated. Please use quotaUser instead.
2038
+ # Available to use for quota purposes for server-side applications. Can be any
2039
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2187
2040
  # @param [Google::Apis::RequestOptions] options
2188
2041
  # Request-specific options
2189
2042
  #
@@ -2196,35 +2049,28 @@ module Google
2196
2049
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2197
2050
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2198
2051
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2199
- def list_user_setting_send_as(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2200
- command = make_simple_command(:get, '{userId}/settings/sendAs', options)
2052
+ def list_user_setting_send_as(user_id, fields: nil, quota_user: nil, options: nil, &block)
2053
+ command = make_simple_command(:get, 'gmail/v1/users/{userId}/settings/sendAs', options)
2201
2054
  command.response_representation = Google::Apis::GmailV1::ListSendAsResponse::Representation
2202
2055
  command.response_class = Google::Apis::GmailV1::ListSendAsResponse
2203
2056
  command.params['userId'] = user_id unless user_id.nil?
2204
2057
  command.query['fields'] = fields unless fields.nil?
2205
2058
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2206
- command.query['userIp'] = user_ip unless user_ip.nil?
2207
2059
  execute_or_queue_command(command, &block)
2208
2060
  end
2209
2061
 
2210
- # Updates a send-as alias. If a signature is provided, Gmail will sanitize the
2211
- # HTML before saving it with the alias.
2212
- # Addresses other than the primary address for the account can only be updated
2213
- # by service account clients that have been delegated domain-wide authority.
2214
- # This method supports patch semantics.
2062
+ # Patch the specified send-as alias.
2215
2063
  # @param [String] user_id
2216
- # User's email address. The special value "me" can be used to indicate the
2217
- # authenticated user.
2064
+ # User's email address. The special value "me"
2065
+ # can be used to indicate the authenticated user.
2218
2066
  # @param [String] send_as_email
2219
2067
  # The send-as alias to be updated.
2220
2068
  # @param [Google::Apis::GmailV1::SendAs] send_as_object
2221
2069
  # @param [String] fields
2222
2070
  # Selector specifying which fields to include in a partial response.
2223
2071
  # @param [String] quota_user
2224
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2225
- # characters.
2226
- # @param [String] user_ip
2227
- # Deprecated. Please use quotaUser instead.
2072
+ # Available to use for quota purposes for server-side applications. Can be any
2073
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2228
2074
  # @param [Google::Apis::RequestOptions] options
2229
2075
  # Request-specific options
2230
2076
  #
@@ -2237,8 +2083,8 @@ module Google
2237
2083
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2238
2084
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2239
2085
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2240
- def patch_user_setting_send_as(user_id, send_as_email, send_as_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2241
- command = make_simple_command(:patch, '{userId}/settings/sendAs/{sendAsEmail}', options)
2086
+ def patch_user_setting_send_as(user_id, send_as_email, send_as_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2087
+ command = make_simple_command(:patch, 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}', options)
2242
2088
  command.request_representation = Google::Apis::GmailV1::SendAs::Representation
2243
2089
  command.request_object = send_as_object
2244
2090
  command.response_representation = Google::Apis::GmailV1::SendAs::Representation
@@ -2247,27 +2093,25 @@ module Google
2247
2093
  command.params['sendAsEmail'] = send_as_email unless send_as_email.nil?
2248
2094
  command.query['fields'] = fields unless fields.nil?
2249
2095
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2250
- command.query['userIp'] = user_ip unless user_ip.nil?
2251
2096
  execute_or_queue_command(command, &block)
2252
2097
  end
2253
2098
 
2254
- # Updates a send-as alias. If a signature is provided, Gmail will sanitize the
2255
- # HTML before saving it with the alias.
2256
- # Addresses other than the primary address for the account can only be updated
2257
- # by service account clients that have been delegated domain-wide authority.
2099
+ # Updates a send-as alias. If a signature is provided, Gmail will sanitize
2100
+ # the HTML before saving it with the alias.
2101
+ # Addresses other than the primary address for the account can only be
2102
+ # updated by service account clients that have been delegated domain-wide
2103
+ # authority.
2258
2104
  # @param [String] user_id
2259
- # User's email address. The special value "me" can be used to indicate the
2260
- # authenticated user.
2105
+ # User's email address. The special value "me"
2106
+ # can be used to indicate the authenticated user.
2261
2107
  # @param [String] send_as_email
2262
2108
  # The send-as alias to be updated.
2263
2109
  # @param [Google::Apis::GmailV1::SendAs] send_as_object
2264
2110
  # @param [String] fields
2265
2111
  # Selector specifying which fields to include in a partial response.
2266
2112
  # @param [String] quota_user
2267
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2268
- # characters.
2269
- # @param [String] user_ip
2270
- # Deprecated. Please use quotaUser instead.
2113
+ # Available to use for quota purposes for server-side applications. Can be any
2114
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2271
2115
  # @param [Google::Apis::RequestOptions] options
2272
2116
  # Request-specific options
2273
2117
  #
@@ -2280,8 +2124,8 @@ module Google
2280
2124
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2281
2125
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2282
2126
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2283
- def update_user_setting_send_as(user_id, send_as_email, send_as_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2284
- command = make_simple_command(:put, '{userId}/settings/sendAs/{sendAsEmail}', options)
2127
+ def update_user_setting_send_as(user_id, send_as_email, send_as_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2128
+ command = make_simple_command(:put, 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}', options)
2285
2129
  command.request_representation = Google::Apis::GmailV1::SendAs::Representation
2286
2130
  command.request_object = send_as_object
2287
2131
  command.response_representation = Google::Apis::GmailV1::SendAs::Representation
@@ -2290,26 +2134,23 @@ module Google
2290
2134
  command.params['sendAsEmail'] = send_as_email unless send_as_email.nil?
2291
2135
  command.query['fields'] = fields unless fields.nil?
2292
2136
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2293
- command.query['userIp'] = user_ip unless user_ip.nil?
2294
2137
  execute_or_queue_command(command, &block)
2295
2138
  end
2296
2139
 
2297
- # Sends a verification email to the specified send-as alias address. The
2298
- # verification status must be pending.
2140
+ # Sends a verification email to the specified send-as alias address.
2141
+ # The verification status must be <code>pending</code>.
2299
2142
  # This method is only available to service account clients that have been
2300
2143
  # delegated domain-wide authority.
2301
2144
  # @param [String] user_id
2302
- # User's email address. The special value "me" can be used to indicate the
2303
- # authenticated user.
2145
+ # User's email address. The special value "me"
2146
+ # can be used to indicate the authenticated user.
2304
2147
  # @param [String] send_as_email
2305
2148
  # The send-as alias to be verified.
2306
2149
  # @param [String] fields
2307
2150
  # Selector specifying which fields to include in a partial response.
2308
2151
  # @param [String] quota_user
2309
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2310
- # characters.
2311
- # @param [String] user_ip
2312
- # Deprecated. Please use quotaUser instead.
2152
+ # Available to use for quota purposes for server-side applications. Can be any
2153
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2313
2154
  # @param [Google::Apis::RequestOptions] options
2314
2155
  # Request-specific options
2315
2156
  #
@@ -2322,32 +2163,29 @@ module Google
2322
2163
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2323
2164
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2324
2165
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2325
- def verify_user_setting_send_as(user_id, send_as_email, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2326
- command = make_simple_command(:post, '{userId}/settings/sendAs/{sendAsEmail}/verify', options)
2166
+ def verify_user_setting_send_as(user_id, send_as_email, fields: nil, quota_user: nil, options: nil, &block)
2167
+ command = make_simple_command(:post, 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/verify', options)
2327
2168
  command.params['userId'] = user_id unless user_id.nil?
2328
2169
  command.params['sendAsEmail'] = send_as_email unless send_as_email.nil?
2329
2170
  command.query['fields'] = fields unless fields.nil?
2330
2171
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2331
- command.query['userIp'] = user_ip unless user_ip.nil?
2332
2172
  execute_or_queue_command(command, &block)
2333
2173
  end
2334
2174
 
2335
2175
  # Deletes the specified S/MIME config for the specified send-as alias.
2336
2176
  # @param [String] user_id
2337
- # The user's email address. The special value me can be used to indicate the
2338
- # authenticated user.
2177
+ # The user's email address. The special value <code>me</code>
2178
+ # can be used to indicate the authenticated user.
2339
2179
  # @param [String] send_as_email
2340
- # The email address that appears in the "From:" header for mail sent using this
2341
- # alias.
2180
+ # The email address that appears in the "From:" header for mail sent using
2181
+ # this alias.
2342
2182
  # @param [String] id
2343
2183
  # The immutable ID for the SmimeInfo.
2344
2184
  # @param [String] fields
2345
2185
  # Selector specifying which fields to include in a partial response.
2346
2186
  # @param [String] quota_user
2347
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2348
- # characters.
2349
- # @param [String] user_ip
2350
- # Deprecated. Please use quotaUser instead.
2187
+ # Available to use for quota purposes for server-side applications. Can be any
2188
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2351
2189
  # @param [Google::Apis::RequestOptions] options
2352
2190
  # Request-specific options
2353
2191
  #
@@ -2360,33 +2198,30 @@ module Google
2360
2198
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2361
2199
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2362
2200
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2363
- def delete_user_setting_send_a_smime_info(user_id, send_as_email, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2364
- command = make_simple_command(:delete, '{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}', options)
2201
+ def delete_user_setting_send_a_smime_info(user_id, send_as_email, id, fields: nil, quota_user: nil, options: nil, &block)
2202
+ command = make_simple_command(:delete, 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}', options)
2365
2203
  command.params['userId'] = user_id unless user_id.nil?
2366
2204
  command.params['sendAsEmail'] = send_as_email unless send_as_email.nil?
2367
2205
  command.params['id'] = id unless id.nil?
2368
2206
  command.query['fields'] = fields unless fields.nil?
2369
2207
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2370
- command.query['userIp'] = user_ip unless user_ip.nil?
2371
2208
  execute_or_queue_command(command, &block)
2372
2209
  end
2373
2210
 
2374
2211
  # Gets the specified S/MIME config for the specified send-as alias.
2375
2212
  # @param [String] user_id
2376
- # The user's email address. The special value me can be used to indicate the
2377
- # authenticated user.
2213
+ # The user's email address. The special value <code>me</code>
2214
+ # can be used to indicate the authenticated user.
2378
2215
  # @param [String] send_as_email
2379
- # The email address that appears in the "From:" header for mail sent using this
2380
- # alias.
2216
+ # The email address that appears in the "From:" header for mail sent using
2217
+ # this alias.
2381
2218
  # @param [String] id
2382
2219
  # The immutable ID for the SmimeInfo.
2383
2220
  # @param [String] fields
2384
2221
  # Selector specifying which fields to include in a partial response.
2385
2222
  # @param [String] quota_user
2386
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2387
- # characters.
2388
- # @param [String] user_ip
2389
- # Deprecated. Please use quotaUser instead.
2223
+ # Available to use for quota purposes for server-side applications. Can be any
2224
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2390
2225
  # @param [Google::Apis::RequestOptions] options
2391
2226
  # Request-specific options
2392
2227
  #
@@ -2399,8 +2234,8 @@ module Google
2399
2234
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2400
2235
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2401
2236
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2402
- def get_user_setting_send_a_smime_info(user_id, send_as_email, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2403
- command = make_simple_command(:get, '{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}', options)
2237
+ def get_user_setting_send_a_smime_info(user_id, send_as_email, id, fields: nil, quota_user: nil, options: nil, &block)
2238
+ command = make_simple_command(:get, 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}', options)
2404
2239
  command.response_representation = Google::Apis::GmailV1::SmimeInfo::Representation
2405
2240
  command.response_class = Google::Apis::GmailV1::SmimeInfo
2406
2241
  command.params['userId'] = user_id unless user_id.nil?
@@ -2408,26 +2243,23 @@ module Google
2408
2243
  command.params['id'] = id unless id.nil?
2409
2244
  command.query['fields'] = fields unless fields.nil?
2410
2245
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2411
- command.query['userIp'] = user_ip unless user_ip.nil?
2412
2246
  execute_or_queue_command(command, &block)
2413
2247
  end
2414
2248
 
2415
- # Insert (upload) the given S/MIME config for the specified send-as alias. Note
2416
- # that pkcs12 format is required for the key.
2249
+ # Insert (upload) the given S/MIME config for the specified send-as alias.
2250
+ # Note that pkcs12 format is required for the key.
2417
2251
  # @param [String] user_id
2418
- # The user's email address. The special value me can be used to indicate the
2419
- # authenticated user.
2252
+ # The user's email address. The special value <code>me</code>
2253
+ # can be used to indicate the authenticated user.
2420
2254
  # @param [String] send_as_email
2421
- # The email address that appears in the "From:" header for mail sent using this
2422
- # alias.
2255
+ # The email address that appears in the "From:" header for mail sent using
2256
+ # this alias.
2423
2257
  # @param [Google::Apis::GmailV1::SmimeInfo] smime_info_object
2424
2258
  # @param [String] fields
2425
2259
  # Selector specifying which fields to include in a partial response.
2426
2260
  # @param [String] quota_user
2427
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2428
- # characters.
2429
- # @param [String] user_ip
2430
- # Deprecated. Please use quotaUser instead.
2261
+ # Available to use for quota purposes for server-side applications. Can be any
2262
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2431
2263
  # @param [Google::Apis::RequestOptions] options
2432
2264
  # Request-specific options
2433
2265
  #
@@ -2440,8 +2272,8 @@ module Google
2440
2272
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2441
2273
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2442
2274
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2443
- def insert_user_setting_send_a_smime_info(user_id, send_as_email, smime_info_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2444
- command = make_simple_command(:post, '{userId}/settings/sendAs/{sendAsEmail}/smimeInfo', options)
2275
+ def insert_user_setting_send_a_smime_info(user_id, send_as_email, smime_info_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2276
+ command = make_simple_command(:post, 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo', options)
2445
2277
  command.request_representation = Google::Apis::GmailV1::SmimeInfo::Representation
2446
2278
  command.request_object = smime_info_object
2447
2279
  command.response_representation = Google::Apis::GmailV1::SmimeInfo::Representation
@@ -2450,24 +2282,21 @@ module Google
2450
2282
  command.params['sendAsEmail'] = send_as_email unless send_as_email.nil?
2451
2283
  command.query['fields'] = fields unless fields.nil?
2452
2284
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2453
- command.query['userIp'] = user_ip unless user_ip.nil?
2454
2285
  execute_or_queue_command(command, &block)
2455
2286
  end
2456
2287
 
2457
2288
  # Lists S/MIME configs for the specified send-as alias.
2458
2289
  # @param [String] user_id
2459
- # The user's email address. The special value me can be used to indicate the
2460
- # authenticated user.
2290
+ # The user's email address. The special value <code>me</code>
2291
+ # can be used to indicate the authenticated user.
2461
2292
  # @param [String] send_as_email
2462
- # The email address that appears in the "From:" header for mail sent using this
2463
- # alias.
2293
+ # The email address that appears in the "From:" header for mail sent using
2294
+ # this alias.
2464
2295
  # @param [String] fields
2465
2296
  # Selector specifying which fields to include in a partial response.
2466
2297
  # @param [String] quota_user
2467
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2468
- # characters.
2469
- # @param [String] user_ip
2470
- # Deprecated. Please use quotaUser instead.
2298
+ # Available to use for quota purposes for server-side applications. Can be any
2299
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2471
2300
  # @param [Google::Apis::RequestOptions] options
2472
2301
  # Request-specific options
2473
2302
  #
@@ -2480,34 +2309,31 @@ module Google
2480
2309
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2481
2310
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2482
2311
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2483
- def list_user_setting_send_a_smime_infos(user_id, send_as_email, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2484
- command = make_simple_command(:get, '{userId}/settings/sendAs/{sendAsEmail}/smimeInfo', options)
2312
+ def list_user_setting_send_a_smime_infos(user_id, send_as_email, fields: nil, quota_user: nil, options: nil, &block)
2313
+ command = make_simple_command(:get, 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo', options)
2485
2314
  command.response_representation = Google::Apis::GmailV1::ListSmimeInfoResponse::Representation
2486
2315
  command.response_class = Google::Apis::GmailV1::ListSmimeInfoResponse
2487
2316
  command.params['userId'] = user_id unless user_id.nil?
2488
2317
  command.params['sendAsEmail'] = send_as_email unless send_as_email.nil?
2489
2318
  command.query['fields'] = fields unless fields.nil?
2490
2319
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2491
- command.query['userIp'] = user_ip unless user_ip.nil?
2492
2320
  execute_or_queue_command(command, &block)
2493
2321
  end
2494
2322
 
2495
2323
  # Sets the default S/MIME config for the specified send-as alias.
2496
2324
  # @param [String] user_id
2497
- # The user's email address. The special value me can be used to indicate the
2498
- # authenticated user.
2325
+ # The user's email address. The special value <code>me</code>
2326
+ # can be used to indicate the authenticated user.
2499
2327
  # @param [String] send_as_email
2500
- # The email address that appears in the "From:" header for mail sent using this
2501
- # alias.
2328
+ # The email address that appears in the "From:" header for mail sent using
2329
+ # this alias.
2502
2330
  # @param [String] id
2503
2331
  # The immutable ID for the SmimeInfo.
2504
2332
  # @param [String] fields
2505
2333
  # Selector specifying which fields to include in a partial response.
2506
2334
  # @param [String] quota_user
2507
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2508
- # characters.
2509
- # @param [String] user_ip
2510
- # Deprecated. Please use quotaUser instead.
2335
+ # Available to use for quota purposes for server-side applications. Can be any
2336
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2511
2337
  # @param [Google::Apis::RequestOptions] options
2512
2338
  # Request-specific options
2513
2339
  #
@@ -2520,31 +2346,28 @@ module Google
2520
2346
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2521
2347
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2522
2348
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2523
- def set_user_setting_send_a_smime_info_default(user_id, send_as_email, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2524
- command = make_simple_command(:post, '{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}/setDefault', options)
2349
+ def set_user_setting_send_a_smime_info_default(user_id, send_as_email, id, fields: nil, quota_user: nil, options: nil, &block)
2350
+ command = make_simple_command(:post, 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}/setDefault', options)
2525
2351
  command.params['userId'] = user_id unless user_id.nil?
2526
2352
  command.params['sendAsEmail'] = send_as_email unless send_as_email.nil?
2527
2353
  command.params['id'] = id unless id.nil?
2528
2354
  command.query['fields'] = fields unless fields.nil?
2529
2355
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2530
- command.query['userIp'] = user_ip unless user_ip.nil?
2531
2356
  execute_or_queue_command(command, &block)
2532
2357
  end
2533
2358
 
2534
2359
  # Immediately and permanently deletes the specified thread. This operation
2535
- # cannot be undone. Prefer threads.trash instead.
2360
+ # cannot be undone. Prefer <code>threads.trash</code> instead.
2536
2361
  # @param [String] user_id
2537
- # The user's email address. The special value me can be used to indicate the
2538
- # authenticated user.
2362
+ # The user's email address. The special value <code>me</code>
2363
+ # can be used to indicate the authenticated user.
2539
2364
  # @param [String] id
2540
2365
  # ID of the Thread to delete.
2541
2366
  # @param [String] fields
2542
2367
  # Selector specifying which fields to include in a partial response.
2543
2368
  # @param [String] quota_user
2544
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2545
- # characters.
2546
- # @param [String] user_ip
2547
- # Deprecated. Please use quotaUser instead.
2369
+ # Available to use for quota purposes for server-side applications. Can be any
2370
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2548
2371
  # @param [Google::Apis::RequestOptions] options
2549
2372
  # Request-specific options
2550
2373
  #
@@ -2557,20 +2380,19 @@ module Google
2557
2380
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2558
2381
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2559
2382
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2560
- def delete_user_thread(user_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2561
- command = make_simple_command(:delete, '{userId}/threads/{id}', options)
2383
+ def delete_user_thread(user_id, id, fields: nil, quota_user: nil, options: nil, &block)
2384
+ command = make_simple_command(:delete, 'gmail/v1/users/{userId}/threads/{id}', options)
2562
2385
  command.params['userId'] = user_id unless user_id.nil?
2563
2386
  command.params['id'] = id unless id.nil?
2564
2387
  command.query['fields'] = fields unless fields.nil?
2565
2388
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2566
- command.query['userIp'] = user_ip unless user_ip.nil?
2567
2389
  execute_or_queue_command(command, &block)
2568
2390
  end
2569
2391
 
2570
2392
  # Gets the specified thread.
2571
2393
  # @param [String] user_id
2572
- # The user's email address. The special value me can be used to indicate the
2573
- # authenticated user.
2394
+ # The user's email address. The special value <code>me</code>
2395
+ # can be used to indicate the authenticated user.
2574
2396
  # @param [String] id
2575
2397
  # The ID of the thread to retrieve.
2576
2398
  # @param [String] format
@@ -2580,10 +2402,8 @@ module Google
2580
2402
  # @param [String] fields
2581
2403
  # Selector specifying which fields to include in a partial response.
2582
2404
  # @param [String] quota_user
2583
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2584
- # characters.
2585
- # @param [String] user_ip
2586
- # Deprecated. Please use quotaUser instead.
2405
+ # Available to use for quota purposes for server-side applications. Can be any
2406
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2587
2407
  # @param [Google::Apis::RequestOptions] options
2588
2408
  # Request-specific options
2589
2409
  #
@@ -2596,8 +2416,8 @@ module Google
2596
2416
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2597
2417
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2598
2418
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2599
- def get_user_thread(user_id, id, format: nil, metadata_headers: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2600
- command = make_simple_command(:get, '{userId}/threads/{id}', options)
2419
+ def get_user_thread(user_id, id, format: nil, metadata_headers: nil, fields: nil, quota_user: nil, options: nil, &block)
2420
+ command = make_simple_command(:get, 'gmail/v1/users/{userId}/threads/{id}', options)
2601
2421
  command.response_representation = Google::Apis::GmailV1::Thread::Representation
2602
2422
  command.response_class = Google::Apis::GmailV1::Thread
2603
2423
  command.params['userId'] = user_id unless user_id.nil?
@@ -2606,16 +2426,16 @@ module Google
2606
2426
  command.query['metadataHeaders'] = metadata_headers unless metadata_headers.nil?
2607
2427
  command.query['fields'] = fields unless fields.nil?
2608
2428
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2609
- command.query['userIp'] = user_ip unless user_ip.nil?
2610
2429
  execute_or_queue_command(command, &block)
2611
2430
  end
2612
2431
 
2613
2432
  # Lists the threads in the user's mailbox.
2614
2433
  # @param [String] user_id
2615
- # The user's email address. The special value me can be used to indicate the
2616
- # authenticated user.
2434
+ # The user's email address. The special value <code>me</code>
2435
+ # can be used to indicate the authenticated user.
2617
2436
  # @param [Boolean] include_spam_trash
2618
- # Include threads from SPAM and TRASH in the results.
2437
+ # Include threads from <code>SPAM</code> and <code>TRASH</code>
2438
+ # in the results.
2619
2439
  # @param [Array<String>, String] label_ids
2620
2440
  # Only return threads with labels that match all of the specified label IDs.
2621
2441
  # @param [Fixnum] max_results
@@ -2623,17 +2443,16 @@ module Google
2623
2443
  # @param [String] page_token
2624
2444
  # Page token to retrieve a specific page of results in the list.
2625
2445
  # @param [String] q
2626
- # Only return threads matching the specified query. Supports the same query
2627
- # format as the Gmail search box. For example, "from:someuser@example.com
2628
- # rfc822msgid: is:unread". Parameter cannot be used when accessing the api using
2629
- # the gmail.metadata scope.
2446
+ # Only return threads matching the specified query. Supports the same
2447
+ # query format as the Gmail search box. For example,
2448
+ # <code>"from:someuser@example.com rfc822msgid:<somemsgid@example.com>
2449
+ # is:unread"</code>. Parameter cannot be used when accessing the api
2450
+ # using the gmail.metadata scope.
2630
2451
  # @param [String] fields
2631
2452
  # Selector specifying which fields to include in a partial response.
2632
2453
  # @param [String] quota_user
2633
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2634
- # characters.
2635
- # @param [String] user_ip
2636
- # Deprecated. Please use quotaUser instead.
2454
+ # Available to use for quota purposes for server-side applications. Can be any
2455
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2637
2456
  # @param [Google::Apis::RequestOptions] options
2638
2457
  # Request-specific options
2639
2458
  #
@@ -2646,8 +2465,8 @@ module Google
2646
2465
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2647
2466
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2648
2467
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2649
- 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)
2650
- command = make_simple_command(:get, '{userId}/threads', options)
2468
+ 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, options: nil, &block)
2469
+ command = make_simple_command(:get, 'gmail/v1/users/{userId}/threads', options)
2651
2470
  command.response_representation = Google::Apis::GmailV1::ListThreadsResponse::Representation
2652
2471
  command.response_class = Google::Apis::GmailV1::ListThreadsResponse
2653
2472
  command.params['userId'] = user_id unless user_id.nil?
@@ -2658,25 +2477,22 @@ module Google
2658
2477
  command.query['q'] = q unless q.nil?
2659
2478
  command.query['fields'] = fields unless fields.nil?
2660
2479
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2661
- command.query['userIp'] = user_ip unless user_ip.nil?
2662
2480
  execute_or_queue_command(command, &block)
2663
2481
  end
2664
2482
 
2665
- # Modifies the labels applied to the thread. This applies to all messages in the
2666
- # thread.
2483
+ # Modifies the labels applied to the thread. This applies to all messages
2484
+ # in the thread.
2667
2485
  # @param [String] user_id
2668
- # The user's email address. The special value me can be used to indicate the
2669
- # authenticated user.
2486
+ # The user's email address. The special value <code>me</code>
2487
+ # can be used to indicate the authenticated user.
2670
2488
  # @param [String] id
2671
2489
  # The ID of the thread to modify.
2672
2490
  # @param [Google::Apis::GmailV1::ModifyThreadRequest] modify_thread_request_object
2673
2491
  # @param [String] fields
2674
2492
  # Selector specifying which fields to include in a partial response.
2675
2493
  # @param [String] quota_user
2676
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2677
- # characters.
2678
- # @param [String] user_ip
2679
- # Deprecated. Please use quotaUser instead.
2494
+ # Available to use for quota purposes for server-side applications. Can be any
2495
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2680
2496
  # @param [Google::Apis::RequestOptions] options
2681
2497
  # Request-specific options
2682
2498
  #
@@ -2689,8 +2505,8 @@ module Google
2689
2505
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2690
2506
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2691
2507
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2692
- def modify_thread(user_id, id, modify_thread_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2693
- command = make_simple_command(:post, '{userId}/threads/{id}/modify', options)
2508
+ def modify_thread(user_id, id, modify_thread_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2509
+ command = make_simple_command(:post, 'gmail/v1/users/{userId}/threads/{id}/modify', options)
2694
2510
  command.request_representation = Google::Apis::GmailV1::ModifyThreadRequest::Representation
2695
2511
  command.request_object = modify_thread_request_object
2696
2512
  command.response_representation = Google::Apis::GmailV1::Thread::Representation
@@ -2699,23 +2515,20 @@ module Google
2699
2515
  command.params['id'] = id unless id.nil?
2700
2516
  command.query['fields'] = fields unless fields.nil?
2701
2517
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2702
- command.query['userIp'] = user_ip unless user_ip.nil?
2703
2518
  execute_or_queue_command(command, &block)
2704
2519
  end
2705
2520
 
2706
2521
  # Moves the specified thread to the trash.
2707
2522
  # @param [String] user_id
2708
- # The user's email address. The special value me can be used to indicate the
2709
- # authenticated user.
2523
+ # The user's email address. The special value <code>me</code>
2524
+ # can be used to indicate the authenticated user.
2710
2525
  # @param [String] id
2711
2526
  # The ID of the thread to Trash.
2712
2527
  # @param [String] fields
2713
2528
  # Selector specifying which fields to include in a partial response.
2714
2529
  # @param [String] quota_user
2715
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2716
- # characters.
2717
- # @param [String] user_ip
2718
- # Deprecated. Please use quotaUser instead.
2530
+ # Available to use for quota purposes for server-side applications. Can be any
2531
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2719
2532
  # @param [Google::Apis::RequestOptions] options
2720
2533
  # Request-specific options
2721
2534
  #
@@ -2728,31 +2541,28 @@ module Google
2728
2541
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2729
2542
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2730
2543
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2731
- def trash_user_thread(user_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2732
- command = make_simple_command(:post, '{userId}/threads/{id}/trash', options)
2544
+ def trash_user_thread(user_id, id, fields: nil, quota_user: nil, options: nil, &block)
2545
+ command = make_simple_command(:post, 'gmail/v1/users/{userId}/threads/{id}/trash', options)
2733
2546
  command.response_representation = Google::Apis::GmailV1::Thread::Representation
2734
2547
  command.response_class = Google::Apis::GmailV1::Thread
2735
2548
  command.params['userId'] = user_id unless user_id.nil?
2736
2549
  command.params['id'] = id unless id.nil?
2737
2550
  command.query['fields'] = fields unless fields.nil?
2738
2551
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2739
- command.query['userIp'] = user_ip unless user_ip.nil?
2740
2552
  execute_or_queue_command(command, &block)
2741
2553
  end
2742
2554
 
2743
2555
  # Removes the specified thread from the trash.
2744
2556
  # @param [String] user_id
2745
- # The user's email address. The special value me can be used to indicate the
2746
- # authenticated user.
2557
+ # The user's email address. The special value <code>me</code>
2558
+ # can be used to indicate the authenticated user.
2747
2559
  # @param [String] id
2748
2560
  # The ID of the thread to remove from Trash.
2749
2561
  # @param [String] fields
2750
2562
  # Selector specifying which fields to include in a partial response.
2751
2563
  # @param [String] quota_user
2752
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2753
- # characters.
2754
- # @param [String] user_ip
2755
- # Deprecated. Please use quotaUser instead.
2564
+ # Available to use for quota purposes for server-side applications. Can be any
2565
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2756
2566
  # @param [Google::Apis::RequestOptions] options
2757
2567
  # Request-specific options
2758
2568
  #
@@ -2765,15 +2575,14 @@ module Google
2765
2575
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2766
2576
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2767
2577
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2768
- def untrash_user_thread(user_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2769
- command = make_simple_command(:post, '{userId}/threads/{id}/untrash', options)
2578
+ def untrash_user_thread(user_id, id, fields: nil, quota_user: nil, options: nil, &block)
2579
+ command = make_simple_command(:post, 'gmail/v1/users/{userId}/threads/{id}/untrash', options)
2770
2580
  command.response_representation = Google::Apis::GmailV1::Thread::Representation
2771
2581
  command.response_class = Google::Apis::GmailV1::Thread
2772
2582
  command.params['userId'] = user_id unless user_id.nil?
2773
2583
  command.params['id'] = id unless id.nil?
2774
2584
  command.query['fields'] = fields unless fields.nil?
2775
2585
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2776
- command.query['userIp'] = user_ip unless user_ip.nil?
2777
2586
  execute_or_queue_command(command, &block)
2778
2587
  end
2779
2588
 
@@ -2782,7 +2591,6 @@ module Google
2782
2591
  def apply_command_defaults(command)
2783
2592
  command.query['key'] = key unless key.nil?
2784
2593
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2785
- command.query['userIp'] = user_ip unless user_ip.nil?
2786
2594
  end
2787
2595
  end
2788
2596
  end