Class EventsResource.InsertRequest
Creates an event.
Inheritance
Inherited Members
Namespace: Google.Apis.Calendar.v3
Assembly: Google.Apis.Calendar.v3.dll
Syntax
public class EventsResource.InsertRequest : CalendarBaseServiceRequest<Event>, IClientServiceRequest<Event>, IClientServiceRequest
Constructors
InsertRequest(IClientService, Event, string)
Constructs a new Insert request.
Declaration
public InsertRequest(IClientService service, Event body, string calendarId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
Event | body | |
string | calendarId |
Properties
CalendarId
Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword.
Declaration
[RequestParameter("calendarId", RequestParameterType.Path)]
public virtual string CalendarId { get; }
Property Value
Type | Description |
---|---|
string |
ConferenceDataVersion
Version number of conference data supported by the API client. Version 0 assumes no conference data support and ignores conference data in the event's body. Version 1 enables support for copying of ConferenceData as well as for creating new conferences using the createRequest field of conferenceData. The default is 0.
Declaration
[RequestParameter("conferenceDataVersion", RequestParameterType.Query)]
public virtual int? ConferenceDataVersion { get; set; }
Property Value
Type | Description |
---|---|
int? |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MaxAttendees
The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.
Declaration
[RequestParameter("maxAttendees", RequestParameterType.Query)]
public virtual int? MaxAttendees { get; set; }
Property Value
Type | Description |
---|---|
int? |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
SendNotifications
Deprecated. Please use sendUpdates instead. Whether to send notifications about the creation of the new event. Note that some emails might still be sent even if you set the value to false. The default is false.
Declaration
[RequestParameter("sendNotifications", RequestParameterType.Query)]
public virtual bool? SendNotifications { get; set; }
Property Value
Type | Description |
---|---|
bool? |
SendUpdates
Whether to send notifications about the creation of the new event. Note that some emails might still be sent. The default is false.
Declaration
[RequestParameter("sendUpdates", RequestParameterType.Query)]
public virtual EventsResource.InsertRequest.SendUpdatesEnum? SendUpdates { get; set; }
Property Value
Type | Description |
---|---|
EventsResource.InsertRequest.SendUpdatesEnum? |
SupportsAttachments
Whether API client performing operation supports event attachments. Optional. The default is False.
Declaration
[RequestParameter("supportsAttachments", RequestParameterType.Query)]
public virtual bool? SupportsAttachments { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Insert parameter list.
Declaration
protected override void InitParameters()