Skip to content

New GCalendarEventAttachmentObj

Spencer Varney edited this page Dec 9, 2016 · 2 revisions

New-GCalendarEventAttachmentObj

SYNOPSIS

Creates a new Calendar API EventAttachment object.

SYNTAX

New-GCalendarEventAttachmentObj [[-FileId] <String>] [[-FileUrl] <String>] [[-IconLink] <String>]
 [[-MimeType] <String>] [[-Title] <String>] [-WhatIf] [-Confirm]

DESCRIPTION

This provides a Cmdlet-Based approach to creating a EventAttachment object which may be required as a parameter for some other Cmdlets in the Calendar API category.

You could alternately create this object by calling New-Object -TypeName Google.Apis.Calendar.v3.Data.EventAttachment

EXAMPLES

---------- EXAMPLE 1 ----------

PS C:\> New-GCalendarEventAttachmentObj

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.

PARAMETERS

-FileId

ID of the attached file. Read-only.For Google Drive files, this is the ID of the corresponding Files resource entry in the Drive API.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 0
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-FileUrl

URL link to the attachment.For adding Google Drive file attachments use the same format as in alternateLink property of the Files resource in the Drive API.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 1
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-IconLink

URL link to the attachment's icon. Read-only.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 2
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-MimeType

Internet media type (MIME type) of the attachment.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 3
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Title

Attachment title.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 4
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

INPUTS

System.String

ID of the attached file. Read-only.For Google Drive files, this is the ID of the corresponding Files resource entry in the Drive API.

System.String

URL link to the attachment.For adding Google Drive file attachments use the same format as in alternateLink property of the Files resource in the Drive API.

System.String

URL link to the attachment's icon. Read-only.

System.String

Internet media type (MIME type) of the attachment.

System.String

Attachment title.

OUTPUTS

Google.Apis.Calendar.v3.Data.EventAttachment

NOTES

Part of the gShell Project, relating to the Google Calendar API; see Related Links or use the -Online parameter.

RELATED LINKS

[Wiki page for this Cmdlet]

[Getting started with gShell]

Clone this wiki locally