@microsoft/msgraph-beta-sdk-users
Version:
Users fluent API for Microsoft Graph
85 lines • 5.5 kB
TypeScript
import { type InformationProtectionPolicy } from '@microsoft/msgraph-beta-sdk/models/index.js';
import { type LabelsRequestBuilder } from './labels/index.js';
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
/**
* Provides operations to manage the policy property of the microsoft.graph.informationProtection entity.
*/
export interface PolicyRequestBuilder extends BaseRequestBuilder<PolicyRequestBuilder> {
/**
* Provides operations to manage the labels property of the microsoft.graph.informationProtectionPolicy entity.
* @deprecated This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels on 2021-02-15 and will be removed 2022-08-15
*/
get labels(): LabelsRequestBuilder;
/**
* Delete navigation property policy 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
* @deprecated This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels on 2021-02-15 and will be removed 2022-08-15
*/
delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
/**
* Get policy from users
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<InformationProtectionPolicy>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @deprecated This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels on 2021-02-15 and will be removed 2022-08-15
*/
get(requestConfiguration?: RequestConfiguration<PolicyRequestBuilderGetQueryParameters> | undefined): Promise<InformationProtectionPolicy | undefined>;
/**
* Update the navigation property policy in users
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<InformationProtectionPolicy>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @deprecated This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels on 2021-02-15 and will be removed 2022-08-15
*/
patch(body: InformationProtectionPolicy, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<InformationProtectionPolicy | undefined>;
/**
* Delete navigation property policy for users
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
* @deprecated This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels on 2021-02-15 and will be removed 2022-08-15
*/
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
/**
* Get policy from users
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
* @deprecated This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels on 2021-02-15 and will be removed 2022-08-15
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<PolicyRequestBuilderGetQueryParameters> | undefined): RequestInformation;
/**
* Update the navigation property policy in users
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
* @deprecated This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels on 2021-02-15 and will be removed 2022-08-15
*/
toPatchRequestInformation(body: InformationProtectionPolicy, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
}
/**
* Get policy from users
*/
export interface PolicyRequestBuilderGetQueryParameters {
/**
* Expand related entities
*/
expand?: string[];
/**
* Select properties to be returned
*/
select?: string[];
}
/**
* Uri template for the request builder.
*/
export declare const PolicyRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/informationProtection/policy{?%24expand,%24select}";
/**
* Metadata for all the navigation properties in the request builder.
*/
export declare const PolicyRequestBuilderNavigationMetadata: Record<Exclude<keyof PolicyRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
/**
* Metadata for all the requests in the request builder.
*/
export declare const PolicyRequestBuilderRequestsMetadata: RequestsMetadata;
//# sourceMappingURL=index.d.ts.map