class Google::Apis::GmailV1::MessagePart

A single MIME message part.

Attributes

body[RW]

The body of a single MIME message part. Corresponds to the JSON property `body` @return [Google::Apis::GmailV1::MessagePartBody]

filename[RW]

The filename of the attachment. Only present if this message part represents an attachment. Corresponds to the JSON property `filename` @return [String]

headers[RW]

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>]

mime_type[RW]

The MIME type of the message part. Corresponds to the JSON property `mimeType` @return [String]

part_id[RW]

The immutable ID of the message part. Corresponds to the JSON property `partId` @return [String]

parts[RW]

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

new(**args) click to toggle source
# File lib/google/apis/gmail_v1/classes.rb, line 1045
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/gmail_v1/classes.rb, line 1050
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