UNPKG

@microsoft/msgraph-beta-sdk-users

Version:
58 lines 3.48 kB
import { type ReferenceUpdate } 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 collection of user entities. */ export interface RefRequestBuilder extends BaseRequestBuilder<RefRequestBuilder> { /** * Remove a user's manager. * @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 * @see {@link https://learn.microsoft.com/graph/api/user-delete-manager?view=graph-rest-beta|Find more info here} */ delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>; /** * Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<string>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/user-list-manager?view=graph-rest-beta|Find more info here} */ get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<string | undefined>; /** * Assign a user's manager. * @param body The request body * @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 * @see {@link https://learn.microsoft.com/graph/api/user-post-manager?view=graph-rest-beta|Find more info here} */ put(body: ReferenceUpdate, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>; /** * Remove a user's manager. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; /** * Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; /** * Assign a user's manager. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPutRequestInformation(body: ReferenceUpdate, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Uri template for the request builder. */ export declare const RefRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/manager/$ref"; /** * Metadata for all the requests in the request builder. */ export declare const RefRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map