@microsoft/msgraph-sdk-identityprotection 1.0.0-preview.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +11 -0
- package/identityProtection/index.d.ts +79 -0
- package/identityProtection/index.d.ts.map +1 -0
- package/identityProtection/index.js +77 -0
- package/identityProtection/riskDetections/count/index.d.ts +40 -0
- package/identityProtection/riskDetections/count/index.d.ts.map +1 -0
- package/identityProtection/riskDetections/count/index.js +35 -0
- package/identityProtection/riskDetections/index.d.ts +96 -0
- package/identityProtection/riskDetections/index.d.ts.map +1 -0
- package/identityProtection/riskDetections/index.js +70 -0
- package/identityProtection/riskDetections/item/index.d.ts +67 -0
- package/identityProtection/riskDetections/item/index.d.ts.map +1 -0
- package/identityProtection/riskDetections/item/index.js +56 -0
- package/identityProtection/riskyServicePrincipals/confirmCompromised/index.d.ts +59 -0
- package/identityProtection/riskyServicePrincipals/confirmCompromised/index.d.ts.map +1 -0
- package/identityProtection/riskyServicePrincipals/confirmCompromised/index.js +58 -0
- package/identityProtection/riskyServicePrincipals/count/index.d.ts +40 -0
- package/identityProtection/riskyServicePrincipals/count/index.d.ts.map +1 -0
- package/identityProtection/riskyServicePrincipals/count/index.js +35 -0
- package/identityProtection/riskyServicePrincipals/dismiss/index.d.ts +59 -0
- package/identityProtection/riskyServicePrincipals/dismiss/index.d.ts.map +1 -0
- package/identityProtection/riskyServicePrincipals/dismiss/index.js +58 -0
- package/identityProtection/riskyServicePrincipals/index.d.ts +106 -0
- package/identityProtection/riskyServicePrincipals/index.d.ts.map +1 -0
- package/identityProtection/riskyServicePrincipals/index.js +81 -0
- package/identityProtection/riskyServicePrincipals/item/history/count/index.d.ts +40 -0
- package/identityProtection/riskyServicePrincipals/item/history/count/index.d.ts.map +1 -0
- package/identityProtection/riskyServicePrincipals/item/history/count/index.js +35 -0
- package/identityProtection/riskyServicePrincipals/item/history/index.d.ts +96 -0
- package/identityProtection/riskyServicePrincipals/item/history/index.d.ts.map +1 -0
- package/identityProtection/riskyServicePrincipals/item/history/index.js +70 -0
- package/identityProtection/riskyServicePrincipals/item/history/item/index.d.ts +66 -0
- package/identityProtection/riskyServicePrincipals/item/history/item/index.d.ts.map +1 -0
- package/identityProtection/riskyServicePrincipals/item/history/item/index.js +56 -0
- package/identityProtection/riskyServicePrincipals/item/index.d.ts +76 -0
- package/identityProtection/riskyServicePrincipals/item/index.d.ts.map +1 -0
- package/identityProtection/riskyServicePrincipals/item/index.js +67 -0
- package/identityProtection/riskyUsers/confirmCompromised/index.d.ts +59 -0
- package/identityProtection/riskyUsers/confirmCompromised/index.d.ts.map +1 -0
- package/identityProtection/riskyUsers/confirmCompromised/index.js +58 -0
- package/identityProtection/riskyUsers/count/index.d.ts +40 -0
- package/identityProtection/riskyUsers/count/index.d.ts.map +1 -0
- package/identityProtection/riskyUsers/count/index.js +35 -0
- package/identityProtection/riskyUsers/dismiss/index.d.ts +59 -0
- package/identityProtection/riskyUsers/dismiss/index.d.ts.map +1 -0
- package/identityProtection/riskyUsers/dismiss/index.js +58 -0
- package/identityProtection/riskyUsers/index.d.ts +106 -0
- package/identityProtection/riskyUsers/index.d.ts.map +1 -0
- package/identityProtection/riskyUsers/index.js +81 -0
- package/identityProtection/riskyUsers/item/history/count/index.d.ts +40 -0
- package/identityProtection/riskyUsers/item/history/count/index.d.ts.map +1 -0
- package/identityProtection/riskyUsers/item/history/count/index.js +35 -0
- package/identityProtection/riskyUsers/item/history/index.d.ts +96 -0
- package/identityProtection/riskyUsers/item/history/index.d.ts.map +1 -0
- package/identityProtection/riskyUsers/item/history/index.js +70 -0
- package/identityProtection/riskyUsers/item/history/item/index.d.ts +66 -0
- package/identityProtection/riskyUsers/item/history/item/index.d.ts.map +1 -0
- package/identityProtection/riskyUsers/item/history/item/index.js +56 -0
- package/identityProtection/riskyUsers/item/index.d.ts +76 -0
- package/identityProtection/riskyUsers/item/index.d.ts.map +1 -0
- package/identityProtection/riskyUsers/item/index.js +67 -0
- package/identityProtection/servicePrincipalRiskDetections/count/index.d.ts +40 -0
- package/identityProtection/servicePrincipalRiskDetections/count/index.d.ts.map +1 -0
- package/identityProtection/servicePrincipalRiskDetections/count/index.js +35 -0
- package/identityProtection/servicePrincipalRiskDetections/index.d.ts +96 -0
- package/identityProtection/servicePrincipalRiskDetections/index.d.ts.map +1 -0
- package/identityProtection/servicePrincipalRiskDetections/index.js +70 -0
- package/identityProtection/servicePrincipalRiskDetections/item/index.d.ts +67 -0
- package/identityProtection/servicePrincipalRiskDetections/item/index.d.ts.map +1 -0
- package/identityProtection/servicePrincipalRiskDetections/item/index.js +56 -0
- package/identityProtectionServiceClient.d.ts +25 -0
- package/identityProtectionServiceClient.d.ts.map +1 -0
- package/identityProtectionServiceClient.js +49 -0
- package/index.d.ts +11 -0
- package/index.d.ts.map +1 -0
- package/index.js +20 -0
- package/package.json +48 -0
- package/tsconfig.json +15 -0
- package/tsconfig.tsbuildinfo +1 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 Microsoft Graph
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { type IdentityProtectionRoot } from '@microsoft/msgraph-sdk/models/';
|
|
2
|
+
import { type RiskDetectionsRequestBuilder } from './riskDetections/';
|
|
3
|
+
import { type RiskyServicePrincipalsRequestBuilder } from './riskyServicePrincipals/';
|
|
4
|
+
import { type RiskyUsersRequestBuilder } from './riskyUsers/';
|
|
5
|
+
import { type ServicePrincipalRiskDetectionsRequestBuilder } from './servicePrincipalRiskDetections/';
|
|
6
|
+
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
7
|
+
/**
|
|
8
|
+
* Provides operations to manage the identityProtectionRoot singleton.
|
|
9
|
+
*/
|
|
10
|
+
export interface IdentityProtectionRequestBuilder extends BaseRequestBuilder<IdentityProtectionRequestBuilder> {
|
|
11
|
+
/**
|
|
12
|
+
* Provides operations to manage the riskDetections property of the microsoft.graph.identityProtectionRoot entity.
|
|
13
|
+
*/
|
|
14
|
+
get riskDetections(): RiskDetectionsRequestBuilder;
|
|
15
|
+
/**
|
|
16
|
+
* Provides operations to manage the riskyServicePrincipals property of the microsoft.graph.identityProtectionRoot entity.
|
|
17
|
+
*/
|
|
18
|
+
get riskyServicePrincipals(): RiskyServicePrincipalsRequestBuilder;
|
|
19
|
+
/**
|
|
20
|
+
* Provides operations to manage the riskyUsers property of the microsoft.graph.identityProtectionRoot entity.
|
|
21
|
+
*/
|
|
22
|
+
get riskyUsers(): RiskyUsersRequestBuilder;
|
|
23
|
+
/**
|
|
24
|
+
* Provides operations to manage the servicePrincipalRiskDetections property of the microsoft.graph.identityProtectionRoot entity.
|
|
25
|
+
*/
|
|
26
|
+
get servicePrincipalRiskDetections(): ServicePrincipalRiskDetectionsRequestBuilder;
|
|
27
|
+
/**
|
|
28
|
+
* Get identityProtection
|
|
29
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
30
|
+
* @returns a Promise of IdentityProtectionRoot
|
|
31
|
+
*/
|
|
32
|
+
get(requestConfiguration?: RequestConfiguration<IdentityProtectionRequestBuilderGetQueryParameters> | undefined): Promise<IdentityProtectionRoot | undefined>;
|
|
33
|
+
/**
|
|
34
|
+
* Update identityProtection
|
|
35
|
+
* @param body The request body
|
|
36
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
37
|
+
* @returns a Promise of IdentityProtectionRoot
|
|
38
|
+
*/
|
|
39
|
+
patch(body: IdentityProtectionRoot, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<IdentityProtectionRoot | undefined>;
|
|
40
|
+
/**
|
|
41
|
+
* Get identityProtection
|
|
42
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
43
|
+
* @returns a RequestInformation
|
|
44
|
+
*/
|
|
45
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<IdentityProtectionRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
46
|
+
/**
|
|
47
|
+
* Update identityProtection
|
|
48
|
+
* @param body The request body
|
|
49
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
50
|
+
* @returns a RequestInformation
|
|
51
|
+
*/
|
|
52
|
+
toPatchRequestInformation(body: IdentityProtectionRoot, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Get identityProtection
|
|
56
|
+
*/
|
|
57
|
+
export interface IdentityProtectionRequestBuilderGetQueryParameters {
|
|
58
|
+
/**
|
|
59
|
+
* Expand related entities
|
|
60
|
+
*/
|
|
61
|
+
expand?: string[];
|
|
62
|
+
/**
|
|
63
|
+
* Select properties to be returned
|
|
64
|
+
*/
|
|
65
|
+
select?: string[];
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Metadata for all the navigation properties in the request builder.
|
|
69
|
+
*/
|
|
70
|
+
export declare const IdentityProtectionRequestBuilderNavigationMetadata: Record<Exclude<keyof IdentityProtectionRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
|
|
71
|
+
/**
|
|
72
|
+
* Metadata for all the requests in the request builder.
|
|
73
|
+
*/
|
|
74
|
+
export declare const IdentityProtectionRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
75
|
+
/**
|
|
76
|
+
* Uri template for the request builder.
|
|
77
|
+
*/
|
|
78
|
+
export declare const IdentityProtectionRequestBuilderUriTemplate = "{+baseurl}/identityProtection{?%24select,%24expand}";
|
|
79
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAuF,KAAK,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAElK,OAAO,EAAyI,KAAK,4BAA4B,EAAE,MAAM,mBAAmB,CAAC;AAC7M,OAAO,EAAiK,KAAK,oCAAoC,EAAE,MAAM,2BAA2B,CAAC;AACrP,OAAO,EAA6H,KAAK,wBAAwB,EAAE,MAAM,eAAe,CAAC;AACzL,OAAO,EAAyL,KAAK,4CAA4C,EAAE,MAAM,mCAAmC,CAAC;AAC7R,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,kCAAkC,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,C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,eAAO,MAAM,2CAA2C,wDAAwD,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IdentityProtectionRequestBuilderUriTemplate = exports.IdentityProtectionRequestBuilderRequestsMetadata = exports.IdentityProtectionRequestBuilderNavigationMetadata = void 0;
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
// Generated by Microsoft Kiota
|
|
7
|
+
const models_1 = require("@microsoft/msgraph-sdk/models/");
|
|
8
|
+
const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
|
|
9
|
+
const riskDetections_1 = require("./riskDetections/");
|
|
10
|
+
const riskyServicePrincipals_1 = require("./riskyServicePrincipals/");
|
|
11
|
+
const riskyUsers_1 = require("./riskyUsers/");
|
|
12
|
+
const servicePrincipalRiskDetections_1 = require("./servicePrincipalRiskDetections/");
|
|
13
|
+
/**
|
|
14
|
+
* Mapper for query parameters from symbol name to serialization name represented as a constant.
|
|
15
|
+
*/
|
|
16
|
+
const IdentityProtectionRequestBuilderGetQueryParametersMapper = {
|
|
17
|
+
"expand": "%24expand",
|
|
18
|
+
"select": "%24select",
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Metadata for all the navigation properties in the request builder.
|
|
22
|
+
*/
|
|
23
|
+
exports.IdentityProtectionRequestBuilderNavigationMetadata = {
|
|
24
|
+
riskDetections: {
|
|
25
|
+
uriTemplate: riskDetections_1.RiskDetectionsRequestBuilderUriTemplate,
|
|
26
|
+
requestsMetadata: riskDetections_1.RiskDetectionsRequestBuilderRequestsMetadata,
|
|
27
|
+
navigationMetadata: riskDetections_1.RiskDetectionsRequestBuilderNavigationMetadata,
|
|
28
|
+
},
|
|
29
|
+
riskyServicePrincipals: {
|
|
30
|
+
uriTemplate: riskyServicePrincipals_1.RiskyServicePrincipalsRequestBuilderUriTemplate,
|
|
31
|
+
requestsMetadata: riskyServicePrincipals_1.RiskyServicePrincipalsRequestBuilderRequestsMetadata,
|
|
32
|
+
navigationMetadata: riskyServicePrincipals_1.RiskyServicePrincipalsRequestBuilderNavigationMetadata,
|
|
33
|
+
},
|
|
34
|
+
riskyUsers: {
|
|
35
|
+
uriTemplate: riskyUsers_1.RiskyUsersRequestBuilderUriTemplate,
|
|
36
|
+
requestsMetadata: riskyUsers_1.RiskyUsersRequestBuilderRequestsMetadata,
|
|
37
|
+
navigationMetadata: riskyUsers_1.RiskyUsersRequestBuilderNavigationMetadata,
|
|
38
|
+
},
|
|
39
|
+
servicePrincipalRiskDetections: {
|
|
40
|
+
uriTemplate: servicePrincipalRiskDetections_1.ServicePrincipalRiskDetectionsRequestBuilderUriTemplate,
|
|
41
|
+
requestsMetadata: servicePrincipalRiskDetections_1.ServicePrincipalRiskDetectionsRequestBuilderRequestsMetadata,
|
|
42
|
+
navigationMetadata: servicePrincipalRiskDetections_1.ServicePrincipalRiskDetectionsRequestBuilderNavigationMetadata,
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Metadata for all the requests in the request builder.
|
|
47
|
+
*/
|
|
48
|
+
exports.IdentityProtectionRequestBuilderRequestsMetadata = {
|
|
49
|
+
get: {
|
|
50
|
+
responseBodyContentType: "application/json",
|
|
51
|
+
errorMappings: {
|
|
52
|
+
_4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
53
|
+
_5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
54
|
+
},
|
|
55
|
+
adapterMethodName: "sendAsync",
|
|
56
|
+
responseBodyFactory: models_1.createIdentityProtectionRootFromDiscriminatorValue,
|
|
57
|
+
queryParametersMapper: IdentityProtectionRequestBuilderGetQueryParametersMapper,
|
|
58
|
+
},
|
|
59
|
+
patch: {
|
|
60
|
+
responseBodyContentType: "application/json",
|
|
61
|
+
errorMappings: {
|
|
62
|
+
_4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
63
|
+
_5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
64
|
+
},
|
|
65
|
+
adapterMethodName: "sendAsync",
|
|
66
|
+
responseBodyFactory: models_1.createIdentityProtectionRootFromDiscriminatorValue,
|
|
67
|
+
requestBodyContentType: "application/json",
|
|
68
|
+
requestBodySerializer: models_1.serializeIdentityProtectionRoot,
|
|
69
|
+
requestInformationContentSetMethod: "setContentFromParsable",
|
|
70
|
+
},
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Uri template for the request builder.
|
|
74
|
+
*/
|
|
75
|
+
exports.IdentityProtectionRequestBuilderUriTemplate = "{+baseurl}/identityProtection{?%24select,%24expand}";
|
|
76
|
+
/* tslint:enable */
|
|
77
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
2
|
+
/**
|
|
3
|
+
* Provides operations to count the resources in the collection.
|
|
4
|
+
*/
|
|
5
|
+
export interface CountRequestBuilder extends BaseRequestBuilder<CountRequestBuilder> {
|
|
6
|
+
/**
|
|
7
|
+
* Get the number of the resource
|
|
8
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
9
|
+
* @returns a Promise of Integer
|
|
10
|
+
*/
|
|
11
|
+
get(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined): Promise<number | undefined>;
|
|
12
|
+
/**
|
|
13
|
+
* Get the number of the resource
|
|
14
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
15
|
+
* @returns a RequestInformation
|
|
16
|
+
*/
|
|
17
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Get the number of the resource
|
|
21
|
+
*/
|
|
22
|
+
export interface CountRequestBuilderGetQueryParameters {
|
|
23
|
+
/**
|
|
24
|
+
* Filter items by property values
|
|
25
|
+
*/
|
|
26
|
+
filter?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Search items by search phrases
|
|
29
|
+
*/
|
|
30
|
+
search?: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Metadata for all the requests in the request builder.
|
|
34
|
+
*/
|
|
35
|
+
export declare const CountRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
36
|
+
/**
|
|
37
|
+
* Uri template for the request builder.
|
|
38
|
+
*/
|
|
39
|
+
export declare const CountRequestBuilderUriTemplate = "{+baseurl}/identityProtection/riskDetections/$count{?%24search,%24filter}";
|
|
40
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAExL;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB,CAAC,mBAAmB,CAAC;IAChF;;;;OAIG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,qCAAqC,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACnI;;;;OAIG;IACF,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,qCAAqC,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACjJ;AACD;;GAEG;AACH,MAAM,WAAW,qCAAqC;IAClD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAQD;;GAEG;AACH,eAAO,MAAM,mCAAmC,EAAE,gBAWjD,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,8BAA8B,8EAA8E,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CountRequestBuilderUriTemplate = exports.CountRequestBuilderRequestsMetadata = void 0;
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
// Generated by Microsoft Kiota
|
|
7
|
+
const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
|
|
8
|
+
/**
|
|
9
|
+
* Mapper for query parameters from symbol name to serialization name represented as a constant.
|
|
10
|
+
*/
|
|
11
|
+
const CountRequestBuilderGetQueryParametersMapper = {
|
|
12
|
+
"filter": "%24filter",
|
|
13
|
+
"search": "%24search",
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Metadata for all the requests in the request builder.
|
|
17
|
+
*/
|
|
18
|
+
exports.CountRequestBuilderRequestsMetadata = {
|
|
19
|
+
get: {
|
|
20
|
+
responseBodyContentType: "text/plain;q=0.9",
|
|
21
|
+
errorMappings: {
|
|
22
|
+
_4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
23
|
+
_5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
24
|
+
},
|
|
25
|
+
adapterMethodName: "sendPrimitiveAsync",
|
|
26
|
+
responseBodyFactory: "number",
|
|
27
|
+
queryParametersMapper: CountRequestBuilderGetQueryParametersMapper,
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Uri template for the request builder.
|
|
32
|
+
*/
|
|
33
|
+
exports.CountRequestBuilderUriTemplate = "{+baseurl}/identityProtection/riskDetections/$count{?%24search,%24filter}";
|
|
34
|
+
/* tslint:enable */
|
|
35
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { type RiskDetection, type RiskDetectionCollectionResponse } from '@microsoft/msgraph-sdk/models/';
|
|
2
|
+
import { type CountRequestBuilder } from './count/';
|
|
3
|
+
import { type RiskDetectionItemRequestBuilder } from './item/';
|
|
4
|
+
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
5
|
+
/**
|
|
6
|
+
* Provides operations to manage the riskDetections property of the microsoft.graph.identityProtectionRoot entity.
|
|
7
|
+
*/
|
|
8
|
+
export interface RiskDetectionsRequestBuilder extends BaseRequestBuilder<RiskDetectionsRequestBuilder> {
|
|
9
|
+
/**
|
|
10
|
+
* Provides operations to count the resources in the collection.
|
|
11
|
+
*/
|
|
12
|
+
get count(): CountRequestBuilder;
|
|
13
|
+
/**
|
|
14
|
+
* Provides operations to manage the riskDetections property of the microsoft.graph.identityProtectionRoot entity.
|
|
15
|
+
* @param riskDetectionId The unique identifier of riskDetection
|
|
16
|
+
* @returns a RiskDetectionItemRequestBuilder
|
|
17
|
+
*/
|
|
18
|
+
byRiskDetectionId(riskDetectionId: string): RiskDetectionItemRequestBuilder;
|
|
19
|
+
/**
|
|
20
|
+
* Get a list of the riskDetection objects and their properties.
|
|
21
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
22
|
+
* @returns a Promise of RiskDetectionCollectionResponse
|
|
23
|
+
* @see {@link https://learn.microsoft.com/graph/api/riskdetection-list?view=graph-rest-1.0|Find more info here}
|
|
24
|
+
*/
|
|
25
|
+
get(requestConfiguration?: RequestConfiguration<RiskDetectionsRequestBuilderGetQueryParameters> | undefined): Promise<RiskDetectionCollectionResponse | undefined>;
|
|
26
|
+
/**
|
|
27
|
+
* Create new navigation property to riskDetections for identityProtection
|
|
28
|
+
* @param body The request body
|
|
29
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
30
|
+
* @returns a Promise of RiskDetection
|
|
31
|
+
*/
|
|
32
|
+
post(body: RiskDetection, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<RiskDetection | undefined>;
|
|
33
|
+
/**
|
|
34
|
+
* Get a list of the riskDetection objects and their properties.
|
|
35
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
36
|
+
* @returns a RequestInformation
|
|
37
|
+
*/
|
|
38
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<RiskDetectionsRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
39
|
+
/**
|
|
40
|
+
* Create new navigation property to riskDetections for identityProtection
|
|
41
|
+
* @param body The request body
|
|
42
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
43
|
+
* @returns a RequestInformation
|
|
44
|
+
*/
|
|
45
|
+
toPostRequestInformation(body: RiskDetection, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Get a list of the riskDetection objects and their properties.
|
|
49
|
+
*/
|
|
50
|
+
export interface RiskDetectionsRequestBuilderGetQueryParameters {
|
|
51
|
+
/**
|
|
52
|
+
* Include count of items
|
|
53
|
+
*/
|
|
54
|
+
count?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Expand related entities
|
|
57
|
+
*/
|
|
58
|
+
expand?: string[];
|
|
59
|
+
/**
|
|
60
|
+
* Filter items by property values
|
|
61
|
+
*/
|
|
62
|
+
filter?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Order items by property values
|
|
65
|
+
*/
|
|
66
|
+
orderby?: string[];
|
|
67
|
+
/**
|
|
68
|
+
* Search items by search phrases
|
|
69
|
+
*/
|
|
70
|
+
search?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Select properties to be returned
|
|
73
|
+
*/
|
|
74
|
+
select?: string[];
|
|
75
|
+
/**
|
|
76
|
+
* Skip the first n items
|
|
77
|
+
*/
|
|
78
|
+
skip?: number;
|
|
79
|
+
/**
|
|
80
|
+
* Show only the first n items
|
|
81
|
+
*/
|
|
82
|
+
top?: number;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Metadata for all the navigation properties in the request builder.
|
|
86
|
+
*/
|
|
87
|
+
export declare const RiskDetectionsRequestBuilderNavigationMetadata: Record<Exclude<keyof RiskDetectionsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
|
|
88
|
+
/**
|
|
89
|
+
* Metadata for all the requests in the request builder.
|
|
90
|
+
*/
|
|
91
|
+
export declare const RiskDetectionsRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
92
|
+
/**
|
|
93
|
+
* Uri template for the request builder.
|
|
94
|
+
*/
|
|
95
|
+
export declare const RiskDetectionsRequestBuilderUriTemplate = "{+baseurl}/identityProtection/riskDetections{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}";
|
|
96
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAkI,KAAK,aAAa,EAAE,KAAK,+BAA+B,EAAE,MAAM,gCAAgC,CAAC;AAE1O,OAAO,EAAuE,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACzH,OAAO,EAA+F,KAAK,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAC5J,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,kCAAkC,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAE1P;;GAEG;AACH,MAAM,WAAW,4BAA6B,SAAQ,kBAAkB,CAAC,4BAA4B,CAAC;IAClG;;OAEG;IACH,IAAI,KAAK,IAAI,mBAAmB,CAAC;IACjC;;;;OAIG;IACF,iBAAiB,CAAC,eAAe,EAAE,MAAM,GAAI,+BAA+B,CAAC;IAC9E;;;;;OAKG;IACF,GAAG,CAAC,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
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RiskDetectionsRequestBuilderUriTemplate = exports.RiskDetectionsRequestBuilderRequestsMetadata = exports.RiskDetectionsRequestBuilderNavigationMetadata = void 0;
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
// Generated by Microsoft Kiota
|
|
7
|
+
const models_1 = require("@microsoft/msgraph-sdk/models/");
|
|
8
|
+
const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
|
|
9
|
+
const count_1 = require("./count/");
|
|
10
|
+
const item_1 = require("./item/");
|
|
11
|
+
/**
|
|
12
|
+
* Mapper for query parameters from symbol name to serialization name represented as a constant.
|
|
13
|
+
*/
|
|
14
|
+
const RiskDetectionsRequestBuilderGetQueryParametersMapper = {
|
|
15
|
+
"count": "%24count",
|
|
16
|
+
"expand": "%24expand",
|
|
17
|
+
"filter": "%24filter",
|
|
18
|
+
"orderby": "%24orderby",
|
|
19
|
+
"search": "%24search",
|
|
20
|
+
"select": "%24select",
|
|
21
|
+
"skip": "%24skip",
|
|
22
|
+
"top": "%24top",
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Metadata for all the navigation properties in the request builder.
|
|
26
|
+
*/
|
|
27
|
+
exports.RiskDetectionsRequestBuilderNavigationMetadata = {
|
|
28
|
+
byRiskDetectionId: {
|
|
29
|
+
uriTemplate: item_1.RiskDetectionItemRequestBuilderUriTemplate,
|
|
30
|
+
requestsMetadata: item_1.RiskDetectionItemRequestBuilderRequestsMetadata,
|
|
31
|
+
pathParametersMappings: ["riskDetection%2Did"],
|
|
32
|
+
},
|
|
33
|
+
count: {
|
|
34
|
+
uriTemplate: count_1.CountRequestBuilderUriTemplate,
|
|
35
|
+
requestsMetadata: count_1.CountRequestBuilderRequestsMetadata,
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Metadata for all the requests in the request builder.
|
|
40
|
+
*/
|
|
41
|
+
exports.RiskDetectionsRequestBuilderRequestsMetadata = {
|
|
42
|
+
get: {
|
|
43
|
+
responseBodyContentType: "application/json",
|
|
44
|
+
errorMappings: {
|
|
45
|
+
_4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
46
|
+
_5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
47
|
+
},
|
|
48
|
+
adapterMethodName: "sendAsync",
|
|
49
|
+
responseBodyFactory: models_1.createRiskDetectionCollectionResponseFromDiscriminatorValue,
|
|
50
|
+
queryParametersMapper: RiskDetectionsRequestBuilderGetQueryParametersMapper,
|
|
51
|
+
},
|
|
52
|
+
post: {
|
|
53
|
+
responseBodyContentType: "application/json",
|
|
54
|
+
errorMappings: {
|
|
55
|
+
_4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
56
|
+
_5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
57
|
+
},
|
|
58
|
+
adapterMethodName: "sendAsync",
|
|
59
|
+
responseBodyFactory: models_1.createRiskDetectionFromDiscriminatorValue,
|
|
60
|
+
requestBodyContentType: "application/json",
|
|
61
|
+
requestBodySerializer: models_1.serializeRiskDetection,
|
|
62
|
+
requestInformationContentSetMethod: "setContentFromParsable",
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Uri template for the request builder.
|
|
67
|
+
*/
|
|
68
|
+
exports.RiskDetectionsRequestBuilderUriTemplate = "{+baseurl}/identityProtection/riskDetections{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}";
|
|
69
|
+
/* tslint:enable */
|
|
70
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { type RiskDetection } from '@microsoft/msgraph-sdk/models/';
|
|
2
|
+
import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
3
|
+
/**
|
|
4
|
+
* Provides operations to manage the riskDetections property of the microsoft.graph.identityProtectionRoot entity.
|
|
5
|
+
*/
|
|
6
|
+
export interface RiskDetectionItemRequestBuilder extends BaseRequestBuilder<RiskDetectionItemRequestBuilder> {
|
|
7
|
+
/**
|
|
8
|
+
* Delete navigation property riskDetections for identityProtection
|
|
9
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
10
|
+
*/
|
|
11
|
+
delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
|
|
12
|
+
/**
|
|
13
|
+
* Read the properties and relationships of a riskDetection object.
|
|
14
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
15
|
+
* @returns a Promise of RiskDetection
|
|
16
|
+
* @see {@link https://learn.microsoft.com/graph/api/riskdetection-get?view=graph-rest-1.0|Find more info here}
|
|
17
|
+
*/
|
|
18
|
+
get(requestConfiguration?: RequestConfiguration<RiskDetectionItemRequestBuilderGetQueryParameters> | undefined): Promise<RiskDetection | undefined>;
|
|
19
|
+
/**
|
|
20
|
+
* Update the navigation property riskDetections in identityProtection
|
|
21
|
+
* @param body The request body
|
|
22
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
23
|
+
* @returns a Promise of RiskDetection
|
|
24
|
+
*/
|
|
25
|
+
patch(body: RiskDetection, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<RiskDetection | undefined>;
|
|
26
|
+
/**
|
|
27
|
+
* Delete navigation property riskDetections for identityProtection
|
|
28
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
29
|
+
* @returns a RequestInformation
|
|
30
|
+
*/
|
|
31
|
+
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
32
|
+
/**
|
|
33
|
+
* Read the properties and relationships of a riskDetection object.
|
|
34
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
35
|
+
* @returns a RequestInformation
|
|
36
|
+
*/
|
|
37
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<RiskDetectionItemRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
38
|
+
/**
|
|
39
|
+
* Update the navigation property riskDetections in identityProtection
|
|
40
|
+
* @param body The request body
|
|
41
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
42
|
+
* @returns a RequestInformation
|
|
43
|
+
*/
|
|
44
|
+
toPatchRequestInformation(body: RiskDetection, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Read the properties and relationships of a riskDetection object.
|
|
48
|
+
*/
|
|
49
|
+
export interface RiskDetectionItemRequestBuilderGetQueryParameters {
|
|
50
|
+
/**
|
|
51
|
+
* Expand related entities
|
|
52
|
+
*/
|
|
53
|
+
expand?: string[];
|
|
54
|
+
/**
|
|
55
|
+
* Select properties to be returned
|
|
56
|
+
*/
|
|
57
|
+
select?: string[];
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Metadata for all the requests in the request builder.
|
|
61
|
+
*/
|
|
62
|
+
export declare const RiskDetectionItemRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
63
|
+
/**
|
|
64
|
+
* Uri template for the request builder.
|
|
65
|
+
*/
|
|
66
|
+
export declare const RiskDetectionItemRequestBuilderUriTemplate = "{+baseurl}/identityProtection/riskDetections/{riskDetection%2Did}{?%24select,%24expand}";
|
|
67
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAqE,KAAK,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAEvI,OAAO,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,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2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RiskDetectionItemRequestBuilderUriTemplate = exports.RiskDetectionItemRequestBuilderRequestsMetadata = void 0;
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
// Generated by Microsoft Kiota
|
|
7
|
+
const models_1 = require("@microsoft/msgraph-sdk/models/");
|
|
8
|
+
const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
|
|
9
|
+
/**
|
|
10
|
+
* Mapper for query parameters from symbol name to serialization name represented as a constant.
|
|
11
|
+
*/
|
|
12
|
+
const RiskDetectionItemRequestBuilderGetQueryParametersMapper = {
|
|
13
|
+
"expand": "%24expand",
|
|
14
|
+
"select": "%24select",
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Metadata for all the requests in the request builder.
|
|
18
|
+
*/
|
|
19
|
+
exports.RiskDetectionItemRequestBuilderRequestsMetadata = {
|
|
20
|
+
delete: {
|
|
21
|
+
responseBodyContentType: "application/json",
|
|
22
|
+
errorMappings: {
|
|
23
|
+
_4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
24
|
+
_5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
25
|
+
},
|
|
26
|
+
adapterMethodName: "sendNoResponseContentAsync",
|
|
27
|
+
},
|
|
28
|
+
get: {
|
|
29
|
+
responseBodyContentType: "application/json",
|
|
30
|
+
errorMappings: {
|
|
31
|
+
_4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
32
|
+
_5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
33
|
+
},
|
|
34
|
+
adapterMethodName: "sendAsync",
|
|
35
|
+
responseBodyFactory: models_1.createRiskDetectionFromDiscriminatorValue,
|
|
36
|
+
queryParametersMapper: RiskDetectionItemRequestBuilderGetQueryParametersMapper,
|
|
37
|
+
},
|
|
38
|
+
patch: {
|
|
39
|
+
responseBodyContentType: "application/json",
|
|
40
|
+
errorMappings: {
|
|
41
|
+
_4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
42
|
+
_5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
43
|
+
},
|
|
44
|
+
adapterMethodName: "sendAsync",
|
|
45
|
+
responseBodyFactory: models_1.createRiskDetectionFromDiscriminatorValue,
|
|
46
|
+
requestBodyContentType: "application/json",
|
|
47
|
+
requestBodySerializer: models_1.serializeRiskDetection,
|
|
48
|
+
requestInformationContentSetMethod: "setContentFromParsable",
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Uri template for the request builder.
|
|
53
|
+
*/
|
|
54
|
+
exports.RiskDetectionItemRequestBuilderUriTemplate = "{+baseurl}/identityProtection/riskDetections/{riskDetection%2Did}{?%24select,%24expand}";
|
|
55
|
+
/* tslint:enable */
|
|
56
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { type AdditionalDataHolder, type BackedModel, type BaseRequestBuilder, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions';
|
|
2
|
+
export interface ConfirmCompromisedPostRequestBody extends AdditionalDataHolder, BackedModel, Parsable {
|
|
3
|
+
/**
|
|
4
|
+
* Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
5
|
+
*/
|
|
6
|
+
additionalData?: Record<string, unknown>;
|
|
7
|
+
/**
|
|
8
|
+
* Stores model information.
|
|
9
|
+
*/
|
|
10
|
+
backingStoreEnabled?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* The servicePrincipalIds property
|
|
13
|
+
*/
|
|
14
|
+
servicePrincipalIds?: string[];
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Provides operations to call the confirmCompromised method.
|
|
18
|
+
*/
|
|
19
|
+
export interface ConfirmCompromisedRequestBuilder extends BaseRequestBuilder<ConfirmCompromisedRequestBuilder> {
|
|
20
|
+
/**
|
|
21
|
+
* Confirm one or more riskyServicePrincipal objects as compromised. This action sets the targeted service principal account's risk level to high.
|
|
22
|
+
* @param body The request body
|
|
23
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
24
|
+
* @see {@link https://learn.microsoft.com/graph/api/riskyserviceprincipal-confirmcompromised?view=graph-rest-1.0|Find more info here}
|
|
25
|
+
*/
|
|
26
|
+
post(body: ConfirmCompromisedPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
|
|
27
|
+
/**
|
|
28
|
+
* Confirm one or more riskyServicePrincipal objects as compromised. This action sets the targeted service principal account's risk level to high.
|
|
29
|
+
* @param body The request body
|
|
30
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
31
|
+
* @returns a RequestInformation
|
|
32
|
+
*/
|
|
33
|
+
toPostRequestInformation(body: ConfirmCompromisedPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
37
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
38
|
+
* @returns a confirmCompromisedPostRequestBody
|
|
39
|
+
*/
|
|
40
|
+
export declare function createConfirmCompromisedPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): typeof deserializeIntoConfirmCompromisedPostRequestBody;
|
|
41
|
+
/**
|
|
42
|
+
* The deserialization information for the current model
|
|
43
|
+
* @returns a Record<string, (node: ParseNode) => void>
|
|
44
|
+
*/
|
|
45
|
+
export declare function deserializeIntoConfirmCompromisedPostRequestBody(confirmCompromisedPostRequestBody?: ConfirmCompromisedPostRequestBody | undefined): Record<string, (node: ParseNode) => void>;
|
|
46
|
+
/**
|
|
47
|
+
* Serializes information the current object
|
|
48
|
+
* @param writer Serialization writer to use to serialize this model
|
|
49
|
+
*/
|
|
50
|
+
export declare function serializeConfirmCompromisedPostRequestBody(writer: SerializationWriter, confirmCompromisedPostRequestBody?: ConfirmCompromisedPostRequestBody | undefined): void;
|
|
51
|
+
/**
|
|
52
|
+
* Metadata for all the requests in the request builder.
|
|
53
|
+
*/
|
|
54
|
+
export declare const ConfirmCompromisedRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
55
|
+
/**
|
|
56
|
+
* Uri template for the request builder.
|
|
57
|
+
*/
|
|
58
|
+
export declare const ConfirmCompromisedRequestBuilderUriTemplate = "{+baseurl}/identityProtection/riskyServicePrincipals/confirmCompromised";
|
|
59
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,WAAW,EAAqB,KAAK,kBAAkB,EAAE,KAAK,QAAQ,EAAwB,KAAK,SAAS,EAAE,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,KAAK,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAElS,MAAM,WAAW,iCAAkC,SAAQ,oBAAoB,EAAE,WAAW,EAAE,QAAQ;IAClG;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;CAClC;AACD;;GAEG;AACH,MAAM,WAAW,gCAAiC,SAAQ,kBAAkB,CAAC,gCAAgC,CAAC;IAC1G;;;;;OAKG;IACF,IAAI,CAAC,IAAI,EAAE,iCAAiC,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAChI;;;;;OAKG;IACF,wBAAwB,CAAC,IAAI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