UNPKG

@microsoft/msgraph-beta-sdk-groups

Version:
69 lines 3.65 kB
import { type TimeOffReason } from '@microsoft/msgraph-beta-sdk/models/index.js'; import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Provides operations to manage the timeOffReasons property of the microsoft.graph.schedule entity. */ export interface TimeOffReasonItemRequestBuilder extends BaseRequestBuilder<TimeOffReasonItemRequestBuilder> { /** * Delete navigation property timeOffReasons for groups * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>; /** * The set of reasons for a time off in the schedule. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<TimeOffReason>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ get(requestConfiguration?: RequestConfiguration<TimeOffReasonItemRequestBuilderGetQueryParameters> | undefined): Promise<TimeOffReason | undefined>; /** * Update the navigation property timeOffReasons in groups * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<TimeOffReason>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ patch(body: TimeOffReason, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<TimeOffReason | undefined>; /** * Delete navigation property timeOffReasons for groups * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; /** * The set of reasons for a time off in the schedule. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<TimeOffReasonItemRequestBuilderGetQueryParameters> | undefined): RequestInformation; /** * Update the navigation property timeOffReasons in groups * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPatchRequestInformation(body: TimeOffReason, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * The set of reasons for a time off in the schedule. */ export interface TimeOffReasonItemRequestBuilderGetQueryParameters { /** * Expand related entities */ expand?: string[]; /** * Select properties to be returned */ select?: string[]; } /** * Uri template for the request builder. */ export declare const TimeOffReasonItemRequestBuilderUriTemplate = "{+baseurl}/groups/{group%2Did}/team/schedule/timeOffReasons/{timeOffReason%2Did}{?%24expand,%24select}"; /** * Metadata for all the requests in the request builder. */ export declare const TimeOffReasonItemRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map