google-api-client 0.9.8 → 0.9.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (238) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +37 -0
  3. data/Gemfile +9 -1
  4. data/README.md +10 -2
  5. data/api_names.yaml +63 -110
  6. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
  10. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +260 -13
  12. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +81 -0
  13. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
  14. data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
  15. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
  16. data/generated/google/apis/admin_directory_v1.rb +1 -1
  17. data/generated/google/apis/admin_directory_v1/classes.rb +86 -0
  18. data/generated/google/apis/admin_directory_v1/representations.rb +24 -0
  19. data/generated/google/apis/admin_directory_v1/service.rb +41 -2
  20. data/generated/google/apis/admin_reports_v1.rb +3 -3
  21. data/generated/google/apis/admin_reports_v1/service.rb +2 -2
  22. data/generated/google/apis/adsense_v1_4.rb +1 -1
  23. data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
  24. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  25. data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
  26. data/generated/google/apis/analytics_v3.rb +1 -1
  27. data/generated/google/apis/analytics_v3/classes.rb +379 -3
  28. data/generated/google/apis/analytics_v3/representations.rb +136 -0
  29. data/generated/google/apis/analytics_v3/service.rb +217 -0
  30. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  31. data/generated/google/apis/analyticsreporting_v4/classes.rb +50 -22
  32. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  33. data/generated/google/apis/androidenterprise_v1/classes.rb +813 -49
  34. data/generated/google/apis/androidenterprise_v1/representations.rb +336 -0
  35. data/generated/google/apis/androidenterprise_v1/service.rb +1234 -145
  36. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  37. data/generated/google/apis/androidpublisher_v2/classes.rb +47 -8
  38. data/generated/google/apis/androidpublisher_v2/representations.rb +27 -0
  39. data/generated/google/apis/androidpublisher_v2/service.rb +55 -0
  40. data/generated/google/apis/appengine_v1beta5.rb +7 -1
  41. data/generated/google/apis/appengine_v1beta5/classes.rb +516 -313
  42. data/generated/google/apis/appengine_v1beta5/representations.rb +115 -22
  43. data/generated/google/apis/appengine_v1beta5/service.rb +329 -33
  44. data/generated/google/apis/appsactivity_v1.rb +1 -1
  45. data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
  46. data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
  47. data/generated/google/apis/appstate_v1.rb +1 -1
  48. data/generated/google/apis/bigquery_v2.rb +1 -1
  49. data/generated/google/apis/bigquery_v2/classes.rb +277 -20
  50. data/generated/google/apis/bigquery_v2/representations.rb +86 -0
  51. data/generated/google/apis/bigquery_v2/service.rb +8 -2
  52. data/generated/google/apis/books_v1.rb +2 -2
  53. data/generated/google/apis/books_v1/classes.rb +79 -1
  54. data/generated/google/apis/books_v1/representations.rb +34 -0
  55. data/generated/google/apis/books_v1/service.rb +7 -3
  56. data/generated/google/apis/calendar_v3.rb +1 -1
  57. data/generated/google/apis/civicinfo_v2.rb +3 -2
  58. data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
  59. data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
  60. data/generated/google/apis/civicinfo_v2/service.rb +27 -6
  61. data/generated/google/apis/classroom_v1.rb +1 -1
  62. data/generated/google/apis/classroom_v1/classes.rb +183 -37
  63. data/generated/google/apis/classroom_v1/representations.rb +74 -9
  64. data/generated/google/apis/classroom_v1/service.rb +403 -38
  65. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  66. data/generated/google/apis/cloudbuild_v1/classes.rb +381 -17
  67. data/generated/google/apis/cloudbuild_v1/representations.rb +137 -2
  68. data/generated/google/apis/cloudbuild_v1/service.rb +174 -1
  69. data/generated/google/apis/clouddebugger_v2.rb +3 -6
  70. data/generated/google/apis/clouddebugger_v2/service.rb +4 -4
  71. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  72. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  73. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +502 -111
  74. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +162 -24
  75. data/generated/google/apis/cloudresourcemanager_v1/service.rb +274 -30
  76. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  77. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +121 -9
  78. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +46 -0
  79. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +71 -58
  80. data/generated/google/apis/compute_beta.rb +1 -1
  81. data/generated/google/apis/compute_beta/classes.rb +2299 -434
  82. data/generated/google/apis/compute_beta/representations.rb +752 -33
  83. data/generated/google/apis/compute_beta/service.rb +6067 -3153
  84. data/generated/google/apis/compute_v1.rb +1 -1
  85. data/generated/google/apis/compute_v1/classes.rb +1681 -207
  86. data/generated/google/apis/compute_v1/representations.rb +552 -0
  87. data/generated/google/apis/compute_v1/service.rb +2797 -1171
  88. data/generated/google/apis/content_v2.rb +1 -1
  89. data/generated/google/apis/content_v2/classes.rb +757 -1
  90. data/generated/google/apis/content_v2/representations.rb +337 -0
  91. data/generated/google/apis/content_v2/service.rb +244 -0
  92. data/generated/google/apis/dataflow_v1b3.rb +38 -0
  93. data/generated/google/apis/dataflow_v1b3/classes.rb +4053 -0
  94. data/generated/google/apis/dataflow_v1b3/representations.rb +1736 -0
  95. data/generated/google/apis/dataflow_v1b3/service.rb +875 -0
  96. data/generated/google/apis/dataproc_v1.rb +2 -2
  97. data/generated/google/apis/dataproc_v1/classes.rb +213 -68
  98. data/generated/google/apis/dataproc_v1/representations.rb +38 -0
  99. data/generated/google/apis/dataproc_v1/service.rb +78 -48
  100. data/generated/google/apis/datastore_v1.rb +38 -0
  101. data/generated/google/apis/datastore_v1/classes.rb +1284 -0
  102. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  103. data/generated/google/apis/datastore_v1/service.rb +259 -0
  104. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  105. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  106. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  107. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  108. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  109. data/generated/google/apis/deploymentmanager_v2/classes.rb +384 -2
  110. data/generated/google/apis/deploymentmanager_v2/representations.rb +161 -0
  111. data/generated/google/apis/deploymentmanager_v2/service.rb +217 -55
  112. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  113. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  114. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  115. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  116. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  117. data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
  118. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  119. data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
  120. data/generated/google/apis/dns_v1.rb +1 -1
  121. data/generated/google/apis/dns_v1/classes.rb +1 -1
  122. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  123. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
  124. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
  125. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
  126. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  127. data/generated/google/apis/drive_v2.rb +1 -1
  128. data/generated/google/apis/drive_v2/classes.rb +27 -3
  129. data/generated/google/apis/drive_v2/representations.rb +4 -0
  130. data/generated/google/apis/drive_v2/service.rb +16 -3
  131. data/generated/google/apis/drive_v3.rb +1 -1
  132. data/generated/google/apis/drive_v3/classes.rb +50 -16
  133. data/generated/google/apis/drive_v3/representations.rb +4 -0
  134. data/generated/google/apis/drive_v3/service.rb +12 -2
  135. data/generated/google/apis/fitness_v1.rb +8 -2
  136. data/generated/google/apis/fitness_v1/classes.rb +64 -6
  137. data/generated/google/apis/fitness_v1/representations.rb +20 -0
  138. data/generated/google/apis/fitness_v1/service.rb +17 -18
  139. data/generated/google/apis/fusiontables_v2.rb +1 -1
  140. data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
  141. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  142. data/generated/google/apis/games_management_v1management.rb +1 -1
  143. data/generated/google/apis/games_v1.rb +1 -1
  144. data/generated/google/apis/genomics_v1.rb +2 -4
  145. data/generated/google/apis/genomics_v1/classes.rb +143 -34
  146. data/generated/google/apis/genomics_v1/representations.rb +48 -11
  147. data/generated/google/apis/genomics_v1/service.rb +35 -37
  148. data/generated/google/apis/gmail_v1.rb +10 -1
  149. data/generated/google/apis/gmail_v1/classes.rb +542 -4
  150. data/generated/google/apis/gmail_v1/representations.rb +213 -0
  151. data/generated/google/apis/gmail_v1/service.rb +898 -1
  152. data/generated/google/apis/groupssettings_v1.rb +1 -1
  153. data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
  154. data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
  155. data/generated/google/apis/iam_v1.rb +2 -2
  156. data/generated/google/apis/iam_v1/classes.rb +181 -206
  157. data/generated/google/apis/iam_v1/representations.rb +36 -45
  158. data/generated/google/apis/iam_v1/service.rb +101 -67
  159. data/generated/google/apis/identitytoolkit_v3.rb +4 -1
  160. data/generated/google/apis/identitytoolkit_v3/classes.rb +171 -1
  161. data/generated/google/apis/identitytoolkit_v3/representations.rb +26 -0
  162. data/generated/google/apis/language_v1beta1.rb +36 -0
  163. data/generated/google/apis/language_v1beta1/classes.rb +599 -0
  164. data/generated/google/apis/language_v1beta1/representations.rb +289 -0
  165. data/generated/google/apis/language_v1beta1/service.rb +152 -0
  166. data/generated/google/apis/logging_v2beta1.rb +6 -6
  167. data/generated/google/apis/logging_v2beta1/classes.rb +760 -731
  168. data/generated/google/apis/logging_v2beta1/representations.rb +136 -147
  169. data/generated/google/apis/logging_v2beta1/service.rb +290 -209
  170. data/generated/google/apis/mirror_v1.rb +2 -2
  171. data/generated/google/apis/mirror_v1/service.rb +1 -1
  172. data/generated/google/apis/monitoring_v3.rb +45 -0
  173. data/generated/google/apis/monitoring_v3/classes.rb +1337 -0
  174. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  175. data/generated/google/apis/monitoring_v3/service.rb +711 -0
  176. data/generated/google/apis/oauth2_v2.rb +1 -1
  177. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  178. data/generated/google/apis/plus_domains_v1.rb +1 -1
  179. data/generated/google/apis/plus_v1.rb +1 -1
  180. data/generated/google/apis/pubsub_v1.rb +1 -1
  181. data/generated/google/apis/pubsub_v1/classes.rb +10 -9
  182. data/generated/google/apis/pubsub_v1/service.rb +128 -27
  183. data/generated/google/apis/qpx_express_v1.rb +1 -1
  184. data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
  185. data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
  186. data/generated/google/apis/replicapool_v1beta2.rb +1 -1
  187. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
  188. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
  189. data/generated/google/apis/script_v1.rb +1 -1
  190. data/generated/google/apis/script_v1/classes.rb +6 -0
  191. data/generated/google/apis/script_v1/representations.rb +1 -0
  192. data/generated/google/apis/sheets_v4.rb +1 -1
  193. data/generated/google/apis/sheets_v4/classes.rb +910 -89
  194. data/generated/google/apis/sheets_v4/representations.rb +194 -10
  195. data/generated/google/apis/sheets_v4/service.rb +216 -49
  196. data/generated/google/apis/slides_v1.rb +49 -0
  197. data/generated/google/apis/slides_v1/classes.rb +3926 -0
  198. data/generated/google/apis/slides_v1/representations.rb +1722 -0
  199. data/generated/google/apis/slides_v1/service.rb +202 -0
  200. data/generated/google/apis/speech_v1beta1.rb +34 -0
  201. data/generated/google/apis/speech_v1beta1/classes.rb +511 -0
  202. data/generated/google/apis/speech_v1beta1/representations.rb +218 -0
  203. data/generated/google/apis/speech_v1beta1/service.rb +271 -0
  204. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  205. data/generated/google/apis/sqladmin_v1beta4/classes.rb +32 -8
  206. data/generated/google/apis/sqladmin_v1beta4/representations.rb +3 -0
  207. data/generated/google/apis/sqladmin_v1beta4/service.rb +42 -0
  208. data/generated/google/apis/storage_v1.rb +1 -1
  209. data/generated/google/apis/storage_v1/classes.rb +43 -18
  210. data/generated/google/apis/storage_v1/representations.rb +4 -1
  211. data/generated/google/apis/storage_v1/service.rb +5 -2
  212. data/generated/google/apis/translate_v2.rb +2 -2
  213. data/generated/google/apis/translate_v2/service.rb +1 -1
  214. data/generated/google/apis/vision_v1.rb +1 -1
  215. data/generated/google/apis/vision_v1/classes.rb +12 -11
  216. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  217. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  218. data/generated/google/apis/youtube_partner_v1/classes.rb +6 -0
  219. data/generated/google/apis/youtube_partner_v1/representations.rb +2 -0
  220. data/generated/google/apis/youtube_partner_v1/service.rb +15 -3
  221. data/generated/google/apis/youtube_v3.rb +1 -1
  222. data/generated/google/apis/youtube_v3/classes.rb +183 -21
  223. data/generated/google/apis/youtube_v3/representations.rb +85 -4
  224. data/generated/google/apis/youtube_v3/service.rb +41 -5
  225. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  226. data/google-api-client.gemspec +2 -1
  227. data/lib/google/apis/core/api_command.rb +4 -0
  228. data/lib/google/apis/core/base_service.rb +10 -4
  229. data/lib/google/apis/core/download.rb +7 -2
  230. data/lib/google/apis/core/http_command.rb +5 -1
  231. data/lib/google/apis/core/upload.rb +7 -1
  232. data/lib/google/apis/errors.rb +2 -2
  233. data/lib/google/apis/generator/annotator.rb +6 -0
  234. data/lib/google/apis/version.rb +1 -1
  235. data/samples/cli/lib/samples/bigquery.rb +101 -0
  236. data/samples/cli/lib/samples/sheets.rb +61 -0
  237. data/sync.rb +71 -0
  238. metadata +55 -13
@@ -178,13 +178,13 @@ module Google
178
178
  include Google::Apis::Core::JsonObjectSupport
179
179
  end
180
180
 
181
- class Operation
181
+ class ListOperationsResponse
182
182
  class Representation < Google::Apis::Core::JsonRepresentation; end
183
183
 
184
184
  include Google::Apis::Core::JsonObjectSupport
185
185
  end
186
186
 
187
- class ListOperationsResponse
187
+ class Operation
188
188
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
189
 
190
190
  include Google::Apis::Core::JsonObjectSupport
@@ -478,6 +478,18 @@ module Google
478
478
  include Google::Apis::Core::JsonObjectSupport
479
479
  end
480
480
 
481
+ class RuntimeMetadata
482
+ class Representation < Google::Apis::Core::JsonRepresentation; end
483
+
484
+ include Google::Apis::Core::JsonObjectSupport
485
+ end
486
+
487
+ class ComputeEngine
488
+ class Representation < Google::Apis::Core::JsonRepresentation; end
489
+
490
+ include Google::Apis::Core::JsonObjectSupport
491
+ end
492
+
481
493
  class AnnotationSet
482
494
  # @private
483
495
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -612,6 +624,7 @@ module Google
612
624
  class Representation < Google::Apis::Core::JsonRepresentation
613
625
  collection :annotations, as: 'annotations', class: Google::Apis::GenomicsV1::Annotation, decorator: Google::Apis::GenomicsV1::Annotation::Representation
614
626
 
627
+ property :request_id, as: 'requestId'
615
628
  end
616
629
  end
617
630
 
@@ -735,24 +748,24 @@ module Google
735
748
  end
736
749
  end
737
750
 
738
- class Operation
751
+ class ListOperationsResponse
739
752
  # @private
740
753
  class Representation < Google::Apis::Core::JsonRepresentation
741
- property :name, as: 'name'
742
- hash :metadata, as: 'metadata'
743
- property :done, as: 'done'
744
- property :error, as: 'error', class: Google::Apis::GenomicsV1::Status, decorator: Google::Apis::GenomicsV1::Status::Representation
754
+ collection :operations, as: 'operations', class: Google::Apis::GenomicsV1::Operation, decorator: Google::Apis::GenomicsV1::Operation::Representation
745
755
 
746
- hash :response, as: 'response'
756
+ property :next_page_token, as: 'nextPageToken'
747
757
  end
748
758
  end
749
759
 
750
- class ListOperationsResponse
760
+ class Operation
751
761
  # @private
752
762
  class Representation < Google::Apis::Core::JsonRepresentation
753
- collection :operations, as: 'operations', class: Google::Apis::GenomicsV1::Operation, decorator: Google::Apis::GenomicsV1::Operation::Representation
763
+ property :name, as: 'name'
764
+ hash :metadata, as: 'metadata'
765
+ property :done, as: 'done'
766
+ property :error, as: 'error', class: Google::Apis::GenomicsV1::Status, decorator: Google::Apis::GenomicsV1::Status::Representation
754
767
 
755
- property :next_page_token, as: 'nextPageToken'
768
+ hash :response, as: 'response'
756
769
  end
757
770
  end
758
771
 
@@ -1294,19 +1307,43 @@ module Google
1294
1307
  class Representation < Google::Apis::Core::JsonRepresentation
1295
1308
  property :project_id, as: 'projectId'
1296
1309
  property :create_time, as: 'createTime'
1310
+ property :start_time, as: 'startTime'
1297
1311
  property :end_time, as: 'endTime'
1298
1312
  hash :request, as: 'request'
1299
1313
  collection :events, as: 'events', class: Google::Apis::GenomicsV1::OperationEvent, decorator: Google::Apis::GenomicsV1::OperationEvent::Representation
1300
1314
 
1315
+ property :client_id, as: 'clientId'
1316
+ hash :runtime_metadata, as: 'runtimeMetadata'
1317
+ hash :labels, as: 'labels'
1301
1318
  end
1302
1319
  end
1303
1320
 
1304
1321
  class OperationEvent
1305
1322
  # @private
1306
1323
  class Representation < Google::Apis::Core::JsonRepresentation
1324
+ property :start_time, as: 'startTime'
1325
+ property :end_time, as: 'endTime'
1307
1326
  property :description, as: 'description'
1308
1327
  end
1309
1328
  end
1329
+
1330
+ class RuntimeMetadata
1331
+ # @private
1332
+ class Representation < Google::Apis::Core::JsonRepresentation
1333
+ property :compute_engine, as: 'computeEngine', class: Google::Apis::GenomicsV1::ComputeEngine, decorator: Google::Apis::GenomicsV1::ComputeEngine::Representation
1334
+
1335
+ end
1336
+ end
1337
+
1338
+ class ComputeEngine
1339
+ # @private
1340
+ class Representation < Google::Apis::Core::JsonRepresentation
1341
+ property :instance_name, as: 'instanceName'
1342
+ property :zone, as: 'zone'
1343
+ property :machine_type, as: 'machineType'
1344
+ collection :disk_names, as: 'diskNames'
1345
+ end
1346
+ end
1310
1347
  end
1311
1348
  end
1312
1349
  end
@@ -22,9 +22,7 @@ module Google
22
22
  module GenomicsV1
23
23
  # Genomics API
24
24
  #
25
- # Stores, processes, explores and shares genomic data. This API implements the
26
- # Global Alliance for Genomics and Health (GA4GH) v0.5.1 API as well as several
27
- # extensions.
25
+ # Stores, processes, explores and shares genomic data.
28
26
  #
29
27
  # @example
30
28
  # require 'google/apis/genomics_v1'
@@ -432,7 +430,7 @@ module Google
432
430
  # genomics resources, see [Fundamentals of Google Genomics](https://cloud.google.
433
431
  # com/genomics/fundamentals-of-google-genomics)
434
432
  # @param [String] project_id
435
- # Required. The project to list datasets for.
433
+ # Required. The Google Cloud project ID to list datasets for.
436
434
  # @param [Fixnum] page_size
437
435
  # The maximum number of results to return in a single page. If unspecified,
438
436
  # defaults to 50. The maximum value is 1024.
@@ -757,10 +755,22 @@ module Google
757
755
  execute_or_queue_command(command, &block)
758
756
  end
759
757
 
760
- # Gets the latest state of a long-running operation. Clients can use this method
761
- # to poll the operation result at intervals as recommended by the API service.
758
+ # Lists operations that match the specified filter in the request.
762
759
  # @param [String] name
763
- # The name of the operation resource.
760
+ # The name of the operation collection.
761
+ # @param [String] filter
762
+ # A string for filtering Operations. The following filter fields are supported: *
763
+ # projectId: Required. Corresponds to OperationMetadata.projectId. * createTime:
764
+ # The time this job was created, in seconds from the [epoch](http://en.
765
+ # wikipedia.org/wiki/Unix_time). Can use `>=` and/or `= 1432140000` * `projectId
766
+ # = my-project AND createTime >= 1432140000 AND createTime <= 1432150000 AND
767
+ # status = RUNNING` * `projectId = my-project AND labels.color = *` * `projectId
768
+ # = my-project AND labels.color = red`
769
+ # @param [Fixnum] page_size
770
+ # The maximum number of results to return. If unspecified, defaults to 256. The
771
+ # maximum value is 2048.
772
+ # @param [String] page_token
773
+ # The standard list page token.
764
774
  # @param [String] fields
765
775
  # Selector specifying which fields to include in a partial response.
766
776
  # @param [String] quota_user
@@ -770,39 +780,31 @@ module Google
770
780
  # Request-specific options
771
781
  #
772
782
  # @yield [result, err] Result & error if block supplied
773
- # @yieldparam result [Google::Apis::GenomicsV1::Operation] parsed result object
783
+ # @yieldparam result [Google::Apis::GenomicsV1::ListOperationsResponse] parsed result object
774
784
  # @yieldparam err [StandardError] error object if request failed
775
785
  #
776
- # @return [Google::Apis::GenomicsV1::Operation]
786
+ # @return [Google::Apis::GenomicsV1::ListOperationsResponse]
777
787
  #
778
788
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
779
789
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
780
790
  # @raise [Google::Apis::AuthorizationError] Authorization is required
781
- def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
791
+ def list_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
782
792
  command = make_simple_command(:get, 'v1/{+name}', options)
783
- command.response_representation = Google::Apis::GenomicsV1::Operation::Representation
784
- command.response_class = Google::Apis::GenomicsV1::Operation
793
+ command.response_representation = Google::Apis::GenomicsV1::ListOperationsResponse::Representation
794
+ command.response_class = Google::Apis::GenomicsV1::ListOperationsResponse
785
795
  command.params['name'] = name unless name.nil?
796
+ command.query['filter'] = filter unless filter.nil?
797
+ command.query['pageSize'] = page_size unless page_size.nil?
798
+ command.query['pageToken'] = page_token unless page_token.nil?
786
799
  command.query['fields'] = fields unless fields.nil?
787
800
  command.query['quotaUser'] = quota_user unless quota_user.nil?
788
801
  execute_or_queue_command(command, &block)
789
802
  end
790
803
 
791
- # Lists operations that match the specified filter in the request.
804
+ # Gets the latest state of a long-running operation. Clients can use this method
805
+ # to poll the operation result at intervals as recommended by the API service.
792
806
  # @param [String] name
793
- # The name of the operation collection.
794
- # @param [String] filter
795
- # A string for filtering Operations. The following filter fields are supported: *
796
- # projectId: Required. Corresponds to OperationMetadata.projectId. * createTime:
797
- # The time this job was created, in seconds from the [epoch](http://en.
798
- # wikipedia.org/wiki/Unix_time). Can use `>=` and/or `= 1432140000` * `projectId
799
- # = my-project AND createTime >= 1432140000 AND createTime <= 1432150000 AND
800
- # status = RUNNING`
801
- # @param [Fixnum] page_size
802
- # The maximum number of results to return. If unspecified, defaults to 256. The
803
- # maximum value is 2048.
804
- # @param [String] page_token
805
- # The standard list page token.
807
+ # The name of the operation resource.
806
808
  # @param [String] fields
807
809
  # Selector specifying which fields to include in a partial response.
808
810
  # @param [String] quota_user
@@ -812,22 +814,19 @@ module Google
812
814
  # Request-specific options
813
815
  #
814
816
  # @yield [result, err] Result & error if block supplied
815
- # @yieldparam result [Google::Apis::GenomicsV1::ListOperationsResponse] parsed result object
817
+ # @yieldparam result [Google::Apis::GenomicsV1::Operation] parsed result object
816
818
  # @yieldparam err [StandardError] error object if request failed
817
819
  #
818
- # @return [Google::Apis::GenomicsV1::ListOperationsResponse]
820
+ # @return [Google::Apis::GenomicsV1::Operation]
819
821
  #
820
822
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
821
823
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
822
824
  # @raise [Google::Apis::AuthorizationError] Authorization is required
823
- def list_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
825
+ def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
824
826
  command = make_simple_command(:get, 'v1/{+name}', options)
825
- command.response_representation = Google::Apis::GenomicsV1::ListOperationsResponse::Representation
826
- command.response_class = Google::Apis::GenomicsV1::ListOperationsResponse
827
+ command.response_representation = Google::Apis::GenomicsV1::Operation::Representation
828
+ command.response_class = Google::Apis::GenomicsV1::Operation
827
829
  command.params['name'] = name unless name.nil?
828
- command.query['filter'] = filter unless filter.nil?
829
- command.query['pageSize'] = page_size unless page_size.nil?
830
- command.query['pageToken'] = page_token unless page_token.nil?
831
830
  command.query['fields'] = fields unless fields.nil?
832
831
  command.query['quotaUser'] = quota_user unless quota_user.nil?
833
832
  execute_or_queue_command(command, &block)
@@ -913,9 +912,8 @@ module Google
913
912
  # definitions of read group sets and other genomics resources, see [Fundamentals
914
913
  # of Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google-
915
914
  # genomics) Note that currently there may be some differences between exported
916
- # BAM files and the original BAM file at the time of import. See [
917
- # ImportReadGroupSets](google.genomics.v1.ReadServiceV1.ImportReadGroupSets) for
918
- # caveats.
915
+ # BAM files and the original BAM file at the time of import. See
916
+ # ImportReadGroupSets for caveats.
919
917
  # @param [String] read_group_set_id
920
918
  # Required. The ID of the read group set to export. The caller must have READ
921
919
  # access to this read group set.
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/gmail/api/
26
26
  module GmailV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160522'
28
+ REVISION = '20161019'
29
29
 
30
30
  # View and manage your mail
31
31
  AUTH_SCOPE = 'https://mail.google.com/'
@@ -39,6 +39,9 @@ module Google
39
39
  # Manage mailbox labels
40
40
  AUTH_GMAIL_LABELS = 'https://www.googleapis.com/auth/gmail.labels'
41
41
 
42
+ # View your email message metadata such as labels and headers, but not the email body
43
+ AUTH_GMAIL_METADATA = 'https://www.googleapis.com/auth/gmail.metadata'
44
+
42
45
  # View and modify but not delete your email
43
46
  AUTH_GMAIL_MODIFY = 'https://www.googleapis.com/auth/gmail.modify'
44
47
 
@@ -47,6 +50,12 @@ module Google
47
50
 
48
51
  # Send email on your behalf
49
52
  AUTH_GMAIL_SEND = 'https://www.googleapis.com/auth/gmail.send'
53
+
54
+ # Manage your basic mail settings
55
+ AUTH_GMAIL_SETTINGS_BASIC = 'https://www.googleapis.com/auth/gmail.settings.basic'
56
+
57
+ # Manage your sensitive mail settings, including who can manage your mail
58
+ AUTH_GMAIL_SETTINGS_SHARING = 'https://www.googleapis.com/auth/gmail.settings.sharing'
50
59
  end
51
60
  end
52
61
  end
@@ -22,6 +22,39 @@ module Google
22
22
  module Apis
23
23
  module GmailV1
24
24
 
25
+ # Auto-forwarding settings for an account.
26
+ class AutoForwarding
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # The state that a message should be left in after it has been forwarded.
30
+ # Corresponds to the JSON property `disposition`
31
+ # @return [String]
32
+ attr_accessor :disposition
33
+
34
+ # Email address to which all incoming messages are forwarded. This email address
35
+ # must be a verified member of the forwarding addresses.
36
+ # Corresponds to the JSON property `emailAddress`
37
+ # @return [String]
38
+ attr_accessor :email_address
39
+
40
+ # Whether all incoming mail is automatically forwarded to another address.
41
+ # Corresponds to the JSON property `enabled`
42
+ # @return [Boolean]
43
+ attr_accessor :enabled
44
+ alias_method :enabled?, :enabled
45
+
46
+ def initialize(**args)
47
+ update!(**args)
48
+ end
49
+
50
+ # Update properties of this object
51
+ def update!(**args)
52
+ @disposition = args[:disposition] if args.key?(:disposition)
53
+ @email_address = args[:email_address] if args.key?(:email_address)
54
+ @enabled = args[:enabled] if args.key?(:enabled)
55
+ end
56
+ end
57
+
25
58
  #
26
59
  class BatchDeleteMessagesRequest
27
60
  include Google::Apis::Core::Hashable
@@ -66,6 +99,173 @@ module Google
66
99
  end
67
100
  end
68
101
 
102
+ # Resource definition for Gmail filters. Filters apply to specific messages
103
+ # instead of an entire email thread.
104
+ class Filter
105
+ include Google::Apis::Core::Hashable
106
+
107
+ # A set of actions to perform on a message.
108
+ # Corresponds to the JSON property `action`
109
+ # @return [Google::Apis::GmailV1::FilterAction]
110
+ attr_accessor :action
111
+
112
+ # Message matching criteria.
113
+ # Corresponds to the JSON property `criteria`
114
+ # @return [Google::Apis::GmailV1::FilterCriteria]
115
+ attr_accessor :criteria
116
+
117
+ # The server assigned ID of the filter.
118
+ # Corresponds to the JSON property `id`
119
+ # @return [String]
120
+ attr_accessor :id
121
+
122
+ def initialize(**args)
123
+ update!(**args)
124
+ end
125
+
126
+ # Update properties of this object
127
+ def update!(**args)
128
+ @action = args[:action] if args.key?(:action)
129
+ @criteria = args[:criteria] if args.key?(:criteria)
130
+ @id = args[:id] if args.key?(:id)
131
+ end
132
+ end
133
+
134
+ # A set of actions to perform on a message.
135
+ class FilterAction
136
+ include Google::Apis::Core::Hashable
137
+
138
+ # List of labels to add to the message.
139
+ # Corresponds to the JSON property `addLabelIds`
140
+ # @return [Array<String>]
141
+ attr_accessor :add_label_ids
142
+
143
+ # Email address that the message should be forwarded to.
144
+ # Corresponds to the JSON property `forward`
145
+ # @return [String]
146
+ attr_accessor :forward
147
+
148
+ # List of labels to remove from the message.
149
+ # Corresponds to the JSON property `removeLabelIds`
150
+ # @return [Array<String>]
151
+ attr_accessor :remove_label_ids
152
+
153
+ def initialize(**args)
154
+ update!(**args)
155
+ end
156
+
157
+ # Update properties of this object
158
+ def update!(**args)
159
+ @add_label_ids = args[:add_label_ids] if args.key?(:add_label_ids)
160
+ @forward = args[:forward] if args.key?(:forward)
161
+ @remove_label_ids = args[:remove_label_ids] if args.key?(:remove_label_ids)
162
+ end
163
+ end
164
+
165
+ # Message matching criteria.
166
+ class FilterCriteria
167
+ include Google::Apis::Core::Hashable
168
+
169
+ # Whether the response should exclude chats.
170
+ # Corresponds to the JSON property `excludeChats`
171
+ # @return [Boolean]
172
+ attr_accessor :exclude_chats
173
+ alias_method :exclude_chats?, :exclude_chats
174
+
175
+ # The sender's display name or email address.
176
+ # Corresponds to the JSON property `from`
177
+ # @return [String]
178
+ attr_accessor :from
179
+
180
+ # Whether the message has any attachment.
181
+ # Corresponds to the JSON property `hasAttachment`
182
+ # @return [Boolean]
183
+ attr_accessor :has_attachment
184
+ alias_method :has_attachment?, :has_attachment
185
+
186
+ # Only return messages not matching the specified query. Supports the same query
187
+ # format as the Gmail search box. For example, "from:someuser@example.com
188
+ # rfc822msgid: is:unread".
189
+ # Corresponds to the JSON property `negatedQuery`
190
+ # @return [String]
191
+ attr_accessor :negated_query
192
+
193
+ # Only return messages matching the specified query. Supports the same query
194
+ # format as the Gmail search box. For example, "from:someuser@example.com
195
+ # rfc822msgid: is:unread".
196
+ # Corresponds to the JSON property `query`
197
+ # @return [String]
198
+ attr_accessor :query
199
+
200
+ # The size of the entire RFC822 message in bytes, including all headers and
201
+ # attachments.
202
+ # Corresponds to the JSON property `size`
203
+ # @return [Fixnum]
204
+ attr_accessor :size
205
+
206
+ # How the message size in bytes should be in relation to the size field.
207
+ # Corresponds to the JSON property `sizeComparison`
208
+ # @return [String]
209
+ attr_accessor :size_comparison
210
+
211
+ # Case-insensitive phrase found in the message's subject. Trailing and leading
212
+ # whitespace are be trimmed and adjacent spaces are collapsed.
213
+ # Corresponds to the JSON property `subject`
214
+ # @return [String]
215
+ attr_accessor :subject
216
+
217
+ # The recipient's display name or email address. Includes recipients in the "to",
218
+ # "cc", and "bcc" header fields. You can use simply the local part of the email
219
+ # address. For example, "example" and "example@" both match "example@gmail.com".
220
+ # This field is case-insensitive.
221
+ # Corresponds to the JSON property `to`
222
+ # @return [String]
223
+ attr_accessor :to
224
+
225
+ def initialize(**args)
226
+ update!(**args)
227
+ end
228
+
229
+ # Update properties of this object
230
+ def update!(**args)
231
+ @exclude_chats = args[:exclude_chats] if args.key?(:exclude_chats)
232
+ @from = args[:from] if args.key?(:from)
233
+ @has_attachment = args[:has_attachment] if args.key?(:has_attachment)
234
+ @negated_query = args[:negated_query] if args.key?(:negated_query)
235
+ @query = args[:query] if args.key?(:query)
236
+ @size = args[:size] if args.key?(:size)
237
+ @size_comparison = args[:size_comparison] if args.key?(:size_comparison)
238
+ @subject = args[:subject] if args.key?(:subject)
239
+ @to = args[:to] if args.key?(:to)
240
+ end
241
+ end
242
+
243
+ # Settings for a forwarding address.
244
+ class ForwardingAddress
245
+ include Google::Apis::Core::Hashable
246
+
247
+ # An email address to which messages can be forwarded.
248
+ # Corresponds to the JSON property `forwardingEmail`
249
+ # @return [String]
250
+ attr_accessor :forwarding_email
251
+
252
+ # Indicates whether this address has been verified and is usable for forwarding.
253
+ # Read-only.
254
+ # Corresponds to the JSON property `verificationStatus`
255
+ # @return [String]
256
+ attr_accessor :verification_status
257
+
258
+ def initialize(**args)
259
+ update!(**args)
260
+ end
261
+
262
+ # Update properties of this object
263
+ def update!(**args)
264
+ @forwarding_email = args[:forwarding_email] if args.key?(:forwarding_email)
265
+ @verification_status = args[:verification_status] if args.key?(:verification_status)
266
+ end
267
+ end
268
+
69
269
  # A record of a change to the user's mailbox. Each history change may affect
70
270
  # multiple messages in multiple ways.
71
271
  class History
@@ -206,6 +406,50 @@ module Google
206
406
  end
207
407
  end
208
408
 
409
+ # IMAP settings for an account.
410
+ class ImapSettings
411
+ include Google::Apis::Core::Hashable
412
+
413
+ # If this value is true, Gmail will immediately expunge a message when it is
414
+ # marked as deleted in IMAP. Otherwise, Gmail will wait for an update from the
415
+ # client before expunging messages marked as deleted.
416
+ # Corresponds to the JSON property `autoExpunge`
417
+ # @return [Boolean]
418
+ attr_accessor :auto_expunge
419
+ alias_method :auto_expunge?, :auto_expunge
420
+
421
+ # Whether IMAP is enabled for the account.
422
+ # Corresponds to the JSON property `enabled`
423
+ # @return [Boolean]
424
+ attr_accessor :enabled
425
+ alias_method :enabled?, :enabled
426
+
427
+ # The action that will be executed on a message when it is marked as deleted and
428
+ # expunged from the last visible IMAP folder.
429
+ # Corresponds to the JSON property `expungeBehavior`
430
+ # @return [String]
431
+ attr_accessor :expunge_behavior
432
+
433
+ # An optional limit on the number of messages that an IMAP folder may contain.
434
+ # Legal values are 0, 1000, 2000, 5000 or 10000. A value of zero is interpreted
435
+ # to mean that there is no limit.
436
+ # Corresponds to the JSON property `maxFolderSize`
437
+ # @return [Fixnum]
438
+ attr_accessor :max_folder_size
439
+
440
+ def initialize(**args)
441
+ update!(**args)
442
+ end
443
+
444
+ # Update properties of this object
445
+ def update!(**args)
446
+ @auto_expunge = args[:auto_expunge] if args.key?(:auto_expunge)
447
+ @enabled = args[:enabled] if args.key?(:enabled)
448
+ @expunge_behavior = args[:expunge_behavior] if args.key?(:expunge_behavior)
449
+ @max_folder_size = args[:max_folder_size] if args.key?(:max_folder_size)
450
+ end
451
+ end
452
+
209
453
  # Labels are used to categorize messages and threads within the user's mailbox.
210
454
  class Label
211
455
  include Google::Apis::Core::Hashable
@@ -311,6 +555,44 @@ module Google
311
555
  end
312
556
  end
313
557
 
558
+ # Response for the ListFilters method.
559
+ class ListFiltersResponse
560
+ include Google::Apis::Core::Hashable
561
+
562
+ # List of a user's filters.
563
+ # Corresponds to the JSON property `filter`
564
+ # @return [Array<Google::Apis::GmailV1::Filter>]
565
+ attr_accessor :filter
566
+
567
+ def initialize(**args)
568
+ update!(**args)
569
+ end
570
+
571
+ # Update properties of this object
572
+ def update!(**args)
573
+ @filter = args[:filter] if args.key?(:filter)
574
+ end
575
+ end
576
+
577
+ # Response for the ListForwardingAddresses method.
578
+ class ListForwardingAddressesResponse
579
+ include Google::Apis::Core::Hashable
580
+
581
+ # List of addresses that may be used for forwarding.
582
+ # Corresponds to the JSON property `forwardingAddresses`
583
+ # @return [Array<Google::Apis::GmailV1::ForwardingAddress>]
584
+ attr_accessor :forwarding_addresses
585
+
586
+ def initialize(**args)
587
+ update!(**args)
588
+ end
589
+
590
+ # Update properties of this object
591
+ def update!(**args)
592
+ @forwarding_addresses = args[:forwarding_addresses] if args.key?(:forwarding_addresses)
593
+ end
594
+ end
595
+
314
596
  #
315
597
  class ListHistoryResponse
316
598
  include Google::Apis::Core::Hashable
@@ -393,6 +675,25 @@ module Google
393
675
  end
394
676
  end
395
677
 
678
+ # Response for the ListSendAs method.
679
+ class ListSendAsResponse
680
+ include Google::Apis::Core::Hashable
681
+
682
+ # List of send-as aliases.
683
+ # Corresponds to the JSON property `sendAs`
684
+ # @return [Array<Google::Apis::GmailV1::SendAs>]
685
+ attr_accessor :send_as
686
+
687
+ def initialize(**args)
688
+ update!(**args)
689
+ end
690
+
691
+ # Update properties of this object
692
+ def update!(**args)
693
+ @send_as = args[:send_as] if args.key?(:send_as)
694
+ end
695
+ end
696
+
396
697
  #
397
698
  class ListThreadsResponse
398
699
  include Google::Apis::Core::Hashable
@@ -569,10 +870,10 @@ module Google
569
870
  # @return [String]
570
871
  attr_accessor :attachment_id
571
872
 
572
- # The body data of a MIME message part. May be empty for MIME container types
573
- # that have no message body or when the body data is sent as a separate
574
- # attachment. An attachment ID is present if the body data is contained in a
575
- # separate attachment.
873
+ # The body data of a MIME message part as a base64url encoded string. May be
874
+ # empty for MIME container types that have no message body or when the body data
875
+ # is sent as a separate attachment. An attachment ID is present if the body data
876
+ # is contained in a separate attachment.
576
877
  # Corresponds to the JSON property `data`
577
878
  # @return [String]
578
879
  attr_accessor :data
@@ -670,6 +971,32 @@ module Google
670
971
  end
671
972
  end
672
973
 
974
+ # POP settings for an account.
975
+ class PopSettings
976
+ include Google::Apis::Core::Hashable
977
+
978
+ # The range of messages which are accessible via POP.
979
+ # Corresponds to the JSON property `accessWindow`
980
+ # @return [String]
981
+ attr_accessor :access_window
982
+
983
+ # The action that will be executed on a message after it has been fetched via
984
+ # POP.
985
+ # Corresponds to the JSON property `disposition`
986
+ # @return [String]
987
+ attr_accessor :disposition
988
+
989
+ def initialize(**args)
990
+ update!(**args)
991
+ end
992
+
993
+ # Update properties of this object
994
+ def update!(**args)
995
+ @access_window = args[:access_window] if args.key?(:access_window)
996
+ @disposition = args[:disposition] if args.key?(:disposition)
997
+ end
998
+ end
999
+
673
1000
  # Profile for a Gmail user.
674
1001
  class Profile
675
1002
  include Google::Apis::Core::Hashable
@@ -707,6 +1034,142 @@ module Google
707
1034
  end
708
1035
  end
709
1036
 
1037
+ # Settings associated with a send-as alias, which can be either the primary
1038
+ # login address associated with the account or a custom "from" address. Send-as
1039
+ # aliases correspond to the "Send Mail As" feature in the web interface.
1040
+ class SendAs
1041
+ include Google::Apis::Core::Hashable
1042
+
1043
+ # A name that appears in the "From:" header for mail sent using this alias. For
1044
+ # custom "from" addresses, when this is empty, Gmail will populate the "From:"
1045
+ # header with the name that is used for the primary address associated with the
1046
+ # account.
1047
+ # Corresponds to the JSON property `displayName`
1048
+ # @return [String]
1049
+ attr_accessor :display_name
1050
+
1051
+ # Whether this address is selected as the default "From:" address in situations
1052
+ # such as composing a new message or sending a vacation auto-reply. Every Gmail
1053
+ # account has exactly one default send-as address, so the only legal value that
1054
+ # clients may write to this field is true. Changing this from false to true for
1055
+ # an address will result in this field becoming false for the other previous
1056
+ # default address.
1057
+ # Corresponds to the JSON property `isDefault`
1058
+ # @return [Boolean]
1059
+ attr_accessor :is_default
1060
+ alias_method :is_default?, :is_default
1061
+
1062
+ # Whether this address is the primary address used to login to the account.
1063
+ # Every Gmail account has exactly one primary address, and it cannot be deleted
1064
+ # from the collection of send-as aliases. This field is read-only.
1065
+ # Corresponds to the JSON property `isPrimary`
1066
+ # @return [Boolean]
1067
+ attr_accessor :is_primary
1068
+ alias_method :is_primary?, :is_primary
1069
+
1070
+ # An optional email address that is included in a "Reply-To:" header for mail
1071
+ # sent using this alias. If this is empty, Gmail will not generate a "Reply-To:"
1072
+ # header.
1073
+ # Corresponds to the JSON property `replyToAddress`
1074
+ # @return [String]
1075
+ attr_accessor :reply_to_address
1076
+
1077
+ # The email address that appears in the "From:" header for mail sent using this
1078
+ # alias. This is read-only for all operations except create.
1079
+ # Corresponds to the JSON property `sendAsEmail`
1080
+ # @return [String]
1081
+ attr_accessor :send_as_email
1082
+
1083
+ # An optional HTML signature that is included in messages composed with this
1084
+ # alias in the Gmail web UI.
1085
+ # Corresponds to the JSON property `signature`
1086
+ # @return [String]
1087
+ attr_accessor :signature
1088
+
1089
+ # Configuration for communication with an SMTP service.
1090
+ # Corresponds to the JSON property `smtpMsa`
1091
+ # @return [Google::Apis::GmailV1::SmtpMsa]
1092
+ attr_accessor :smtp_msa
1093
+
1094
+ # Whether Gmail should treat this address as an alias for the user's primary
1095
+ # email address. This setting only applies to custom "from" aliases.
1096
+ # Corresponds to the JSON property `treatAsAlias`
1097
+ # @return [Boolean]
1098
+ attr_accessor :treat_as_alias
1099
+ alias_method :treat_as_alias?, :treat_as_alias
1100
+
1101
+ # Indicates whether this address has been verified for use as a send-as alias.
1102
+ # Read-only. This setting only applies to custom "from" aliases.
1103
+ # Corresponds to the JSON property `verificationStatus`
1104
+ # @return [String]
1105
+ attr_accessor :verification_status
1106
+
1107
+ def initialize(**args)
1108
+ update!(**args)
1109
+ end
1110
+
1111
+ # Update properties of this object
1112
+ def update!(**args)
1113
+ @display_name = args[:display_name] if args.key?(:display_name)
1114
+ @is_default = args[:is_default] if args.key?(:is_default)
1115
+ @is_primary = args[:is_primary] if args.key?(:is_primary)
1116
+ @reply_to_address = args[:reply_to_address] if args.key?(:reply_to_address)
1117
+ @send_as_email = args[:send_as_email] if args.key?(:send_as_email)
1118
+ @signature = args[:signature] if args.key?(:signature)
1119
+ @smtp_msa = args[:smtp_msa] if args.key?(:smtp_msa)
1120
+ @treat_as_alias = args[:treat_as_alias] if args.key?(:treat_as_alias)
1121
+ @verification_status = args[:verification_status] if args.key?(:verification_status)
1122
+ end
1123
+ end
1124
+
1125
+ # Configuration for communication with an SMTP service.
1126
+ class SmtpMsa
1127
+ include Google::Apis::Core::Hashable
1128
+
1129
+ # The hostname of the SMTP service. Required.
1130
+ # Corresponds to the JSON property `host`
1131
+ # @return [String]
1132
+ attr_accessor :host
1133
+
1134
+ # The password that will be used for authentication with the SMTP service. This
1135
+ # is a write-only field that can be specified in requests to create or update
1136
+ # SendAs settings; it is never populated in responses.
1137
+ # Corresponds to the JSON property `password`
1138
+ # @return [String]
1139
+ attr_accessor :password
1140
+
1141
+ # The port of the SMTP service. Required.
1142
+ # Corresponds to the JSON property `port`
1143
+ # @return [Fixnum]
1144
+ attr_accessor :port
1145
+
1146
+ # The protocol that will be used to secure communication with the SMTP service.
1147
+ # Required.
1148
+ # Corresponds to the JSON property `securityMode`
1149
+ # @return [String]
1150
+ attr_accessor :security_mode
1151
+
1152
+ # The username that will be used for authentication with the SMTP service. This
1153
+ # is a write-only field that can be specified in requests to create or update
1154
+ # SendAs settings; it is never populated in responses.
1155
+ # Corresponds to the JSON property `username`
1156
+ # @return [String]
1157
+ attr_accessor :username
1158
+
1159
+ def initialize(**args)
1160
+ update!(**args)
1161
+ end
1162
+
1163
+ # Update properties of this object
1164
+ def update!(**args)
1165
+ @host = args[:host] if args.key?(:host)
1166
+ @password = args[:password] if args.key?(:password)
1167
+ @port = args[:port] if args.key?(:port)
1168
+ @security_mode = args[:security_mode] if args.key?(:security_mode)
1169
+ @username = args[:username] if args.key?(:username)
1170
+ end
1171
+ end
1172
+
710
1173
  # A collection of messages representing a conversation.
711
1174
  class Thread
712
1175
  include Google::Apis::Core::Hashable
@@ -744,6 +1207,81 @@ module Google
744
1207
  end
745
1208
  end
746
1209
 
1210
+ # Vacation auto-reply settings for an account. These settings correspond to the "
1211
+ # Vacation responder" feature in the web interface.
1212
+ class VacationSettings
1213
+ include Google::Apis::Core::Hashable
1214
+
1215
+ # Flag that controls whether Gmail automatically replies to messages.
1216
+ # Corresponds to the JSON property `enableAutoReply`
1217
+ # @return [Boolean]
1218
+ attr_accessor :enable_auto_reply
1219
+ alias_method :enable_auto_reply?, :enable_auto_reply
1220
+
1221
+ # An optional end time for sending auto-replies (epoch ms). When this is
1222
+ # specified, Gmail will automatically reply only to messages that it receives
1223
+ # before the end time. If both startTime and endTime are specified, startTime
1224
+ # must precede endTime.
1225
+ # Corresponds to the JSON property `endTime`
1226
+ # @return [String]
1227
+ attr_accessor :end_time
1228
+
1229
+ # Response body in HTML format. Gmail will sanitize the HTML before storing it.
1230
+ # Corresponds to the JSON property `responseBodyHtml`
1231
+ # @return [String]
1232
+ attr_accessor :response_body_html
1233
+
1234
+ # Response body in plain text format.
1235
+ # Corresponds to the JSON property `responseBodyPlainText`
1236
+ # @return [String]
1237
+ attr_accessor :response_body_plain_text
1238
+
1239
+ # Optional text to prepend to the subject line in vacation responses. In order
1240
+ # to enable auto-replies, either the response subject or the response body must
1241
+ # be nonempty.
1242
+ # Corresponds to the JSON property `responseSubject`
1243
+ # @return [String]
1244
+ attr_accessor :response_subject
1245
+
1246
+ # Flag that determines whether responses are sent to recipients who are not in
1247
+ # the user's list of contacts.
1248
+ # Corresponds to the JSON property `restrictToContacts`
1249
+ # @return [Boolean]
1250
+ attr_accessor :restrict_to_contacts
1251
+ alias_method :restrict_to_contacts?, :restrict_to_contacts
1252
+
1253
+ # Flag that determines whether responses are sent to recipients who are outside
1254
+ # of the user's domain. This feature is only available for Google Apps users.
1255
+ # Corresponds to the JSON property `restrictToDomain`
1256
+ # @return [Boolean]
1257
+ attr_accessor :restrict_to_domain
1258
+ alias_method :restrict_to_domain?, :restrict_to_domain
1259
+
1260
+ # An optional start time for sending auto-replies (epoch ms). When this is
1261
+ # specified, Gmail will automatically reply only to messages that it receives
1262
+ # after the start time. If both startTime and endTime are specified, startTime
1263
+ # must precede endTime.
1264
+ # Corresponds to the JSON property `startTime`
1265
+ # @return [String]
1266
+ attr_accessor :start_time
1267
+
1268
+ def initialize(**args)
1269
+ update!(**args)
1270
+ end
1271
+
1272
+ # Update properties of this object
1273
+ def update!(**args)
1274
+ @enable_auto_reply = args[:enable_auto_reply] if args.key?(:enable_auto_reply)
1275
+ @end_time = args[:end_time] if args.key?(:end_time)
1276
+ @response_body_html = args[:response_body_html] if args.key?(:response_body_html)
1277
+ @response_body_plain_text = args[:response_body_plain_text] if args.key?(:response_body_plain_text)
1278
+ @response_subject = args[:response_subject] if args.key?(:response_subject)
1279
+ @restrict_to_contacts = args[:restrict_to_contacts] if args.key?(:restrict_to_contacts)
1280
+ @restrict_to_domain = args[:restrict_to_domain] if args.key?(:restrict_to_domain)
1281
+ @start_time = args[:start_time] if args.key?(:start_time)
1282
+ end
1283
+ end
1284
+
747
1285
  # Set up or update a new push notification watch on this user's mailbox.
748
1286
  class WatchRequest
749
1287
  include Google::Apis::Core::Hashable