@microsoft/msgraph-sdk-identityprotection 1.0.0-preview.13 → 1.0.0-preview.14

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.
Files changed (73) hide show
  1. package/identityProtection/index.d.ts +10 -8
  2. package/identityProtection/index.d.ts.map +1 -1
  3. package/identityProtection/index.js +9 -13
  4. package/identityProtection/riskDetections/count/index.d.ts +7 -6
  5. package/identityProtection/riskDetections/count/index.d.ts.map +1 -1
  6. package/identityProtection/riskDetections/count/index.js +7 -7
  7. package/identityProtection/riskDetections/index.d.ts +11 -9
  8. package/identityProtection/riskDetections/index.d.ts.map +1 -1
  9. package/identityProtection/riskDetections/index.js +9 -11
  10. package/identityProtection/riskDetections/item/index.d.ts +12 -9
  11. package/identityProtection/riskDetections/item/index.d.ts.map +1 -1
  12. package/identityProtection/riskDetections/item/index.js +11 -11
  13. package/identityProtection/riskyServicePrincipals/confirmCompromised/index.d.ts +8 -7
  14. package/identityProtection/riskyServicePrincipals/confirmCompromised/index.d.ts.map +1 -1
  15. package/identityProtection/riskyServicePrincipals/confirmCompromised/index.js +9 -9
  16. package/identityProtection/riskyServicePrincipals/count/index.d.ts +7 -6
  17. package/identityProtection/riskyServicePrincipals/count/index.d.ts.map +1 -1
  18. package/identityProtection/riskyServicePrincipals/count/index.js +7 -7
  19. package/identityProtection/riskyServicePrincipals/dismiss/index.d.ts +8 -7
  20. package/identityProtection/riskyServicePrincipals/dismiss/index.d.ts.map +1 -1
  21. package/identityProtection/riskyServicePrincipals/dismiss/index.js +9 -9
  22. package/identityProtection/riskyServicePrincipals/index.d.ts +11 -9
  23. package/identityProtection/riskyServicePrincipals/index.d.ts.map +1 -1
  24. package/identityProtection/riskyServicePrincipals/index.js +9 -13
  25. package/identityProtection/riskyServicePrincipals/item/history/count/index.d.ts +7 -6
  26. package/identityProtection/riskyServicePrincipals/item/history/count/index.d.ts.map +1 -1
  27. package/identityProtection/riskyServicePrincipals/item/history/count/index.js +7 -7
  28. package/identityProtection/riskyServicePrincipals/item/history/index.d.ts +11 -9
  29. package/identityProtection/riskyServicePrincipals/item/history/index.d.ts.map +1 -1
  30. package/identityProtection/riskyServicePrincipals/item/history/index.js +9 -11
  31. package/identityProtection/riskyServicePrincipals/item/history/item/index.d.ts +12 -9
  32. package/identityProtection/riskyServicePrincipals/item/history/item/index.d.ts.map +1 -1
  33. package/identityProtection/riskyServicePrincipals/item/history/item/index.js +11 -11
  34. package/identityProtection/riskyServicePrincipals/item/index.d.ts +12 -9
  35. package/identityProtection/riskyServicePrincipals/item/index.d.ts.map +1 -1
  36. package/identityProtection/riskyServicePrincipals/item/index.js +11 -12
  37. package/identityProtection/riskyUsers/confirmCompromised/index.d.ts +8 -7
  38. package/identityProtection/riskyUsers/confirmCompromised/index.d.ts.map +1 -1
  39. package/identityProtection/riskyUsers/confirmCompromised/index.js +9 -9
  40. package/identityProtection/riskyUsers/count/index.d.ts +7 -6
  41. package/identityProtection/riskyUsers/count/index.d.ts.map +1 -1
  42. package/identityProtection/riskyUsers/count/index.js +7 -7
  43. package/identityProtection/riskyUsers/dismiss/index.d.ts +8 -7
  44. package/identityProtection/riskyUsers/dismiss/index.d.ts.map +1 -1
  45. package/identityProtection/riskyUsers/dismiss/index.js +9 -9
  46. package/identityProtection/riskyUsers/index.d.ts +11 -9
  47. package/identityProtection/riskyUsers/index.d.ts.map +1 -1
  48. package/identityProtection/riskyUsers/index.js +9 -13
  49. package/identityProtection/riskyUsers/item/history/count/index.d.ts +7 -6
  50. package/identityProtection/riskyUsers/item/history/count/index.d.ts.map +1 -1
  51. package/identityProtection/riskyUsers/item/history/count/index.js +7 -7
  52. package/identityProtection/riskyUsers/item/history/index.d.ts +11 -9
  53. package/identityProtection/riskyUsers/item/history/index.d.ts.map +1 -1
  54. package/identityProtection/riskyUsers/item/history/index.js +9 -11
  55. package/identityProtection/riskyUsers/item/history/item/index.d.ts +12 -9
  56. package/identityProtection/riskyUsers/item/history/item/index.d.ts.map +1 -1
  57. package/identityProtection/riskyUsers/item/history/item/index.js +11 -11
  58. package/identityProtection/riskyUsers/item/index.d.ts +12 -9
  59. package/identityProtection/riskyUsers/item/index.d.ts.map +1 -1
  60. package/identityProtection/riskyUsers/item/index.js +11 -12
  61. package/identityProtection/servicePrincipalRiskDetections/count/index.d.ts +7 -6
  62. package/identityProtection/servicePrincipalRiskDetections/count/index.d.ts.map +1 -1
  63. package/identityProtection/servicePrincipalRiskDetections/count/index.js +7 -7
  64. package/identityProtection/servicePrincipalRiskDetections/index.d.ts +11 -9
  65. package/identityProtection/servicePrincipalRiskDetections/index.d.ts.map +1 -1
  66. package/identityProtection/servicePrincipalRiskDetections/index.js +9 -11
  67. package/identityProtection/servicePrincipalRiskDetections/item/index.d.ts +12 -9
  68. package/identityProtection/servicePrincipalRiskDetections/item/index.d.ts.map +1 -1
  69. package/identityProtection/servicePrincipalRiskDetections/item/index.js +11 -11
  70. package/identityProtectionServiceClient.d.ts.map +1 -1
  71. package/identityProtectionServiceClient.js +1 -2
  72. package/package.json +3 -3
  73. package/tsconfig.tsbuildinfo +1 -1
@@ -27,27 +27,29 @@ export interface IdentityProtectionRequestBuilder extends BaseRequestBuilder<Ide
27
27
  /**
28
28
  * Get identityProtection
29
29
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
30
- * @returns a Promise of IdentityProtectionRoot
30
+ * @returns {Promise<IdentityProtectionRoot>}
31
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
31
32
  */
32
33
  get(requestConfiguration?: RequestConfiguration<IdentityProtectionRequestBuilderGetQueryParameters> | undefined): Promise<IdentityProtectionRoot | undefined>;
33
34
  /**
34
35
  * Update identityProtection
35
36
  * @param body The request body
36
37
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
37
- * @returns a Promise of IdentityProtectionRoot
38
+ * @returns {Promise<IdentityProtectionRoot>}
39
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
38
40
  */
39
41
  patch(body: IdentityProtectionRoot, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<IdentityProtectionRoot | undefined>;
40
42
  /**
41
43
  * Get identityProtection
42
44
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
43
- * @returns a RequestInformation
45
+ * @returns {RequestInformation}
44
46
  */
45
47
  toGetRequestInformation(requestConfiguration?: RequestConfiguration<IdentityProtectionRequestBuilderGetQueryParameters> | undefined): RequestInformation;
46
48
  /**
47
49
  * Update identityProtection
48
50
  * @param body The request body
49
51
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
50
- * @returns a RequestInformation
52
+ * @returns {RequestInformation}
51
53
  */
52
54
  toPatchRequestInformation(body: IdentityProtectionRoot, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
53
55
  }
@@ -64,6 +66,10 @@ export interface IdentityProtectionRequestBuilderGetQueryParameters {
64
66
  */
65
67
  select?: string[];
66
68
  }
69
+ /**
70
+ * Uri template for the request builder.
71
+ */
72
+ export declare const IdentityProtectionRequestBuilderUriTemplate = "{+baseurl}/identityProtection{?%24expand,%24select}";
67
73
  /**
68
74
  * Metadata for all the navigation properties in the request builder.
69
75
  */
@@ -72,8 +78,4 @@ export declare const IdentityProtectionRequestBuilderNavigationMetadata: Record<
72
78
  * Metadata for all the requests in the request builder.
73
79
  */
74
80
  export declare const IdentityProtectionRequestBuilderRequestsMetadata: RequestsMetadata;
75
- /**
76
- * Uri template for the request builder.
77
- */
78
- export declare const IdentityProtectionRequestBuilderUriTemplate = "{+baseurl}/identityProtection{?%24expand,%24select}";
79
81
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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,E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GAAG,SAAS,GAAI,OAAO,CAAC,sBAAsB,GAAG,SAAS,CAAC,CAAC;IAChK;;;;;;OAMG;IACF,KAAK,CAAC,IAAI,EAAE,sBAAsB,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,sBAAsB,GAAG,SAAS,CAAC,CAAC;IACpJ;;;;OAIG;IACF,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,kDAAkD,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;IAC3J;;;;;OAKG;IACF,yBAAyB,CAAC,IAAI,EAAE,sBAAsB,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CAClJ;AACD;;GAEG;AACH,MAAM,WAAW,kDAAkD;IAC/D;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AACD;;GAEG;AACH,eAAO,MAAM,2CAA2C,wDAAwD,CAAC;AAQjH;;GAEG;AACH,eAAO,MAAM,kDAAkD,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,gCAAgC,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAiB9K,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,gDAAgD,EAAE,gBAuB9D,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IdentityProtectionRequestBuilderUriTemplate = exports.IdentityProtectionRequestBuilderRequestsMetadata = exports.IdentityProtectionRequestBuilderNavigationMetadata = void 0;
3
+ exports.IdentityProtectionRequestBuilderRequestsMetadata = exports.IdentityProtectionRequestBuilderNavigationMetadata = exports.IdentityProtectionRequestBuilderUriTemplate = void 0;
4
4
  /* tslint:disable */
5
5
  /* eslint-disable */
6
6
  // Generated by Microsoft Kiota
@@ -10,6 +10,10 @@ const riskDetections_1 = require("./riskDetections/");
10
10
  const riskyServicePrincipals_1 = require("./riskyServicePrincipals/");
11
11
  const riskyUsers_1 = require("./riskyUsers/");
12
12
  const servicePrincipalRiskDetections_1 = require("./servicePrincipalRiskDetections/");
13
+ /**
14
+ * Uri template for the request builder.
15
+ */
16
+ exports.IdentityProtectionRequestBuilderUriTemplate = "{+baseurl}/identityProtection{?%24expand,%24select}";
13
17
  /**
14
18
  * Mapper for query parameters from symbol name to serialization name represented as a constant.
15
19
  */
@@ -22,22 +26,18 @@ const IdentityProtectionRequestBuilderGetQueryParametersMapper = {
22
26
  */
23
27
  exports.IdentityProtectionRequestBuilderNavigationMetadata = {
24
28
  riskDetections: {
25
- uriTemplate: riskDetections_1.RiskDetectionsRequestBuilderUriTemplate,
26
29
  requestsMetadata: riskDetections_1.RiskDetectionsRequestBuilderRequestsMetadata,
27
30
  navigationMetadata: riskDetections_1.RiskDetectionsRequestBuilderNavigationMetadata,
28
31
  },
29
32
  riskyServicePrincipals: {
30
- uriTemplate: riskyServicePrincipals_1.RiskyServicePrincipalsRequestBuilderUriTemplate,
31
33
  requestsMetadata: riskyServicePrincipals_1.RiskyServicePrincipalsRequestBuilderRequestsMetadata,
32
34
  navigationMetadata: riskyServicePrincipals_1.RiskyServicePrincipalsRequestBuilderNavigationMetadata,
33
35
  },
34
36
  riskyUsers: {
35
- uriTemplate: riskyUsers_1.RiskyUsersRequestBuilderUriTemplate,
36
37
  requestsMetadata: riskyUsers_1.RiskyUsersRequestBuilderRequestsMetadata,
37
38
  navigationMetadata: riskyUsers_1.RiskyUsersRequestBuilderNavigationMetadata,
38
39
  },
39
40
  servicePrincipalRiskDetections: {
40
- uriTemplate: servicePrincipalRiskDetections_1.ServicePrincipalRiskDetectionsRequestBuilderUriTemplate,
41
41
  requestsMetadata: servicePrincipalRiskDetections_1.ServicePrincipalRiskDetectionsRequestBuilderRequestsMetadata,
42
42
  navigationMetadata: servicePrincipalRiskDetections_1.ServicePrincipalRiskDetectionsRequestBuilderNavigationMetadata,
43
43
  },
@@ -47,20 +47,20 @@ exports.IdentityProtectionRequestBuilderNavigationMetadata = {
47
47
  */
48
48
  exports.IdentityProtectionRequestBuilderRequestsMetadata = {
49
49
  get: {
50
+ uriTemplate: exports.IdentityProtectionRequestBuilderUriTemplate,
50
51
  responseBodyContentType: "application/json",
51
52
  errorMappings: {
52
- _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
53
- _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
53
+ XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
54
54
  },
55
55
  adapterMethodName: "sendAsync",
56
56
  responseBodyFactory: models_1.createIdentityProtectionRootFromDiscriminatorValue,
57
57
  queryParametersMapper: IdentityProtectionRequestBuilderGetQueryParametersMapper,
58
58
  },
59
59
  patch: {
60
+ uriTemplate: exports.IdentityProtectionRequestBuilderUriTemplate,
60
61
  responseBodyContentType: "application/json",
61
62
  errorMappings: {
62
- _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
63
- _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
63
+ XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
64
64
  },
65
65
  adapterMethodName: "sendAsync",
66
66
  responseBodyFactory: models_1.createIdentityProtectionRootFromDiscriminatorValue,
@@ -69,9 +69,5 @@ exports.IdentityProtectionRequestBuilderRequestsMetadata = {
69
69
  requestInformationContentSetMethod: "setContentFromParsable",
70
70
  },
71
71
  };
72
- /**
73
- * Uri template for the request builder.
74
- */
75
- exports.IdentityProtectionRequestBuilderUriTemplate = "{+baseurl}/identityProtection{?%24expand,%24select}";
76
72
  /* tslint:enable */
77
73
  /* eslint-enable */
@@ -6,13 +6,14 @@ export interface CountRequestBuilder extends BaseRequestBuilder<CountRequestBuil
6
6
  /**
7
7
  * Get the number of the resource
8
8
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
9
- * @returns a Promise of Integer
9
+ * @returns {Promise<number>}
10
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
10
11
  */
11
12
  get(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined): Promise<number | undefined>;
12
13
  /**
13
14
  * Get the number of the resource
14
15
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
15
- * @returns a RequestInformation
16
+ * @returns {RequestInformation}
16
17
  */
17
18
  toGetRequestInformation(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined): RequestInformation;
18
19
  }
@@ -29,12 +30,12 @@ export interface CountRequestBuilderGetQueryParameters {
29
30
  */
30
31
  search?: string;
31
32
  }
32
- /**
33
- * Metadata for all the requests in the request builder.
34
- */
35
- export declare const CountRequestBuilderRequestsMetadata: RequestsMetadata;
36
33
  /**
37
34
  * Uri template for the request builder.
38
35
  */
39
36
  export declare const CountRequestBuilderUriTemplate = "{+baseurl}/identityProtection/riskDetections/$count{?%24filter,%24search}";
37
+ /**
38
+ * Metadata for all the requests in the request builder.
39
+ */
40
+ export declare const CountRequestBuilderRequestsMetadata: RequestsMetadata;
40
41
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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"}
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;;;;;OAKG;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;AACD;;GAEG;AACH,eAAO,MAAM,8BAA8B,8EAA8E,CAAC;AAQ1H;;GAEG;AACH,eAAO,MAAM,mCAAmC,EAAE,gBAWjD,CAAC"}
@@ -1,10 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CountRequestBuilderUriTemplate = exports.CountRequestBuilderRequestsMetadata = void 0;
3
+ exports.CountRequestBuilderRequestsMetadata = exports.CountRequestBuilderUriTemplate = void 0;
4
4
  /* tslint:disable */
5
5
  /* eslint-disable */
6
6
  // Generated by Microsoft Kiota
7
7
  const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
8
+ /**
9
+ * Uri template for the request builder.
10
+ */
11
+ exports.CountRequestBuilderUriTemplate = "{+baseurl}/identityProtection/riskDetections/$count{?%24filter,%24search}";
8
12
  /**
9
13
  * Mapper for query parameters from symbol name to serialization name represented as a constant.
10
14
  */
@@ -17,19 +21,15 @@ const CountRequestBuilderGetQueryParametersMapper = {
17
21
  */
18
22
  exports.CountRequestBuilderRequestsMetadata = {
19
23
  get: {
24
+ uriTemplate: exports.CountRequestBuilderUriTemplate,
20
25
  responseBodyContentType: "text/plain;q=0.9",
21
26
  errorMappings: {
22
- _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
23
- _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
27
+ XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
24
28
  },
25
29
  adapterMethodName: "sendPrimitiveAsync",
26
30
  responseBodyFactory: "number",
27
31
  queryParametersMapper: CountRequestBuilderGetQueryParametersMapper,
28
32
  },
29
33
  };
30
- /**
31
- * Uri template for the request builder.
32
- */
33
- exports.CountRequestBuilderUriTemplate = "{+baseurl}/identityProtection/riskDetections/$count{?%24filter,%24search}";
34
34
  /* tslint:enable */
35
35
  /* eslint-enable */
@@ -13,13 +13,14 @@ export interface RiskDetectionsRequestBuilder extends BaseRequestBuilder<RiskDet
13
13
  /**
14
14
  * Provides operations to manage the riskDetections property of the microsoft.graph.identityProtectionRoot entity.
15
15
  * @param riskDetectionId The unique identifier of riskDetection
16
- * @returns a RiskDetectionItemRequestBuilder
16
+ * @returns {RiskDetectionItemRequestBuilder}
17
17
  */
18
18
  byRiskDetectionId(riskDetectionId: string): RiskDetectionItemRequestBuilder;
19
19
  /**
20
20
  * Get a list of the riskDetection objects and their properties.
21
21
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
22
- * @returns a Promise of RiskDetectionCollectionResponse
22
+ * @returns {Promise<RiskDetectionCollectionResponse>}
23
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
23
24
  * @see {@link https://learn.microsoft.com/graph/api/riskdetection-list?view=graph-rest-1.0|Find more info here}
24
25
  */
25
26
  get(requestConfiguration?: RequestConfiguration<RiskDetectionsRequestBuilderGetQueryParameters> | undefined): Promise<RiskDetectionCollectionResponse | undefined>;
@@ -27,20 +28,21 @@ export interface RiskDetectionsRequestBuilder extends BaseRequestBuilder<RiskDet
27
28
  * Create new navigation property to riskDetections for identityProtection
28
29
  * @param body The request body
29
30
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
30
- * @returns a Promise of RiskDetection
31
+ * @returns {Promise<RiskDetection>}
32
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
31
33
  */
32
34
  post(body: RiskDetection, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<RiskDetection | undefined>;
33
35
  /**
34
36
  * Get a list of the riskDetection objects and their properties.
35
37
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
36
- * @returns a RequestInformation
38
+ * @returns {RequestInformation}
37
39
  */
38
40
  toGetRequestInformation(requestConfiguration?: RequestConfiguration<RiskDetectionsRequestBuilderGetQueryParameters> | undefined): RequestInformation;
39
41
  /**
40
42
  * Create new navigation property to riskDetections for identityProtection
41
43
  * @param body The request body
42
44
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
43
- * @returns a RequestInformation
45
+ * @returns {RequestInformation}
44
46
  */
45
47
  toPostRequestInformation(body: RiskDetection, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
46
48
  }
@@ -81,6 +83,10 @@ export interface RiskDetectionsRequestBuilderGetQueryParameters {
81
83
  */
82
84
  top?: number;
83
85
  }
86
+ /**
87
+ * Uri template for the request builder.
88
+ */
89
+ export declare const RiskDetectionsRequestBuilderUriTemplate = "{+baseurl}/identityProtection/riskDetections{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
84
90
  /**
85
91
  * Metadata for all the navigation properties in the request builder.
86
92
  */
@@ -89,8 +95,4 @@ export declare const RiskDetectionsRequestBuilderNavigationMetadata: Record<Excl
89
95
  * Metadata for all the requests in the request builder.
90
96
  */
91
97
  export declare const RiskDetectionsRequestBuilderRequestsMetadata: RequestsMetadata;
92
- /**
93
- * Uri template for the request builder.
94
- */
95
- export declare const RiskDetectionsRequestBuilderUriTemplate = "{+baseurl}/identityProtection/riskDetections{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
96
98
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,8CAA8C,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,+BAA+B,GAAG,SAAS,CAAC,CAAC;IACrK;;;;;OAKG;IACF,IAAI,CAAC,IA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AC;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,8HAA8H,CAAC;AAcnL;;GAEG;AACH,eAAO,MAAM,8CAA8C,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,4BAA4B,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAQtK,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,4CAA4C,EAAE,gBAuB1D,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RiskDetectionsRequestBuilderUriTemplate = exports.RiskDetectionsRequestBuilderRequestsMetadata = exports.RiskDetectionsRequestBuilderNavigationMetadata = void 0;
3
+ exports.RiskDetectionsRequestBuilderRequestsMetadata = exports.RiskDetectionsRequestBuilderNavigationMetadata = exports.RiskDetectionsRequestBuilderUriTemplate = void 0;
4
4
  /* tslint:disable */
5
5
  /* eslint-disable */
6
6
  // Generated by Microsoft Kiota
@@ -8,6 +8,10 @@ const models_1 = require("@microsoft/msgraph-sdk/models/");
8
8
  const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
9
9
  const count_1 = require("./count/");
10
10
  const item_1 = require("./item/");
11
+ /**
12
+ * Uri template for the request builder.
13
+ */
14
+ exports.RiskDetectionsRequestBuilderUriTemplate = "{+baseurl}/identityProtection/riskDetections{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
11
15
  /**
12
16
  * Mapper for query parameters from symbol name to serialization name represented as a constant.
13
17
  */
@@ -26,12 +30,10 @@ const RiskDetectionsRequestBuilderGetQueryParametersMapper = {
26
30
  */
27
31
  exports.RiskDetectionsRequestBuilderNavigationMetadata = {
28
32
  byRiskDetectionId: {
29
- uriTemplate: item_1.RiskDetectionItemRequestBuilderUriTemplate,
30
33
  requestsMetadata: item_1.RiskDetectionItemRequestBuilderRequestsMetadata,
31
34
  pathParametersMappings: ["riskDetection%2Did"],
32
35
  },
33
36
  count: {
34
- uriTemplate: count_1.CountRequestBuilderUriTemplate,
35
37
  requestsMetadata: count_1.CountRequestBuilderRequestsMetadata,
36
38
  },
37
39
  };
@@ -40,20 +42,20 @@ exports.RiskDetectionsRequestBuilderNavigationMetadata = {
40
42
  */
41
43
  exports.RiskDetectionsRequestBuilderRequestsMetadata = {
42
44
  get: {
45
+ uriTemplate: exports.RiskDetectionsRequestBuilderUriTemplate,
43
46
  responseBodyContentType: "application/json",
44
47
  errorMappings: {
45
- _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
46
- _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
48
+ XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
47
49
  },
48
50
  adapterMethodName: "sendAsync",
49
51
  responseBodyFactory: models_1.createRiskDetectionCollectionResponseFromDiscriminatorValue,
50
52
  queryParametersMapper: RiskDetectionsRequestBuilderGetQueryParametersMapper,
51
53
  },
52
54
  post: {
55
+ uriTemplate: exports.RiskDetectionsRequestBuilderUriTemplate,
53
56
  responseBodyContentType: "application/json",
54
57
  errorMappings: {
55
- _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
56
- _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
58
+ XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
57
59
  },
58
60
  adapterMethodName: "sendAsync",
59
61
  responseBodyFactory: models_1.createRiskDetectionFromDiscriminatorValue,
@@ -62,9 +64,5 @@ exports.RiskDetectionsRequestBuilderRequestsMetadata = {
62
64
  requestInformationContentSetMethod: "setContentFromParsable",
63
65
  },
64
66
  };
65
- /**
66
- * Uri template for the request builder.
67
- */
68
- exports.RiskDetectionsRequestBuilderUriTemplate = "{+baseurl}/identityProtection/riskDetections{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
69
67
  /* tslint:enable */
70
68
  /* eslint-enable */
@@ -7,12 +7,14 @@ export interface RiskDetectionItemRequestBuilder extends BaseRequestBuilder<Risk
7
7
  /**
8
8
  * Delete navigation property riskDetections for identityProtection
9
9
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
10
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
10
11
  */
11
12
  delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
12
13
  /**
13
14
  * Read the properties and relationships of a riskDetection object.
14
15
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
15
- * @returns a Promise of RiskDetection
16
+ * @returns {Promise<RiskDetection>}
17
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
16
18
  * @see {@link https://learn.microsoft.com/graph/api/riskdetection-get?view=graph-rest-1.0|Find more info here}
17
19
  */
18
20
  get(requestConfiguration?: RequestConfiguration<RiskDetectionItemRequestBuilderGetQueryParameters> | undefined): Promise<RiskDetection | undefined>;
@@ -20,26 +22,27 @@ export interface RiskDetectionItemRequestBuilder extends BaseRequestBuilder<Risk
20
22
  * Update the navigation property riskDetections in identityProtection
21
23
  * @param body The request body
22
24
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
23
- * @returns a Promise of RiskDetection
25
+ * @returns {Promise<RiskDetection>}
26
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
24
27
  */
25
28
  patch(body: RiskDetection, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<RiskDetection | undefined>;
26
29
  /**
27
30
  * Delete navigation property riskDetections for identityProtection
28
31
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
29
- * @returns a RequestInformation
32
+ * @returns {RequestInformation}
30
33
  */
31
34
  toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
32
35
  /**
33
36
  * Read the properties and relationships of a riskDetection object.
34
37
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
35
- * @returns a RequestInformation
38
+ * @returns {RequestInformation}
36
39
  */
37
40
  toGetRequestInformation(requestConfiguration?: RequestConfiguration<RiskDetectionItemRequestBuilderGetQueryParameters> | undefined): RequestInformation;
38
41
  /**
39
42
  * Update the navigation property riskDetections in identityProtection
40
43
  * @param body The request body
41
44
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
42
- * @returns a RequestInformation
45
+ * @returns {RequestInformation}
43
46
  */
44
47
  toPatchRequestInformation(body: RiskDetection, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
45
48
  }
@@ -56,12 +59,12 @@ export interface RiskDetectionItemRequestBuilderGetQueryParameters {
56
59
  */
57
60
  select?: string[];
58
61
  }
59
- /**
60
- * Metadata for all the requests in the request builder.
61
- */
62
- export declare const RiskDetectionItemRequestBuilderRequestsMetadata: RequestsMetadata;
63
62
  /**
64
63
  * Uri template for the request builder.
65
64
  */
66
65
  export declare const RiskDetectionItemRequestBuilderUriTemplate = "{+baseurl}/identityProtection/riskDetections/{riskDetection%2Did}{?%24expand,%24select}";
66
+ /**
67
+ * Metadata for all the requests in the request builder.
68
+ */
69
+ export declare const RiskDetectionItemRequestBuilderRequestsMetadata: RequestsMetadata;
67
70
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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,EAAE,MAAM,+BAA+B,CAAC;AAExL;;GAEG;AACH,MAAM,WAAW,+BAAgC,SAAQ,kBAAkB,CAAC,+BAA+B,C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EAAE,gBA+B7D,CAAC"}
@@ -1,11 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RiskDetectionItemRequestBuilderUriTemplate = exports.RiskDetectionItemRequestBuilderRequestsMetadata = void 0;
3
+ exports.RiskDetectionItemRequestBuilderRequestsMetadata = exports.RiskDetectionItemRequestBuilderUriTemplate = void 0;
4
4
  /* tslint:disable */
5
5
  /* eslint-disable */
6
6
  // Generated by Microsoft Kiota
7
7
  const models_1 = require("@microsoft/msgraph-sdk/models/");
8
8
  const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
9
+ /**
10
+ * Uri template for the request builder.
11
+ */
12
+ exports.RiskDetectionItemRequestBuilderUriTemplate = "{+baseurl}/identityProtection/riskDetections/{riskDetection%2Did}{?%24expand,%24select}";
9
13
  /**
10
14
  * Mapper for query parameters from symbol name to serialization name represented as a constant.
11
15
  */
@@ -18,28 +22,28 @@ const RiskDetectionItemRequestBuilderGetQueryParametersMapper = {
18
22
  */
19
23
  exports.RiskDetectionItemRequestBuilderRequestsMetadata = {
20
24
  delete: {
25
+ uriTemplate: exports.RiskDetectionItemRequestBuilderUriTemplate,
21
26
  responseBodyContentType: "application/json",
22
27
  errorMappings: {
23
- _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
24
- _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
28
+ XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
25
29
  },
26
30
  adapterMethodName: "sendNoResponseContentAsync",
27
31
  },
28
32
  get: {
33
+ uriTemplate: exports.RiskDetectionItemRequestBuilderUriTemplate,
29
34
  responseBodyContentType: "application/json",
30
35
  errorMappings: {
31
- _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
32
- _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
36
+ XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
33
37
  },
34
38
  adapterMethodName: "sendAsync",
35
39
  responseBodyFactory: models_1.createRiskDetectionFromDiscriminatorValue,
36
40
  queryParametersMapper: RiskDetectionItemRequestBuilderGetQueryParametersMapper,
37
41
  },
38
42
  patch: {
43
+ uriTemplate: exports.RiskDetectionItemRequestBuilderUriTemplate,
39
44
  responseBodyContentType: "application/json",
40
45
  errorMappings: {
41
- _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
42
- _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
46
+ XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
43
47
  },
44
48
  adapterMethodName: "sendAsync",
45
49
  responseBodyFactory: models_1.createRiskDetectionFromDiscriminatorValue,
@@ -48,9 +52,5 @@ exports.RiskDetectionItemRequestBuilderRequestsMetadata = {
48
52
  requestInformationContentSetMethod: "setContentFromParsable",
49
53
  },
50
54
  };
51
- /**
52
- * Uri template for the request builder.
53
- */
54
- exports.RiskDetectionItemRequestBuilderUriTemplate = "{+baseurl}/identityProtection/riskDetections/{riskDetection%2Did}{?%24expand,%24select}";
55
55
  /* tslint:enable */
56
56
  /* eslint-enable */
@@ -21,6 +21,7 @@ export interface ConfirmCompromisedRequestBuilder extends BaseRequestBuilder<Con
21
21
  * Confirm one or more riskyServicePrincipal objects as compromised. This action sets the targeted service principal account's risk level to high.
22
22
  * @param body The request body
23
23
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
24
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
24
25
  * @see {@link https://learn.microsoft.com/graph/api/riskyserviceprincipal-confirmcompromised?view=graph-rest-1.0|Find more info here}
25
26
  */
26
27
  post(body: ConfirmCompromisedPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
@@ -28,19 +29,19 @@ export interface ConfirmCompromisedRequestBuilder extends BaseRequestBuilder<Con
28
29
  * Confirm one or more riskyServicePrincipal objects as compromised. This action sets the targeted service principal account's risk level to high.
29
30
  * @param body The request body
30
31
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
31
- * @returns a RequestInformation
32
+ * @returns {RequestInformation}
32
33
  */
33
34
  toPostRequestInformation(body: ConfirmCompromisedPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
34
35
  }
35
36
  /**
36
37
  * Creates a new instance of the appropriate class based on discriminator value
37
38
  * @param parseNode The parse node to use to read the discriminator value and create the object
38
- * @returns a confirmCompromisedPostRequestBody
39
+ * @returns {ConfirmCompromisedPostRequestBody}
39
40
  */
40
41
  export declare function createConfirmCompromisedPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
41
42
  /**
42
43
  * The deserialization information for the current model
43
- * @returns a Record<string, (node: ParseNode) => void>
44
+ * @returns {Record<string, (node: ParseNode) => void>}
44
45
  */
45
46
  export declare function deserializeIntoConfirmCompromisedPostRequestBody(confirmCompromisedPostRequestBody?: Partial<ConfirmCompromisedPostRequestBody> | undefined): Record<string, (node: ParseNode) => void>;
46
47
  /**
@@ -48,12 +49,12 @@ export declare function deserializeIntoConfirmCompromisedPostRequestBody(confirm
48
49
  * @param writer Serialization writer to use to serialize this model
49
50
  */
50
51
  export declare function serializeConfirmCompromisedPostRequestBody(writer: SerializationWriter, confirmCompromisedPostRequestBody?: Partial<ConfirmCompromisedPostRequestBody> | undefined): void;
51
- /**
52
- * Metadata for all the requests in the request builder.
53
- */
54
- export declare const ConfirmCompromisedRequestBuilderRequestsMetadata: RequestsMetadata;
55
52
  /**
56
53
  * Uri template for the request builder.
57
54
  */
58
55
  export declare const ConfirmCompromisedRequestBuilderUriTemplate = "{+baseurl}/identityProtection/riskyServicePrincipals/confirmCompromised";
56
+ /**
57
+ * Metadata for all the requests in the request builder.
58
+ */
59
+ export declare const ConfirmCompromisedRequestBuilderRequestsMetadata: RequestsMetadata;
59
60
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings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S,GAAG,SAAS,GAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,QAAQ,KAAK,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAAC,CAErL;AACD;;;GAGG;AACH,wBAAgB,gDAAgD,CAAC,iCAAiC,GAAE,OAAO,CAAC,iCAAiC,CAAC,GAAG,SAAc,GAAI,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAK3M;AACD;;;GAGG;AACH,wBAAgB,0CAA0C,CAAC,MAAM,EAAE,mBAAmB,EAAE,iCAAiC,GAAE,OAAO,CAAC,iCAAiC,CAAC,GAAG,SAAc,GAAI,IAAI,CAG7L;AACD;;GAEG;AACH,eAAO,MAAM,2CAA2C,4EAA4E,CAAC;AACrI;;GAEG;AACH,eAAO,MAAM,gDAAgD,EAAE,gBAY9D,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ConfirmCompromisedRequestBuilderUriTemplate = exports.ConfirmCompromisedRequestBuilderRequestsMetadata = exports.serializeConfirmCompromisedPostRequestBody = exports.deserializeIntoConfirmCompromisedPostRequestBody = exports.createConfirmCompromisedPostRequestBodyFromDiscriminatorValue = void 0;
3
+ exports.ConfirmCompromisedRequestBuilderRequestsMetadata = exports.ConfirmCompromisedRequestBuilderUriTemplate = exports.serializeConfirmCompromisedPostRequestBody = exports.deserializeIntoConfirmCompromisedPostRequestBody = exports.createConfirmCompromisedPostRequestBodyFromDiscriminatorValue = void 0;
4
4
  /* tslint:disable */
5
5
  /* eslint-disable */
6
6
  // Generated by Microsoft Kiota
@@ -8,7 +8,7 @@ const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
8
8
  /**
9
9
  * Creates a new instance of the appropriate class based on discriminator value
10
10
  * @param parseNode The parse node to use to read the discriminator value and create the object
11
- * @returns a confirmCompromisedPostRequestBody
11
+ * @returns {ConfirmCompromisedPostRequestBody}
12
12
  */
13
13
  function createConfirmCompromisedPostRequestBodyFromDiscriminatorValue(parseNode) {
14
14
  return deserializeIntoConfirmCompromisedPostRequestBody;
@@ -16,7 +16,7 @@ function createConfirmCompromisedPostRequestBodyFromDiscriminatorValue(parseNode
16
16
  exports.createConfirmCompromisedPostRequestBodyFromDiscriminatorValue = createConfirmCompromisedPostRequestBodyFromDiscriminatorValue;
17
17
  /**
18
18
  * The deserialization information for the current model
19
- * @returns a Record<string, (node: ParseNode) => void>
19
+ * @returns {Record<string, (node: ParseNode) => void>}
20
20
  */
21
21
  function deserializeIntoConfirmCompromisedPostRequestBody(confirmCompromisedPostRequestBody = {}) {
22
22
  return {
@@ -34,15 +34,19 @@ function serializeConfirmCompromisedPostRequestBody(writer, confirmCompromisedPo
34
34
  writer.writeAdditionalData(confirmCompromisedPostRequestBody.additionalData);
35
35
  }
36
36
  exports.serializeConfirmCompromisedPostRequestBody = serializeConfirmCompromisedPostRequestBody;
37
+ /**
38
+ * Uri template for the request builder.
39
+ */
40
+ exports.ConfirmCompromisedRequestBuilderUriTemplate = "{+baseurl}/identityProtection/riskyServicePrincipals/confirmCompromised";
37
41
  /**
38
42
  * Metadata for all the requests in the request builder.
39
43
  */
40
44
  exports.ConfirmCompromisedRequestBuilderRequestsMetadata = {
41
45
  post: {
46
+ uriTemplate: exports.ConfirmCompromisedRequestBuilderUriTemplate,
42
47
  responseBodyContentType: "application/json",
43
48
  errorMappings: {
44
- _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
45
- _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
49
+ XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
46
50
  },
47
51
  adapterMethodName: "sendNoResponseContentAsync",
48
52
  requestBodyContentType: "application/json",
@@ -50,9 +54,5 @@ exports.ConfirmCompromisedRequestBuilderRequestsMetadata = {
50
54
  requestInformationContentSetMethod: "setContentFromParsable",
51
55
  },
52
56
  };
53
- /**
54
- * Uri template for the request builder.
55
- */
56
- exports.ConfirmCompromisedRequestBuilderUriTemplate = "{+baseurl}/identityProtection/riskyServicePrincipals/confirmCompromised";
57
57
  /* tslint:enable */
58
58
  /* eslint-enable */