-
Notifications
You must be signed in to change notification settings - Fork 10
New GGmailMessagePartObj
Creates a new Gmail API MessagePart object.
New-GGmailMessagePartObj [-PartId] <String> [-MimeType] <String> [-Filename] <String> [-Headers] <Hashtable>
[-BodyAttachmentId] <String> [-BodyData] <String> [-BodySize] <Int32> [-Parts] <MessagePart[]> [-WhatIf]
[-Confirm]
This provides a Cmdlet-Based approach to creating a MessagePart object which may be required as a parameter for some other Cmdlets in the Gmail API category.
You could alternately create this object by calling New-Object -TypeName Google.Apis.Gmail.v1.Data.MessagePart
PS C:\> New-GGmailMessagePartObj
This automatically generated example serves to show the bare minimum required to call this Cmdlet.
Additional examples may be added, viewed and edited by users on the community wiki at the URL found in the related links.
The immutable ID of the message part.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The MIME type of the message part.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The filename of the attachment. Only present if this message part represents an attachment.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Hashtable 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.
Type: Hashtable
Parameter Sets: (All)
Aliases:
Required: True
Position: 3
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
When present, contains the ID of an external attachment that can be retrieved in a separate messages.attachments.get request. When not present, the entire content of the message part body is contained in the data field.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 4
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The body data of a MIME message part. May be empty for MIME container types that have no message body or when the body data is sent as a separate attachment. An attachment ID is present if the body data is contained in a separate attachment.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 5
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Total number of bytes in the body of the message part.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: True
Position: 6
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
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.
Type: MessagePart[]
Parameter Sets: (All)
Aliases:
Required: True
Position: 7
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The immutable ID of the message part.
The MIME type of the message part.
The filename of the attachment. Only present if this message part represents an attachment.
Hashtable 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.
When present, contains the ID of an external attachment that can be retrieved in a separate messages.attachments.get request. When not present, the entire content of the message part body is contained in the data field.
The body data of a MIME message part. May be empty for MIME container types that have no message body or when the body data is sent as a separate attachment. An attachment ID is present if the body data is contained in a separate attachment.
Total number of bytes in the body of the message part.
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.
Part of the gShell Project, relating to the Google Gmail API; see Related Links or use the -Online parameter.
News - Get Started - Cmdlet Index - FAQ - Discussion - Downloads