@microsoft/msgraph-beta-sdk-privacy
Version:
Privacy fluent API for Microsoft Graph
133 lines • 10.1 kB
TypeScript
import { type SubjectRightsRequest } from '@microsoft/msgraph-beta-sdk/models/index.js';
import { type ApproversRequestBuilder } from './approvers/index.js';
import { type ApproversWithUserPrincipalNameRequestBuilder } from './approversWithUserPrincipalName/index.js';
import { type CollaboratorsRequestBuilder } from './collaborators/index.js';
import { type CollaboratorsWithUserPrincipalNameRequestBuilder } from './collaboratorsWithUserPrincipalName/index.js';
import { type GetFinalAttachmentRequestBuilder } from './getFinalAttachment/index.js';
import { type GetFinalReportRequestBuilder } from './getFinalReport/index.js';
import { type NotesRequestBuilder } from './notes/index.js';
import { type TeamRequestBuilder } from './team/index.js';
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
/**
* Provides operations to manage the subjectRightsRequests property of the microsoft.graph.privacy entity.
*/
export interface SubjectRightsRequestItemRequestBuilder extends BaseRequestBuilder<SubjectRightsRequestItemRequestBuilder> {
/**
* Provides operations to manage the approvers property of the microsoft.graph.subjectRightsRequest entity.
* @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20
*/
get approvers(): ApproversRequestBuilder;
/**
* Provides operations to manage the collaborators property of the microsoft.graph.subjectRightsRequest entity.
* @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20
*/
get collaborators(): CollaboratorsRequestBuilder;
/**
* Provides operations to call the getFinalAttachment method.
* @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20
*/
get getFinalAttachment(): GetFinalAttachmentRequestBuilder;
/**
* Provides operations to call the getFinalReport method.
* @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20
*/
get getFinalReport(): GetFinalReportRequestBuilder;
/**
* Provides operations to manage the notes property of the microsoft.graph.subjectRightsRequest entity.
* @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20
*/
get notes(): NotesRequestBuilder;
/**
* Provides operations to manage the team property of the microsoft.graph.subjectRightsRequest entity.
* @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20
*/
get team(): TeamRequestBuilder;
/**
* Provides operations to manage the approvers property of the microsoft.graph.subjectRightsRequest entity.
* @param userPrincipalName Alternate key of user
* @returns {ApproversWithUserPrincipalNameRequestBuilder}
* @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20
*/
approversWithUserPrincipalName(userPrincipalName: string | undefined): ApproversWithUserPrincipalNameRequestBuilder;
/**
* Provides operations to manage the collaborators property of the microsoft.graph.subjectRightsRequest entity.
* @param userPrincipalName Alternate key of user
* @returns {CollaboratorsWithUserPrincipalNameRequestBuilder}
* @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20
*/
collaboratorsWithUserPrincipalName(userPrincipalName: string | undefined): CollaboratorsWithUserPrincipalNameRequestBuilder;
/**
* Delete navigation property subjectRightsRequests for privacy
* @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 The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20
*/
delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
/**
* Read the properties and relationships of a subjectRightsRequest object.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<SubjectRightsRequest>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20
* @see {@link https://learn.microsoft.com/graph/api/subjectrightsrequest-get?view=graph-rest-beta|Find more info here}
*/
get(requestConfiguration?: RequestConfiguration<SubjectRightsRequestItemRequestBuilderGetQueryParameters> | undefined): Promise<SubjectRightsRequest | undefined>;
/**
* Update the properties of a subjectRightsRequest object.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<SubjectRightsRequest>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20
* @see {@link https://learn.microsoft.com/graph/api/subjectrightsrequest-update?view=graph-rest-beta|Find more info here}
*/
patch(body: SubjectRightsRequest, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<SubjectRightsRequest | undefined>;
/**
* Delete navigation property subjectRightsRequests for privacy
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
* @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20
*/
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
/**
* Read the properties and relationships of a subjectRightsRequest object.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
* @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<SubjectRightsRequestItemRequestBuilderGetQueryParameters> | undefined): RequestInformation;
/**
* Update the properties of a subjectRightsRequest object.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
* @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20
*/
toPatchRequestInformation(body: SubjectRightsRequest, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
}
/**
* Read the properties and relationships of a subjectRightsRequest object.
*/
export interface SubjectRightsRequestItemRequestBuilderGetQueryParameters {
/**
* Expand related entities
*/
expand?: string[];
/**
* Select properties to be returned
*/
select?: string[];
}
/**
* Uri template for the request builder.
*/
export declare const SubjectRightsRequestItemRequestBuilderUriTemplate = "{+baseurl}/privacy/subjectRightsRequests/{subjectRightsRequest%2Did}{?%24expand,%24select}";
/**
* Metadata for all the navigation properties in the request builder.
*/
export declare const SubjectRightsRequestItemRequestBuilderNavigationMetadata: Record<Exclude<keyof SubjectRightsRequestItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
/**
* Metadata for all the requests in the request builder.
*/
export declare const SubjectRightsRequestItemRequestBuilderRequestsMetadata: RequestsMetadata;
//# sourceMappingURL=index.d.ts.map