/// <summary> /// Validate calendar name, and check if it already exists. /// </summary> /// <remarks> /// Client Credentials Flow required permissions: Settings or Settings.Write. /// /// Required permissions: (Settings.Edit). /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='calendarExistsParameters'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ODataValueBoolean> CalendarExistsAsync(this ICalendars operations, CalendarExistsParameters calendarExistsParameters = default(CalendarExistsParameters), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.CalendarExistsWithHttpMessagesAsync(calendarExistsParameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Validate calendar name, and check if it already exists. /// </summary> /// <remarks> /// Client Credentials Flow required permissions: Settings or Settings.Write. /// /// Required permissions: (Settings.Edit). /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='body'> /// </param> /// <param name='expand'> /// Indicates the related entities to be represented inline. The maximum depth /// is 2. /// </param> /// <param name='select'> /// Limits the properties returned in the result. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ODataValueOfBoolean> CalendarExistsAsync(this ICalendars operations, CalendarsCalendarExistsParameters body = default(CalendarsCalendarExistsParameters), string expand = default(string), string select = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CalendarExistsWithHttpMessagesAsync(body, expand, select, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }