Skip to content

New GCalendarEventObj

Spencer Varney edited this page Dec 14, 2016 · 3 revisions

New-GCalendarEventObj

SYNOPSIS

Creates a new Calendar API Event object.

SYNTAX

New-GCalendarEventObj [[-AnyoneCanAddSelf] <Boolean>] [[-Attachments] <EventAttachment[]>]
 [[-Attendees] <EventAttendee[]>] [[-AttendeesOmitted] <Boolean>] [[-ColorId] <String>] [[-Created] <DateTime>]
 [[-Creator] <CreatorData>] [[-Description] <String>] [[-End] <EventDateTime>]
 [[-EndTimeUnspecified] <Boolean>] [[-ExtendedProperties] <ExtendedPropertiesData>] [[-Gadget] <GadgetData>]
 [[-GuestsCanInviteOthers] <Boolean>] [[-GuestsCanModify] <Boolean>] [[-GuestsCanSeeOtherGuests] <Boolean>]
 [[-HangoutLink] <String>] [[-HtmlLink] <String>] [[-ICalUID] <String>] [[-Id] <String>] [[-Location] <String>]
 [[-Locked] <Boolean>] [[-Organizer] <OrganizerData>] [[-OriginalStartTime] <EventDateTime>]
 [[-PrivateCopy] <Boolean>] [[-Recurrence] <String[]>] [[-RecurringEventId] <String>]
 [[-Reminders] <RemindersData>] [[-Sequence] <Int32>] [[-Source] <SourceData>] [[-Start] <EventDateTime>]
 [[-Status] <String>] [[-Summary] <String>] [[-Transparency] <String>] [[-Updated] <DateTime>]
 [[-Visibility] <String>] [-WhatIf] [-Confirm]

DESCRIPTION

This provides a Cmdlet-Based approach to creating a Event 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.Event

EXAMPLES

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

PS C:\> New-GCalendarEventObj

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

-AnyoneCanAddSelf

Whether anyone can invite themselves to the event (currently works for Google+ events only). Optional. The default is False.

Type: Boolean
Parameter Sets: (All)
Aliases: 

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

-Attachments

File attachments for the event. Currently only Google Drive attachments are supported.In order to modify attachments the supportsAttachments request parameter should be set to true.There can be at most 25 attachments per event,

Type: EventAttachment[]
Parameter Sets: (All)
Aliases: 

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

-Attendees

The attendees of the event. See the Events with attendees guide for more information on scheduling events with other calendar users.

Type: EventAttendee[]
Parameter Sets: (All)
Aliases: 

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

-AttendeesOmitted

Whether attendees may have been omitted from the event's representation. When retrieving an event, this may be due to a restriction specified by the maxAttendee query parameter. When updating an event, this can be used to only update the participant's response. Optional. The default is False.

Type: Boolean
Parameter Sets: (All)
Aliases: 

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

-ColorId

The color of the event. This is an ID referring to an entry in the event section of the colors definition (see the colors endpoint). Optional.

Type: String
Parameter Sets: (All)
Aliases: 

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

-Created

Creation time of the event (as a RFC3339 timestamp). Read-only.

Type: DateTime
Parameter Sets: (All)
Aliases: 

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

-Creator

The creator of the event. Read-only.

Type: CreatorData
Parameter Sets: (All)
Aliases: 

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

-Description

Description of the event. Optional.

Type: String
Parameter Sets: (All)
Aliases: 

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

-End

The (exclusive) end time of the event. For a recurring event, this is the end time of the first instance.

Type: EventDateTime
Parameter Sets: (All)
Aliases: 

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

-EndTimeUnspecified

Whether the end time is actually unspecified. An end time is still provided for compatibility reasons, even if this attribute is set to True. The default is False.

Type: Boolean
Parameter Sets: (All)
Aliases: 

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

-ExtendedProperties

Extended properties of the event.

Type: ExtendedPropertiesData
Parameter Sets: (All)
Aliases: 

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

-Gadget

A gadget that extends this event.

Type: GadgetData
Parameter Sets: (All)
Aliases: 

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

-GuestsCanInviteOthers

Whether attendees other than the organizer can invite others to the event. Optional. The default is True.

Type: Boolean
Parameter Sets: (All)
Aliases: 

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

-GuestsCanModify

Whether attendees other than the organizer can modify the event. Optional. The default is False.

Type: Boolean
Parameter Sets: (All)
Aliases: 

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

-GuestsCanSeeOtherGuests

Whether attendees other than the organizer can see who the event's attendees are. Optional. The default is True.

Type: Boolean
Parameter Sets: (All)
Aliases: 

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

-HangoutLink

An absolute link to the Google+ hangout associated with this event. Read-only.

Type: String
Parameter Sets: (All)
Aliases: 

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

-HtmlLink

An absolute link to this event in the Google Calendar Web UI. Read-only.

Type: String
Parameter Sets: (All)
Aliases: 

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

-ICalUID

Event unique identifier as defined in RFC5545. It is used to uniquely identify events accross calendaring systems and must be supplied when importing events via the import method.Note that the icalUID and the id are not identical and only one of them should be supplied at event creation time. One difference in their semantics is that in recurring events, all occurrences of one event have different ids while they all share the same icalUIDs.

Type: String
Parameter Sets: (All)
Aliases: 

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

-Id

Opaque identifier of the event. When creating new single or recurring events, you can specify their IDs. Provided IDs must follow these rules:- characters allowed in the ID are those used in base32hex encoding, i.e. lowercase letters a-v and digits 0-9, see section 3.1.2 in RFC2938- the length of the ID must be between 5 and 1024 characters- the ID must be unique per calendar Due to the globally distributed nature of the system, we cannot guarantee that ID collisions will be detected at event creation time. To minimize the risk of collisions we recommend using an established UUID algorithm such as one described in RFC4122.If you do not specify an ID, it will be automatically generated by the server.Note that the icalUID and the id are not identical and only one of them should be supplied at event creation time. One difference in their semantics is that in recurring events, all occurrences of one event have different ids while they all share the same icalUIDs.

Type: String
Parameter Sets: (All)
Aliases: 

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

-Location

Geographic location of the event as free-form text. Optional.

Type: String
Parameter Sets: (All)
Aliases: 

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

-Locked

Whether this is a locked event copy where no changes can be made to the main event fields "summary", "description", "location", "start", "end" or "recurrence". The default is False. Read-Only.

Type: Boolean
Parameter Sets: (All)
Aliases: 

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

-Organizer

The organizer of the event. If the organizer is also an attendee, this is indicated with a separate entry in attendees with the organizer field set to True. To change the organizer, use the move operation. Read-only, except when importing an event.

Type: OrganizerData
Parameter Sets: (All)
Aliases: 

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

-OriginalStartTime

For an instance of a recurring event, this is the time at which this event would start according to the recurrence data in the recurring event identified by recurringEventId. Immutable.

Type: EventDateTime
Parameter Sets: (All)
Aliases: 

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

-PrivateCopy

Whether this is a private event copy where changes are not shared with other copies on other calendars. Optional. Immutable. The default is False.

Type: Boolean
Parameter Sets: (All)
Aliases: 

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

-Recurrence

List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event, as specified in RFC5545. Note that DTSTART and DTEND lines are not allowed in this field; event start and end times are specified in the start and end fields. This field is omitted for single events or instances of recurring events.

Type: String[]
Parameter Sets: (All)
Aliases: 

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

-RecurringEventId

For an instance of a recurring event, this is the id of the recurring event to which this instance belongs. Immutable.

Type: String
Parameter Sets: (All)
Aliases: 

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

-Reminders

Information about the event's reminders for the authenticated user.

Type: RemindersData
Parameter Sets: (All)
Aliases: 

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

-Sequence

Sequence number as per iCalendar.

Type: Int32
Parameter Sets: (All)
Aliases: 

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

-Source

Source from which the event was created. For example, a web page, an email message or any document identifiable by an URL with HTTP or HTTPS scheme. Can only be seen or modified by the creator of the event.

Type: SourceData
Parameter Sets: (All)
Aliases: 

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

-Start

The (inclusive) start time of the event. For a recurring event, this is the start time of the first instance.

Type: EventDateTime
Parameter Sets: (All)
Aliases: 

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

-Status

Status of the event. Optional. Possible values are:- "confirmed" - The event is confirmed. This is the default status.- "tentative" - The event is tentatively confirmed.- "cancelled" - The event is cancelled.

Type: String
Parameter Sets: (All)
Aliases: 

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

-Summary

Title of the event.

Type: String
Parameter Sets: (All)
Aliases: 

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

-Transparency

Whether the event blocks time on the calendar. Optional. Possible values are:- "opaque" - The event blocks time on the calendar. This is the default value.- "transparent" - The event does not block time on the calendar.

Type: String
Parameter Sets: (All)
Aliases: 

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

-Updated

Last modification time of the event (as a RFC3339 timestamp). Read-only.

Type: DateTime
Parameter Sets: (All)
Aliases: 

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

-Visibility

Visibility of the event. Optional. Possible values are:- "default" - Uses the default visibility for events on the calendar. This is the default value.- "public" - The event is public and event details are visible to all readers of the calendar.- "private" - The event is private and only event attendees may view event details.- "confidential" - The event is private. This value is provided for compatibility reasons.

Type: String
Parameter Sets: (All)
Aliases: 

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

INPUTS

System.Boolean

Whether anyone can invite themselves to the event (currently works for Google+ events only). Optional. The default is False.

Google.Apis.Calendar.v3.Data.EventAttachment[]

File attachments for the event. Currently only Google Drive attachments are supported.In order to modify attachments the supportsAttachments request parameter should be set to true.There can be at most 25 attachments per event,

Google.Apis.Calendar.v3.Data.EventAttendee[]

The attendees of the event. See the Events with attendees guide for more information on scheduling events with other calendar users.

System.Boolean

Whether attendees may have been omitted from the event's representation. When retrieving an event, this may be due to a restriction specified by the maxAttendee query parameter. When updating an event, this can be used to only update the participant's response. Optional. The default is False.

System.String

The color of the event. This is an ID referring to an entry in the event section of the colors definition (see the colors endpoint). Optional.

System.DateTime

Creation time of the event (as a RFC3339 timestamp). Read-only.

Google.Apis.Calendar.v3.Data.Event+CreatorData

The creator of the event. Read-only.

System.String

Description of the event. Optional.

Google.Apis.Calendar.v3.Data.EventDateTime

The (exclusive) end time of the event. For a recurring event, this is the end time of the first instance.

System.Boolean

Whether the end time is actually unspecified. An end time is still provided for compatibility reasons, even if this attribute is set to True. The default is False.

Google.Apis.Calendar.v3.Data.Event+ExtendedPropertiesData

Extended properties of the event.

Google.Apis.Calendar.v3.Data.Event+GadgetData

A gadget that extends this event.

System.Boolean

Whether attendees other than the organizer can invite others to the event. Optional. The default is True.

System.Boolean

Whether attendees other than the organizer can modify the event. Optional. The default is False.

System.Boolean

Whether attendees other than the organizer can see who the event's attendees are. Optional. The default is True.

System.String

An absolute link to the Google+ hangout associated with this event. Read-only.

System.String

An absolute link to this event in the Google Calendar Web UI. Read-only.

System.String

Event unique identifier as defined in RFC5545. It is used to uniquely identify events accross calendaring systems and must be supplied when importing events via the import method.Note that the icalUID and the id are not identical and only one of them should be supplied at event creation time. One difference in their semantics is that in recurring events, all occurrences of one event have different ids while they all share the same icalUIDs.

System.String

Opaque identifier of the event. When creating new single or recurring events, you can specify their IDs. Provided IDs must follow these rules:- characters allowed in the ID are those used in base32hex encoding, i.e. lowercase letters a-v and digits 0-9, see section 3.1.2 in RFC2938- the length of the ID must be between 5 and 1024 characters- the ID must be unique per calendar Due to the globally distributed nature of the system, we cannot guarantee that ID collisions will be detected at event creation time. To minimize the risk of collisions we recommend using an established UUID algorithm such as one described in RFC4122.If you do not specify an ID, it will be automatically generated by the server.Note that the icalUID and the id are not identical and only one of them should be supplied at event creation time. One difference in their semantics is that in recurring events, all occurrences of one event have different ids while they all share the same icalUIDs.

System.String

Geographic location of the event as free-form text. Optional.

System.Boolean

Whether this is a locked event copy where no changes can be made to the main event fields "summary", "description", "location", "start", "end" or "recurrence". The default is False. Read-Only.

Google.Apis.Calendar.v3.Data.Event+OrganizerData

The organizer of the event. If the organizer is also an attendee, this is indicated with a separate entry in attendees with the organizer field set to True. To change the organizer, use the move operation. Read-only, except when importing an event.

Google.Apis.Calendar.v3.Data.EventDateTime

For an instance of a recurring event, this is the time at which this event would start according to the recurrence data in the recurring event identified by recurringEventId. Immutable.

System.Boolean

Whether this is a private event copy where changes are not shared with other copies on other calendars. Optional. Immutable. The default is False.

System.String[]

List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event, as specified in RFC5545. Note that DTSTART and DTEND lines are not allowed in this field; event start and end times are specified in the start and end fields. This field is omitted for single events or instances of recurring events.

System.String

For an instance of a recurring event, this is the id of the recurring event to which this instance belongs. Immutable.

Google.Apis.Calendar.v3.Data.Event+RemindersData

Information about the event's reminders for the authenticated user.

System.Int32

Sequence number as per iCalendar.

Google.Apis.Calendar.v3.Data.Event+SourceData

Source from which the event was created. For example, a web page, an email message or any document identifiable by an URL with HTTP or HTTPS scheme. Can only be seen or modified by the creator of the event.

Google.Apis.Calendar.v3.Data.EventDateTime

The (inclusive) start time of the event. For a recurring event, this is the start time of the first instance.

System.String

Status of the event. Optional. Possible values are:- "confirmed" - The event is confirmed. This is the default status.- "tentative" - The event is tentatively confirmed.- "cancelled" - The event is cancelled.

System.String

Title of the event.

System.String

Whether the event blocks time on the calendar. Optional. Possible values are:- "opaque" - The event blocks time on the calendar. This is the default value.- "transparent" - The event does not block time on the calendar.

System.DateTime

Last modification time of the event (as a RFC3339 timestamp). Read-only.

System.String

Visibility of the event. Optional. Possible values are:- "default" - Uses the default visibility for events on the calendar. This is the default value.- "public" - The event is public and event details are visible to all readers of the calendar.- "private" - The event is private and only event attendees may view event details.- "confidential" - The event is private. This value is provided for compatibility reasons.

OUTPUTS

Google.Apis.Calendar.v3.Data.Event

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