@microsoft/msgraph-beta-sdk-education
Version:
Education fluent API for Microsoft Graph
106 lines • 5.61 kB
TypeScript
import { type EducationUser } from '@microsoft/msgraph-beta-sdk/models/index.js';
import { type AssignmentsRequestBuilder } from './assignments/index.js';
import { type ClassesRequestBuilder } from './classes/index.js';
import { type RubricsRequestBuilder } from './rubrics/index.js';
import { type SchoolsRequestBuilder } from './schools/index.js';
import { type TaughtClassesRequestBuilder } from './taughtClasses/index.js';
import { type UserRequestBuilder } from './user/index.js';
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
/**
* Provides operations to manage the users property of the microsoft.graph.educationRoot entity.
*/
export interface EducationUserItemRequestBuilder extends BaseRequestBuilder<EducationUserItemRequestBuilder> {
/**
* Provides operations to manage the assignments property of the microsoft.graph.educationUser entity.
*/
get assignments(): AssignmentsRequestBuilder;
/**
* Provides operations to manage the classes property of the microsoft.graph.educationUser entity.
*/
get classes(): ClassesRequestBuilder;
/**
* Provides operations to manage the rubrics property of the microsoft.graph.educationUser entity.
*/
get rubrics(): RubricsRequestBuilder;
/**
* Provides operations to manage the schools property of the microsoft.graph.educationUser entity.
*/
get schools(): SchoolsRequestBuilder;
/**
* Provides operations to manage the taughtClasses property of the microsoft.graph.educationUser entity.
*/
get taughtClasses(): TaughtClassesRequestBuilder;
/**
* Provides operations to manage the user property of the microsoft.graph.educationUser entity.
*/
get user(): UserRequestBuilder;
/**
* Delete a user.
* @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/educationuser-delete?view=graph-rest-beta|Find more info here}
*/
delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
/**
* Retrieve the properties and relationships of a user.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<EducationUser>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/educationuser-get?view=graph-rest-beta|Find more info here}
*/
get(requestConfiguration?: RequestConfiguration<EducationUserItemRequestBuilderGetQueryParameters> | undefined): Promise<EducationUser | undefined>;
/**
* Update the properties of an educationuser object.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<EducationUser>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/educationuser-update?view=graph-rest-beta|Find more info here}
*/
patch(body: EducationUser, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<EducationUser | undefined>;
/**
* Delete a user.
* @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 and relationships of a user.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<EducationUserItemRequestBuilderGetQueryParameters> | undefined): RequestInformation;
/**
* Update the properties of an educationuser object.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toPatchRequestInformation(body: EducationUser, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
}
/**
* Retrieve the properties and relationships of a user.
*/
export interface EducationUserItemRequestBuilderGetQueryParameters {
/**
* Expand related entities
*/
expand?: string[];
/**
* Select properties to be returned
*/
select?: string[];
}
/**
* Uri template for the request builder.
*/
export declare const EducationUserItemRequestBuilderUriTemplate = "{+baseurl}/education/users/{educationUser%2Did}{?%24expand,%24select}";
/**
* Metadata for all the navigation properties in the request builder.
*/
export declare const EducationUserItemRequestBuilderNavigationMetadata: Record<Exclude<keyof EducationUserItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
/**
* Metadata for all the requests in the request builder.
*/
export declare const EducationUserItemRequestBuilderRequestsMetadata: RequestsMetadata;
//# sourceMappingURL=index.d.ts.map