@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
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConfirmCompromisedRequestBuilderUriTemplate = exports.ConfirmCompromisedRequestBuilderRequestsMetadata = exports.serializeConfirmCompromisedPostRequestBody = exports.deserializeIntoConfirmCompromisedPostRequestBody = exports.createConfirmCompromisedPostRequestBodyFromDiscriminatorValue = 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
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
10
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
11
|
+
* @returns a confirmCompromisedPostRequestBody
|
|
12
|
+
*/
|
|
13
|
+
function createConfirmCompromisedPostRequestBodyFromDiscriminatorValue(parseNode) {
|
|
14
|
+
return deserializeIntoConfirmCompromisedPostRequestBody;
|
|
15
|
+
}
|
|
16
|
+
exports.createConfirmCompromisedPostRequestBodyFromDiscriminatorValue = createConfirmCompromisedPostRequestBodyFromDiscriminatorValue;
|
|
17
|
+
/**
|
|
18
|
+
* The deserialization information for the current model
|
|
19
|
+
* @returns a Record<string, (node: ParseNode) => void>
|
|
20
|
+
*/
|
|
21
|
+
function deserializeIntoConfirmCompromisedPostRequestBody(confirmCompromisedPostRequestBody = {}) {
|
|
22
|
+
return {
|
|
23
|
+
"backingStoreEnabled": n => { confirmCompromisedPostRequestBody.backingStoreEnabled = true; },
|
|
24
|
+
"servicePrincipalIds": n => { confirmCompromisedPostRequestBody.servicePrincipalIds = n.getCollectionOfPrimitiveValues(); },
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
exports.deserializeIntoConfirmCompromisedPostRequestBody = deserializeIntoConfirmCompromisedPostRequestBody;
|
|
28
|
+
/**
|
|
29
|
+
* Serializes information the current object
|
|
30
|
+
* @param writer Serialization writer to use to serialize this model
|
|
31
|
+
*/
|
|
32
|
+
function serializeConfirmCompromisedPostRequestBody(writer, confirmCompromisedPostRequestBody = {}) {
|
|
33
|
+
writer.writeCollectionOfPrimitiveValues("servicePrincipalIds", confirmCompromisedPostRequestBody.servicePrincipalIds);
|
|
34
|
+
writer.writeAdditionalData(confirmCompromisedPostRequestBody.additionalData);
|
|
35
|
+
}
|
|
36
|
+
exports.serializeConfirmCompromisedPostRequestBody = serializeConfirmCompromisedPostRequestBody;
|
|
37
|
+
/**
|
|
38
|
+
* Metadata for all the requests in the request builder.
|
|
39
|
+
*/
|
|
40
|
+
exports.ConfirmCompromisedRequestBuilderRequestsMetadata = {
|
|
41
|
+
post: {
|
|
42
|
+
responseBodyContentType: "application/json",
|
|
43
|
+
errorMappings: {
|
|
44
|
+
_4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
45
|
+
_5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
46
|
+
},
|
|
47
|
+
adapterMethodName: "sendNoResponseContentAsync",
|
|
48
|
+
requestBodyContentType: "application/json",
|
|
49
|
+
requestBodySerializer: serializeConfirmCompromisedPostRequestBody,
|
|
50
|
+
requestInformationContentSetMethod: "setContentFromParsable",
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Uri template for the request builder.
|
|
55
|
+
*/
|
|
56
|
+
exports.ConfirmCompromisedRequestBuilderUriTemplate = "{+baseurl}/identityProtection/riskyServicePrincipals/confirmCompromised";
|
|
57
|
+
/* tslint:enable */
|
|
58
|
+
/* 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/riskyServicePrincipals/$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,sFAAsF,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/riskyServicePrincipals/$count{?%24search,%24filter}";
|
|
34
|
+
/* tslint:enable */
|
|
35
|
+
/* 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
|
+
/**
|
|
3
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
4
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
5
|
+
* @returns a dismissPostRequestBody
|
|
6
|
+
*/
|
|
7
|
+
export declare function createDismissPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): typeof deserializeIntoDismissPostRequestBody;
|
|
8
|
+
/**
|
|
9
|
+
* The deserialization information for the current model
|
|
10
|
+
* @returns a Record<string, (node: ParseNode) => void>
|
|
11
|
+
*/
|
|
12
|
+
export declare function deserializeIntoDismissPostRequestBody(dismissPostRequestBody?: DismissPostRequestBody | undefined): Record<string, (node: ParseNode) => void>;
|
|
13
|
+
export interface DismissPostRequestBody extends AdditionalDataHolder, BackedModel, Parsable {
|
|
14
|
+
/**
|
|
15
|
+
* Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
16
|
+
*/
|
|
17
|
+
additionalData?: Record<string, unknown>;
|
|
18
|
+
/**
|
|
19
|
+
* Stores model information.
|
|
20
|
+
*/
|
|
21
|
+
backingStoreEnabled?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* The servicePrincipalIds property
|
|
24
|
+
*/
|
|
25
|
+
servicePrincipalIds?: string[];
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Provides operations to call the dismiss method.
|
|
29
|
+
*/
|
|
30
|
+
export interface DismissRequestBuilder extends BaseRequestBuilder<DismissRequestBuilder> {
|
|
31
|
+
/**
|
|
32
|
+
* Dismiss the risk of one or more riskyServicePrincipal objects. This action sets the targeted service principal account's risk level to none. You can dismiss up to 60 service principal accounts in one request.
|
|
33
|
+
* @param body The request body
|
|
34
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
35
|
+
* @see {@link https://learn.microsoft.com/graph/api/riskyserviceprincipal-dismiss?view=graph-rest-1.0|Find more info here}
|
|
36
|
+
*/
|
|
37
|
+
post(body: DismissPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
|
|
38
|
+
/**
|
|
39
|
+
* Dismiss the risk of one or more riskyServicePrincipal objects. This action sets the targeted service principal account's risk level to none. You can dismiss up to 60 service principal accounts in one request.
|
|
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
|
+
toPostRequestInformation(body: DismissPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Serializes information the current object
|
|
48
|
+
* @param writer Serialization writer to use to serialize this model
|
|
49
|
+
*/
|
|
50
|
+
export declare function serializeDismissPostRequestBody(writer: SerializationWriter, dismissPostRequestBody?: DismissPostRequestBody | undefined): void;
|
|
51
|
+
/**
|
|
52
|
+
* Metadata for all the requests in the request builder.
|
|
53
|
+
*/
|
|
54
|
+
export declare const DismissRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
55
|
+
/**
|
|
56
|
+
* Uri template for the request builder.
|
|
57
|
+
*/
|
|
58
|
+
export declare const DismissRequestBuilderUriTemplate = "{+baseurl}/identityProtection/riskyServicePrincipals/dismiss";
|
|
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;;;;GAIG;AACH,wBAAgB,kDAAkD,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,gDAElG;AACD;;;GAGG;AACH,wBAAgB,qCAAqC,CAAC,sBAAsB,GAAE,sBAAsB,GAAG,SAAwC,GAAI,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAK3L;AACD,MAAM,WAAW,sBAAuB,SAAQ,oBAAoB,EAAE,WAAW,EAAE,QAAQ;IACvF;;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,qBAAsB,SAAQ,kBAAkB,CAAC,qBAAqB,CAAC;IACpF;;;;;OAKG;IACF,IAAI,CAAC,IAAI,EAAE,sBAAsB,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACrH;;;;;OAKG;IACF,wBAAwB,CAAC,IAAI,EAAE,sBAAsB,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACjJ;AACD;;;GAGG;AACH,wBAAgB,+BAA+B,CAAC,MAAM,EAAE,mBAAmB,EAAE,sBAAsB,GAAE,sBAAsB,GAAG,SAAwC,GAAI,IAAI,CAG7K;AACD;;GAEG;AACH,eAAO,MAAM,qCAAqC,EAAE,gBAYnD,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,gCAAgC,iEAAiE,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DismissRequestBuilderUriTemplate = exports.DismissRequestBuilderRequestsMetadata = exports.serializeDismissPostRequestBody = exports.deserializeIntoDismissPostRequestBody = exports.createDismissPostRequestBodyFromDiscriminatorValue = 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
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
10
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
11
|
+
* @returns a dismissPostRequestBody
|
|
12
|
+
*/
|
|
13
|
+
function createDismissPostRequestBodyFromDiscriminatorValue(parseNode) {
|
|
14
|
+
return deserializeIntoDismissPostRequestBody;
|
|
15
|
+
}
|
|
16
|
+
exports.createDismissPostRequestBodyFromDiscriminatorValue = createDismissPostRequestBodyFromDiscriminatorValue;
|
|
17
|
+
/**
|
|
18
|
+
* The deserialization information for the current model
|
|
19
|
+
* @returns a Record<string, (node: ParseNode) => void>
|
|
20
|
+
*/
|
|
21
|
+
function deserializeIntoDismissPostRequestBody(dismissPostRequestBody = {}) {
|
|
22
|
+
return {
|
|
23
|
+
"backingStoreEnabled": n => { dismissPostRequestBody.backingStoreEnabled = true; },
|
|
24
|
+
"servicePrincipalIds": n => { dismissPostRequestBody.servicePrincipalIds = n.getCollectionOfPrimitiveValues(); },
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
exports.deserializeIntoDismissPostRequestBody = deserializeIntoDismissPostRequestBody;
|
|
28
|
+
/**
|
|
29
|
+
* Serializes information the current object
|
|
30
|
+
* @param writer Serialization writer to use to serialize this model
|
|
31
|
+
*/
|
|
32
|
+
function serializeDismissPostRequestBody(writer, dismissPostRequestBody = {}) {
|
|
33
|
+
writer.writeCollectionOfPrimitiveValues("servicePrincipalIds", dismissPostRequestBody.servicePrincipalIds);
|
|
34
|
+
writer.writeAdditionalData(dismissPostRequestBody.additionalData);
|
|
35
|
+
}
|
|
36
|
+
exports.serializeDismissPostRequestBody = serializeDismissPostRequestBody;
|
|
37
|
+
/**
|
|
38
|
+
* Metadata for all the requests in the request builder.
|
|
39
|
+
*/
|
|
40
|
+
exports.DismissRequestBuilderRequestsMetadata = {
|
|
41
|
+
post: {
|
|
42
|
+
responseBodyContentType: "application/json",
|
|
43
|
+
errorMappings: {
|
|
44
|
+
_4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
45
|
+
_5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
46
|
+
},
|
|
47
|
+
adapterMethodName: "sendNoResponseContentAsync",
|
|
48
|
+
requestBodyContentType: "application/json",
|
|
49
|
+
requestBodySerializer: serializeDismissPostRequestBody,
|
|
50
|
+
requestInformationContentSetMethod: "setContentFromParsable",
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Uri template for the request builder.
|
|
55
|
+
*/
|
|
56
|
+
exports.DismissRequestBuilderUriTemplate = "{+baseurl}/identityProtection/riskyServicePrincipals/dismiss";
|
|
57
|
+
/* tslint:enable */
|
|
58
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { type RiskyServicePrincipal, type RiskyServicePrincipalCollectionResponse } from '@microsoft/msgraph-sdk/models/';
|
|
2
|
+
import { type ConfirmCompromisedRequestBuilder } from './confirmCompromised/';
|
|
3
|
+
import { type CountRequestBuilder } from './count/';
|
|
4
|
+
import { type DismissRequestBuilder } from './dismiss/';
|
|
5
|
+
import { type RiskyServicePrincipalItemRequestBuilder } from './item/';
|
|
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 riskyServicePrincipals property of the microsoft.graph.identityProtectionRoot entity.
|
|
9
|
+
*/
|
|
10
|
+
export interface RiskyServicePrincipalsRequestBuilder extends BaseRequestBuilder<RiskyServicePrincipalsRequestBuilder> {
|
|
11
|
+
/**
|
|
12
|
+
* Provides operations to call the confirmCompromised method.
|
|
13
|
+
*/
|
|
14
|
+
get confirmCompromised(): ConfirmCompromisedRequestBuilder;
|
|
15
|
+
/**
|
|
16
|
+
* Provides operations to count the resources in the collection.
|
|
17
|
+
*/
|
|
18
|
+
get count(): CountRequestBuilder;
|
|
19
|
+
/**
|
|
20
|
+
* Provides operations to call the dismiss method.
|
|
21
|
+
*/
|
|
22
|
+
get dismiss(): DismissRequestBuilder;
|
|
23
|
+
/**
|
|
24
|
+
* Provides operations to manage the riskyServicePrincipals property of the microsoft.graph.identityProtectionRoot entity.
|
|
25
|
+
* @param riskyServicePrincipalId The unique identifier of riskyServicePrincipal
|
|
26
|
+
* @returns a RiskyServicePrincipalItemRequestBuilder
|
|
27
|
+
*/
|
|
28
|
+
byRiskyServicePrincipalId(riskyServicePrincipalId: string): RiskyServicePrincipalItemRequestBuilder;
|
|
29
|
+
/**
|
|
30
|
+
* Retrieve the properties and relationships of riskyServicePrincipal objects.
|
|
31
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
32
|
+
* @returns a Promise of RiskyServicePrincipalCollectionResponse
|
|
33
|
+
* @see {@link https://learn.microsoft.com/graph/api/identityprotectionroot-list-riskyserviceprincipals?view=graph-rest-1.0|Find more info here}
|
|
34
|
+
*/
|
|
35
|
+
get(requestConfiguration?: RequestConfiguration<RiskyServicePrincipalsRequestBuilderGetQueryParameters> | undefined): Promise<RiskyServicePrincipalCollectionResponse | undefined>;
|
|
36
|
+
/**
|
|
37
|
+
* Create new navigation property to riskyServicePrincipals for identityProtection
|
|
38
|
+
* @param body The request body
|
|
39
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
40
|
+
* @returns a Promise of RiskyServicePrincipal
|
|
41
|
+
*/
|
|
42
|
+
post(body: RiskyServicePrincipal, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<RiskyServicePrincipal | undefined>;
|
|
43
|
+
/**
|
|
44
|
+
* Retrieve the properties and relationships of riskyServicePrincipal objects.
|
|
45
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
46
|
+
* @returns a RequestInformation
|
|
47
|
+
*/
|
|
48
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<RiskyServicePrincipalsRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
49
|
+
/**
|
|
50
|
+
* Create new navigation property to riskyServicePrincipals for identityProtection
|
|
51
|
+
* @param body The request body
|
|
52
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
53
|
+
* @returns a RequestInformation
|
|
54
|
+
*/
|
|
55
|
+
toPostRequestInformation(body: RiskyServicePrincipal, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Retrieve the properties and relationships of riskyServicePrincipal objects.
|
|
59
|
+
*/
|
|
60
|
+
export interface RiskyServicePrincipalsRequestBuilderGetQueryParameters {
|
|
61
|
+
/**
|
|
62
|
+
* Include count of items
|
|
63
|
+
*/
|
|
64
|
+
count?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Expand related entities
|
|
67
|
+
*/
|
|
68
|
+
expand?: string[];
|
|
69
|
+
/**
|
|
70
|
+
* Filter items by property values
|
|
71
|
+
*/
|
|
72
|
+
filter?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Order items by property values
|
|
75
|
+
*/
|
|
76
|
+
orderby?: string[];
|
|
77
|
+
/**
|
|
78
|
+
* Search items by search phrases
|
|
79
|
+
*/
|
|
80
|
+
search?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Select properties to be returned
|
|
83
|
+
*/
|
|
84
|
+
select?: string[];
|
|
85
|
+
/**
|
|
86
|
+
* Skip the first n items
|
|
87
|
+
*/
|
|
88
|
+
skip?: number;
|
|
89
|
+
/**
|
|
90
|
+
* Show only the first n items
|
|
91
|
+
*/
|
|
92
|
+
top?: number;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Metadata for all the navigation properties in the request builder.
|
|
96
|
+
*/
|
|
97
|
+
export declare const RiskyServicePrincipalsRequestBuilderNavigationMetadata: Record<Exclude<keyof RiskyServicePrincipalsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
|
|
98
|
+
/**
|
|
99
|
+
* Metadata for all the requests in the request builder.
|
|
100
|
+
*/
|
|
101
|
+
export declare const RiskyServicePrincipalsRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
102
|
+
/**
|
|
103
|
+
* Uri template for the request builder.
|
|
104
|
+
*/
|
|
105
|
+
export declare const RiskyServicePrincipalsRequestBuilderUriTemplate = "{+baseurl}/identityProtection/riskyServicePrincipals{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}";
|
|
106
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAA0J,KAAK,qBAAqB,EAAE,KAAK,uCAAuC,EAAE,MAAM,gCAAgC,CAAC;AAElR,OAAO,EAAiG,KAAK,gCAAgC,EAAE,MAAM,uBAAuB,CAAC;AAC7K,OAAO,EAAuE,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACzH,OAAO,EAA2E,KAAK,qBAAqB,EAAE,MAAM,YAAY,CAAC;AACjI,OAAO,EAA0K,KAAK,uCAAuC,EAAE,MAAM,SAAS,CAAC;AAC/O,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,oCAAqC,SAAQ,kBAAkB,CAAC,oCAAoC,CAAC;IAClH;;OAEG;IACH,IAAI,kBAAkB,IAAI,gCAAgC,CAAC;IAC3D;;OAEG;IACH,IAAI,KAAK,IAAI,mBAAmB,CAAC;IACjC;;OAEG;IACH,IAAI,OAAO,IAAI,qBAAqB,CAAC;IACrC;;;;OAIG;IACF,yBAAyB,CAAC,uBAAuB,EAAE,MAAM,GAAI,uCAAuC,CAAC;IACtG;;;;;OAKG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,sDAAsD,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,uCAAuC,GAAG,SAAS,CAAC,CAAC;IACrL;;;;;OAKG;IACF,IAAI,CAAC,IAAI,EAAE,qBAAqB,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,qBAAqB,GAAG,SAAS,CAAC,CAAC;IACjJ;;;;OAIG;IACF,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,sDAAsD,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;IAC/J;;;;;OAKG;IACF,wBAAwB,CAAC,IAAI,EAAE,qBAAqB,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CAChJ;AACD;;GAEG;AACH,MAAM,WAAW,sDAAsD;IACnE;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CAChB;AAcD;;GAEG;AACH,eAAO,MAAM,sDAAsD,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,oCAAoC,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAmBtL,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,oDAAoD,EAAE,gBAuBlE,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,+CAA+C,sIAAsI,CAAC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RiskyServicePrincipalsRequestBuilderUriTemplate = exports.RiskyServicePrincipalsRequestBuilderRequestsMetadata = exports.RiskyServicePrincipalsRequestBuilderNavigationMetadata = 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 confirmCompromised_1 = require("./confirmCompromised/");
|
|
10
|
+
const count_1 = require("./count/");
|
|
11
|
+
const dismiss_1 = require("./dismiss/");
|
|
12
|
+
const item_1 = require("./item/");
|
|
13
|
+
/**
|
|
14
|
+
* Mapper for query parameters from symbol name to serialization name represented as a constant.
|
|
15
|
+
*/
|
|
16
|
+
const RiskyServicePrincipalsRequestBuilderGetQueryParametersMapper = {
|
|
17
|
+
"count": "%24count",
|
|
18
|
+
"expand": "%24expand",
|
|
19
|
+
"filter": "%24filter",
|
|
20
|
+
"orderby": "%24orderby",
|
|
21
|
+
"search": "%24search",
|
|
22
|
+
"select": "%24select",
|
|
23
|
+
"skip": "%24skip",
|
|
24
|
+
"top": "%24top",
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Metadata for all the navigation properties in the request builder.
|
|
28
|
+
*/
|
|
29
|
+
exports.RiskyServicePrincipalsRequestBuilderNavigationMetadata = {
|
|
30
|
+
byRiskyServicePrincipalId: {
|
|
31
|
+
uriTemplate: item_1.RiskyServicePrincipalItemRequestBuilderUriTemplate,
|
|
32
|
+
requestsMetadata: item_1.RiskyServicePrincipalItemRequestBuilderRequestsMetadata,
|
|
33
|
+
navigationMetadata: item_1.RiskyServicePrincipalItemRequestBuilderNavigationMetadata,
|
|
34
|
+
pathParametersMappings: ["riskyServicePrincipal%2Did"],
|
|
35
|
+
},
|
|
36
|
+
confirmCompromised: {
|
|
37
|
+
uriTemplate: confirmCompromised_1.ConfirmCompromisedRequestBuilderUriTemplate,
|
|
38
|
+
requestsMetadata: confirmCompromised_1.ConfirmCompromisedRequestBuilderRequestsMetadata,
|
|
39
|
+
},
|
|
40
|
+
count: {
|
|
41
|
+
uriTemplate: count_1.CountRequestBuilderUriTemplate,
|
|
42
|
+
requestsMetadata: count_1.CountRequestBuilderRequestsMetadata,
|
|
43
|
+
},
|
|
44
|
+
dismiss: {
|
|
45
|
+
uriTemplate: dismiss_1.DismissRequestBuilderUriTemplate,
|
|
46
|
+
requestsMetadata: dismiss_1.DismissRequestBuilderRequestsMetadata,
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Metadata for all the requests in the request builder.
|
|
51
|
+
*/
|
|
52
|
+
exports.RiskyServicePrincipalsRequestBuilderRequestsMetadata = {
|
|
53
|
+
get: {
|
|
54
|
+
responseBodyContentType: "application/json",
|
|
55
|
+
errorMappings: {
|
|
56
|
+
_4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
57
|
+
_5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
58
|
+
},
|
|
59
|
+
adapterMethodName: "sendAsync",
|
|
60
|
+
responseBodyFactory: models_1.createRiskyServicePrincipalCollectionResponseFromDiscriminatorValue,
|
|
61
|
+
queryParametersMapper: RiskyServicePrincipalsRequestBuilderGetQueryParametersMapper,
|
|
62
|
+
},
|
|
63
|
+
post: {
|
|
64
|
+
responseBodyContentType: "application/json",
|
|
65
|
+
errorMappings: {
|
|
66
|
+
_4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
67
|
+
_5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
68
|
+
},
|
|
69
|
+
adapterMethodName: "sendAsync",
|
|
70
|
+
responseBodyFactory: models_1.createRiskyServicePrincipalFromDiscriminatorValue,
|
|
71
|
+
requestBodyContentType: "application/json",
|
|
72
|
+
requestBodySerializer: models_1.serializeRiskyServicePrincipal,
|
|
73
|
+
requestInformationContentSetMethod: "setContentFromParsable",
|
|
74
|
+
},
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* Uri template for the request builder.
|
|
78
|
+
*/
|
|
79
|
+
exports.RiskyServicePrincipalsRequestBuilderUriTemplate = "{+baseurl}/identityProtection/riskyServicePrincipals{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}";
|
|
80
|
+
/* tslint:enable */
|
|
81
|
+
/* 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/riskyServicePrincipals/{riskyServicePrincipal%2Did}/history/$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,2HAA2H,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/riskyServicePrincipals/{riskyServicePrincipal%2Did}/history/$count{?%24search,%24filter}";
|
|
34
|
+
/* tslint:enable */
|
|
35
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { type RiskyServicePrincipalHistoryItem, type RiskyServicePrincipalHistoryItemCollectionResponse } from '@microsoft/msgraph-sdk/models/';
|
|
2
|
+
import { type CountRequestBuilder } from './count/';
|
|
3
|
+
import { type RiskyServicePrincipalHistoryItemItemRequestBuilder } 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 history property of the microsoft.graph.riskyServicePrincipal entity.
|
|
7
|
+
*/
|
|
8
|
+
export interface HistoryRequestBuilder extends BaseRequestBuilder<HistoryRequestBuilder> {
|
|
9
|
+
/**
|
|
10
|
+
* Provides operations to count the resources in the collection.
|
|
11
|
+
*/
|
|
12
|
+
get count(): CountRequestBuilder;
|
|
13
|
+
/**
|
|
14
|
+
* Provides operations to manage the history property of the microsoft.graph.riskyServicePrincipal entity.
|
|
15
|
+
* @param riskyServicePrincipalHistoryItemId The unique identifier of riskyServicePrincipalHistoryItem
|
|
16
|
+
* @returns a RiskyServicePrincipalHistoryItemItemRequestBuilder
|
|
17
|
+
*/
|
|
18
|
+
byRiskyServicePrincipalHistoryItemId(riskyServicePrincipalHistoryItemId: string): RiskyServicePrincipalHistoryItemItemRequestBuilder;
|
|
19
|
+
/**
|
|
20
|
+
* Get the risk history of a riskyServicePrincipal object.
|
|
21
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
22
|
+
* @returns a Promise of RiskyServicePrincipalHistoryItemCollectionResponse
|
|
23
|
+
* @see {@link https://learn.microsoft.com/graph/api/riskyserviceprincipal-list-history?view=graph-rest-1.0|Find more info here}
|
|
24
|
+
*/
|
|
25
|
+
get(requestConfiguration?: RequestConfiguration<HistoryRequestBuilderGetQueryParameters> | undefined): Promise<RiskyServicePrincipalHistoryItemCollectionResponse | undefined>;
|
|
26
|
+
/**
|
|
27
|
+
* Create new navigation property to history 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 RiskyServicePrincipalHistoryItem
|
|
31
|
+
*/
|
|
32
|
+
post(body: RiskyServicePrincipalHistoryItem, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<RiskyServicePrincipalHistoryItem | undefined>;
|
|
33
|
+
/**
|
|
34
|
+
* Get the risk history of a riskyServicePrincipal object.
|
|
35
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
36
|
+
* @returns a RequestInformation
|
|
37
|
+
*/
|
|
38
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<HistoryRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
39
|
+
/**
|
|
40
|
+
* Create new navigation property to history 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: RiskyServicePrincipalHistoryItem, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Get the risk history of a riskyServicePrincipal object.
|
|
49
|
+
*/
|
|
50
|
+
export interface HistoryRequestBuilderGetQueryParameters {
|
|
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 HistoryRequestBuilderNavigationMetadata: Record<Exclude<keyof HistoryRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
|
|
88
|
+
/**
|
|
89
|
+
* Metadata for all the requests in the request builder.
|
|
90
|
+
*/
|
|
91
|
+
export declare const HistoryRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
92
|
+
/**
|
|
93
|
+
* Uri template for the request builder.
|
|
94
|
+
*/
|
|
95
|
+
export declare const HistoryRequestBuilderUriTemplate = "{+baseurl}/identityProtection/riskyServicePrincipals/{riskyServicePrincipal%2Did}/history{?%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,EAA2L,KAAK,gCAAgC,EAAE,KAAK,kDAAkD,EAAE,MAAM,gCAAgC,CAAC;AAEzU,OAAO,EAAuE,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACzH,OAAO,EAAqI,KAAK,kDAAkD,EAAE,MAAM,SAAS,CAAC;AACrN,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,qBAAsB,SAAQ,kBAAkB,CAAC,qBAAqB,CAAC;IACpF;;OAEG;IACH,IAAI,KAAK,IAAI,mBAAmB,CAAC;IACjC;;;;OAIG;IACF,oCAAoC,CAAC,kCAAkC,EAAE,MAAM,GAAI,kDAAkD,CAAC;IACvI;;;;;OAKG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,uCAAuC,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,kDAAkD,GAAG,SAAS,CAAC,CAAC;IACjL;;;;;OAKG;IACF,IAAI,CAAC,IAAI,EAAE,gCAAgC,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,gCAAgC,GAAG,SAAS,CAAC,CAAC;IACvK;;;;OAIG;IACF,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,uCAAuC,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;IAChJ;;;;;OAKG;IACF,wBAAwB,CAAC,IAAI,EAAE,gCAAgC,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CAC3J;AACD;;GAEG;AACH,MAAM,WAAW,uCAAuC;IACpD;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CAChB;AAcD;;GAEG;AACH,eAAO,MAAM,uCAAuC,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,qBAAqB,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAUxJ,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,qCAAqC,EAAE,gBAuBnD,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,gCAAgC,2KAA2K,CAAC"}
|