google-api-client 0.42.0 → 0.42.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +70 -0
- data/generated/google/apis/admob_v1.rb +1 -1
- data/generated/google/apis/admob_v1/service.rb +1 -1
- data/generated/google/apis/appsmarket_v2.rb +1 -1
- data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
- data/generated/google/apis/billingbudgets_v1beta1/classes.rb +28 -13
- data/generated/google/apis/billingbudgets_v1beta1/representations.rb +1 -0
- data/generated/google/apis/blogger_v3.rb +1 -1
- data/generated/google/apis/chat_v1.rb +1 -1
- data/generated/google/apis/chat_v1/classes.rb +111 -0
- data/generated/google/apis/chat_v1/representations.rb +50 -0
- data/generated/google/apis/chat_v1/service.rb +32 -0
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/service.rb +5 -2
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1/classes.rb +25 -0
- data/generated/google/apis/cloudidentity_v1beta1/representations.rb +15 -0
- data/generated/google/apis/cloudscheduler_v1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1/classes.rb +5 -5
- data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +5 -5
- data/generated/google/apis/cloudtrace_v1.rb +1 -1
- data/generated/google/apis/cloudtrace_v1/classes.rb +2 -3
- data/generated/google/apis/cloudtrace_v1/service.rb +1 -7
- data/generated/google/apis/cloudtrace_v2.rb +1 -1
- data/generated/google/apis/cloudtrace_v2/classes.rb +6 -5
- data/generated/google/apis/cloudtrace_v2/service.rb +3 -6
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +279 -0
- data/generated/google/apis/compute_beta/representations.rb +90 -0
- data/generated/google/apis/compute_beta/service.rb +257 -0
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +279 -0
- data/generated/google/apis/compute_v1/representations.rb +90 -0
- data/generated/google/apis/compute_v1/service.rb +257 -0
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +9 -0
- data/generated/google/apis/container_v1/representations.rb +1 -0
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +15 -0
- data/generated/google/apis/container_v1beta1/representations.rb +2 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +2 -2
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +4 -4
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/customsearch_v1/service.rb +12 -2
- data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
- data/generated/google/apis/datacatalog_v1beta1/classes.rb +3 -3
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/service.rb +2 -2
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +9 -9
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +9 -9
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +1 -1
- data/generated/google/apis/displayvideo_v1.rb +1 -1
- data/generated/google/apis/displayvideo_v1/service.rb +2 -1
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +5 -2
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +4 -4
- data/generated/google/apis/dns_v2beta1/classes.rb +313 -162
- data/generated/google/apis/dns_v2beta1/service.rb +247 -180
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +66 -2
- data/generated/google/apis/drive_v2/representations.rb +22 -0
- data/generated/google/apis/drive_v2/service.rb +23 -10
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +65 -2
- data/generated/google/apis/drive_v3/representations.rb +22 -0
- data/generated/google/apis/drive_v3/service.rb +8 -5
- data/generated/google/apis/firestore_v1.rb +1 -1
- data/generated/google/apis/firestore_v1/classes.rb +152 -0
- data/generated/google/apis/firestore_v1/representations.rb +63 -0
- data/generated/google/apis/firestore_v1/service.rb +78 -0
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/firestore_v1beta1/classes.rb +152 -0
- data/generated/google/apis/firestore_v1beta1/representations.rb +63 -0
- data/generated/google/apis/firestore_v1beta1/service.rb +78 -0
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/classes.rb +53 -53
- data/generated/google/apis/gmail_v1/service.rb +72 -72
- data/generated/google/apis/healthcare_v1.rb +1 -1
- data/generated/google/apis/healthcare_v1/service.rb +48 -1
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/service.rb +60 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +22 -3
- data/generated/google/apis/iam_v1/service.rb +18 -6
- data/generated/google/apis/memcache_v1beta2.rb +1 -1
- data/generated/google/apis/memcache_v1beta2/classes.rb +1 -1
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +17 -11
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +54 -30
- data/generated/google/apis/networkmanagement_v1.rb +1 -1
- data/generated/google/apis/networkmanagement_v1/classes.rb +6 -6
- data/generated/google/apis/networkmanagement_v1beta1.rb +1 -1
- data/generated/google/apis/networkmanagement_v1beta1/classes.rb +6 -6
- data/generated/google/apis/osconfig_v1.rb +1 -1
- data/generated/google/apis/osconfig_v1/classes.rb +2 -2
- data/generated/google/apis/osconfig_v1beta.rb +1 -1
- data/generated/google/apis/osconfig_v1beta/classes.rb +2 -2
- data/generated/google/apis/realtimebidding_v1.rb +1 -1
- data/generated/google/apis/recommendationengine_v1beta1.rb +36 -0
- data/generated/google/apis/recommendationengine_v1beta1/classes.rb +2015 -0
- data/generated/google/apis/recommendationengine_v1beta1/representations.rb +848 -0
- data/generated/google/apis/recommendationengine_v1beta1/service.rb +990 -0
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/reseller_v1.rb +4 -3
- data/generated/google/apis/reseller_v1/classes.rb +219 -160
- data/generated/google/apis/reseller_v1/service.rb +247 -252
- data/generated/google/apis/run_v1.rb +2 -2
- data/generated/google/apis/run_v1/classes.rb +6 -1
- data/generated/google/apis/run_v1/service.rb +1 -1
- data/generated/google/apis/run_v1alpha1.rb +2 -2
- data/generated/google/apis/run_v1alpha1/service.rb +1 -1
- data/generated/google/apis/run_v1beta1.rb +2 -2
- data/generated/google/apis/run_v1beta1/service.rb +1 -1
- data/generated/google/apis/searchconsole_v1.rb +4 -3
- data/generated/google/apis/searchconsole_v1/service.rb +3 -2
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +2 -2
- data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +2 -2
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +6 -6
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +2 -2
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +2 -2
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +2 -2
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +2 -2
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +2 -2
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +28 -28
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +2 -0
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +2 -0
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +2 -0
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +2 -2
- data/generated/google/apis/youtube_v3/service.rb +1 -0
- data/lib/google/apis/version.rb +1 -1
- metadata +7 -3
|
@@ -40,6 +40,18 @@ module Google
|
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
|
41
41
|
end
|
|
42
42
|
|
|
43
|
+
class BatchWriteRequest
|
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
45
|
+
|
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
class BatchWriteResponse
|
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
51
|
+
|
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
53
|
+
end
|
|
54
|
+
|
|
43
55
|
class BeginTransactionRequest
|
|
44
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
45
57
|
|
|
@@ -280,6 +292,18 @@ module Google
|
|
|
280
292
|
include Google::Apis::Core::JsonObjectSupport
|
|
281
293
|
end
|
|
282
294
|
|
|
295
|
+
class PartitionQueryRequest
|
|
296
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
297
|
+
|
|
298
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
299
|
+
end
|
|
300
|
+
|
|
301
|
+
class PartitionQueryResponse
|
|
302
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
303
|
+
|
|
304
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
305
|
+
end
|
|
306
|
+
|
|
283
307
|
class Precondition
|
|
284
308
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
285
309
|
|
|
@@ -426,6 +450,25 @@ module Google
|
|
|
426
450
|
end
|
|
427
451
|
end
|
|
428
452
|
|
|
453
|
+
class BatchWriteRequest
|
|
454
|
+
# @private
|
|
455
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
456
|
+
hash :labels, as: 'labels'
|
|
457
|
+
collection :writes, as: 'writes', class: Google::Apis::FirestoreV1beta1::Write, decorator: Google::Apis::FirestoreV1beta1::Write::Representation
|
|
458
|
+
|
|
459
|
+
end
|
|
460
|
+
end
|
|
461
|
+
|
|
462
|
+
class BatchWriteResponse
|
|
463
|
+
# @private
|
|
464
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
465
|
+
collection :status, as: 'status', class: Google::Apis::FirestoreV1beta1::Status, decorator: Google::Apis::FirestoreV1beta1::Status::Representation
|
|
466
|
+
|
|
467
|
+
collection :write_results, as: 'writeResults', class: Google::Apis::FirestoreV1beta1::WriteResult, decorator: Google::Apis::FirestoreV1beta1::WriteResult::Representation
|
|
468
|
+
|
|
469
|
+
end
|
|
470
|
+
end
|
|
471
|
+
|
|
429
472
|
class BeginTransactionRequest
|
|
430
473
|
# @private
|
|
431
474
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -805,6 +848,26 @@ module Google
|
|
|
805
848
|
end
|
|
806
849
|
end
|
|
807
850
|
|
|
851
|
+
class PartitionQueryRequest
|
|
852
|
+
# @private
|
|
853
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
854
|
+
property :page_size, as: 'pageSize'
|
|
855
|
+
property :page_token, as: 'pageToken'
|
|
856
|
+
property :partition_count, :numeric_string => true, as: 'partitionCount'
|
|
857
|
+
property :structured_query, as: 'structuredQuery', class: Google::Apis::FirestoreV1beta1::StructuredQuery, decorator: Google::Apis::FirestoreV1beta1::StructuredQuery::Representation
|
|
858
|
+
|
|
859
|
+
end
|
|
860
|
+
end
|
|
861
|
+
|
|
862
|
+
class PartitionQueryResponse
|
|
863
|
+
# @private
|
|
864
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
865
|
+
property :next_page_token, as: 'nextPageToken'
|
|
866
|
+
collection :partitions, as: 'partitions', class: Google::Apis::FirestoreV1beta1::Cursor, decorator: Google::Apis::FirestoreV1beta1::Cursor::Representation
|
|
867
|
+
|
|
868
|
+
end
|
|
869
|
+
end
|
|
870
|
+
|
|
808
871
|
class Precondition
|
|
809
872
|
# @private
|
|
810
873
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -163,6 +163,46 @@ module Google
|
|
|
163
163
|
execute_or_queue_command(command, &block)
|
|
164
164
|
end
|
|
165
165
|
|
|
166
|
+
# Applies a batch of write operations.
|
|
167
|
+
# The BatchWrite method does not apply the write operations atomically
|
|
168
|
+
# and can apply them out of order. Method does not allow more than one write
|
|
169
|
+
# per document. Each write succeeds or fails independently. See the
|
|
170
|
+
# BatchWriteResponse for the success status of each write.
|
|
171
|
+
# If you require an atomically applied set of writes, use
|
|
172
|
+
# Commit instead.
|
|
173
|
+
# @param [String] database
|
|
174
|
+
# Required. The database name. In the format:
|
|
175
|
+
# `projects/`project_id`/databases/`database_id``.
|
|
176
|
+
# @param [Google::Apis::FirestoreV1beta1::BatchWriteRequest] batch_write_request_object
|
|
177
|
+
# @param [String] fields
|
|
178
|
+
# Selector specifying which fields to include in a partial response.
|
|
179
|
+
# @param [String] quota_user
|
|
180
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
181
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
182
|
+
# @param [Google::Apis::RequestOptions] options
|
|
183
|
+
# Request-specific options
|
|
184
|
+
#
|
|
185
|
+
# @yield [result, err] Result & error if block supplied
|
|
186
|
+
# @yieldparam result [Google::Apis::FirestoreV1beta1::BatchWriteResponse] parsed result object
|
|
187
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
188
|
+
#
|
|
189
|
+
# @return [Google::Apis::FirestoreV1beta1::BatchWriteResponse]
|
|
190
|
+
#
|
|
191
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
192
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
193
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
194
|
+
def batch_document_write(database, batch_write_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
195
|
+
command = make_simple_command(:post, 'v1beta1/{+database}/documents:batchWrite', options)
|
|
196
|
+
command.request_representation = Google::Apis::FirestoreV1beta1::BatchWriteRequest::Representation
|
|
197
|
+
command.request_object = batch_write_request_object
|
|
198
|
+
command.response_representation = Google::Apis::FirestoreV1beta1::BatchWriteResponse::Representation
|
|
199
|
+
command.response_class = Google::Apis::FirestoreV1beta1::BatchWriteResponse
|
|
200
|
+
command.params['database'] = database unless database.nil?
|
|
201
|
+
command.query['fields'] = fields unless fields.nil?
|
|
202
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
203
|
+
execute_or_queue_command(command, &block)
|
|
204
|
+
end
|
|
205
|
+
|
|
166
206
|
# Starts a new transaction.
|
|
167
207
|
# @param [String] database
|
|
168
208
|
# Required. The database name. In the format:
|
|
@@ -498,6 +538,44 @@ module Google
|
|
|
498
538
|
execute_or_queue_command(command, &block)
|
|
499
539
|
end
|
|
500
540
|
|
|
541
|
+
# Partitions a query by returning partition cursors that can be used to run
|
|
542
|
+
# the query in parallel. The returned partition cursors are split points that
|
|
543
|
+
# can be used by RunQuery as starting/end points for the query results.
|
|
544
|
+
# @param [String] parent
|
|
545
|
+
# Required. The parent resource name. In the format:
|
|
546
|
+
# `projects/`project_id`/databases/`database_id`/documents`.
|
|
547
|
+
# Document resource names are not supported; only database resource names
|
|
548
|
+
# can be specified.
|
|
549
|
+
# @param [Google::Apis::FirestoreV1beta1::PartitionQueryRequest] partition_query_request_object
|
|
550
|
+
# @param [String] fields
|
|
551
|
+
# Selector specifying which fields to include in a partial response.
|
|
552
|
+
# @param [String] quota_user
|
|
553
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
554
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
555
|
+
# @param [Google::Apis::RequestOptions] options
|
|
556
|
+
# Request-specific options
|
|
557
|
+
#
|
|
558
|
+
# @yield [result, err] Result & error if block supplied
|
|
559
|
+
# @yieldparam result [Google::Apis::FirestoreV1beta1::PartitionQueryResponse] parsed result object
|
|
560
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
561
|
+
#
|
|
562
|
+
# @return [Google::Apis::FirestoreV1beta1::PartitionQueryResponse]
|
|
563
|
+
#
|
|
564
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
565
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
566
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
567
|
+
def partition_document_query(parent, partition_query_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
568
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}:partitionQuery', options)
|
|
569
|
+
command.request_representation = Google::Apis::FirestoreV1beta1::PartitionQueryRequest::Representation
|
|
570
|
+
command.request_object = partition_query_request_object
|
|
571
|
+
command.response_representation = Google::Apis::FirestoreV1beta1::PartitionQueryResponse::Representation
|
|
572
|
+
command.response_class = Google::Apis::FirestoreV1beta1::PartitionQueryResponse
|
|
573
|
+
command.params['parent'] = parent unless parent.nil?
|
|
574
|
+
command.query['fields'] = fields unless fields.nil?
|
|
575
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
576
|
+
execute_or_queue_command(command, &block)
|
|
577
|
+
end
|
|
578
|
+
|
|
501
579
|
# Updates or inserts a document.
|
|
502
580
|
# @param [String] name
|
|
503
581
|
# The resource name of the document, for example
|
|
@@ -26,7 +26,7 @@ module Google
|
|
|
26
26
|
# @see https://developers.google.com/gmail/api/
|
|
27
27
|
module GmailV1
|
|
28
28
|
VERSION = 'V1'
|
|
29
|
-
REVISION = '
|
|
29
|
+
REVISION = '20200713'
|
|
30
30
|
|
|
31
31
|
# Read, compose, send, and permanently delete all your email from Gmail
|
|
32
32
|
AUTH_SCOPE = 'https://mail.google.com/'
|
|
@@ -246,16 +246,16 @@ module Google
|
|
|
246
246
|
|
|
247
247
|
# Only return messages not matching the specified query. Supports the same
|
|
248
248
|
# query format as the Gmail search box. For example,
|
|
249
|
-
#
|
|
250
|
-
# is:unread"
|
|
249
|
+
# `"from:someuser@example.com rfc822msgid:<somemsgid@example.com>
|
|
250
|
+
# is:unread"`.
|
|
251
251
|
# Corresponds to the JSON property `negatedQuery`
|
|
252
252
|
# @return [String]
|
|
253
253
|
attr_accessor :negated_query
|
|
254
254
|
|
|
255
255
|
# Only return messages matching the specified query. Supports the same
|
|
256
256
|
# query format as the Gmail search box. For example,
|
|
257
|
-
#
|
|
258
|
-
# is:unread"
|
|
257
|
+
# `"from:someuser@example.com rfc822msgid:<somemsgid@example.com>
|
|
258
|
+
# is:unread"`.
|
|
259
259
|
# Corresponds to the JSON property `query`
|
|
260
260
|
# @return [String]
|
|
261
261
|
attr_accessor :query
|
|
@@ -350,7 +350,7 @@ module Google
|
|
|
350
350
|
attr_accessor :labels_removed
|
|
351
351
|
|
|
352
352
|
# List of messages changed in this history record. The fields for specific
|
|
353
|
-
# change types, such as
|
|
353
|
+
# change types, such as `messagesAdded` may duplicate messages in
|
|
354
354
|
# this field. We recommend using the specific change-type fields instead
|
|
355
355
|
# of this.
|
|
356
356
|
# Corresponds to the JSON property `messages`
|
|
@@ -520,7 +520,7 @@ module Google
|
|
|
520
520
|
include Google::Apis::Core::Hashable
|
|
521
521
|
|
|
522
522
|
# The color to assign to the label. Color is only available for labels that
|
|
523
|
-
# have their
|
|
523
|
+
# have their `type` set to `user`.
|
|
524
524
|
# @mutable gmail.users.labels.create gmail.users.labels.update
|
|
525
525
|
# Corresponds to the JSON property `color`
|
|
526
526
|
# @return [Google::Apis::GmailV1::LabelColor]
|
|
@@ -576,9 +576,9 @@ module Google
|
|
|
576
576
|
# added, modified, or deleted. System labels may be able to be applied to or
|
|
577
577
|
# removed from messages and threads under some circumstances but this is
|
|
578
578
|
# not guaranteed. For example, users can apply and remove the
|
|
579
|
-
#
|
|
580
|
-
# threads, but cannot apply or remove the
|
|
581
|
-
#
|
|
579
|
+
# `INBOX` and `UNREAD` labels from messages and
|
|
580
|
+
# threads, but cannot apply or remove the `DRAFTS` or
|
|
581
|
+
# `SENT` labels from messages or threads.
|
|
582
582
|
# Corresponds to the JSON property `type`
|
|
583
583
|
# @return [String]
|
|
584
584
|
attr_accessor :type
|
|
@@ -669,8 +669,8 @@ module Google
|
|
|
669
669
|
|
|
670
670
|
# The language to display Gmail in, formatted as an
|
|
671
671
|
# <a href="https://www.w3.org/International/articles/language-tags/">RFC 3066
|
|
672
|
-
# Language Tag</a> (for example
|
|
673
|
-
#
|
|
672
|
+
# Language Tag</a> (for example `en-GB`, `fr` or
|
|
673
|
+
# `ja` for British English, French, or Japanese respectively).
|
|
674
674
|
# The set of languages supported by Gmail evolves over time, so please refer
|
|
675
675
|
# to the "Language" dropdown in the
|
|
676
676
|
# <a href="https://mail.google.com/mail/u/0/#settings/general">Gmail settings
|
|
@@ -720,9 +720,9 @@ module Google
|
|
|
720
720
|
class ListDraftsResponse
|
|
721
721
|
include Google::Apis::Core::Hashable
|
|
722
722
|
|
|
723
|
-
# List of drafts. Note that the
|
|
724
|
-
#
|
|
725
|
-
#
|
|
723
|
+
# List of drafts. Note that the `Message` property in each
|
|
724
|
+
# `Draft` resource only contains an `id` and a
|
|
725
|
+
# `threadId`. The
|
|
726
726
|
# <a href="/gmail/api/v1/reference/users/messages/get">messages.get</a>
|
|
727
727
|
# method can fetch additional message details.
|
|
728
728
|
# Corresponds to the JSON property `drafts`
|
|
@@ -793,9 +793,9 @@ module Google
|
|
|
793
793
|
class ListHistoryResponse
|
|
794
794
|
include Google::Apis::Core::Hashable
|
|
795
795
|
|
|
796
|
-
# List of history records. Any
|
|
797
|
-
# response will typically only have
|
|
798
|
-
#
|
|
796
|
+
# List of history records. Any `messages` contained in the
|
|
797
|
+
# response will typically only have `id` and
|
|
798
|
+
# `threadId` fields populated.
|
|
799
799
|
# Corresponds to the JSON property `history`
|
|
800
800
|
# @return [Array<Google::Apis::GmailV1::History>]
|
|
801
801
|
attr_accessor :history
|
|
@@ -827,8 +827,8 @@ module Google
|
|
|
827
827
|
include Google::Apis::Core::Hashable
|
|
828
828
|
|
|
829
829
|
# List of labels. Note that each label resource only contains an
|
|
830
|
-
#
|
|
831
|
-
#
|
|
830
|
+
# `id`, `name`, `messageListVisibility`,
|
|
831
|
+
# `labelListVisibility`, and `type`. The
|
|
832
832
|
# <a href="/gmail/api/v1/reference/users/labels/get">labels.get</a> method
|
|
833
833
|
# can fetch additional label details.
|
|
834
834
|
# Corresponds to the JSON property `labels`
|
|
@@ -850,7 +850,7 @@ module Google
|
|
|
850
850
|
include Google::Apis::Core::Hashable
|
|
851
851
|
|
|
852
852
|
# List of messages. Note that each message resource contains only an
|
|
853
|
-
#
|
|
853
|
+
# `id` and a `threadId`. Additional message details can
|
|
854
854
|
# be fetched using the
|
|
855
855
|
# <a href="/gmail/api/v1/reference/users/messages/get">messages.get</a>
|
|
856
856
|
# method.
|
|
@@ -933,7 +933,7 @@ module Google
|
|
|
933
933
|
attr_accessor :result_size_estimate
|
|
934
934
|
|
|
935
935
|
# List of threads. Note that each thread resource does not contain a list of
|
|
936
|
-
#
|
|
936
|
+
# `messages`. The list of `messages` for a given thread
|
|
937
937
|
# can be fetched using the
|
|
938
938
|
# <a href="/gmail/api/v1/reference/users/threads/get">threads.get</a> method.
|
|
939
939
|
# Corresponds to the JSON property `threads`
|
|
@@ -969,8 +969,8 @@ module Google
|
|
|
969
969
|
# The internal message creation timestamp (epoch ms), which determines
|
|
970
970
|
# ordering in the inbox. For normal SMTP-received email, this represents the
|
|
971
971
|
# time the message was originally accepted by Google, which is more reliable
|
|
972
|
-
# than the
|
|
973
|
-
# be configured by client to be based on the
|
|
972
|
+
# than the `Date` header. However, for API-migrated mail, it can
|
|
973
|
+
# be configured by client to be based on the `Date` header.
|
|
974
974
|
# Corresponds to the JSON property `internalDate`
|
|
975
975
|
# @return [Fixnum]
|
|
976
976
|
attr_accessor :internal_date
|
|
@@ -987,8 +987,8 @@ module Google
|
|
|
987
987
|
attr_accessor :payload
|
|
988
988
|
|
|
989
989
|
# The entire email message in an RFC 2822 formatted and base64url
|
|
990
|
-
# encoded string. Returned in
|
|
991
|
-
#
|
|
990
|
+
# encoded string. Returned in `messages.get` and
|
|
991
|
+
# `drafts.get` responses when the `format=RAW`
|
|
992
992
|
# parameter is supplied.
|
|
993
993
|
# @mutable gmail.users.messages.insert gmail.users.messages.send
|
|
994
994
|
# @mutable gmail.users.drafts.create gmail.users.drafts.update
|
|
@@ -1009,13 +1009,13 @@ module Google
|
|
|
1009
1009
|
|
|
1010
1010
|
# The ID of the thread the message belongs to. To add a message or draft to
|
|
1011
1011
|
# a thread, the following criteria must be met:
|
|
1012
|
-
# <ol><li>The requested
|
|
1013
|
-
#
|
|
1012
|
+
# <ol><li>The requested `threadId` must be specified on the
|
|
1013
|
+
# `Message` or `Draft.Message` you supply with your
|
|
1014
1014
|
# request.</li>
|
|
1015
|
-
# <li>The
|
|
1015
|
+
# <li>The `References` and `In-Reply-To` headers must
|
|
1016
1016
|
# be set in compliance with the
|
|
1017
1017
|
# <a href="https://tools.ietf.org/html/rfc2822">RFC 2822</a> standard.</li>
|
|
1018
|
-
# <li>The
|
|
1018
|
+
# <li>The `Subject` headers must match.
|
|
1019
1019
|
# @mutable gmail.users.messages.insert gmail.users.messages.send
|
|
1020
1020
|
# @mutable gmail.users.drafts.create gmail.users.drafts.update
|
|
1021
1021
|
# Corresponds to the JSON property `threadId`
|
|
@@ -1057,8 +1057,8 @@ module Google
|
|
|
1057
1057
|
|
|
1058
1058
|
# List of headers on this message part. For the top-level message part,
|
|
1059
1059
|
# representing the entire message payload, it will contain the standard
|
|
1060
|
-
# RFC 2822 email headers such as
|
|
1061
|
-
#
|
|
1060
|
+
# RFC 2822 email headers such as `To`, `From`, and
|
|
1061
|
+
# `Subject`.
|
|
1062
1062
|
# Corresponds to the JSON property `headers`
|
|
1063
1063
|
# @return [Array<Google::Apis::GmailV1::MessagePartHeader>]
|
|
1064
1064
|
attr_accessor :headers
|
|
@@ -1074,8 +1074,8 @@ module Google
|
|
|
1074
1074
|
attr_accessor :part_id
|
|
1075
1075
|
|
|
1076
1076
|
# The child MIME message parts of this part. This only applies to container
|
|
1077
|
-
# MIME message parts, for example
|
|
1078
|
-
# container MIME message part types, such as
|
|
1077
|
+
# MIME message parts, for example `multipart/*`. For non-
|
|
1078
|
+
# container MIME message part types, such as `text/plain`, this
|
|
1079
1079
|
# field is empty. For more information, see
|
|
1080
1080
|
# <a href="http://www.ietf.org/rfc/rfc1521.txt">RFC 1521</a>.
|
|
1081
1081
|
# Corresponds to the JSON property `parts`
|
|
@@ -1102,7 +1102,7 @@ module Google
|
|
|
1102
1102
|
include Google::Apis::Core::Hashable
|
|
1103
1103
|
|
|
1104
1104
|
# When present, contains the ID of an external attachment that can be
|
|
1105
|
-
# retrieved in a separate
|
|
1105
|
+
# retrieved in a separate `messages.attachments.get` request.
|
|
1106
1106
|
# When not present, the entire content of the message part body is
|
|
1107
1107
|
# contained in the data field.
|
|
1108
1108
|
# Corresponds to the JSON property `attachmentId`
|
|
@@ -1140,14 +1140,14 @@ module Google
|
|
|
1140
1140
|
class MessagePartHeader
|
|
1141
1141
|
include Google::Apis::Core::Hashable
|
|
1142
1142
|
|
|
1143
|
-
# The name of the header before the
|
|
1144
|
-
# example,
|
|
1143
|
+
# The name of the header before the `:` separator. For
|
|
1144
|
+
# example, `To`.
|
|
1145
1145
|
# Corresponds to the JSON property `name`
|
|
1146
1146
|
# @return [String]
|
|
1147
1147
|
attr_accessor :name
|
|
1148
1148
|
|
|
1149
|
-
# The value of the header after the
|
|
1150
|
-
#
|
|
1149
|
+
# The value of the header after the `:` separator. For example,
|
|
1150
|
+
# `someuser@example.com`.
|
|
1151
1151
|
# Corresponds to the JSON property `value`
|
|
1152
1152
|
# @return [String]
|
|
1153
1153
|
attr_accessor :value
|
|
@@ -1299,9 +1299,9 @@ module Google
|
|
|
1299
1299
|
# situations such as composing a new message or sending a vacation
|
|
1300
1300
|
# auto-reply. Every Gmail account has exactly one default send-as address,
|
|
1301
1301
|
# so the only legal value that clients may write to this field is
|
|
1302
|
-
#
|
|
1303
|
-
#
|
|
1304
|
-
#
|
|
1302
|
+
# `true`. Changing this from `false` to
|
|
1303
|
+
# `true` for an address will result in this field becoming
|
|
1304
|
+
# `false` for the other previous default address.
|
|
1305
1305
|
# Corresponds to the JSON property `isDefault`
|
|
1306
1306
|
# @return [Boolean]
|
|
1307
1307
|
attr_accessor :is_default
|
|
@@ -1533,24 +1533,24 @@ module Google
|
|
|
1533
1533
|
|
|
1534
1534
|
# An optional end time for sending auto-replies (epoch ms).
|
|
1535
1535
|
# When this is specified, Gmail will automatically reply only to messages
|
|
1536
|
-
# that it receives before the end time. If both
|
|
1537
|
-
#
|
|
1538
|
-
#
|
|
1536
|
+
# that it receives before the end time. If both `startTime` and
|
|
1537
|
+
# `endTime` are specified, `startTime` must precede
|
|
1538
|
+
# `endTime`.
|
|
1539
1539
|
# Corresponds to the JSON property `endTime`
|
|
1540
1540
|
# @return [Fixnum]
|
|
1541
1541
|
attr_accessor :end_time
|
|
1542
1542
|
|
|
1543
1543
|
# Response body in HTML format. Gmail will sanitize the HTML before
|
|
1544
|
-
# storing it. If both
|
|
1545
|
-
#
|
|
1546
|
-
#
|
|
1544
|
+
# storing it. If both `response_body_plain_text` and
|
|
1545
|
+
# `response_body_html` are specified,
|
|
1546
|
+
# `response_body_html` will be used.
|
|
1547
1547
|
# Corresponds to the JSON property `responseBodyHtml`
|
|
1548
1548
|
# @return [String]
|
|
1549
1549
|
attr_accessor :response_body_html
|
|
1550
1550
|
|
|
1551
1551
|
# Response body in plain text format. If both
|
|
1552
|
-
#
|
|
1553
|
-
# are specified,
|
|
1552
|
+
# `response_body_plain_text` and `response_body_html`
|
|
1553
|
+
# are specified, `response_body_html` will be used.
|
|
1554
1554
|
# Corresponds to the JSON property `responseBodyPlainText`
|
|
1555
1555
|
# @return [String]
|
|
1556
1556
|
attr_accessor :response_body_plain_text
|
|
@@ -1579,9 +1579,9 @@ module Google
|
|
|
1579
1579
|
|
|
1580
1580
|
# An optional start time for sending auto-replies (epoch ms).
|
|
1581
1581
|
# When this is specified, Gmail will automatically reply only to messages
|
|
1582
|
-
# that it receives after the start time. If both
|
|
1583
|
-
#
|
|
1584
|
-
#
|
|
1582
|
+
# that it receives after the start time. If both `startTime` and
|
|
1583
|
+
# `endTime` are specified, `startTime` must precede
|
|
1584
|
+
# `endTime`.
|
|
1585
1585
|
# Corresponds to the JSON property `startTime`
|
|
1586
1586
|
# @return [Fixnum]
|
|
1587
1587
|
attr_accessor :start_time
|
|
@@ -1648,7 +1648,7 @@ module Google
|
|
|
1648
1648
|
include Google::Apis::Core::Hashable
|
|
1649
1649
|
|
|
1650
1650
|
# When Gmail will stop sending notifications for mailbox updates
|
|
1651
|
-
# (epoch millis). Call
|
|
1651
|
+
# (epoch millis). Call `watch` again before this time to renew
|
|
1652
1652
|
# the watch.
|
|
1653
1653
|
# Corresponds to the JSON property `expiration`
|
|
1654
1654
|
# @return [Fixnum]
|