google-api-client 0.40.1 → 0.40.2

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 (164) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +65 -0
  3. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  4. data/generated/google/apis/androidpublisher_v3.rb +3 -3
  5. data/generated/google/apis/androidpublisher_v3/classes.rb +468 -750
  6. data/generated/google/apis/androidpublisher_v3/representations.rb +9 -202
  7. data/generated/google/apis/androidpublisher_v3/service.rb +531 -863
  8. data/generated/google/apis/apigee_v1.rb +1 -1
  9. data/generated/google/apis/apigee_v1/classes.rb +12 -6
  10. data/generated/google/apis/apigee_v1/representations.rb +1 -0
  11. data/generated/google/apis/appsmarket_v2.rb +1 -1
  12. data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
  13. data/generated/google/apis/artifactregistry_v1beta1/classes.rb +113 -0
  14. data/generated/google/apis/artifactregistry_v1beta1/representations.rb +61 -0
  15. data/generated/google/apis/bigquery_v2.rb +1 -1
  16. data/generated/google/apis/bigquery_v2/classes.rb +15 -7
  17. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  18. data/generated/google/apis/binaryauthorization_v1/classes.rb +1 -4
  19. data/generated/google/apis/books_v1.rb +1 -1
  20. data/generated/google/apis/books_v1/service.rb +2 -2
  21. data/generated/google/apis/cloudasset_v1.rb +1 -1
  22. data/generated/google/apis/cloudasset_v1/classes.rb +25 -342
  23. data/generated/google/apis/cloudasset_v1/representations.rb +1 -96
  24. data/generated/google/apis/cloudasset_v1/service.rb +11 -186
  25. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  26. data/generated/google/apis/cloudasset_v1beta1/classes.rb +6 -6
  27. data/generated/google/apis/cloudasset_v1beta1/service.rb +4 -4
  28. data/generated/google/apis/cloudasset_v1p1beta1.rb +1 -1
  29. data/generated/google/apis/cloudasset_v1p1beta1/classes.rb +6 -6
  30. data/generated/google/apis/cloudasset_v1p1beta1/service.rb +15 -16
  31. data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
  32. data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +26 -8
  33. data/generated/google/apis/cloudasset_v1p4beta1/service.rb +24 -3
  34. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  35. data/generated/google/apis/cloudbuild_v1/classes.rb +2 -2
  36. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  37. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +2 -2
  38. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  39. data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +2 -2
  40. data/generated/google/apis/cloudkms_v1.rb +1 -1
  41. data/generated/google/apis/cloudkms_v1/classes.rb +7 -7
  42. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  43. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +6 -6
  44. data/generated/google/apis/cloudresourcemanager_v1/service.rb +6 -8
  45. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  46. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +6 -6
  47. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +8 -8
  48. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  49. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +6 -6
  50. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  51. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +6 -6
  52. data/generated/google/apis/compute_alpha.rb +1 -1
  53. data/generated/google/apis/compute_alpha/classes.rb +91 -3
  54. data/generated/google/apis/compute_alpha/representations.rb +36 -0
  55. data/generated/google/apis/compute_beta.rb +1 -1
  56. data/generated/google/apis/compute_beta/classes.rb +15 -3
  57. data/generated/google/apis/compute_beta/representations.rb +2 -0
  58. data/generated/google/apis/compute_v1.rb +1 -1
  59. data/generated/google/apis/compute_v1/classes.rb +3 -3
  60. data/generated/google/apis/datafusion_v1beta1.rb +1 -1
  61. data/generated/google/apis/datafusion_v1beta1/classes.rb +64 -19
  62. data/generated/google/apis/datafusion_v1beta1/representations.rb +16 -0
  63. data/generated/google/apis/datafusion_v1beta1/service.rb +49 -2
  64. data/generated/google/apis/displayvideo_v1.rb +1 -1
  65. data/generated/google/apis/displayvideo_v1/classes.rb +1 -1
  66. data/generated/google/apis/displayvideo_v1/service.rb +4 -0
  67. data/generated/google/apis/dlp_v2.rb +1 -1
  68. data/generated/google/apis/dlp_v2/classes.rb +8 -6
  69. data/generated/google/apis/dlp_v2/service.rb +170 -64
  70. data/generated/google/apis/fcm_v1.rb +1 -1
  71. data/generated/google/apis/file_v1.rb +1 -1
  72. data/generated/google/apis/file_v1beta1.rb +1 -1
  73. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  74. data/generated/google/apis/genomics_v2alpha1/classes.rb +84 -0
  75. data/generated/google/apis/genomics_v2alpha1/representations.rb +28 -0
  76. data/generated/google/apis/genomics_v2alpha1/service.rb +38 -2
  77. data/generated/google/apis/gmail_v1.rb +3 -2
  78. data/generated/google/apis/gmail_v1/classes.rb +263 -200
  79. data/generated/google/apis/gmail_v1/service.rb +551 -743
  80. data/generated/google/apis/groupsmigration_v1.rb +3 -2
  81. data/generated/google/apis/groupsmigration_v1/service.rb +10 -17
  82. data/generated/google/apis/iam_v1.rb +1 -1
  83. data/generated/google/apis/iam_v1/classes.rb +87 -81
  84. data/generated/google/apis/iam_v1/service.rb +163 -148
  85. data/generated/google/apis/iamcredentials_v1.rb +1 -1
  86. data/generated/google/apis/iamcredentials_v1/classes.rb +4 -3
  87. data/generated/google/apis/jobs_v3.rb +1 -1
  88. data/generated/google/apis/jobs_v3/classes.rb +4 -2
  89. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  90. data/generated/google/apis/jobs_v3p1beta1/classes.rb +4 -2
  91. data/generated/google/apis/memcache_v1beta2.rb +1 -1
  92. data/generated/google/apis/memcache_v1beta2/classes.rb +6 -6
  93. data/generated/google/apis/monitoring_v1.rb +1 -1
  94. data/generated/google/apis/monitoring_v1/classes.rb +46 -0
  95. data/generated/google/apis/monitoring_v1/representations.rb +18 -0
  96. data/generated/google/apis/monitoring_v3.rb +1 -1
  97. data/generated/google/apis/monitoring_v3/classes.rb +10 -0
  98. data/generated/google/apis/monitoring_v3/representations.rb +1 -0
  99. data/generated/google/apis/osconfig_v1.rb +1 -1
  100. data/generated/google/apis/osconfig_v1/classes.rb +2 -2
  101. data/generated/google/apis/osconfig_v1beta.rb +1 -1
  102. data/generated/google/apis/osconfig_v1beta/classes.rb +6 -7
  103. data/generated/google/apis/pagespeedonline_v5.rb +1 -1
  104. data/generated/google/apis/pagespeedonline_v5/classes.rb +7 -0
  105. data/generated/google/apis/pagespeedonline_v5/representations.rb +1 -0
  106. data/generated/google/apis/people_v1.rb +1 -1
  107. data/generated/google/apis/people_v1/classes.rb +118 -2
  108. data/generated/google/apis/people_v1/representations.rb +51 -0
  109. data/generated/google/apis/people_v1/service.rb +336 -67
  110. data/generated/google/apis/playcustomapp_v1.rb +3 -3
  111. data/generated/google/apis/playcustomapp_v1/classes.rb +7 -0
  112. data/generated/google/apis/playcustomapp_v1/representations.rb +1 -0
  113. data/generated/google/apis/playcustomapp_v1/service.rb +11 -19
  114. data/generated/google/apis/policytroubleshooter_v1.rb +1 -1
  115. data/generated/google/apis/policytroubleshooter_v1/classes.rb +6 -6
  116. data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
  117. data/generated/google/apis/policytroubleshooter_v1beta/classes.rb +6 -6
  118. data/generated/google/apis/pubsub_v1.rb +1 -1
  119. data/generated/google/apis/pubsub_v1/classes.rb +49 -7
  120. data/generated/google/apis/pubsub_v1/representations.rb +16 -0
  121. data/generated/google/apis/secretmanager_v1.rb +1 -1
  122. data/generated/google/apis/secretmanager_v1/classes.rb +6 -6
  123. data/generated/google/apis/secretmanager_v1beta1.rb +1 -1
  124. data/generated/google/apis/secretmanager_v1beta1/classes.rb +6 -6
  125. data/generated/google/apis/securitycenter_v1.rb +1 -1
  126. data/generated/google/apis/securitycenter_v1/classes.rb +106 -6
  127. data/generated/google/apis/securitycenter_v1/representations.rb +38 -0
  128. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  129. data/generated/google/apis/securitycenter_v1beta1/classes.rb +106 -6
  130. data/generated/google/apis/securitycenter_v1beta1/representations.rb +38 -0
  131. data/generated/google/apis/securitycenter_v1p1alpha1.rb +1 -1
  132. data/generated/google/apis/securitycenter_v1p1alpha1/classes.rb +100 -0
  133. data/generated/google/apis/securitycenter_v1p1alpha1/representations.rb +38 -0
  134. data/generated/google/apis/securitycenter_v1p1beta1.rb +1 -1
  135. data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +106 -6
  136. data/generated/google/apis/securitycenter_v1p1beta1/representations.rb +38 -0
  137. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  138. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +108 -44
  139. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +0 -1
  140. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
  141. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +114 -44
  142. data/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +1 -1
  143. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  144. data/generated/google/apis/servicemanagement_v1/classes.rb +6 -12
  145. data/generated/google/apis/servicemanagement_v1/representations.rb +0 -1
  146. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  147. data/generated/google/apis/servicenetworking_v1/classes.rb +109 -44
  148. data/generated/google/apis/servicenetworking_v1/representations.rb +0 -1
  149. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  150. data/generated/google/apis/servicenetworking_v1beta/classes.rb +109 -44
  151. data/generated/google/apis/servicenetworking_v1beta/representations.rb +0 -1
  152. data/generated/google/apis/serviceusage_v1.rb +1 -1
  153. data/generated/google/apis/serviceusage_v1/classes.rb +109 -45
  154. data/generated/google/apis/serviceusage_v1/representations.rb +0 -1
  155. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  156. data/generated/google/apis/serviceusage_v1beta1/classes.rb +115 -45
  157. data/generated/google/apis/serviceusage_v1beta1/representations.rb +1 -1
  158. data/generated/google/apis/serviceusage_v1beta1/service.rb +34 -0
  159. data/generated/google/apis/texttospeech_v1.rb +1 -1
  160. data/generated/google/apis/texttospeech_v1/classes.rb +1 -1
  161. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  162. data/generated/google/apis/texttospeech_v1beta1/classes.rb +1 -1
  163. data/lib/google/apis/version.rb +1 -1
  164. metadata +3 -3
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://firebase.google.com/docs/cloud-messaging
27
27
  module FcmV1
28
28
  VERSION = 'V1'
29
- REVISION = '20200203'
29
+ REVISION = '20200608'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/filestore/
26
26
  module FileV1
27
27
  VERSION = 'V1'
28
- REVISION = '20200602'
28
+ REVISION = '20200613'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/filestore/
26
26
  module FileV1beta1
27
27
  VERSION = 'V1beta1'
28
- REVISION = '20200602'
28
+ REVISION = '20200608'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/genomics
26
26
  module GenomicsV2alpha1
27
27
  VERSION = 'V2alpha1'
28
- REVISION = '20200330'
28
+ REVISION = '20200610'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -602,6 +602,67 @@ module Google
602
602
  end
603
603
  end
604
604
 
605
+ # Message that represents an arbitrary HTTP body. It should only be used for
606
+ # payload formats that can't be represented as JSON, such as raw binary or
607
+ # an HTML page.
608
+ # This message can be used both in streaming and non-streaming API methods in
609
+ # the request as well as the response.
610
+ # It can be used as a top-level request field, which is convenient if one
611
+ # wants to extract parameters from either the URL or HTTP template into the
612
+ # request fields and also want access to the raw HTTP body.
613
+ # Example:
614
+ # message GetResourceRequest `
615
+ # // A unique request id.
616
+ # string request_id = 1;
617
+ # // The raw HTTP body is bound to this field.
618
+ # google.api.HttpBody http_body = 2;
619
+ # `
620
+ # service ResourceService `
621
+ # rpc GetResource(GetResourceRequest) returns (google.api.HttpBody);
622
+ # rpc UpdateResource(google.api.HttpBody) returns
623
+ # (google.protobuf.Empty);
624
+ # `
625
+ # Example with streaming methods:
626
+ # service CaldavService `
627
+ # rpc GetCalendar(stream google.api.HttpBody)
628
+ # returns (stream google.api.HttpBody);
629
+ # rpc UpdateCalendar(stream google.api.HttpBody)
630
+ # returns (stream google.api.HttpBody);
631
+ # `
632
+ # Use of this type only changes how the request and response bodies are
633
+ # handled, all other features will continue to work unchanged.
634
+ class HttpBody
635
+ include Google::Apis::Core::Hashable
636
+
637
+ # The HTTP Content-Type header value specifying the content type of the body.
638
+ # Corresponds to the JSON property `contentType`
639
+ # @return [String]
640
+ attr_accessor :content_type
641
+
642
+ # The HTTP request/response body as raw binary.
643
+ # Corresponds to the JSON property `data`
644
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
645
+ # @return [String]
646
+ attr_accessor :data
647
+
648
+ # Application specific response metadata. Must be set in the first response
649
+ # for streaming APIs.
650
+ # Corresponds to the JSON property `extensions`
651
+ # @return [Array<Hash<String,Object>>]
652
+ attr_accessor :extensions
653
+
654
+ def initialize(**args)
655
+ update!(**args)
656
+ end
657
+
658
+ # Update properties of this object
659
+ def update!(**args)
660
+ @content_type = args[:content_type] if args.key?(:content_type)
661
+ @data = args[:data] if args.key?(:data)
662
+ @extensions = args[:extensions] if args.key?(:extensions)
663
+ end
664
+ end
665
+
605
666
  # The response message for Operations.ListOperations.
606
667
  class ListOperationsResponse
607
668
  include Google::Apis::Core::Hashable
@@ -1253,6 +1314,19 @@ module Google
1253
1314
  end
1254
1315
  end
1255
1316
 
1317
+ # The response to the UploadSOSReport method.
1318
+ class UploadSosReportResponse
1319
+ include Google::Apis::Core::Hashable
1320
+
1321
+ def initialize(**args)
1322
+ update!(**args)
1323
+ end
1324
+
1325
+ # Update properties of this object
1326
+ def update!(**args)
1327
+ end
1328
+ end
1329
+
1256
1330
  # Carries information about a Compute Engine VM resource.
1257
1331
  class VirtualMachine
1258
1332
  include Google::Apis::Core::Hashable
@@ -1299,6 +1373,15 @@ module Google
1299
1373
  # @return [Array<Google::Apis::GenomicsV2alpha1::Disk>]
1300
1374
  attr_accessor :disks
1301
1375
 
1376
+ # The Compute Engine Disk Images to use as a Docker cache. The disks will be
1377
+ # mounted into the Docker folder in a way that the images present in the
1378
+ # cache will not need to be pulled. The digests of the cached images must
1379
+ # match those of the tags used or the latest version will still be pulled.
1380
+ # Only a single image is supported.
1381
+ # Corresponds to the JSON property `dockerCacheImages`
1382
+ # @return [Array<String>]
1383
+ attr_accessor :docker_cache_images
1384
+
1302
1385
  # Whether Stackdriver monitoring should be enabled on the VM.
1303
1386
  # Corresponds to the JSON property `enableStackdriverMonitoring`
1304
1387
  # @return [Boolean]
@@ -1364,6 +1447,7 @@ module Google
1364
1447
  @boot_image = args[:boot_image] if args.key?(:boot_image)
1365
1448
  @cpu_platform = args[:cpu_platform] if args.key?(:cpu_platform)
1366
1449
  @disks = args[:disks] if args.key?(:disks)
1450
+ @docker_cache_images = args[:docker_cache_images] if args.key?(:docker_cache_images)
1367
1451
  @enable_stackdriver_monitoring = args[:enable_stackdriver_monitoring] if args.key?(:enable_stackdriver_monitoring)
1368
1452
  @labels = args[:labels] if args.key?(:labels)
1369
1453
  @machine_type = args[:machine_type] if args.key?(:machine_type)
@@ -112,6 +112,12 @@ module Google
112
112
  include Google::Apis::Core::JsonObjectSupport
113
113
  end
114
114
 
115
+ class HttpBody
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
115
121
  class ListOperationsResponse
116
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
123
 
@@ -226,6 +232,12 @@ module Google
226
232
  include Google::Apis::Core::JsonObjectSupport
227
233
  end
228
234
 
235
+ class UploadSosReportResponse
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
229
241
  class VirtualMachine
230
242
  class Representation < Google::Apis::Core::JsonRepresentation; end
231
243
 
@@ -391,6 +403,15 @@ module Google
391
403
  end
392
404
  end
393
405
 
406
+ class HttpBody
407
+ # @private
408
+ class Representation < Google::Apis::Core::JsonRepresentation
409
+ property :content_type, as: 'contentType'
410
+ property :data, :base64 => true, as: 'data'
411
+ collection :extensions, as: 'extensions'
412
+ end
413
+ end
414
+
394
415
  class ListOperationsResponse
395
416
  # @private
396
417
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -570,6 +591,12 @@ module Google
570
591
  end
571
592
  end
572
593
 
594
+ class UploadSosReportResponse
595
+ # @private
596
+ class Representation < Google::Apis::Core::JsonRepresentation
597
+ end
598
+ end
599
+
573
600
  class VirtualMachine
574
601
  # @private
575
602
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -580,6 +607,7 @@ module Google
580
607
  property :cpu_platform, as: 'cpuPlatform'
581
608
  collection :disks, as: 'disks', class: Google::Apis::GenomicsV2alpha1::Disk, decorator: Google::Apis::GenomicsV2alpha1::Disk::Representation
582
609
 
610
+ collection :docker_cache_images, as: 'dockerCacheImages'
583
611
  property :enable_stackdriver_monitoring, as: 'enableStackdriverMonitoring'
584
612
  hash :labels, as: 'labels'
585
613
  property :machine_type, as: 'machineType'
@@ -237,7 +237,8 @@ module Google
237
237
  # The worker uses this method to retrieve the assigned operation and
238
238
  # provide periodic status updates.
239
239
  # @param [String] id
240
- # The worker id, assigned when it was created.
240
+ # The VM identity token for authenticating the VM instance.
241
+ # https://cloud.google.com/compute/docs/instances/verifying-instance-identity
241
242
  # @param [Google::Apis::GenomicsV2alpha1::CheckInRequest] check_in_request_object
242
243
  # @param [String] fields
243
244
  # Selector specifying which fields to include in a partial response.
@@ -271,7 +272,8 @@ module Google
271
272
  # The worker uses this method to retrieve the assigned operation and
272
273
  # provide periodic status updates.
273
274
  # @param [String] id
274
- # The worker id, assigned when it was created.
275
+ # The VM identity token for authenticating the VM instance.
276
+ # https://cloud.google.com/compute/docs/instances/verifying-instance-identity
275
277
  # @param [Google::Apis::GenomicsV2alpha1::CheckInRequest] check_in_request_object
276
278
  # @param [String] fields
277
279
  # Selector specifying which fields to include in a partial response.
@@ -301,6 +303,40 @@ module Google
301
303
  command.query['quotaUser'] = quota_user unless quota_user.nil?
302
304
  execute_or_queue_command(command, &block)
303
305
  end
306
+
307
+ # The worker uses this method to upload SOS reports for unexpected errors.
308
+ # @param [String] id
309
+ # The VM identity token for authenticating the VM instance.
310
+ # https://cloud.google.com/compute/docs/instances/verifying-instance-identity
311
+ # @param [Google::Apis::GenomicsV2alpha1::HttpBody] http_body_object
312
+ # @param [String] fields
313
+ # Selector specifying which fields to include in a partial response.
314
+ # @param [String] quota_user
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.
317
+ # @param [Google::Apis::RequestOptions] options
318
+ # Request-specific options
319
+ #
320
+ # @yield [result, err] Result & error if block supplied
321
+ # @yieldparam result [Google::Apis::GenomicsV2alpha1::UploadSosReportResponse] parsed result object
322
+ # @yieldparam err [StandardError] error object if request failed
323
+ #
324
+ # @return [Google::Apis::GenomicsV2alpha1::UploadSosReportResponse]
325
+ #
326
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
327
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
328
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
329
+ def upload_worker_project_worker_sos_report(id, http_body_object = nil, fields: nil, quota_user: nil, options: nil, &block)
330
+ command = make_simple_command(:post, 'v2alpha1/workers/{+id}:uploadSosReport', options)
331
+ command.request_representation = Google::Apis::GenomicsV2alpha1::HttpBody::Representation
332
+ command.request_object = http_body_object
333
+ command.response_representation = Google::Apis::GenomicsV2alpha1::UploadSosReportResponse::Representation
334
+ command.response_class = Google::Apis::GenomicsV2alpha1::UploadSosReportResponse
335
+ command.params['id'] = id unless id.nil?
336
+ command.query['fields'] = fields unless fields.nil?
337
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
338
+ execute_or_queue_command(command, &block)
339
+ end
304
340
 
305
341
  protected
306
342
 
@@ -20,12 +20,13 @@ module Google
20
20
  module Apis
21
21
  # Gmail API
22
22
  #
23
- # Access Gmail mailboxes including sending user email.
23
+ # The Gmail API lets you view and manage Gmail mailbox data like
24
+ # threads, messages, and labels.
24
25
  #
25
26
  # @see https://developers.google.com/gmail/api/
26
27
  module GmailV1
27
28
  VERSION = 'V1'
28
- REVISION = '20200504'
29
+ REVISION = '20200601'
29
30
 
30
31
  # Read, compose, send, and permanently delete all your email from Gmail
31
32
  AUTH_SCOPE = 'https://mail.google.com/'
@@ -31,8 +31,8 @@ module Google
31
31
  # @return [String]
32
32
  attr_accessor :disposition
33
33
 
34
- # Email address to which all incoming messages are forwarded. This email address
35
- # must be a verified member of the forwarding addresses.
34
+ # Email address to which all incoming messages are forwarded. This email
35
+ # address must be a verified member of the forwarding addresses.
36
36
  # Corresponds to the JSON property `emailAddress`
37
37
  # @return [String]
38
38
  attr_accessor :email_address
@@ -83,7 +83,8 @@ module Google
83
83
  # @return [Array<String>]
84
84
  attr_accessor :add_label_ids
85
85
 
86
- # The IDs of the messages to modify. There is a limit of 1000 ids per request.
86
+ # The IDs of the messages to modify. There is a limit of 1000 ids per
87
+ # request.
87
88
  # Corresponds to the JSON property `ids`
88
89
  # @return [Array<String>]
89
90
  attr_accessor :ids
@@ -106,8 +107,9 @@ module Google
106
107
  end
107
108
 
108
109
  # Settings for a delegate. Delegates can read, send, and delete messages, as
109
- # well as view and add contacts, for the delegator's account. See "Set up mail
110
- # delegation" for more information about delegates.
110
+ # well as view and add contacts, for the delegator's account. See
111
+ # <a href="https://support.google.com/mail/answer/138350">"Set up
112
+ # mail delegation"</a> for more information about delegates.
111
113
  class Delegate
112
114
  include Google::Apis::Core::Hashable
113
115
 
@@ -116,8 +118,8 @@ module Google
116
118
  # @return [String]
117
119
  attr_accessor :delegate_email
118
120
 
119
- # Indicates whether this address has been verified and can act as a delegate for
120
- # the account. Read-only.
121
+ # Indicates whether this address has been verified and can act as a delegate
122
+ # for the account. Read-only.
121
123
  # Corresponds to the JSON property `verificationStatus`
122
124
  # @return [String]
123
125
  attr_accessor :verification_status
@@ -242,16 +244,18 @@ module Google
242
244
  attr_accessor :has_attachment
243
245
  alias_method :has_attachment?, :has_attachment
244
246
 
245
- # Only return messages not matching the specified query. Supports the same query
246
- # format as the Gmail search box. For example, "from:someuser@example.com
247
- # rfc822msgid: is:unread".
247
+ # Only return messages not matching the specified query. Supports the same
248
+ # query format as the Gmail search box. For example,
249
+ # <code>"from:someuser@example.com rfc822msgid:<somemsgid@example.com>
250
+ # is:unread"</code>.
248
251
  # Corresponds to the JSON property `negatedQuery`
249
252
  # @return [String]
250
253
  attr_accessor :negated_query
251
254
 
252
- # Only return messages matching the specified query. Supports the same query
253
- # format as the Gmail search box. For example, "from:someuser@example.com
254
- # rfc822msgid: is:unread".
255
+ # Only return messages matching the specified query. Supports the same
256
+ # query format as the Gmail search box. For example,
257
+ # <code>"from:someuser@example.com rfc822msgid:<somemsgid@example.com>
258
+ # is:unread"</code>.
255
259
  # Corresponds to the JSON property `query`
256
260
  # @return [String]
257
261
  attr_accessor :query
@@ -267,16 +271,16 @@ module Google
267
271
  # @return [String]
268
272
  attr_accessor :size_comparison
269
273
 
270
- # Case-insensitive phrase found in the message's subject. Trailing and leading
271
- # whitespace are be trimmed and adjacent spaces are collapsed.
274
+ # Case-insensitive phrase found in the message's subject. Trailing and
275
+ # leading whitespace are be trimmed and adjacent spaces are collapsed.
272
276
  # Corresponds to the JSON property `subject`
273
277
  # @return [String]
274
278
  attr_accessor :subject
275
279
 
276
- # The recipient's display name or email address. Includes recipients in the "to",
277
- # "cc", and "bcc" header fields. You can use simply the local part of the email
278
- # address. For example, "example" and "example@" both match "example@gmail.com".
279
- # This field is case-insensitive.
280
+ # The recipient's display name or email address. Includes recipients in the
281
+ # "to", "cc", and "bcc" header fields. You can use simply the local part of
282
+ # the email address. For example, "example" and "example@" both match
283
+ # "example@gmail.com". This field is case-insensitive.
280
284
  # Corresponds to the JSON property `to`
281
285
  # @return [String]
282
286
  attr_accessor :to
@@ -308,8 +312,8 @@ module Google
308
312
  # @return [String]
309
313
  attr_accessor :forwarding_email
310
314
 
311
- # Indicates whether this address has been verified and is usable for forwarding.
312
- # Read-only.
315
+ # Indicates whether this address has been verified and is usable for
316
+ # forwarding. Read-only.
313
317
  # Corresponds to the JSON property `verificationStatus`
314
318
  # @return [String]
315
319
  attr_accessor :verification_status
@@ -345,9 +349,10 @@ module Google
345
349
  # @return [Array<Google::Apis::GmailV1::HistoryLabelRemoved>]
346
350
  attr_accessor :labels_removed
347
351
 
348
- # List of messages changed in this history record. The fields for specific
349
- # change types, such as messagesAdded may duplicate messages in this field. We
350
- # recommend using the specific change-type fields instead of this.
352
+ # List of messages changed in this history record. The fields for specific
353
+ # change types, such as <code>messagesAdded</code> may duplicate messages in
354
+ # this field. We recommend using the specific change-type fields instead
355
+ # of this.
351
356
  # Corresponds to the JSON property `messages`
352
357
  # @return [Array<Google::Apis::GmailV1::Message>]
353
358
  attr_accessor :messages
@@ -470,8 +475,8 @@ module Google
470
475
  include Google::Apis::Core::Hashable
471
476
 
472
477
  # If this value is true, Gmail will immediately expunge a message when it is
473
- # marked as deleted in IMAP. Otherwise, Gmail will wait for an update from the
474
- # client before expunging messages marked as deleted.
478
+ # marked as deleted in IMAP. Otherwise, Gmail will wait for an update from
479
+ # the client before expunging messages marked as deleted.
475
480
  # Corresponds to the JSON property `autoExpunge`
476
481
  # @return [Boolean]
477
482
  attr_accessor :auto_expunge
@@ -483,15 +488,15 @@ module Google
483
488
  attr_accessor :enabled
484
489
  alias_method :enabled?, :enabled
485
490
 
486
- # The action that will be executed on a message when it is marked as deleted and
487
- # expunged from the last visible IMAP folder.
491
+ # The action that will be executed on a message when it is marked as deleted
492
+ # and expunged from the last visible IMAP folder.
488
493
  # Corresponds to the JSON property `expungeBehavior`
489
494
  # @return [String]
490
495
  attr_accessor :expunge_behavior
491
496
 
492
- # An optional limit on the number of messages that an IMAP folder may contain.
493
- # Legal values are 0, 1000, 2000, 5000 or 10000. A value of zero is interpreted
494
- # to mean that there is no limit.
497
+ # An optional limit on the number of messages that an IMAP folder may
498
+ # contain. Legal values are 0, 1000, 2000, 5000 or 10000. A value of zero
499
+ # is interpreted to mean that there is no limit.
495
500
  # Corresponds to the JSON property `maxFolderSize`
496
501
  # @return [Fixnum]
497
502
  attr_accessor :max_folder_size
@@ -509,12 +514,14 @@ module Google
509
514
  end
510
515
  end
511
516
 
512
- # Labels are used to categorize messages and threads within the user's mailbox.
517
+ # Labels are used to categorize messages and threads within the
518
+ # user's mailbox.
513
519
  class Label
514
520
  include Google::Apis::Core::Hashable
515
521
 
516
- # The color to assign to the label. Color is only available for labels that have
517
- # their type set to user.
522
+ # The color to assign to the label. Color is only available for labels that
523
+ # have their <code>type</code> set to <code>user</code>.
524
+ # @mutable gmail.users.labels.create gmail.users.labels.update
518
525
  # Corresponds to the JSON property `color`
519
526
  # @return [Google::Apis::GmailV1::LabelColor]
520
527
  attr_accessor :color
@@ -525,11 +532,14 @@ module Google
525
532
  attr_accessor :id
526
533
 
527
534
  # The visibility of the label in the label list in the Gmail web interface.
535
+ # @mutable gmail.users.labels.create gmail.users.labels.update
528
536
  # Corresponds to the JSON property `labelListVisibility`
529
537
  # @return [String]
530
538
  attr_accessor :label_list_visibility
531
539
 
532
- # The visibility of the label in the message list in the Gmail web interface.
540
+ # The visibility of the label in the message list in the
541
+ # Gmail web interface.
542
+ # @mutable gmail.users.labels.create gmail.users.labels.update
533
543
  # Corresponds to the JSON property `messageListVisibility`
534
544
  # @return [String]
535
545
  attr_accessor :message_list_visibility
@@ -545,6 +555,7 @@ module Google
545
555
  attr_accessor :messages_unread
546
556
 
547
557
  # The display name of the label.
558
+ # @mutable gmail.users.labels.create gmail.users.labels.update
548
559
  # Corresponds to the JSON property `name`
549
560
  # @return [String]
550
561
  attr_accessor :name
@@ -559,14 +570,15 @@ module Google
559
570
  # @return [Fixnum]
560
571
  attr_accessor :threads_unread
561
572
 
562
- # The owner type for the label. User labels are created by the user and can be
563
- # modified and deleted by the user and can be applied to any message or thread.
564
- # System labels are internally created and cannot be added, modified, or deleted.
565
- # System labels may be able to be applied to or removed from messages and
566
- # threads under some circumstances but this is not guaranteed. For example,
567
- # users can apply and remove the INBOX and UNREAD labels from messages and
568
- # threads, but cannot apply or remove the DRAFTS or SENT labels from messages or
569
- # threads.
573
+ # The owner type for the label. User labels are created by the user and
574
+ # can be modified and deleted by the user and can be applied to any
575
+ # message or thread. System labels are internally created and cannot be
576
+ # added, modified, or deleted. System labels may be able to be applied to or
577
+ # removed from messages and threads under some circumstances but this is
578
+ # not guaranteed. For example, users can apply and remove the
579
+ # <code>INBOX</code> and <code>UNREAD</code> labels from messages and
580
+ # threads, but cannot apply or remove the <code>DRAFTS</code> or
581
+ # <code>SENT</code> labels from messages or threads.
570
582
  # Corresponds to the JSON property `type`
571
583
  # @return [String]
572
584
  attr_accessor :type
@@ -594,40 +606,46 @@ module Google
594
606
  class LabelColor
595
607
  include Google::Apis::Core::Hashable
596
608
 
597
- # The background color represented as hex string #RRGGBB (ex #000000). This
598
- # field is required in order to set the color of a label. Only the following
599
- # predefined set of color values are allowed:
600
- # #000000, #434343, #666666, #999999, #cccccc, #efefef, #f3f3f3, #ffffff, #
601
- # fb4c2f, #ffad47, #fad165, #16a766, #43d692, #4a86e8, #a479e2, #f691b3, #f6c5be,
602
- # #ffe6c7, #fef1d1, #b9e4d0, #c6f3de, #c9daf8, #e4d7f5, #fcdee8, #efa093, #
603
- # ffd6a2, #fce8b3, #89d3b2, #a0eac9, #a4c2f4, #d0bcf1, #fbc8d9, #e66550, #ffbc6b,
604
- # #fcda83, #44b984, #68dfa9, #6d9eeb, #b694e8, #f7a7c0, #cc3a21, #eaa041, #
605
- # f2c960, #149e60, #3dc789, #3c78d8, #8e63ce, #e07798, #ac2b16, #cf8933, #d5ae49,
606
- # #0b804b, #2a9c68, #285bac, #653e9b, #b65775, #822111, #a46a21, #aa8831, #
607
- # 076239, #1a764d, #1c4587, #41236d, #83334c #464646, #e7e7e7, #0d3472, #b6cff5,
608
- # #0d3b44, #98d7e4, #3d188e, #e3d7ff, #711a36, #fbd3e0, #8a1c0a, #f2b2a8, #
609
- # 7a2e0b, #ffc8af, #7a4706, #ffdeb5, #594c05, #fbe983, #684e07, #fdedc1, #0b4f30,
610
- # #b3efd3, #04502e, #a2dcc1, #c2c2c2, #4986e7, #2da2bb, #b99aff, #994a64, #
611
- # f691b2, #ff7537, #ffad46, #662e37, #ebdbde, #cca6ac, #094228, #42d692, #16a765
609
+ # The background color represented as hex string #RRGGBB (ex #000000).
610
+ # This field is required in order to set the color of a label.
611
+ # Only the following predefined set of color values are allowed:
612
+ # <br/>
613
+ # # 000000, #434343, #666666, #999999, #cccccc, #efefef, #f3f3f3, #ffffff,
614
+ # # fb4c2f, #ffad47, #fad165, #16a766, #43d692, #4a86e8, #a479e2, #f691b3,
615
+ # # f6c5be, #ffe6c7, #fef1d1, #b9e4d0, #c6f3de, #c9daf8, #e4d7f5, #fcdee8,
616
+ # # efa093, #ffd6a2, #fce8b3, #89d3b2, #a0eac9, #a4c2f4, #d0bcf1, #fbc8d9,
617
+ # # e66550, #ffbc6b, #fcda83, #44b984, #68dfa9, #6d9eeb, #b694e8, #f7a7c0,
618
+ # # cc3a21, #eaa041, #f2c960, #149e60, #3dc789, #3c78d8, #8e63ce, #e07798,
619
+ # # ac2b16, #cf8933, #d5ae49, #0b804b, #2a9c68, #285bac, #653e9b, #b65775,
620
+ # # 822111, #a46a21, #aa8831, #076239, #1a764d, #1c4587, #41236d, #83334c
621
+ # # 464646, #e7e7e7, #0d3472, #b6cff5, #0d3b44, #98d7e4, #3d188e, #e3d7ff,
622
+ # # 711a36, #fbd3e0, #8a1c0a, #f2b2a8, #7a2e0b, #ffc8af, #7a4706, #ffdeb5,
623
+ # # 594c05, #fbe983, #684e07, #fdedc1, #0b4f30, #b3efd3, #04502e, #a2dcc1,
624
+ # # c2c2c2, #4986e7, #2da2bb, #b99aff, #994a64, #f691b2, #ff7537, #ffad46,
625
+ # # 662e37, #ebdbde, #cca6ac, #094228, #42d692, #16a765
626
+ # @mutable gmail.users.labels.create gmail.users.labels.update
612
627
  # Corresponds to the JSON property `backgroundColor`
613
628
  # @return [String]
614
629
  attr_accessor :background_color
615
630
 
616
- # The text color of the label, represented as hex string. This field is required
617
- # in order to set the color of a label. Only the following predefined set of
618
- # color values are allowed:
619
- # #000000, #434343, #666666, #999999, #cccccc, #efefef, #f3f3f3, #ffffff, #
620
- # fb4c2f, #ffad47, #fad165, #16a766, #43d692, #4a86e8, #a479e2, #f691b3, #f6c5be,
621
- # #ffe6c7, #fef1d1, #b9e4d0, #c6f3de, #c9daf8, #e4d7f5, #fcdee8, #efa093, #
622
- # ffd6a2, #fce8b3, #89d3b2, #a0eac9, #a4c2f4, #d0bcf1, #fbc8d9, #e66550, #ffbc6b,
623
- # #fcda83, #44b984, #68dfa9, #6d9eeb, #b694e8, #f7a7c0, #cc3a21, #eaa041, #
624
- # f2c960, #149e60, #3dc789, #3c78d8, #8e63ce, #e07798, #ac2b16, #cf8933, #d5ae49,
625
- # #0b804b, #2a9c68, #285bac, #653e9b, #b65775, #822111, #a46a21, #aa8831, #
626
- # 076239, #1a764d, #1c4587, #41236d, #83334c #464646, #e7e7e7, #0d3472, #b6cff5,
627
- # #0d3b44, #98d7e4, #3d188e, #e3d7ff, #711a36, #fbd3e0, #8a1c0a, #f2b2a8, #
628
- # 7a2e0b, #ffc8af, #7a4706, #ffdeb5, #594c05, #fbe983, #684e07, #fdedc1, #0b4f30,
629
- # #b3efd3, #04502e, #a2dcc1, #c2c2c2, #4986e7, #2da2bb, #b99aff, #994a64, #
630
- # f691b2, #ff7537, #ffad46, #662e37, #ebdbde, #cca6ac, #094228, #42d692, #16a765
631
+ # The text color of the label, represented as hex string.
632
+ # This field is required in order to set the color of a label.
633
+ # Only the following predefined set of color values are allowed:
634
+ # <br/>
635
+ # # 000000, #434343, #666666, #999999, #cccccc, #efefef, #f3f3f3, #ffffff,
636
+ # # fb4c2f, #ffad47, #fad165, #16a766, #43d692, #4a86e8, #a479e2, #f691b3,
637
+ # # f6c5be, #ffe6c7, #fef1d1, #b9e4d0, #c6f3de, #c9daf8, #e4d7f5, #fcdee8,
638
+ # # efa093, #ffd6a2, #fce8b3, #89d3b2, #a0eac9, #a4c2f4, #d0bcf1, #fbc8d9,
639
+ # # e66550, #ffbc6b, #fcda83, #44b984, #68dfa9, #6d9eeb, #b694e8, #f7a7c0,
640
+ # # cc3a21, #eaa041, #f2c960, #149e60, #3dc789, #3c78d8, #8e63ce, #e07798,
641
+ # # ac2b16, #cf8933, #d5ae49, #0b804b, #2a9c68, #285bac, #653e9b, #b65775,
642
+ # # 822111, #a46a21, #aa8831, #076239, #1a764d, #1c4587, #41236d, #83334c
643
+ # # 464646, #e7e7e7, #0d3472, #b6cff5, #0d3b44, #98d7e4, #3d188e, #e3d7ff,
644
+ # # 711a36, #fbd3e0, #8a1c0a, #f2b2a8, #7a2e0b, #ffc8af, #7a4706, #ffdeb5,
645
+ # # 594c05, #fbe983, #684e07, #fdedc1, #0b4f30, #b3efd3, #04502e, #a2dcc1,
646
+ # # c2c2c2, #4986e7, #2da2bb, #b99aff, #994a64, #f691b2, #ff7537, #ffad46,
647
+ # # 662e37, #ebdbde, #cca6ac, #094228, #42d692, #16a765
648
+ # @mutable gmail.users.labels.create gmail.users.labels.update
631
649
  # Corresponds to the JSON property `textColor`
632
650
  # @return [String]
633
651
  attr_accessor :text_color
@@ -643,21 +661,28 @@ module Google
643
661
  end
644
662
  end
645
663
 
646
- # Language settings for an account. These settings correspond to the "Language
647
- # settings" feature in the web interface.
664
+ # Language settings for an account. These settings correspond to
665
+ # the <a href="https://support.google.com/mail/answer/17091">"Language
666
+ # settings"</a> feature in the web interface.
648
667
  class LanguageSettings
649
668
  include Google::Apis::Core::Hashable
650
669
 
651
- # The language to display Gmail in, formatted as an RFC 3066 Language Tag (for
652
- # example en-GB, fr or ja for British English, French, or Japanese respectively).
653
- # The set of languages supported by Gmail evolves over time, so please refer to
654
- # the "Language" dropdown in the Gmail settings for all available options, as
655
- # described in the language settings help article. A table of sample values is
656
- # also provided in the Managing Language Settings guide
657
- # Not all Gmail clients can display the same set of languages. In the case that
658
- # a user's display language is not available for use on a particular client,
659
- # said client automatically chooses to display in the closest supported variant (
660
- # or a reasonable default).
670
+ # The language to display Gmail in, formatted as an
671
+ # <a href="https://www.w3.org/International/articles/language-tags/">RFC 3066
672
+ # Language Tag</a> (for example <code>en-GB</code>, <code>fr</code> or
673
+ # <code>ja</code> for British English, French, or Japanese respectively).
674
+ # The set of languages supported by Gmail evolves over time, so please refer
675
+ # to the "Language" dropdown in the
676
+ # <a href="https://mail.google.com/mail/u/0/#settings/general">Gmail settings
677
+ # </a> for all available options, as described in the
678
+ # <a href="https://support.google.com/mail/answer/17091">language settings
679
+ # help article</a>. A table of sample values is also provided in the
680
+ # <a href="/gmail/api/guides/language_settings#display_language">Managing
681
+ # Language Settings guide</a>
682
+ # Not all Gmail clients can display the same set of languages. In the case
683
+ # that a user's display language is not available for use on a particular
684
+ # client, said client automatically chooses to display in the closest
685
+ # supported variant (or a reasonable default).
661
686
  # Corresponds to the JSON property `displayLanguage`
662
687
  # @return [String]
663
688
  attr_accessor :display_language
@@ -695,9 +720,11 @@ module Google
695
720
  class ListDraftsResponse
696
721
  include Google::Apis::Core::Hashable
697
722
 
698
- # List of drafts. Note that the Message property in each Draft resource only
699
- # contains an id and a threadId. The messages.get method can fetch additional
700
- # message details.
723
+ # List of drafts. Note that the <code>Message</code> property in each
724
+ # <code>Draft</code> resource only contains an <code>id</code> and a
725
+ # <code>threadId</code>. The
726
+ # <a href="/gmail/api/v1/reference/users/messages/get">messages.get</a>
727
+ # method can fetch additional message details.
701
728
  # Corresponds to the JSON property `drafts`
702
729
  # @return [Array<Google::Apis::GmailV1::Draft>]
703
730
  attr_accessor :drafts
@@ -766,8 +793,9 @@ module Google
766
793
  class ListHistoryResponse
767
794
  include Google::Apis::Core::Hashable
768
795
 
769
- # List of history records. Any messages contained in the response will typically
770
- # only have id and threadId fields populated.
796
+ # List of history records. Any <code>messages</code> contained in the
797
+ # response will typically only have <code>id</code> and
798
+ # <code>threadId</code> fields populated.
771
799
  # Corresponds to the JSON property `history`
772
800
  # @return [Array<Google::Apis::GmailV1::History>]
773
801
  attr_accessor :history
@@ -798,8 +826,10 @@ module Google
798
826
  class ListLabelsResponse
799
827
  include Google::Apis::Core::Hashable
800
828
 
801
- # List of labels. Note that each label resource only contains an id, name,
802
- # messageListVisibility, labelListVisibility, and type. The labels.get method
829
+ # List of labels. Note that each label resource only contains an
830
+ # <code>id</code>, <code>name</code>, <code>messageListVisibility</code>,
831
+ # <code>labelListVisibility</code>, and <code>type</code>. The
832
+ # <a href="/gmail/api/v1/reference/users/labels/get">labels.get</a> method
803
833
  # can fetch additional label details.
804
834
  # Corresponds to the JSON property `labels`
805
835
  # @return [Array<Google::Apis::GmailV1::Label>]
@@ -819,8 +849,10 @@ module Google
819
849
  class ListMessagesResponse
820
850
  include Google::Apis::Core::Hashable
821
851
 
822
- # List of messages. Note that each message resource contains only an id and a
823
- # threadId. Additional message details can be fetched using the messages.get
852
+ # List of messages. Note that each message resource contains only an
853
+ # <code>id</code> and a <code>threadId</code>. Additional message details can
854
+ # be fetched using the
855
+ # <a href="/gmail/api/v1/reference/users/messages/get">messages.get</a>
824
856
  # method.
825
857
  # Corresponds to the JSON property `messages`
826
858
  # @return [Array<Google::Apis::GmailV1::Message>]
@@ -901,8 +933,9 @@ module Google
901
933
  attr_accessor :result_size_estimate
902
934
 
903
935
  # List of threads. Note that each thread resource does not contain a list of
904
- # messages. The list of messages for a given thread can be fetched using the
905
- # threads.get method.
936
+ # <code>messages</code>. The list of <code>messages</code> for a given thread
937
+ # can be fetched using the
938
+ # <a href="/gmail/api/v1/reference/users/threads/get">threads.get</a> method.
906
939
  # Corresponds to the JSON property `threads`
907
940
  # @return [Array<Google::Apis::GmailV1::Thread>]
908
941
  attr_accessor :threads
@@ -933,16 +966,17 @@ module Google
933
966
  # @return [String]
934
967
  attr_accessor :id
935
968
 
936
- # The internal message creation timestamp (epoch ms), which determines ordering
937
- # in the inbox. For normal SMTP-received email, this represents the time the
938
- # message was originally accepted by Google, which is more reliable than the
939
- # Date header. However, for API-migrated mail, it can be configured by client to
940
- # be based on the Date header.
969
+ # The internal message creation timestamp (epoch ms), which determines
970
+ # ordering in the inbox. For normal SMTP-received email, this represents the
971
+ # time the message was originally accepted by Google, which is more reliable
972
+ # than the <code>Date</code> header. However, for API-migrated mail, it can
973
+ # be configured by client to be based on the <code>Date</code> header.
941
974
  # Corresponds to the JSON property `internalDate`
942
975
  # @return [Fixnum]
943
976
  attr_accessor :internal_date
944
977
 
945
978
  # List of IDs of labels applied to this message.
979
+ # @mutable gmail.users.messages.insert gmail.users.messages.modify
946
980
  # Corresponds to the JSON property `labelIds`
947
981
  # @return [Array<String>]
948
982
  attr_accessor :label_ids
@@ -952,9 +986,12 @@ module Google
952
986
  # @return [Google::Apis::GmailV1::MessagePart]
953
987
  attr_accessor :payload
954
988
 
955
- # The entire email message in an RFC 2822 formatted and base64url encoded string.
956
- # Returned in messages.get and drafts.get responses when the format=RAW
989
+ # The entire email message in an RFC 2822 formatted and base64url
990
+ # encoded string. Returned in <code>messages.get</code> and
991
+ # <code>drafts.get</code> responses when the <code>format=RAW</code>
957
992
  # parameter is supplied.
993
+ # @mutable gmail.users.messages.insert gmail.users.messages.send
994
+ # @mutable gmail.users.drafts.create gmail.users.drafts.update
958
995
  # Corresponds to the JSON property `raw`
959
996
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
960
997
  # @return [String]
@@ -970,13 +1007,17 @@ module Google
970
1007
  # @return [String]
971
1008
  attr_accessor :snippet
972
1009
 
973
- # The ID of the thread the message belongs to. To add a message or draft to a
974
- # thread, the following criteria must be met:
975
- # - The requested threadId must be specified on the Message or Draft.Message you
976
- # supply with your request.
977
- # - The References and In-Reply-To headers must be set in compliance with the
978
- # RFC 2822 standard.
979
- # - The Subject headers must match.
1010
+ # The ID of the thread the message belongs to. To add a message or draft to
1011
+ # a thread, the following criteria must be met:
1012
+ # <ol><li>The requested <code>threadId</code> must be specified on the
1013
+ # <code>Message</code> or <code>Draft.Message</code> you supply with your
1014
+ # request.</li>
1015
+ # <li>The <code>References</code> and <code>In-Reply-To</code> headers must
1016
+ # be set in compliance with the
1017
+ # <a href="https://tools.ietf.org/html/rfc2822">RFC 2822</a> standard.</li>
1018
+ # <li>The <code>Subject</code> headers must match.
1019
+ # @mutable gmail.users.messages.insert gmail.users.messages.send
1020
+ # @mutable gmail.users.drafts.create gmail.users.drafts.update
980
1021
  # Corresponds to the JSON property `threadId`
981
1022
  # @return [String]
982
1023
  attr_accessor :thread_id
@@ -1008,15 +1049,16 @@ module Google
1008
1049
  # @return [Google::Apis::GmailV1::MessagePartBody]
1009
1050
  attr_accessor :body
1010
1051
 
1011
- # The filename of the attachment. Only present if this message part represents
1012
- # an attachment.
1052
+ # The filename of the attachment. Only present if this message part
1053
+ # represents an attachment.
1013
1054
  # Corresponds to the JSON property `filename`
1014
1055
  # @return [String]
1015
1056
  attr_accessor :filename
1016
1057
 
1017
1058
  # List of headers on this message part. For the top-level message part,
1018
- # representing the entire message payload, it will contain the standard RFC 2822
1019
- # email headers such as To, From, and Subject.
1059
+ # representing the entire message payload, it will contain the standard
1060
+ # RFC 2822 email headers such as <code>To</code>, <code>From</code>, and
1061
+ # <code>Subject</code>.
1020
1062
  # Corresponds to the JSON property `headers`
1021
1063
  # @return [Array<Google::Apis::GmailV1::MessagePartHeader>]
1022
1064
  attr_accessor :headers
@@ -1031,10 +1073,11 @@ module Google
1031
1073
  # @return [String]
1032
1074
  attr_accessor :part_id
1033
1075
 
1034
- # The child MIME message parts of this part. This only applies to container MIME
1035
- # message parts, for example multipart/*. For non- container MIME message part
1036
- # types, such as text/plain, this field is empty. For more information, see RFC
1037
- # 1521.
1076
+ # The child MIME message parts of this part. This only applies to container
1077
+ # MIME message parts, for example <code>multipart/*</code>. For non-
1078
+ # container MIME message part types, such as <code>text/plain</code>, this
1079
+ # field is empty. For more information, see
1080
+ # <a href="http://www.ietf.org/rfc/rfc1521.txt">RFC 1521</a>.
1038
1081
  # Corresponds to the JSON property `parts`
1039
1082
  # @return [Array<Google::Apis::GmailV1::MessagePart>]
1040
1083
  attr_accessor :parts
@@ -1058,17 +1101,19 @@ module Google
1058
1101
  class MessagePartBody
1059
1102
  include Google::Apis::Core::Hashable
1060
1103
 
1061
- # When present, contains the ID of an external attachment that can be retrieved
1062
- # in a separate messages.attachments.get request. When not present, the entire
1063
- # content of the message part body is contained in the data field.
1104
+ # When present, contains the ID of an external attachment that can be
1105
+ # retrieved in a separate <code>messages.attachments.get</code> request.
1106
+ # When not present, the entire content of the message part body is
1107
+ # contained in the data field.
1064
1108
  # Corresponds to the JSON property `attachmentId`
1065
1109
  # @return [String]
1066
1110
  attr_accessor :attachment_id
1067
1111
 
1068
- # The body data of a MIME message part as a base64url encoded string. May be
1069
- # empty for MIME container types that have no message body or when the body data
1070
- # is sent as a separate attachment. An attachment ID is present if the body data
1071
- # is contained in a separate attachment.
1112
+ # The body data of a MIME message part as a base64url encoded string.
1113
+ # May be empty for MIME container
1114
+ # types that have no message body or when the body data is sent as a
1115
+ # separate attachment. An attachment ID is present if the body data is
1116
+ # contained in a separate attachment.
1072
1117
  # Corresponds to the JSON property `data`
1073
1118
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
1074
1119
  # @return [String]
@@ -1095,13 +1140,14 @@ module Google
1095
1140
  class MessagePartHeader
1096
1141
  include Google::Apis::Core::Hashable
1097
1142
 
1098
- # The name of the header before the : separator. For example, To.
1143
+ # The name of the header before the <code>:</code> separator. For
1144
+ # example, <code>To</code>.
1099
1145
  # Corresponds to the JSON property `name`
1100
1146
  # @return [String]
1101
1147
  attr_accessor :name
1102
1148
 
1103
- # The value of the header after the : separator. For example, someuser@example.
1104
- # com.
1149
+ # The value of the header after the <code>:</code> separator. For example,
1150
+ # <code>someuser@example.com</code>.
1105
1151
  # Corresponds to the JSON property `value`
1106
1152
  # @return [String]
1107
1153
  attr_accessor :value
@@ -1231,48 +1277,53 @@ module Google
1231
1277
  end
1232
1278
 
1233
1279
  # Settings associated with a send-as alias, which can be either the primary
1234
- # login address associated with the account or a custom "from" address. Send-as
1235
- # aliases correspond to the "Send Mail As" feature in the web interface.
1280
+ # login address associated with the account or a custom "from" address.
1281
+ # Send-as aliases correspond to the
1282
+ # <a href="https://support.google.com/mail/answer/22370">"Send Mail As"</a>
1283
+ # feature in the web interface.
1236
1284
  class SendAs
1237
1285
  include Google::Apis::Core::Hashable
1238
1286
 
1239
- # A name that appears in the "From:" header for mail sent using this alias. For
1240
- # custom "from" addresses, when this is empty, Gmail will populate the "From:"
1241
- # header with the name that is used for the primary address associated with the
1242
- # account. If the admin has disabled the ability for users to update their name
1243
- # format, requests to update this field for the primary login will silently fail.
1287
+ # A name that appears in the "From:" header for mail sent using this alias.
1288
+ # For custom "from" addresses, when this is empty, Gmail will populate the
1289
+ # "From:" header with the name that is used for the primary address
1290
+ # associated with the account.
1291
+ # If the admin has disabled the ability for users to update their name
1292
+ # format, requests to update this field for the primary login will silently
1293
+ # fail.
1244
1294
  # Corresponds to the JSON property `displayName`
1245
1295
  # @return [String]
1246
1296
  attr_accessor :display_name
1247
1297
 
1248
- # Whether this address is selected as the default "From:" address in situations
1249
- # such as composing a new message or sending a vacation auto-reply. Every Gmail
1250
- # account has exactly one default send-as address, so the only legal value that
1251
- # clients may write to this field is true. Changing this from false to true for
1252
- # an address will result in this field becoming false for the other previous
1253
- # default address.
1298
+ # Whether this address is selected as the default "From:" address in
1299
+ # situations such as composing a new message or sending a vacation
1300
+ # auto-reply. Every Gmail account has exactly one default send-as address,
1301
+ # so the only legal value that clients may write to this field is
1302
+ # <code>true</code>. Changing this from <code>false</code> to
1303
+ # <code>true</code> for an address will result in this field becoming
1304
+ # <code>false</code> for the other previous default address.
1254
1305
  # Corresponds to the JSON property `isDefault`
1255
1306
  # @return [Boolean]
1256
1307
  attr_accessor :is_default
1257
1308
  alias_method :is_default?, :is_default
1258
1309
 
1259
1310
  # Whether this address is the primary address used to login to the account.
1260
- # Every Gmail account has exactly one primary address, and it cannot be deleted
1261
- # from the collection of send-as aliases. This field is read-only.
1311
+ # Every Gmail account has exactly one primary address, and it cannot be
1312
+ # deleted from the collection of send-as aliases. This field is read-only.
1262
1313
  # Corresponds to the JSON property `isPrimary`
1263
1314
  # @return [Boolean]
1264
1315
  attr_accessor :is_primary
1265
1316
  alias_method :is_primary?, :is_primary
1266
1317
 
1267
1318
  # An optional email address that is included in a "Reply-To:" header for mail
1268
- # sent using this alias. If this is empty, Gmail will not generate a "Reply-To:"
1269
- # header.
1319
+ # sent using this alias. If this is empty, Gmail will not generate a
1320
+ # "Reply-To:" header.
1270
1321
  # Corresponds to the JSON property `replyToAddress`
1271
1322
  # @return [String]
1272
1323
  attr_accessor :reply_to_address
1273
1324
 
1274
- # The email address that appears in the "From:" header for mail sent using this
1275
- # alias. This is read-only for all operations except create.
1325
+ # The email address that appears in the "From:" header for mail sent using
1326
+ # this alias. This is read-only for all operations except create.
1276
1327
  # Corresponds to the JSON property `sendAsEmail`
1277
1328
  # @return [String]
1278
1329
  attr_accessor :send_as_email
@@ -1288,15 +1339,16 @@ module Google
1288
1339
  # @return [Google::Apis::GmailV1::SmtpMsa]
1289
1340
  attr_accessor :smtp_msa
1290
1341
 
1291
- # Whether Gmail should treat this address as an alias for the user's primary
1292
- # email address. This setting only applies to custom "from" aliases.
1342
+ # Whether Gmail should <a href="https://support.google.com/a/answer/1710338">
1343
+ # treat this address as an alias</a> for the user's primary email address.
1344
+ # This setting only applies to custom "from" aliases.
1293
1345
  # Corresponds to the JSON property `treatAsAlias`
1294
1346
  # @return [Boolean]
1295
1347
  attr_accessor :treat_as_alias
1296
1348
  alias_method :treat_as_alias?, :treat_as_alias
1297
1349
 
1298
- # Indicates whether this address has been verified for use as a send-as alias.
1299
- # Read-only. This setting only applies to custom "from" aliases.
1350
+ # Indicates whether this address has been verified for use as a send-as
1351
+ # alias. Read-only. This setting only applies to custom "from" aliases.
1300
1352
  # Corresponds to the JSON property `verificationStatus`
1301
1353
  # @return [String]
1302
1354
  attr_accessor :verification_status
@@ -1349,18 +1401,18 @@ module Google
1349
1401
  # @return [String]
1350
1402
  attr_accessor :issuer_cn
1351
1403
 
1352
- # PEM formatted X509 concatenated certificate string (standard base64 encoding).
1353
- # Format used for returning key, which includes public key as well as
1354
- # certificate chain (not private key).
1404
+ # PEM formatted X509 concatenated certificate string (standard base64
1405
+ # encoding). Format used for returning key, which includes public key
1406
+ # as well as certificate chain (not private key).
1355
1407
  # Corresponds to the JSON property `pem`
1356
1408
  # @return [String]
1357
1409
  attr_accessor :pem
1358
1410
 
1359
- # PKCS#12 format containing a single private/public key pair and certificate
1360
- # chain. This format is only accepted from client for creating a new SmimeInfo
1361
- # and is never returned, because the private key is not intended to be exported.
1362
- # PKCS#12 may be encrypted, in which case encryptedKeyPassword should be set
1363
- # appropriately.
1411
+ # PKCS#12 format containing a single private/public key pair and
1412
+ # certificate chain. This format is only accepted from client
1413
+ # for creating a new SmimeInfo and is never returned, because the
1414
+ # private key is not intended to be exported. PKCS#12 may be encrypted,
1415
+ # in which case encryptedKeyPassword should be set appropriately.
1364
1416
  # Corresponds to the JSON property `pkcs12`
1365
1417
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
1366
1418
  # @return [String]
@@ -1386,32 +1438,32 @@ module Google
1386
1438
  class SmtpMsa
1387
1439
  include Google::Apis::Core::Hashable
1388
1440
 
1389
- # The hostname of the SMTP service. Required.
1441
+ # The hostname of the SMTP service. Required.
1390
1442
  # Corresponds to the JSON property `host`
1391
1443
  # @return [String]
1392
1444
  attr_accessor :host
1393
1445
 
1394
- # The password that will be used for authentication with the SMTP service. This
1395
- # is a write-only field that can be specified in requests to create or update
1396
- # SendAs settings; it is never populated in responses.
1446
+ # The password that will be used for authentication with the SMTP service.
1447
+ # This is a write-only field that can be specified in requests to create or
1448
+ # update SendAs settings; it is never populated in responses.
1397
1449
  # Corresponds to the JSON property `password`
1398
1450
  # @return [String]
1399
1451
  attr_accessor :password
1400
1452
 
1401
- # The port of the SMTP service. Required.
1453
+ # The port of the SMTP service. Required.
1402
1454
  # Corresponds to the JSON property `port`
1403
1455
  # @return [Fixnum]
1404
1456
  attr_accessor :port
1405
1457
 
1406
- # The protocol that will be used to secure communication with the SMTP service.
1407
- # Required.
1458
+ # The protocol that will be used to secure communication with the SMTP
1459
+ # service. Required.
1408
1460
  # Corresponds to the JSON property `securityMode`
1409
1461
  # @return [String]
1410
1462
  attr_accessor :security_mode
1411
1463
 
1412
- # The username that will be used for authentication with the SMTP service. This
1413
- # is a write-only field that can be specified in requests to create or update
1414
- # SendAs settings; it is never populated in responses.
1464
+ # The username that will be used for authentication with the SMTP service.
1465
+ # This is a write-only field that can be specified in requests to create or
1466
+ # update SendAs settings; it is never populated in responses.
1415
1467
  # Corresponds to the JSON property `username`
1416
1468
  # @return [String]
1417
1469
  attr_accessor :username
@@ -1467,8 +1519,9 @@ module Google
1467
1519
  end
1468
1520
  end
1469
1521
 
1470
- # Vacation auto-reply settings for an account. These settings correspond to the "
1471
- # Vacation responder" feature in the web interface.
1522
+ # Vacation auto-reply settings for an account. These settings correspond to
1523
+ # the <a href="https://support.google.com/mail/answer/25922">"Vacation
1524
+ # responder"</a> feature in the web interface.
1472
1525
  class VacationSettings
1473
1526
  include Google::Apis::Core::Hashable
1474
1527
 
@@ -1478,49 +1531,57 @@ module Google
1478
1531
  attr_accessor :enable_auto_reply
1479
1532
  alias_method :enable_auto_reply?, :enable_auto_reply
1480
1533
 
1481
- # An optional end time for sending auto-replies (epoch ms). When this is
1482
- # specified, Gmail will automatically reply only to messages that it receives
1483
- # before the end time. If both startTime and endTime are specified, startTime
1484
- # must precede endTime.
1534
+ # An optional end time for sending auto-replies (epoch ms).
1535
+ # When this is specified, Gmail will automatically reply only to messages
1536
+ # that it receives before the end time. If both <code>startTime</code> and
1537
+ # <code>endTime</code> are specified, <code>startTime</code> must precede
1538
+ # <code>endTime</code>.
1485
1539
  # Corresponds to the JSON property `endTime`
1486
1540
  # @return [Fixnum]
1487
1541
  attr_accessor :end_time
1488
1542
 
1489
- # Response body in HTML format. Gmail will sanitize the HTML before storing it.
1543
+ # Response body in HTML format. Gmail will sanitize the HTML before
1544
+ # storing it. If both <code>response_body_plain_text</code> and
1545
+ # <code>response_body_html</code> are specified,
1546
+ # <code>response_body_html</code> will be used.
1490
1547
  # Corresponds to the JSON property `responseBodyHtml`
1491
1548
  # @return [String]
1492
1549
  attr_accessor :response_body_html
1493
1550
 
1494
- # Response body in plain text format.
1551
+ # Response body in plain text format. If both
1552
+ # <code>response_body_plain_text</code> and <code>response_body_html</code>
1553
+ # are specified, <code>response_body_html</code> will be used.
1495
1554
  # Corresponds to the JSON property `responseBodyPlainText`
1496
1555
  # @return [String]
1497
1556
  attr_accessor :response_body_plain_text
1498
1557
 
1499
- # Optional text to prepend to the subject line in vacation responses. In order
1500
- # to enable auto-replies, either the response subject or the response body must
1501
- # be nonempty.
1558
+ # Optional text to prepend to the subject line in vacation responses. In
1559
+ # order to enable auto-replies, either the response subject or the response
1560
+ # body must be nonempty.
1502
1561
  # Corresponds to the JSON property `responseSubject`
1503
1562
  # @return [String]
1504
1563
  attr_accessor :response_subject
1505
1564
 
1506
- # Flag that determines whether responses are sent to recipients who are not in
1507
- # the user's list of contacts.
1565
+ # Flag that determines whether responses are sent to recipients who are not
1566
+ # in the user's list of contacts.
1508
1567
  # Corresponds to the JSON property `restrictToContacts`
1509
1568
  # @return [Boolean]
1510
1569
  attr_accessor :restrict_to_contacts
1511
1570
  alias_method :restrict_to_contacts?, :restrict_to_contacts
1512
1571
 
1513
- # Flag that determines whether responses are sent to recipients who are outside
1514
- # of the user's domain. This feature is only available for G Suite users.
1572
+ # Flag that determines whether responses are sent to recipients who are
1573
+ # outside of the user's domain. This feature is only available for G Suite
1574
+ # users.
1515
1575
  # Corresponds to the JSON property `restrictToDomain`
1516
1576
  # @return [Boolean]
1517
1577
  attr_accessor :restrict_to_domain
1518
1578
  alias_method :restrict_to_domain?, :restrict_to_domain
1519
1579
 
1520
- # An optional start time for sending auto-replies (epoch ms). When this is
1521
- # specified, Gmail will automatically reply only to messages that it receives
1522
- # after the start time. If both startTime and endTime are specified, startTime
1523
- # must precede endTime.
1580
+ # An optional start time for sending auto-replies (epoch ms).
1581
+ # When this is specified, Gmail will automatically reply only to messages
1582
+ # that it receives after the start time. If both <code>startTime</code> and
1583
+ # <code>endTime</code> are specified, <code>startTime</code> must precede
1584
+ # <code>endTime</code>.
1524
1585
  # Corresponds to the JSON property `startTime`
1525
1586
  # @return [Fixnum]
1526
1587
  attr_accessor :start_time
@@ -1551,20 +1612,21 @@ module Google
1551
1612
  # @return [String]
1552
1613
  attr_accessor :label_filter_action
1553
1614
 
1554
- # List of label_ids to restrict notifications about. By default, if unspecified,
1555
- # all changes are pushed out. If specified then dictates which labels are
1556
- # required for a push notification to be generated.
1615
+ # List of label_ids to restrict notifications about. By default,
1616
+ # if unspecified, all changes are pushed out. If specified then
1617
+ # dictates which labels are required for a push notification to
1618
+ # be generated.
1557
1619
  # Corresponds to the JSON property `labelIds`
1558
1620
  # @return [Array<String>]
1559
1621
  attr_accessor :label_ids
1560
1622
 
1561
- # A fully qualified Google Cloud Pub/Sub API topic name to publish the events to.
1562
- # This topic name **must** already exist in Cloud Pub/Sub and you **must** have
1563
- # already granted gmail "publish" permission on it. For example, "projects/my-
1564
- # project-identifier/topics/my-topic-name" (using the Cloud Pub/Sub "v1" topic
1565
- # naming format).
1566
- # Note that the "my-project-identifier" portion must exactly match your Google
1567
- # developer project id (the one executing this watch request).
1623
+ # A fully qualified Google Cloud Pub/Sub API topic name to publish the
1624
+ # events to. This topic name **must** already exist in Cloud Pub/Sub and
1625
+ # you **must** have already granted gmail "publish" permission on it.
1626
+ # For example, "projects/my-project-identifier/topics/my-topic-name"
1627
+ # (using the Cloud Pub/Sub "v1" topic naming format).
1628
+ # Note that the "my-project-identifier" portion must exactly match your
1629
+ # Google developer project id (the one executing this watch request).
1568
1630
  # Corresponds to the JSON property `topicName`
1569
1631
  # @return [String]
1570
1632
  attr_accessor :topic_name
@@ -1585,8 +1647,9 @@ module Google
1585
1647
  class WatchResponse
1586
1648
  include Google::Apis::Core::Hashable
1587
1649
 
1588
- # When Gmail will stop sending notifications for mailbox updates (epoch millis).
1589
- # Call watch again before this time to renew the watch.
1650
+ # When Gmail will stop sending notifications for mailbox updates
1651
+ # (epoch millis). Call <code>watch</code> again before this time to renew
1652
+ # the watch.
1590
1653
  # Corresponds to the JSON property `expiration`
1591
1654
  # @return [Fixnum]
1592
1655
  attr_accessor :expiration