@microsoft/msgraph-beta-sdk-users
Version:
Users fluent API for Microsoft Graph
78 lines • 4.01 kB
TypeScript
import { type Security } from '@microsoft/msgraph-beta-sdk/models/security/index.js';
import { type InformationProtectionRequestBuilder } from './informationProtection/index.js';
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
/**
* Provides operations to manage the security property of the microsoft.graph.user entity.
*/
export interface SecurityRequestBuilder extends BaseRequestBuilder<SecurityRequestBuilder> {
/**
* Provides operations to manage the informationProtection property of the microsoft.graph.security.security entity.
*/
get informationProtection(): InformationProtectionRequestBuilder;
/**
* Delete navigation property security for users
* @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>;
/**
* Get security from users
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<Security>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
*/
get(requestConfiguration?: RequestConfiguration<SecurityRequestBuilderGetQueryParameters> | undefined): Promise<Security | undefined>;
/**
* Update the navigation property security in users
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<Security>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
*/
patch(body: Security, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Security | undefined>;
/**
* Delete navigation property security for users
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
/**
* Get security from users
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<SecurityRequestBuilderGetQueryParameters> | undefined): RequestInformation;
/**
* Update the navigation property security in users
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toPatchRequestInformation(body: Security, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
}
/**
* Get security from users
*/
export interface SecurityRequestBuilderGetQueryParameters {
/**
* Expand related entities
*/
expand?: string[];
/**
* Select properties to be returned
*/
select?: string[];
}
/**
* Uri template for the request builder.
*/
export declare const SecurityRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/security{?%24expand,%24select}";
/**
* Metadata for all the navigation properties in the request builder.
*/
export declare const SecurityRequestBuilderNavigationMetadata: Record<Exclude<keyof SecurityRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
/**
* Metadata for all the requests in the request builder.
*/
export declare const SecurityRequestBuilderRequestsMetadata: RequestsMetadata;
//# sourceMappingURL=index.d.ts.map