@microsoft/msgraph-beta-sdk-users
Version:
Users fluent API for Microsoft Graph
118 lines • 6.07 kB
TypeScript
import { type SensitivityLabel, type SensitivityLabelCollectionResponse } from '@microsoft/msgraph-beta-sdk/models/security/index.js';
import { type CountRequestBuilder } from './count/index.js';
import { type SensitivityLabelItemRequestBuilder } from './item/index.js';
import { type MicrosoftGraphSecurityEvaluateApplicationRequestBuilder } from './microsoftGraphSecurityEvaluateApplication/index.js';
import { type MicrosoftGraphSecurityEvaluateClassificationResultsRequestBuilder } from './microsoftGraphSecurityEvaluateClassificationResults/index.js';
import { type MicrosoftGraphSecurityEvaluateRemovalRequestBuilder } from './microsoftGraphSecurityEvaluateRemoval/index.js';
import { type MicrosoftGraphSecurityExtractContentLabelRequestBuilder } from './microsoftGraphSecurityExtractContentLabel/index.js';
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
/**
* Provides operations to manage the sensitivityLabels property of the microsoft.graph.security.informationProtection entity.
*/
export interface SensitivityLabelsRequestBuilder extends BaseRequestBuilder<SensitivityLabelsRequestBuilder> {
/**
* Provides operations to count the resources in the collection.
*/
get count(): CountRequestBuilder;
/**
* Provides operations to call the evaluateApplication method.
*/
get microsoftGraphSecurityEvaluateApplication(): MicrosoftGraphSecurityEvaluateApplicationRequestBuilder;
/**
* Provides operations to call the evaluateClassificationResults method.
*/
get microsoftGraphSecurityEvaluateClassificationResults(): MicrosoftGraphSecurityEvaluateClassificationResultsRequestBuilder;
/**
* Provides operations to call the evaluateRemoval method.
*/
get microsoftGraphSecurityEvaluateRemoval(): MicrosoftGraphSecurityEvaluateRemovalRequestBuilder;
/**
* Provides operations to call the extractContentLabel method.
*/
get microsoftGraphSecurityExtractContentLabel(): MicrosoftGraphSecurityExtractContentLabelRequestBuilder;
/**
* Provides operations to manage the sensitivityLabels property of the microsoft.graph.security.informationProtection entity.
* @param sensitivityLabelId The unique identifier of sensitivityLabel
* @returns {SensitivityLabelItemRequestBuilder}
*/
bySensitivityLabelId(sensitivityLabelId: string): SensitivityLabelItemRequestBuilder;
/**
* Get a list of sensitivityLabel objects associated with a user or organization.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<SensitivityLabelCollectionResponse>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/security-informationprotection-list-sensitivitylabels?view=graph-rest-beta|Find more info here}
*/
get(requestConfiguration?: RequestConfiguration<SensitivityLabelsRequestBuilderGetQueryParameters> | undefined): Promise<SensitivityLabelCollectionResponse | undefined>;
/**
* Create new navigation property to sensitivityLabels for users
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<SensitivityLabel>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
*/
post(body: SensitivityLabel, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<SensitivityLabel | undefined>;
/**
* Get a list of sensitivityLabel objects associated with a user or organization.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<SensitivityLabelsRequestBuilderGetQueryParameters> | undefined): RequestInformation;
/**
* Create new navigation property to sensitivityLabels for users
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toPostRequestInformation(body: SensitivityLabel, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
}
/**
* Get a list of sensitivityLabel objects associated with a user or organization.
*/
export interface SensitivityLabelsRequestBuilderGetQueryParameters {
/**
* Include count of items
*/
count?: boolean;
/**
* Expand related entities
*/
expand?: string[];
/**
* Filter items by property values
*/
filter?: string;
/**
* Order items by property values
*/
orderby?: string[];
/**
* Search items by search phrases
*/
search?: string;
/**
* Select properties to be returned
*/
select?: string[];
/**
* Skip the first n items
*/
skip?: number;
/**
* Show only the first n items
*/
top?: number;
}
/**
* Uri template for the request builder.
*/
export declare const SensitivityLabelsRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/security/informationProtection/sensitivityLabels{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
/**
* Metadata for all the navigation properties in the request builder.
*/
export declare const SensitivityLabelsRequestBuilderNavigationMetadata: Record<Exclude<keyof SensitivityLabelsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
/**
* Metadata for all the requests in the request builder.
*/
export declare const SensitivityLabelsRequestBuilderRequestsMetadata: RequestsMetadata;
//# sourceMappingURL=index.d.ts.map