@microsoft/msgraph-beta-sdk-directory
Version:
Directory fluent API for Microsoft Graph
72 lines • 4.42 kB
TypeScript
import { type ExternalUserProfile } 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 externalUserProfiles property of the microsoft.graph.directory entity.
*/
export interface ExternalUserProfileItemRequestBuilder extends BaseRequestBuilder<ExternalUserProfileItemRequestBuilder> {
/**
* Delete an externalUserProfile object. Note: To permanently delete the externalUserProfile, follow permanently delete an item. To restore an externalUserProfile, follow restore a deleted item.
* @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/directory-delete-externaluserprofiles?view=graph-rest-beta|Find more info here}
*/
delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
/**
* Retrieve the properties of a specific externalUserProfile.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<ExternalUserProfile>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/externaluserprofile-get?view=graph-rest-beta|Find more info here}
*/
get(requestConfiguration?: RequestConfiguration<ExternalUserProfileItemRequestBuilderGetQueryParameters> | undefined): Promise<ExternalUserProfile | undefined>;
/**
* Update the properties of a externalUserProfile object.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<ExternalUserProfile>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/externaluserprofile-update?view=graph-rest-beta|Find more info here}
*/
patch(body: ExternalUserProfile, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<ExternalUserProfile | undefined>;
/**
* Delete an externalUserProfile object. Note: To permanently delete the externalUserProfile, follow permanently delete an item. To restore an externalUserProfile, follow restore a deleted item.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
/**
* Retrieve the properties of a specific externalUserProfile.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<ExternalUserProfileItemRequestBuilderGetQueryParameters> | undefined): RequestInformation;
/**
* Update the properties of a externalUserProfile object.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toPatchRequestInformation(body: ExternalUserProfile, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
}
/**
* Retrieve the properties of a specific externalUserProfile.
*/
export interface ExternalUserProfileItemRequestBuilderGetQueryParameters {
/**
* Expand related entities
*/
expand?: string[];
/**
* Select properties to be returned
*/
select?: string[];
}
/**
* Uri template for the request builder.
*/
export declare const ExternalUserProfileItemRequestBuilderUriTemplate = "{+baseurl}/directory/externalUserProfiles/{externalUserProfile%2Did}{?%24expand,%24select}";
/**
* Metadata for all the requests in the request builder.
*/
export declare const ExternalUserProfileItemRequestBuilderRequestsMetadata: RequestsMetadata;
//# sourceMappingURL=index.d.ts.map