UNPKG

@microsoft/msgraph-sdk-teams

Version:
99 lines 4.36 kB
import { type OpenShift, type OpenShiftCollectionResponse } from '@microsoft/msgraph-sdk/models/index.js'; import { type CountRequestBuilder } from './count/index.js'; import { type OpenShiftItemRequestBuilder } from './item/index.js'; import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Provides operations to manage the openShifts property of the microsoft.graph.schedule entity. */ export interface OpenShiftsRequestBuilder extends BaseRequestBuilder<OpenShiftsRequestBuilder> { /** * Provides operations to count the resources in the collection. */ get count(): CountRequestBuilder; /** * Provides operations to manage the openShifts property of the microsoft.graph.schedule entity. * @param openShiftId The unique identifier of openShift * @returns {OpenShiftItemRequestBuilder} */ byOpenShiftId(openShiftId: string): OpenShiftItemRequestBuilder; /** * List openShift objects in a team. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<OpenShiftCollectionResponse>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/openshift-list?view=graph-rest-1.0|Find more info here} */ get(requestConfiguration?: RequestConfiguration<OpenShiftsRequestBuilderGetQueryParameters> | undefined): Promise<OpenShiftCollectionResponse | undefined>; /** * Create an instance of an openShift object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<OpenShift>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/openshift-post?view=graph-rest-1.0|Find more info here} */ post(body: OpenShift, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<OpenShift | undefined>; /** * List openShift objects in a team. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<OpenShiftsRequestBuilderGetQueryParameters> | undefined): RequestInformation; /** * Create an instance of an openShift object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPostRequestInformation(body: OpenShift, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * List openShift objects in a team. */ export interface OpenShiftsRequestBuilderGetQueryParameters { /** * Include count of items */ count?: boolean; /** * Expand related entities */ expand?: string[]; /** * Filter items by property values */ filter?: string; /** * Order items by property values */ orderby?: string[]; /** * Search items by search phrases */ search?: string; /** * Select properties to be returned */ select?: string[]; /** * Skip the first n items */ skip?: number; /** * Show only the first n items */ top?: number; } /** * Uri template for the request builder. */ export declare const OpenShiftsRequestBuilderUriTemplate = "{+baseurl}/teams/{team%2Did}/schedule/openShifts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; /** * Metadata for all the navigation properties in the request builder. */ export declare const OpenShiftsRequestBuilderNavigationMetadata: Record<Exclude<keyof OpenShiftsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>; /** * Metadata for all the requests in the request builder. */ export declare const OpenShiftsRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map