class Google::Apis::GmailV1::MessagePart
A single MIME message part.
Attributes
The body of a single MIME message part. Corresponds to the JSON property `body` @return [Google::Apis::GmailV1::MessagePartBody]
The filename of the attachment. Only present if this message part represents an attachment. Corresponds to the JSON property `filename` @return [String]
List of headers on this message part. For the top-level message part, representing the entire message payload, it will contain the standard RFC 2822 email headers such as To, From, and Subject. Corresponds to the JSON property `headers` @return [Array<Google::Apis::GmailV1::MessagePartHeader>]
The MIME type of the message part. Corresponds to the JSON property `mimeType` @return [String]
The immutable ID of the message part. Corresponds to the JSON property `partId` @return [String]
The child MIME message parts of this part. This only applies to container MIME message parts, for example multipart/*. For non- container MIME message part types, such as text/plain, this field is empty. For more information, see RFC 1521. Corresponds to the JSON property `parts` @return [Array<Google::Apis::GmailV1::MessagePart>]
Public Class Methods
# File generated/google/apis/gmail_v1/classes.rb, line 546 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/gmail_v1/classes.rb, line 551 def update!(**args) @body = args[:body] if args.key?(:body) @filename = args[:filename] if args.key?(:filename) @headers = args[:headers] if args.key?(:headers) @mime_type = args[:mime_type] if args.key?(:mime_type) @part_id = args[:part_id] if args.key?(:part_id) @parts = args[:parts] if args.key?(:parts) end