/// <summary>
        /// Asynchronously Retrieve Schedule Calendars, with support for cancellation.
        /// </summary>
        /// <remarks>
        /// Retrieves a list of all schedule calendars associated with your
        /// employees, with optional filters to narrow down the results.
        /// </remarks>
        /// <param name="filter">
        /// An instance of the <see cref="ScheduleCalendarFilter"/> class, for narrowing down the results.
        /// </param>
        /// <param name="options">
        /// An instance of the <see cref="RequestOptions"/> class, for customizing method processing.
        /// </param>
        /// <param name="cancellationToken">
        /// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
        /// </param>
        /// <returns>
        /// An enumerable set of <see cref="ScheduleCalendar"/> objects, along with an output
        /// instance of the <see cref="ResultsMeta"/> class containing additional data.
        /// </returns>
        public async Task <(IList <ScheduleCalendar>, ResultsMeta)> GetScheduleCalendarsAsync(
            ScheduleCalendarFilter filter,
            RequestOptions options,
            CancellationToken cancellationToken)
        {
            var context = new GetContext <ScheduleCalendar>(EndpointName.ScheduleCalendars, filter, options);

            await ExecuteOperationAsync(context, cancellationToken).ConfigureAwait(false);

            return(context.Results.Items, context.ResultsMeta);
        }
 /// <summary>
 /// Retrieve Schedule Calendars.
 /// </summary>
 /// <remarks>
 /// Retrieves a list of all schedule calendars associated with your
 /// employees, with optional filters to narrow down the results.
 /// </remarks>
 /// <param name="filter">
 /// An instance of the <see cref="ScheduleCalendarFilter"/> class, for narrowing down the results.
 /// </param>
 /// <returns>
 /// An enumerable set of <see cref="ScheduleCalendar"/> objects, along with an output
 /// instance of the <see cref="ResultsMeta"/> class containing additional data.
 /// </returns>
 public (IList <ScheduleCalendar>, ResultsMeta) GetScheduleCalendars(
     ScheduleCalendarFilter filter)
 {
     return(AsyncUtil.RunSync(() => GetScheduleCalendarsAsync(filter)));
 }
 /// <summary>
 /// Asynchronously Retrieve Schedule Calendars.
 /// </summary>
 /// <remarks>
 /// Retrieves a list of all schedule calendars associated with your
 /// employees, with optional filters to narrow down the results.
 /// </remarks>
 /// <param name="filter">
 /// An instance of the <see cref="ScheduleCalendarFilter"/> class, for narrowing down the results.
 /// </param>
 /// <param name="options">
 /// An instance of the <see cref="RequestOptions"/> class, for customizing method processing.
 /// </param>
 /// <returns>
 /// An enumerable set of <see cref="ScheduleCalendar"/> objects, along with an output
 /// instance of the <see cref="ResultsMeta"/> class containing additional data.
 /// </returns>
 public async Task <(IList <ScheduleCalendar>, ResultsMeta)> GetScheduleCalendarsAsync(
     ScheduleCalendarFilter filter,
     RequestOptions options)
 {
     return(await GetScheduleCalendarsAsync(filter, options, default).ConfigureAwait(false));
 }
 /// <summary>
 /// Asynchronously Retrieve Schedule Calendars, with support for cancellation.
 /// </summary>
 /// <remarks>
 /// Retrieves a list of all schedule calendars associated with your
 /// employees, with optional filters to narrow down the results.
 /// </remarks>
 /// <param name="filter">
 /// An instance of the <see cref="ScheduleCalendarFilter"/> class, for narrowing down the results.
 /// </param>
 /// <param name="cancellationToken">
 /// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
 /// </param>
 /// <returns>
 /// An enumerable set of <see cref="ScheduleCalendar"/> objects, along with an output
 /// instance of the <see cref="ResultsMeta"/> class containing additional data.
 /// </returns>
 public async Task <(IList <ScheduleCalendar>, ResultsMeta)> GetScheduleCalendarsAsync(
     ScheduleCalendarFilter filter,
     CancellationToken cancellationToken)
 {
     return(await GetScheduleCalendarsAsync(filter, null, cancellationToken).ConfigureAwait(false));
 }
 /// <summary>
 /// Asynchronously Retrieve Schedule Calendars.
 /// </summary>
 /// <remarks>
 /// Retrieves a list of all schedule calendars associated with your
 /// employees, with optional filters to narrow down the results.
 /// </remarks>
 /// <param name="filter">
 /// An instance of the <see cref="ScheduleCalendarFilter"/> class, for narrowing down the results.
 /// </param>
 /// <returns>
 /// An enumerable set of <see cref="ScheduleCalendar"/> objects, along with an output
 /// instance of the <see cref="ResultsMeta"/> class containing additional data.
 /// </returns>
 public async Task <(IList <ScheduleCalendar>, ResultsMeta)> GetScheduleCalendarsAsync(
     ScheduleCalendarFilter filter)
 {
     return(await GetScheduleCalendarsAsync(filter, null, default).ConfigureAwait(false));
 }
 /// <summary>
 /// Retrieve Schedule Calendars.
 /// </summary>
 /// <remarks>
 /// Retrieves a list of all schedule calendars associated with your
 /// employees, with optional filters to narrow down the results.
 /// </remarks>
 /// <param name="filter">
 /// An instance of the <see cref="ScheduleCalendarFilter"/> class, for narrowing down the results.
 /// </param>
 /// <param name="options">
 /// An instance of the <see cref="RequestOptions"/> class, for customizing method processing.
 /// </param>
 /// <returns>
 /// An enumerable set of <see cref="ScheduleCalendar"/> objects, along with an output
 /// instance of the <see cref="ResultsMeta"/> class containing additional data.
 /// </returns>
 public (IList <ScheduleCalendar>, ResultsMeta) GetScheduleCalendars(
     ScheduleCalendarFilter filter,
     RequestOptions options)
 {
     return(AsyncUtil.RunSync(() => GetScheduleCalendarsAsync(filter, options)));
 }