@software-hardware-integration-lab/sdk-shield 3.0.0 → 3.5.2-beta.1e7cfc5

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 (193) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +109 -0
  3. package/bin/index.d.ts +11 -0
  4. package/bin/index.js +175 -0
  5. package/bin/sdk/api/auth/id/index.d.ts +55 -0
  6. package/bin/sdk/api/auth/id/index.js +26 -0
  7. package/bin/sdk/api/auth/index.d.ts +19 -0
  8. package/bin/sdk/api/auth/index.js +7 -0
  9. package/bin/sdk/api/core/health/index.d.ts +26 -0
  10. package/bin/sdk/api/core/health/index.js +12 -0
  11. package/bin/sdk/api/core/index.d.ts +24 -0
  12. package/bin/sdk/api/core/index.js +11 -0
  13. package/bin/sdk/api/core/systemRequirements/index.d.ts +27 -0
  14. package/bin/sdk/api/core/systemRequirements/index.js +10 -0
  15. package/bin/sdk/api/defend/device/index.d.ts +26 -0
  16. package/bin/sdk/api/defend/device/index.js +12 -0
  17. package/bin/sdk/api/defend/device/item/index.d.ts +19 -0
  18. package/bin/sdk/api/defend/device/item/index.js +7 -0
  19. package/bin/sdk/api/defend/device/item/type/index.d.ts +26 -0
  20. package/bin/sdk/api/defend/device/item/type/index.js +12 -0
  21. package/bin/sdk/api/defend/device/item/type/item/index.d.ts +38 -0
  22. package/bin/sdk/api/defend/device/item/type/item/index.js +14 -0
  23. package/bin/sdk/api/defend/device/item/type/privileged/assign/index.d.ts +106 -0
  24. package/bin/sdk/api/defend/device/item/type/privileged/assign/index.js +59 -0
  25. package/bin/sdk/api/defend/device/item/type/privileged/index.d.ts +19 -0
  26. package/bin/sdk/api/defend/device/item/type/privileged/index.js +7 -0
  27. package/bin/sdk/api/defend/device/type/index.d.ts +26 -0
  28. package/bin/sdk/api/defend/device/type/index.js +12 -0
  29. package/bin/sdk/api/defend/device/type/item/index.d.ts +80 -0
  30. package/bin/sdk/api/defend/device/type/item/index.js +35 -0
  31. package/bin/sdk/api/defend/device/type/privileged/index.d.ts +80 -0
  32. package/bin/sdk/api/defend/device/type/privileged/index.js +35 -0
  33. package/bin/sdk/api/defend/index.d.ts +34 -0
  34. package/bin/sdk/api/defend/index.js +19 -0
  35. package/bin/sdk/api/defend/intermediary/index.d.ts +26 -0
  36. package/bin/sdk/api/defend/intermediary/index.js +12 -0
  37. package/bin/sdk/api/defend/intermediary/item/index.d.ts +19 -0
  38. package/bin/sdk/api/defend/intermediary/item/index.js +7 -0
  39. package/bin/sdk/api/defend/intermediary/item/type/index.d.ts +21 -0
  40. package/bin/sdk/api/defend/intermediary/item/type/index.js +8 -0
  41. package/bin/sdk/api/defend/intermediary/item/type/item/index.d.ts +19 -0
  42. package/bin/sdk/api/defend/intermediary/item/type/item/index.js +7 -0
  43. package/bin/sdk/api/defend/intermediary/item/type/item/offering/eighta921026Ec064e08Af198812e161e61f/assign/index.d.ts +125 -0
  44. package/bin/sdk/api/defend/intermediary/item/type/item/offering/eighta921026Ec064e08Af198812e161e61f/assign/index.js +64 -0
  45. package/bin/sdk/api/defend/intermediary/item/type/item/offering/eighta921026Ec064e08Af198812e161e61f/assign/item/index.d.ts +27 -0
  46. package/bin/sdk/api/defend/intermediary/item/type/item/offering/eighta921026Ec064e08Af198812e161e61f/assign/item/index.js +10 -0
  47. package/bin/sdk/api/defend/intermediary/item/type/item/offering/eighta921026Ec064e08Af198812e161e61f/index.d.ts +47 -0
  48. package/bin/sdk/api/defend/intermediary/item/type/item/offering/eighta921026Ec064e08Af198812e161e61f/index.js +21 -0
  49. package/bin/sdk/api/defend/intermediary/item/type/item/offering/index.d.ts +19 -0
  50. package/bin/sdk/api/defend/intermediary/item/type/item/offering/index.js +8 -0
  51. package/bin/sdk/api/defend/intermediary/type/index.d.ts +21 -0
  52. package/bin/sdk/api/defend/intermediary/type/index.js +8 -0
  53. package/bin/sdk/api/defend/intermediary/type/item/index.d.ts +19 -0
  54. package/bin/sdk/api/defend/intermediary/type/item/index.js +7 -0
  55. package/bin/sdk/api/defend/intermediary/type/item/offering/eighta921026Ec064e08Af198812e161e61f/index.d.ts +40 -0
  56. package/bin/sdk/api/defend/intermediary/type/item/offering/eighta921026Ec064e08Af198812e161e61f/index.js +10 -0
  57. package/bin/sdk/api/defend/intermediary/type/item/offering/index.d.ts +19 -0
  58. package/bin/sdk/api/defend/intermediary/type/item/offering/index.js +7 -0
  59. package/bin/sdk/api/defend/marketplace/index.d.ts +19 -0
  60. package/bin/sdk/api/defend/marketplace/index.js +7 -0
  61. package/bin/sdk/api/defend/marketplace/type/index.d.ts +21 -0
  62. package/bin/sdk/api/defend/marketplace/type/index.js +8 -0
  63. package/bin/sdk/api/defend/marketplace/type/item/index.d.ts +19 -0
  64. package/bin/sdk/api/defend/marketplace/type/item/index.js +7 -0
  65. package/bin/sdk/api/defend/marketplace/type/item/offering/index.d.ts +21 -0
  66. package/bin/sdk/api/defend/marketplace/type/item/offering/index.js +8 -0
  67. package/bin/sdk/api/defend/marketplace/type/item/offering/item/index.d.ts +54 -0
  68. package/bin/sdk/api/defend/marketplace/type/item/offering/item/index.js +29 -0
  69. package/bin/sdk/api/defend/user/index.d.ts +26 -0
  70. package/bin/sdk/api/defend/user/index.js +12 -0
  71. package/bin/sdk/api/defend/user/item/index.d.ts +19 -0
  72. package/bin/sdk/api/defend/user/item/index.js +7 -0
  73. package/bin/sdk/api/defend/user/item/type/index.d.ts +21 -0
  74. package/bin/sdk/api/defend/user/item/type/index.js +8 -0
  75. package/bin/sdk/api/defend/user/item/type/item/index.d.ts +38 -0
  76. package/bin/sdk/api/defend/user/item/type/item/index.js +14 -0
  77. package/bin/sdk/api/defend/user/type/index.d.ts +26 -0
  78. package/bin/sdk/api/defend/user/type/index.js +12 -0
  79. package/bin/sdk/api/defend/user/type/item/index.d.ts +80 -0
  80. package/bin/sdk/api/defend/user/type/item/index.js +35 -0
  81. package/bin/sdk/api/defend/user/type/privileged/index.d.ts +80 -0
  82. package/bin/sdk/api/defend/user/type/privileged/index.js +35 -0
  83. package/bin/sdk/api/deploy/analyze/index.d.ts +19 -0
  84. package/bin/sdk/api/deploy/analyze/index.js +7 -0
  85. package/bin/sdk/api/deploy/analyze/invoke/index.d.ts +48 -0
  86. package/bin/sdk/api/deploy/analyze/invoke/index.js +22 -0
  87. package/bin/sdk/api/deploy/breakGlass/index.d.ts +63 -0
  88. package/bin/sdk/api/deploy/breakGlass/index.js +30 -0
  89. package/bin/sdk/api/deploy/compare/index.d.ts +36 -0
  90. package/bin/sdk/api/deploy/compare/index.js +16 -0
  91. package/bin/sdk/api/deploy/compare/invoke/index.d.ts +29 -0
  92. package/bin/sdk/api/deploy/compare/invoke/index.js +12 -0
  93. package/bin/sdk/api/deploy/component/architecture/index.d.ts +27 -0
  94. package/bin/sdk/api/deploy/component/architecture/index.js +10 -0
  95. package/bin/sdk/api/deploy/component/configurationCategory/index.d.ts +27 -0
  96. package/bin/sdk/api/deploy/component/configurationCategory/index.js +10 -0
  97. package/bin/sdk/api/deploy/component/configurationItem/index.d.ts +38 -0
  98. package/bin/sdk/api/deploy/component/configurationItem/index.js +17 -0
  99. package/bin/sdk/api/deploy/component/configurationItem/item/docs/index.d.ts +27 -0
  100. package/bin/sdk/api/deploy/component/configurationItem/item/docs/index.js +10 -0
  101. package/bin/sdk/api/deploy/component/configurationItem/item/index.d.ts +19 -0
  102. package/bin/sdk/api/deploy/component/configurationItem/item/index.js +7 -0
  103. package/bin/sdk/api/deploy/component/index.d.ts +29 -0
  104. package/bin/sdk/api/deploy/component/index.js +16 -0
  105. package/bin/sdk/api/deploy/errors/index.d.ts +55 -0
  106. package/bin/sdk/api/deploy/errors/index.js +26 -0
  107. package/bin/sdk/api/deploy/index.d.ts +214 -0
  108. package/bin/sdk/api/deploy/index.js +130 -0
  109. package/bin/sdk/api/deploy/progress/index.d.ts +42 -0
  110. package/bin/sdk/api/deploy/progress/index.js +15 -0
  111. package/bin/sdk/api/deploy/remediate/index.d.ts +69 -0
  112. package/bin/sdk/api/deploy/remediate/index.js +34 -0
  113. package/bin/sdk/api/deploy/remove/index.d.ts +37 -0
  114. package/bin/sdk/api/deploy/remove/index.js +13 -0
  115. package/bin/sdk/api/deploy/restore/index.d.ts +21 -0
  116. package/bin/sdk/api/deploy/restore/index.js +8 -0
  117. package/bin/sdk/api/deploy/restore/item/index.d.ts +28 -0
  118. package/bin/sdk/api/deploy/restore/item/index.js +11 -0
  119. package/bin/sdk/api/deploy/skip/index.d.ts +61 -0
  120. package/bin/sdk/api/deploy/skip/index.js +28 -0
  121. package/bin/sdk/api/deploy/skip/item/index.d.ts +41 -0
  122. package/bin/sdk/api/deploy/skip/item/index.js +18 -0
  123. package/bin/sdk/api/deploy/validate/index.d.ts +29 -0
  124. package/bin/sdk/api/deploy/validate/index.js +13 -0
  125. package/bin/sdk/api/discover/architectureReport/correlation/index.d.ts +38 -0
  126. package/bin/sdk/api/discover/architectureReport/correlation/index.js +17 -0
  127. package/bin/sdk/api/discover/architectureReport/correlation/item/data/index.d.ts +27 -0
  128. package/bin/sdk/api/discover/architectureReport/correlation/item/data/index.js +10 -0
  129. package/bin/sdk/api/discover/architectureReport/correlation/item/index.d.ts +19 -0
  130. package/bin/sdk/api/discover/architectureReport/correlation/item/index.js +7 -0
  131. package/bin/sdk/api/discover/architectureReport/index.d.ts +19 -0
  132. package/bin/sdk/api/discover/architectureReport/index.js +8 -0
  133. package/bin/sdk/api/discover/cache/index.d.ts +19 -0
  134. package/bin/sdk/api/discover/cache/index.js +7 -0
  135. package/bin/sdk/api/discover/cache/reset/index.d.ts +25 -0
  136. package/bin/sdk/api/discover/cache/reset/index.js +7 -0
  137. package/bin/sdk/api/discover/index.d.ts +44 -0
  138. package/bin/sdk/api/discover/index.js +27 -0
  139. package/bin/sdk/api/discover/licenseReport/correlation/index.d.ts +38 -0
  140. package/bin/sdk/api/discover/licenseReport/correlation/index.js +17 -0
  141. package/bin/sdk/api/discover/licenseReport/correlation/item/data/index.d.ts +27 -0
  142. package/bin/sdk/api/discover/licenseReport/correlation/item/data/index.js +10 -0
  143. package/bin/sdk/api/discover/licenseReport/correlation/item/index.d.ts +19 -0
  144. package/bin/sdk/api/discover/licenseReport/correlation/item/index.js +7 -0
  145. package/bin/sdk/api/discover/licenseReport/index.d.ts +19 -0
  146. package/bin/sdk/api/discover/licenseReport/index.js +8 -0
  147. package/bin/sdk/api/discover/progress/index.d.ts +27 -0
  148. package/bin/sdk/api/discover/progress/index.js +10 -0
  149. package/bin/sdk/api/discover/report/index.d.ts +25 -0
  150. package/bin/sdk/api/discover/report/index.js +7 -0
  151. package/bin/sdk/api/discover/status/index.d.ts +27 -0
  152. package/bin/sdk/api/discover/status/index.js +10 -0
  153. package/bin/sdk/api/index.d.ts +44 -0
  154. package/bin/sdk/api/index.js +29 -0
  155. package/bin/sdk/api/update/check/channel/index.d.ts +21 -0
  156. package/bin/sdk/api/update/check/channel/index.js +8 -0
  157. package/bin/sdk/api/update/check/channel/item/index.d.ts +51 -0
  158. package/bin/sdk/api/update/check/channel/item/index.js +24 -0
  159. package/bin/sdk/api/update/check/index.d.ts +60 -0
  160. package/bin/sdk/api/update/check/index.js +30 -0
  161. package/bin/sdk/api/update/index.d.ts +45 -0
  162. package/bin/sdk/api/update/index.js +25 -0
  163. package/bin/sdk/api/update/install/channel/index.d.ts +21 -0
  164. package/bin/sdk/api/update/install/channel/index.js +8 -0
  165. package/bin/sdk/api/update/install/channel/item/index.d.ts +25 -0
  166. package/bin/sdk/api/update/install/channel/item/index.js +7 -0
  167. package/bin/sdk/api/update/install/index.d.ts +34 -0
  168. package/bin/sdk/api/update/install/index.js +13 -0
  169. package/bin/sdk/api/update/upload/index.d.ts +27 -0
  170. package/bin/sdk/api/update/upload/index.js +9 -0
  171. package/bin/sdk/models/architectureReport/index.d.ts +49 -0
  172. package/bin/sdk/models/architectureReport/index.js +25 -0
  173. package/bin/sdk/models/core/index.d.ts +137 -0
  174. package/bin/sdk/models/core/index.js +71 -0
  175. package/bin/sdk/models/deploy/index.d.ts +677 -0
  176. package/bin/sdk/models/deploy/index.js +364 -0
  177. package/bin/sdk/models/discover/architectureReport/index.d.ts +61 -0
  178. package/bin/sdk/models/discover/architectureReport/index.js +31 -0
  179. package/bin/sdk/models/discover/index.d.ts +29 -0
  180. package/bin/sdk/models/discover/index.js +15 -0
  181. package/bin/sdk/models/index.d.ts +165 -0
  182. package/bin/sdk/models/index.js +88 -0
  183. package/bin/sdk/models/licenseReport/index.d.ts +49 -0
  184. package/bin/sdk/models/licenseReport/index.js +25 -0
  185. package/bin/sdk/models/managedObject/index.d.ts +287 -0
  186. package/bin/sdk/models/managedObject/index.js +140 -0
  187. package/bin/sdk/models/objectPage/index.d.ts +174 -0
  188. package/bin/sdk/models/objectPage/index.js +103 -0
  189. package/bin/sdk/models/objectPage/intermediary/index.d.ts +60 -0
  190. package/bin/sdk/models/objectPage/intermediary/index.js +36 -0
  191. package/bin/sdk/shieldClient.d.ts +24 -0
  192. package/bin/sdk/shieldClient.js +35 -0
  193. package/package.json +205 -5
@@ -0,0 +1,21 @@
1
+ import { type WithSecurityClassItemRequestBuilder } from './item/index.js';
2
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
3
+ /**
4
+ * Builds and executes requests for operations under /Api/Defend/Marketplace/Type
5
+ */
6
+ export interface TypeRequestBuilder extends BaseRequestBuilder<TypeRequestBuilder> {
7
+ /**
8
+ * Gets an item from the ApiSdk.Api.Defend.Marketplace.Type.item collection
9
+ * @param securityClass The security class of managed object to retrieve. Unknown values, will be ignored. Please see https://learn.microsoft.com/en-us/security/compass/privileged-access-security-levels for a description of security levels.
10
+ * @returns {WithSecurityClassItemRequestBuilder}
11
+ */
12
+ bySecurityClass(securityClass: string): WithSecurityClassItemRequestBuilder;
13
+ }
14
+ /**
15
+ * Uri template for the request builder.
16
+ */
17
+ export declare const TypeRequestBuilderUriTemplate = "{+baseurl}/Api/Defend/Marketplace/Type";
18
+ /**
19
+ * Metadata for all the navigation properties in the request builder.
20
+ */
21
+ export declare const TypeRequestBuilderNavigationMetadata: Record<Exclude<keyof TypeRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
@@ -0,0 +1,8 @@
1
+ import { WithSecurityClassItemRequestBuilderNavigationMetadata } from './item/index.js';
2
+ export const TypeRequestBuilderUriTemplate = "{+baseurl}/Api/Defend/Marketplace/Type";
3
+ export const TypeRequestBuilderNavigationMetadata = {
4
+ bySecurityClass: {
5
+ navigationMetadata: WithSecurityClassItemRequestBuilderNavigationMetadata,
6
+ pathParametersMappings: ["securityClass"],
7
+ },
8
+ };
@@ -0,0 +1,19 @@
1
+ import { type OfferingRequestBuilder } from './offering/index.js';
2
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
3
+ /**
4
+ * Builds and executes requests for operations under /Api/Defend/Marketplace/Type/{securityClass}
5
+ */
6
+ export interface WithSecurityClassItemRequestBuilder extends BaseRequestBuilder<WithSecurityClassItemRequestBuilder> {
7
+ /**
8
+ * The Offering property
9
+ */
10
+ get offering(): OfferingRequestBuilder;
11
+ }
12
+ /**
13
+ * Uri template for the request builder.
14
+ */
15
+ export declare const WithSecurityClassItemRequestBuilderUriTemplate = "{+baseurl}/Api/Defend/Marketplace/Type/{securityClass}";
16
+ /**
17
+ * Metadata for all the navigation properties in the request builder.
18
+ */
19
+ export declare const WithSecurityClassItemRequestBuilderNavigationMetadata: Record<Exclude<keyof WithSecurityClassItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
@@ -0,0 +1,7 @@
1
+ import { OfferingRequestBuilderNavigationMetadata } from './offering/index.js';
2
+ export const WithSecurityClassItemRequestBuilderUriTemplate = "{+baseurl}/Api/Defend/Marketplace/Type/{securityClass}";
3
+ export const WithSecurityClassItemRequestBuilderNavigationMetadata = {
4
+ offering: {
5
+ navigationMetadata: OfferingRequestBuilderNavigationMetadata,
6
+ },
7
+ };
@@ -0,0 +1,21 @@
1
+ import { type WithOfferingItemRequestBuilder } from './item/index.js';
2
+ import { type BaseRequestBuilder, type Guid, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
3
+ /**
4
+ * Builds and executes requests for operations under /Api/Defend/Marketplace/Type/{securityClass}/Offering
5
+ */
6
+ export interface OfferingRequestBuilder extends BaseRequestBuilder<OfferingRequestBuilder> {
7
+ /**
8
+ * Gets an item from the ApiSdk.Api.Defend.Marketplace.Type.item.Offering.item collection
9
+ * @param offeringId Unique identifier of the marketplace offering
10
+ * @returns {WithOfferingItemRequestBuilder}
11
+ */
12
+ byOfferingId(offeringId: Guid): WithOfferingItemRequestBuilder;
13
+ }
14
+ /**
15
+ * Uri template for the request builder.
16
+ */
17
+ export declare const OfferingRequestBuilderUriTemplate = "{+baseurl}/Api/Defend/Marketplace/Type/{securityClass}/Offering";
18
+ /**
19
+ * Metadata for all the navigation properties in the request builder.
20
+ */
21
+ export declare const OfferingRequestBuilderNavigationMetadata: Record<Exclude<keyof OfferingRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
@@ -0,0 +1,8 @@
1
+ import { WithOfferingItemRequestBuilderRequestsMetadata } from './item/index.js';
2
+ export const OfferingRequestBuilderUriTemplate = "{+baseurl}/Api/Defend/Marketplace/Type/{securityClass}/Offering";
3
+ export const OfferingRequestBuilderNavigationMetadata = {
4
+ byOfferingId: {
5
+ requestsMetadata: WithOfferingItemRequestBuilderRequestsMetadata,
6
+ pathParametersMappings: ["offeringId"],
7
+ },
8
+ };
@@ -0,0 +1,54 @@
1
+ import { type AvdIntermediary, type Intermediary } from '../../../../../../../models/managedObject/index.js';
2
+ import { type BaseRequestBuilder, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions';
3
+ /**
4
+ * Creates a new instance of the appropriate class based on discriminator value
5
+ * @param parseNode The parse node to use to read the discriminator value and create the object
6
+ * @returns {WithOfferingPostRequestBody}
7
+ */
8
+ export declare function createWithOfferingPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
9
+ /**
10
+ * The deserialization information for the current model
11
+ * @param WithOfferingPostRequestBody The instance to deserialize into.
12
+ * @returns {Record<string, (node: ParseNode) => void>}
13
+ */
14
+ export declare function deserializeIntoWithOfferingPostRequestBody(withOfferingPostRequestBody?: Partial<WithOfferingPostRequestBody> | undefined): Record<string, (node: ParseNode) => void>;
15
+ /**
16
+ * Serializes information the current object
17
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
18
+ * @param WithOfferingPostRequestBody The instance to serialize from.
19
+ * @param writer Serialization writer to use to serialize this model
20
+ */
21
+ export declare function serializeWithOfferingPostRequestBody(writer: SerializationWriter, withOfferingPostRequestBody?: Partial<WithOfferingPostRequestBody> | undefined | null, isSerializingDerivedType?: boolean): void;
22
+ /**
23
+ * Builds and executes requests for operations under /Api/Defend/Marketplace/Type/{securityClass}/Offering/{offeringId}
24
+ */
25
+ export interface WithOfferingItemRequestBuilder extends BaseRequestBuilder<WithOfferingItemRequestBuilder> {
26
+ /**
27
+ * Creates the offering with the requested settings. In the body payload, the `type` property in the `property` object is ignored. See the AVD example.This endpoint requires the `Intermediary.Privileged.ReadWrite`, `Intermediary.Specialized.ReadWrite`, `Intermediary.Enterprise.ReadWrite`, or the `Everything.ReadWrite` scope (permission). The security class parameter in the URL path corresponds to the same permission in the scope. That means if you are granted a privileged role, you can only call the privilege class URL.
28
+ * @param body The request body
29
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
30
+ * @returns {Promise<AvdIntermediary>}
31
+ */
32
+ post(body: WithOfferingPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<AvdIntermediary | undefined>;
33
+ /**
34
+ * Creates the offering with the requested settings. In the body payload, the `type` property in the `property` object is ignored. See the AVD example.This endpoint requires the `Intermediary.Privileged.ReadWrite`, `Intermediary.Specialized.ReadWrite`, `Intermediary.Enterprise.ReadWrite`, or the `Everything.ReadWrite` scope (permission). The security class parameter in the URL path corresponds to the same permission in the scope. That means if you are granted a privileged role, you can only call the privilege class URL.
35
+ * @param body The request body
36
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
37
+ * @returns {RequestInformation}
38
+ */
39
+ toPostRequestInformation(body: WithOfferingPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
40
+ }
41
+ export interface WithOfferingPostRequestBody extends Intermediary, Parsable {
42
+ /**
43
+ * The properties property
44
+ */
45
+ properties?: AvdIntermediary | null;
46
+ }
47
+ /**
48
+ * Uri template for the request builder.
49
+ */
50
+ export declare const WithOfferingItemRequestBuilderUriTemplate = "{+baseurl}/Api/Defend/Marketplace/Type/{securityClass}/Offering/{offeringId}";
51
+ /**
52
+ * Metadata for all the requests in the request builder.
53
+ */
54
+ export declare const WithOfferingItemRequestBuilderRequestsMetadata: RequestsMetadata;
@@ -0,0 +1,29 @@
1
+ import { createAvdIntermediaryFromDiscriminatorValue, deserializeIntoIntermediary, serializeAvdIntermediary, serializeIntermediary } from '../../../../../../../models/managedObject/index.js';
2
+ export function createWithOfferingPostRequestBodyFromDiscriminatorValue(parseNode) {
3
+ return deserializeIntoWithOfferingPostRequestBody;
4
+ }
5
+ export function deserializeIntoWithOfferingPostRequestBody(withOfferingPostRequestBody = {}) {
6
+ return {
7
+ ...deserializeIntoIntermediary(withOfferingPostRequestBody),
8
+ "properties": n => { withOfferingPostRequestBody.properties = n.getObjectValue(createAvdIntermediaryFromDiscriminatorValue); },
9
+ };
10
+ }
11
+ export function serializeWithOfferingPostRequestBody(writer, withOfferingPostRequestBody = {}, isSerializingDerivedType = false) {
12
+ if (!withOfferingPostRequestBody || isSerializingDerivedType) {
13
+ return;
14
+ }
15
+ serializeIntermediary(writer, withOfferingPostRequestBody, isSerializingDerivedType);
16
+ writer.writeObjectValue("properties", withOfferingPostRequestBody.properties, serializeAvdIntermediary);
17
+ }
18
+ export const WithOfferingItemRequestBuilderUriTemplate = "{+baseurl}/Api/Defend/Marketplace/Type/{securityClass}/Offering/{offeringId}";
19
+ export const WithOfferingItemRequestBuilderRequestsMetadata = {
20
+ post: {
21
+ uriTemplate: WithOfferingItemRequestBuilderUriTemplate,
22
+ responseBodyContentType: "application/json",
23
+ adapterMethodName: "send",
24
+ responseBodyFactory: createAvdIntermediaryFromDiscriminatorValue,
25
+ requestBodyContentType: "application/json",
26
+ requestBodySerializer: serializeWithOfferingPostRequestBody,
27
+ requestInformationContentSetMethod: "setContentFromParsable",
28
+ },
29
+ };
@@ -0,0 +1,26 @@
1
+ import { type WithUserItemRequestBuilder } from './item/index.js';
2
+ import { type TypeRequestBuilder } from './type/index.js';
3
+ import { type BaseRequestBuilder, type Guid, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
4
+ /**
5
+ * Builds and executes requests for operations under /Api/Defend/User
6
+ */
7
+ export interface UserRequestBuilder extends BaseRequestBuilder<UserRequestBuilder> {
8
+ /**
9
+ * The Type property
10
+ */
11
+ get type(): TypeRequestBuilder;
12
+ /**
13
+ * Gets an item from the ApiSdk.Api.Defend.User.item collection
14
+ * @param userId The SHIELD ID (Entra ID User's Object ID) of the managed user to target.
15
+ * @returns {WithUserItemRequestBuilder}
16
+ */
17
+ byUserId(userId: Guid): WithUserItemRequestBuilder;
18
+ }
19
+ /**
20
+ * Uri template for the request builder.
21
+ */
22
+ export declare const UserRequestBuilderUriTemplate = "{+baseurl}/Api/Defend/User";
23
+ /**
24
+ * Metadata for all the navigation properties in the request builder.
25
+ */
26
+ export declare const UserRequestBuilderNavigationMetadata: Record<Exclude<keyof UserRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
@@ -0,0 +1,12 @@
1
+ import { WithUserItemRequestBuilderNavigationMetadata } from './item/index.js';
2
+ import { TypeRequestBuilderNavigationMetadata } from './type/index.js';
3
+ export const UserRequestBuilderUriTemplate = "{+baseurl}/Api/Defend/User";
4
+ export const UserRequestBuilderNavigationMetadata = {
5
+ byUserId: {
6
+ navigationMetadata: WithUserItemRequestBuilderNavigationMetadata,
7
+ pathParametersMappings: ["userId"],
8
+ },
9
+ type: {
10
+ navigationMetadata: TypeRequestBuilderNavigationMetadata,
11
+ },
12
+ };
@@ -0,0 +1,19 @@
1
+ import { type TypeRequestBuilder } from './type/index.js';
2
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
3
+ /**
4
+ * Builds and executes requests for operations under /Api/Defend/User/{userId}
5
+ */
6
+ export interface WithUserItemRequestBuilder extends BaseRequestBuilder<WithUserItemRequestBuilder> {
7
+ /**
8
+ * The Type property
9
+ */
10
+ get type(): TypeRequestBuilder;
11
+ }
12
+ /**
13
+ * Uri template for the request builder.
14
+ */
15
+ export declare const WithUserItemRequestBuilderUriTemplate = "{+baseurl}/Api/Defend/User/{userId}";
16
+ /**
17
+ * Metadata for all the navigation properties in the request builder.
18
+ */
19
+ export declare const WithUserItemRequestBuilderNavigationMetadata: Record<Exclude<keyof WithUserItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
@@ -0,0 +1,7 @@
1
+ import { TypeRequestBuilderNavigationMetadata } from './type/index.js';
2
+ export const WithUserItemRequestBuilderUriTemplate = "{+baseurl}/Api/Defend/User/{userId}";
3
+ export const WithUserItemRequestBuilderNavigationMetadata = {
4
+ type: {
5
+ navigationMetadata: TypeRequestBuilderNavigationMetadata,
6
+ },
7
+ };
@@ -0,0 +1,21 @@
1
+ import { type WithSecurityClassItemRequestBuilder } from './item/index.js';
2
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
3
+ /**
4
+ * Builds and executes requests for operations under /Api/Defend/User/{userId}/Type
5
+ */
6
+ export interface TypeRequestBuilder extends BaseRequestBuilder<TypeRequestBuilder> {
7
+ /**
8
+ * Gets an item from the ApiSdk.Api.Defend.User.item.Type.item collection
9
+ * @param securityClass The security class of managed object to retrieve. Unknown values, will be ignored. Please see https://learn.microsoft.com/en-us/security/compass/privileged-access-security-levels for a description of security levels.
10
+ * @returns {WithSecurityClassItemRequestBuilder}
11
+ */
12
+ bySecurityClass(securityClass: string): WithSecurityClassItemRequestBuilder;
13
+ }
14
+ /**
15
+ * Uri template for the request builder.
16
+ */
17
+ export declare const TypeRequestBuilderUriTemplate = "{+baseurl}/Api/Defend/User/{userId}/Type";
18
+ /**
19
+ * Metadata for all the navigation properties in the request builder.
20
+ */
21
+ export declare const TypeRequestBuilderNavigationMetadata: Record<Exclude<keyof TypeRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
@@ -0,0 +1,8 @@
1
+ import { WithSecurityClassItemRequestBuilderRequestsMetadata } from './item/index.js';
2
+ export const TypeRequestBuilderUriTemplate = "{+baseurl}/Api/Defend/User/{userId}/Type";
3
+ export const TypeRequestBuilderNavigationMetadata = {
4
+ bySecurityClass: {
5
+ requestsMetadata: WithSecurityClassItemRequestBuilderRequestsMetadata,
6
+ pathParametersMappings: ["securityClass"],
7
+ },
8
+ };
@@ -0,0 +1,38 @@
1
+ import { type User } from '../../../../../../models/managedObject/index.js';
2
+ import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
3
+ /**
4
+ * Builds and executes requests for operations under /Api/Defend/User/{userId}/Type/{securityClass}
5
+ */
6
+ export interface WithSecurityClassItemRequestBuilder extends BaseRequestBuilder<WithSecurityClassItemRequestBuilder> {
7
+ /**
8
+ * Deletes the user account and removes the management artifacts.This endpoint requires the `User.Privileged.ReadWrite`, `User.Specialized.ReadWrite`, `User.Enterprise.ReadWrite`, or the `Everything.ReadWrite` scope (permission). The security class parameter in the URL path corresponds to the same permission in the scope. That means if you are granted a privileged role, you can only call the privilege class URL.
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
+ * Retrieves the specified managed user by its Entra ID User ID.This endpoint requires the `User.Privileged.Read`, `User.Privileged.ReadWrite`, `User.Specialized.Read`, `User.Specialized.ReadWrite`, `User.Enterprise.ReadWrite`, `User.Enterprise.Read`, or the `Everything.ReadWrite` scope (permission). The security class parameter in the URL path corresponds to the same permission in the scope. That means if you are granted a privileged role, you can only call the privilege class URL.
14
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
15
+ * @returns {Promise<User>}
16
+ */
17
+ get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<User | undefined>;
18
+ /**
19
+ * Deletes the user account and removes the management artifacts.This endpoint requires the `User.Privileged.ReadWrite`, `User.Specialized.ReadWrite`, `User.Enterprise.ReadWrite`, or the `Everything.ReadWrite` scope (permission). The security class parameter in the URL path corresponds to the same permission in the scope. That means if you are granted a privileged role, you can only call the privilege class URL.
20
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
21
+ * @returns {RequestInformation}
22
+ */
23
+ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
24
+ /**
25
+ * Retrieves the specified managed user by its Entra ID User ID.This endpoint requires the `User.Privileged.Read`, `User.Privileged.ReadWrite`, `User.Specialized.Read`, `User.Specialized.ReadWrite`, `User.Enterprise.ReadWrite`, `User.Enterprise.Read`, or the `Everything.ReadWrite` scope (permission). The security class parameter in the URL path corresponds to the same permission in the scope. That means if you are granted a privileged role, you can only call the privilege class URL.
26
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
27
+ * @returns {RequestInformation}
28
+ */
29
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
30
+ }
31
+ /**
32
+ * Uri template for the request builder.
33
+ */
34
+ export declare const WithSecurityClassItemRequestBuilderUriTemplate = "{+baseurl}/Api/Defend/User/{userId}/Type/{securityClass}";
35
+ /**
36
+ * Metadata for all the requests in the request builder.
37
+ */
38
+ export declare const WithSecurityClassItemRequestBuilderRequestsMetadata: RequestsMetadata;
@@ -0,0 +1,14 @@
1
+ import { createUserFromDiscriminatorValue } from '../../../../../../models/managedObject/index.js';
2
+ export const WithSecurityClassItemRequestBuilderUriTemplate = "{+baseurl}/Api/Defend/User/{userId}/Type/{securityClass}";
3
+ export const WithSecurityClassItemRequestBuilderRequestsMetadata = {
4
+ delete: {
5
+ uriTemplate: WithSecurityClassItemRequestBuilderUriTemplate,
6
+ adapterMethodName: "sendNoResponseContent",
7
+ },
8
+ get: {
9
+ uriTemplate: WithSecurityClassItemRequestBuilderUriTemplate,
10
+ responseBodyContentType: "application/json",
11
+ adapterMethodName: "send",
12
+ responseBodyFactory: createUserFromDiscriminatorValue,
13
+ },
14
+ };
@@ -0,0 +1,26 @@
1
+ import { type WithSecurityClassItemRequestBuilder } from './item/index.js';
2
+ import { type PrivilegedRequestBuilder } from './privileged/index.js';
3
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
4
+ /**
5
+ * Builds and executes requests for operations under /Api/Defend/User/Type
6
+ */
7
+ export interface TypeRequestBuilder extends BaseRequestBuilder<TypeRequestBuilder> {
8
+ /**
9
+ * The Privileged property
10
+ */
11
+ get privileged(): PrivilegedRequestBuilder;
12
+ /**
13
+ * Gets an item from the ApiSdk.Api.Defend.User.Type.item collection
14
+ * @param securityClass The security class of managed object to retrieve. Unknown values, will be ignored. Please see https://learn.microsoft.com/en-us/security/compass/privileged-access-security-levels for a description of security levels.
15
+ * @returns {WithSecurityClassItemRequestBuilder}
16
+ */
17
+ bySecurityClass(securityClass: string): WithSecurityClassItemRequestBuilder;
18
+ }
19
+ /**
20
+ * Uri template for the request builder.
21
+ */
22
+ export declare const TypeRequestBuilderUriTemplate = "{+baseurl}/Api/Defend/User/Type";
23
+ /**
24
+ * Metadata for all the navigation properties in the request builder.
25
+ */
26
+ export declare const TypeRequestBuilderNavigationMetadata: Record<Exclude<keyof TypeRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
@@ -0,0 +1,12 @@
1
+ import { WithSecurityClassItemRequestBuilderRequestsMetadata } from './item/index.js';
2
+ import { PrivilegedRequestBuilderRequestsMetadata } from './privileged/index.js';
3
+ export const TypeRequestBuilderUriTemplate = "{+baseurl}/Api/Defend/User/Type";
4
+ export const TypeRequestBuilderNavigationMetadata = {
5
+ bySecurityClass: {
6
+ requestsMetadata: WithSecurityClassItemRequestBuilderRequestsMetadata,
7
+ pathParametersMappings: ["securityClass"],
8
+ },
9
+ privileged: {
10
+ requestsMetadata: PrivilegedRequestBuilderRequestsMetadata,
11
+ },
12
+ };
@@ -0,0 +1,80 @@
1
+ import { type User } from '../../../../../models/managedObject/index.js';
2
+ import { type ManagedUser } from '../../../../../models/objectPage/index.js';
3
+ import { type AdditionalDataHolder, type BaseRequestBuilder, type Guid, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions';
4
+ /**
5
+ * Creates a new instance of the appropriate class based on discriminator value
6
+ * @param parseNode The parse node to use to read the discriminator value and create the object
7
+ * @returns {WithSecurityClassPostRequestBody}
8
+ */
9
+ export declare function createWithSecurityClassPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
10
+ /**
11
+ * The deserialization information for the current model
12
+ * @param WithSecurityClassPostRequestBody The instance to deserialize into.
13
+ * @returns {Record<string, (node: ParseNode) => void>}
14
+ */
15
+ export declare function deserializeIntoWithSecurityClassPostRequestBody(withSecurityClassPostRequestBody?: Partial<WithSecurityClassPostRequestBody> | undefined): Record<string, (node: ParseNode) => void>;
16
+ /**
17
+ * Serializes information the current object
18
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
19
+ * @param WithSecurityClassPostRequestBody The instance to serialize from.
20
+ * @param writer Serialization writer to use to serialize this model
21
+ */
22
+ export declare function serializeWithSecurityClassPostRequestBody(writer: SerializationWriter, withSecurityClassPostRequestBody?: Partial<WithSecurityClassPostRequestBody> | undefined | null, isSerializingDerivedType?: boolean): void;
23
+ /**
24
+ * Builds and executes requests for operations under /Api/Defend/User/Type/{securityClass}
25
+ */
26
+ export interface WithSecurityClassItemRequestBuilder extends BaseRequestBuilder<WithSecurityClassItemRequestBuilder> {
27
+ /**
28
+ * Returns a list of all devices managed or unmanaged.This endpoint requires the `User.Privileged.Read`, `User.Privileged.ReadWrite`, `User.Specialized.Read`, `User.Specialized.ReadWrite`, `User.Enterprise.ReadWrite`, `User.Enterprise.Read`, or the `Everything.ReadWrite` scope (permission). The security class parameter in the URL path corresponds to the same permission in the scope. That means if you are granted a privileged role, you can only call the privilege class URL. When reading the `unmanaged` objects, any security class permission can read them, no need for a specific `unmanaged` class assignment.
29
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
30
+ * @returns {Promise<ManagedUser>}
31
+ */
32
+ get(requestConfiguration?: RequestConfiguration<WithSecurityClassItemRequestBuilderGetQueryParameters> | undefined): Promise<ManagedUser | undefined>;
33
+ /**
34
+ * For Specialized or Enterprise, adds existing user into management. For Privileged, securely clones the specified user's properties into a new managed user object in the privileged baselines.This endpoint requires the `User.Privileged.ReadWrite`, `User.Specialized.ReadWrite`, `User.Enterprise.ReadWrite`, or the `Everything.ReadWrite` scope (permission). The security class parameter in the URL path corresponds to the same permission in the scope. That means if you are granted a privileged role, you can only call the privilege class URL.
35
+ * @param body The request body
36
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
37
+ * @returns {Promise<User>}
38
+ */
39
+ post(body: WithSecurityClassPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<User | undefined>;
40
+ /**
41
+ * Returns a list of all devices managed or unmanaged.This endpoint requires the `User.Privileged.Read`, `User.Privileged.ReadWrite`, `User.Specialized.Read`, `User.Specialized.ReadWrite`, `User.Enterprise.ReadWrite`, `User.Enterprise.Read`, or the `Everything.ReadWrite` scope (permission). The security class parameter in the URL path corresponds to the same permission in the scope. That means if you are granted a privileged role, you can only call the privilege class URL. When reading the `unmanaged` objects, any security class permission can read them, no need for a specific `unmanaged` class assignment.
42
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
43
+ * @returns {RequestInformation}
44
+ */
45
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<WithSecurityClassItemRequestBuilderGetQueryParameters> | undefined): RequestInformation;
46
+ /**
47
+ * For Specialized or Enterprise, adds existing user into management. For Privileged, securely clones the specified user's properties into a new managed user object in the privileged baselines.This endpoint requires the `User.Privileged.ReadWrite`, `User.Specialized.ReadWrite`, `User.Enterprise.ReadWrite`, or the `Everything.ReadWrite` scope (permission). The security class parameter in the URL path corresponds to the same permission in the scope. That means if you are granted a privileged role, you can only call the privilege class URL.
48
+ * @param body The request body
49
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
50
+ * @returns {RequestInformation}
51
+ */
52
+ toPostRequestInformation(body: WithSecurityClassPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
53
+ }
54
+ /**
55
+ * Returns a list of all devices managed or unmanaged.This endpoint requires the `User.Privileged.Read`, `User.Privileged.ReadWrite`, `User.Specialized.Read`, `User.Specialized.ReadWrite`, `User.Enterprise.ReadWrite`, `User.Enterprise.Read`, or the `Everything.ReadWrite` scope (permission). The security class parameter in the URL path corresponds to the same permission in the scope. That means if you are granted a privileged role, you can only call the privilege class URL. When reading the `unmanaged` objects, any security class permission can read them, no need for a specific `unmanaged` class assignment.
56
+ */
57
+ export interface WithSecurityClassItemRequestBuilderGetQueryParameters {
58
+ /**
59
+ * Information to be provided to the API call in order to retrieve next set of data as part of pagination. It could be a simple number or full URL representing MS Graph API navigation. This information should not be generated by hand or changed. In case of MS Graph API, please only use tokens the server gives you and do not bring them from outside.
60
+ */
61
+ nextLink?: string;
62
+ /**
63
+ * Used in object filtering.
64
+ */
65
+ search?: string;
66
+ }
67
+ export interface WithSecurityClassPostRequestBody extends AdditionalDataHolder, Parsable {
68
+ /**
69
+ * The Entra ID object ID of the user to clone.
70
+ */
71
+ userId?: Guid | null;
72
+ }
73
+ /**
74
+ * Uri template for the request builder.
75
+ */
76
+ export declare const WithSecurityClassItemRequestBuilderUriTemplate = "{+baseurl}/Api/Defend/User/Type/{securityClass}{?nextLink*,search*}";
77
+ /**
78
+ * Metadata for all the requests in the request builder.
79
+ */
80
+ export declare const WithSecurityClassItemRequestBuilderRequestsMetadata: RequestsMetadata;
@@ -0,0 +1,35 @@
1
+ import { createUserFromDiscriminatorValue } from '../../../../../models/managedObject/index.js';
2
+ import { createManagedUserFromDiscriminatorValue } from '../../../../../models/objectPage/index.js';
3
+ export function createWithSecurityClassPostRequestBodyFromDiscriminatorValue(parseNode) {
4
+ return deserializeIntoWithSecurityClassPostRequestBody;
5
+ }
6
+ export function deserializeIntoWithSecurityClassPostRequestBody(withSecurityClassPostRequestBody = {}) {
7
+ return {
8
+ "userId": n => { withSecurityClassPostRequestBody.userId = n.getGuidValue(); },
9
+ };
10
+ }
11
+ export function serializeWithSecurityClassPostRequestBody(writer, withSecurityClassPostRequestBody = {}, isSerializingDerivedType = false) {
12
+ if (!withSecurityClassPostRequestBody || isSerializingDerivedType) {
13
+ return;
14
+ }
15
+ writer.writeGuidValue("userId", withSecurityClassPostRequestBody.userId);
16
+ writer.writeAdditionalData(withSecurityClassPostRequestBody.additionalData);
17
+ }
18
+ export const WithSecurityClassItemRequestBuilderUriTemplate = "{+baseurl}/Api/Defend/User/Type/{securityClass}{?nextLink*,search*}";
19
+ export const WithSecurityClassItemRequestBuilderRequestsMetadata = {
20
+ get: {
21
+ uriTemplate: WithSecurityClassItemRequestBuilderUriTemplate,
22
+ responseBodyContentType: "application/json",
23
+ adapterMethodName: "send",
24
+ responseBodyFactory: createManagedUserFromDiscriminatorValue,
25
+ },
26
+ post: {
27
+ uriTemplate: WithSecurityClassItemRequestBuilderUriTemplate,
28
+ responseBodyContentType: "application/json",
29
+ adapterMethodName: "send",
30
+ responseBodyFactory: createUserFromDiscriminatorValue,
31
+ requestBodyContentType: "application/json",
32
+ requestBodySerializer: serializeWithSecurityClassPostRequestBody,
33
+ requestInformationContentSetMethod: "setContentFromParsable",
34
+ },
35
+ };
@@ -0,0 +1,80 @@
1
+ import { type PrivilegedUser } from '../../../../../models/managedObject/index.js';
2
+ import { type ManagedPrivilegedUser } from '../../../../../models/objectPage/index.js';
3
+ import { type AdditionalDataHolder, type BaseRequestBuilder, type Guid, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions';
4
+ /**
5
+ * Creates a new instance of the appropriate class based on discriminator value
6
+ * @param parseNode The parse node to use to read the discriminator value and create the object
7
+ * @returns {PrivilegedPostRequestBody}
8
+ */
9
+ export declare function createPrivilegedPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
10
+ /**
11
+ * The deserialization information for the current model
12
+ * @param PrivilegedPostRequestBody The instance to deserialize into.
13
+ * @returns {Record<string, (node: ParseNode) => void>}
14
+ */
15
+ export declare function deserializeIntoPrivilegedPostRequestBody(privilegedPostRequestBody?: Partial<PrivilegedPostRequestBody> | undefined): Record<string, (node: ParseNode) => void>;
16
+ export interface PrivilegedPostRequestBody extends AdditionalDataHolder, Parsable {
17
+ /**
18
+ * The Entra ID object ID of the user to clone.
19
+ */
20
+ userId?: Guid | null;
21
+ }
22
+ /**
23
+ * Builds and executes requests for operations under /Api/Defend/User/Type/Privileged
24
+ */
25
+ export interface PrivilegedRequestBuilder extends BaseRequestBuilder<PrivilegedRequestBuilder> {
26
+ /**
27
+ * Returns a list of all privileged managed users.This endpoint requires the `User.Privileged.Read`, `User.Privileged.ReadWrite`, or the `Everything.ReadWrite` scope (permission).
28
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
29
+ * @returns {Promise<ManagedPrivilegedUser>}
30
+ */
31
+ get(requestConfiguration?: RequestConfiguration<PrivilegedRequestBuilderGetQueryParameters> | undefined): Promise<ManagedPrivilegedUser | undefined>;
32
+ /**
33
+ * Securely clones the specified user's properties into a new managed user object in the privileged baselines.This endpoint requires the `User.Privileged.ReadWrite`, or the `Everything.ReadWrite` scope (permission).
34
+ * @param body The request body
35
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
36
+ * @returns {Promise<PrivilegedUser>}
37
+ */
38
+ post(body: PrivilegedPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<PrivilegedUser | undefined>;
39
+ /**
40
+ * Returns a list of all privileged managed users.This endpoint requires the `User.Privileged.Read`, `User.Privileged.ReadWrite`, or the `Everything.ReadWrite` scope (permission).
41
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
42
+ * @returns {RequestInformation}
43
+ */
44
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<PrivilegedRequestBuilderGetQueryParameters> | undefined): RequestInformation;
45
+ /**
46
+ * Securely clones the specified user's properties into a new managed user object in the privileged baselines.This endpoint requires the `User.Privileged.ReadWrite`, or the `Everything.ReadWrite` scope (permission).
47
+ * @param body The request body
48
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
49
+ * @returns {RequestInformation}
50
+ */
51
+ toPostRequestInformation(body: PrivilegedPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
52
+ }
53
+ /**
54
+ * Returns a list of all privileged managed users.This endpoint requires the `User.Privileged.Read`, `User.Privileged.ReadWrite`, or the `Everything.ReadWrite` scope (permission).
55
+ */
56
+ export interface PrivilegedRequestBuilderGetQueryParameters {
57
+ /**
58
+ * Information to be provided to the API call in order to retrieve next set of data as part of pagination. It could be a simple number or full URL representing MS Graph API navigation. This information should not be generated by hand or changed. In case of MS Graph API, please only use tokens the server gives you and do not bring them from outside.
59
+ */
60
+ nextLink?: string;
61
+ /**
62
+ * Used in object filtering.
63
+ */
64
+ search?: string;
65
+ }
66
+ /**
67
+ * Serializes information the current object
68
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
69
+ * @param PrivilegedPostRequestBody The instance to serialize from.
70
+ * @param writer Serialization writer to use to serialize this model
71
+ */
72
+ export declare function serializePrivilegedPostRequestBody(writer: SerializationWriter, privilegedPostRequestBody?: Partial<PrivilegedPostRequestBody> | undefined | null, isSerializingDerivedType?: boolean): void;
73
+ /**
74
+ * Uri template for the request builder.
75
+ */
76
+ export declare const PrivilegedRequestBuilderUriTemplate = "{+baseurl}/Api/Defend/User/Type/Privileged{?nextLink*,search*}";
77
+ /**
78
+ * Metadata for all the requests in the request builder.
79
+ */
80
+ export declare const PrivilegedRequestBuilderRequestsMetadata: RequestsMetadata;
@@ -0,0 +1,35 @@
1
+ import { createPrivilegedUserFromDiscriminatorValue } from '../../../../../models/managedObject/index.js';
2
+ import { createManagedPrivilegedUserFromDiscriminatorValue } from '../../../../../models/objectPage/index.js';
3
+ export function createPrivilegedPostRequestBodyFromDiscriminatorValue(parseNode) {
4
+ return deserializeIntoPrivilegedPostRequestBody;
5
+ }
6
+ export function deserializeIntoPrivilegedPostRequestBody(privilegedPostRequestBody = {}) {
7
+ return {
8
+ "userId": n => { privilegedPostRequestBody.userId = n.getGuidValue(); },
9
+ };
10
+ }
11
+ export function serializePrivilegedPostRequestBody(writer, privilegedPostRequestBody = {}, isSerializingDerivedType = false) {
12
+ if (!privilegedPostRequestBody || isSerializingDerivedType) {
13
+ return;
14
+ }
15
+ writer.writeGuidValue("userId", privilegedPostRequestBody.userId);
16
+ writer.writeAdditionalData(privilegedPostRequestBody.additionalData);
17
+ }
18
+ export const PrivilegedRequestBuilderUriTemplate = "{+baseurl}/Api/Defend/User/Type/Privileged{?nextLink*,search*}";
19
+ export const PrivilegedRequestBuilderRequestsMetadata = {
20
+ get: {
21
+ uriTemplate: PrivilegedRequestBuilderUriTemplate,
22
+ responseBodyContentType: "application/json",
23
+ adapterMethodName: "send",
24
+ responseBodyFactory: createManagedPrivilegedUserFromDiscriminatorValue,
25
+ },
26
+ post: {
27
+ uriTemplate: PrivilegedRequestBuilderUriTemplate,
28
+ responseBodyContentType: "application/json",
29
+ adapterMethodName: "send",
30
+ responseBodyFactory: createPrivilegedUserFromDiscriminatorValue,
31
+ requestBodyContentType: "application/json",
32
+ requestBodySerializer: serializePrivilegedPostRequestBody,
33
+ requestInformationContentSetMethod: "setContentFromParsable",
34
+ },
35
+ };