@software-hardware-integration-lab/sdk-shield 3.0.0 → 3.5.2-beta.a5c1c2f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +109 -0
- package/bin/index.d.ts +11 -0
- package/bin/index.js +175 -0
- package/bin/sdk/api/auth/id/index.d.ts +55 -0
- package/bin/sdk/api/auth/id/index.js +26 -0
- package/bin/sdk/api/auth/index.d.ts +19 -0
- package/bin/sdk/api/auth/index.js +7 -0
- package/bin/sdk/api/core/health/index.d.ts +26 -0
- package/bin/sdk/api/core/health/index.js +12 -0
- package/bin/sdk/api/core/index.d.ts +24 -0
- package/bin/sdk/api/core/index.js +11 -0
- package/bin/sdk/api/core/systemRequirements/index.d.ts +27 -0
- package/bin/sdk/api/core/systemRequirements/index.js +10 -0
- package/bin/sdk/api/defend/device/index.d.ts +26 -0
- package/bin/sdk/api/defend/device/index.js +12 -0
- package/bin/sdk/api/defend/device/item/index.d.ts +19 -0
- package/bin/sdk/api/defend/device/item/index.js +7 -0
- package/bin/sdk/api/defend/device/item/type/index.d.ts +26 -0
- package/bin/sdk/api/defend/device/item/type/index.js +12 -0
- package/bin/sdk/api/defend/device/item/type/item/index.d.ts +38 -0
- package/bin/sdk/api/defend/device/item/type/item/index.js +14 -0
- package/bin/sdk/api/defend/device/item/type/privileged/assign/index.d.ts +106 -0
- package/bin/sdk/api/defend/device/item/type/privileged/assign/index.js +59 -0
- package/bin/sdk/api/defend/device/item/type/privileged/index.d.ts +19 -0
- package/bin/sdk/api/defend/device/item/type/privileged/index.js +7 -0
- package/bin/sdk/api/defend/device/type/index.d.ts +26 -0
- package/bin/sdk/api/defend/device/type/index.js +12 -0
- package/bin/sdk/api/defend/device/type/item/index.d.ts +80 -0
- package/bin/sdk/api/defend/device/type/item/index.js +35 -0
- package/bin/sdk/api/defend/device/type/privileged/index.d.ts +80 -0
- package/bin/sdk/api/defend/device/type/privileged/index.js +35 -0
- package/bin/sdk/api/defend/index.d.ts +34 -0
- package/bin/sdk/api/defend/index.js +19 -0
- package/bin/sdk/api/defend/intermediary/index.d.ts +26 -0
- package/bin/sdk/api/defend/intermediary/index.js +12 -0
- package/bin/sdk/api/defend/intermediary/item/index.d.ts +19 -0
- package/bin/sdk/api/defend/intermediary/item/index.js +7 -0
- package/bin/sdk/api/defend/intermediary/item/type/index.d.ts +21 -0
- package/bin/sdk/api/defend/intermediary/item/type/index.js +8 -0
- package/bin/sdk/api/defend/intermediary/item/type/item/index.d.ts +19 -0
- package/bin/sdk/api/defend/intermediary/item/type/item/index.js +7 -0
- package/bin/sdk/api/defend/intermediary/item/type/item/offering/eighta921026Ec064e08Af198812e161e61f/assign/index.d.ts +125 -0
- package/bin/sdk/api/defend/intermediary/item/type/item/offering/eighta921026Ec064e08Af198812e161e61f/assign/index.js +64 -0
- package/bin/sdk/api/defend/intermediary/item/type/item/offering/eighta921026Ec064e08Af198812e161e61f/assign/item/index.d.ts +27 -0
- package/bin/sdk/api/defend/intermediary/item/type/item/offering/eighta921026Ec064e08Af198812e161e61f/assign/item/index.js +10 -0
- package/bin/sdk/api/defend/intermediary/item/type/item/offering/eighta921026Ec064e08Af198812e161e61f/index.d.ts +47 -0
- package/bin/sdk/api/defend/intermediary/item/type/item/offering/eighta921026Ec064e08Af198812e161e61f/index.js +21 -0
- package/bin/sdk/api/defend/intermediary/item/type/item/offering/index.d.ts +19 -0
- package/bin/sdk/api/defend/intermediary/item/type/item/offering/index.js +8 -0
- package/bin/sdk/api/defend/intermediary/type/index.d.ts +21 -0
- package/bin/sdk/api/defend/intermediary/type/index.js +8 -0
- package/bin/sdk/api/defend/intermediary/type/item/index.d.ts +19 -0
- package/bin/sdk/api/defend/intermediary/type/item/index.js +7 -0
- package/bin/sdk/api/defend/intermediary/type/item/offering/eighta921026Ec064e08Af198812e161e61f/index.d.ts +40 -0
- package/bin/sdk/api/defend/intermediary/type/item/offering/eighta921026Ec064e08Af198812e161e61f/index.js +10 -0
- package/bin/sdk/api/defend/intermediary/type/item/offering/index.d.ts +19 -0
- package/bin/sdk/api/defend/intermediary/type/item/offering/index.js +7 -0
- package/bin/sdk/api/defend/marketplace/index.d.ts +19 -0
- package/bin/sdk/api/defend/marketplace/index.js +7 -0
- package/bin/sdk/api/defend/marketplace/type/index.d.ts +21 -0
- package/bin/sdk/api/defend/marketplace/type/index.js +8 -0
- package/bin/sdk/api/defend/marketplace/type/item/index.d.ts +19 -0
- package/bin/sdk/api/defend/marketplace/type/item/index.js +7 -0
- package/bin/sdk/api/defend/marketplace/type/item/offering/index.d.ts +21 -0
- package/bin/sdk/api/defend/marketplace/type/item/offering/index.js +8 -0
- package/bin/sdk/api/defend/marketplace/type/item/offering/item/index.d.ts +54 -0
- package/bin/sdk/api/defend/marketplace/type/item/offering/item/index.js +29 -0
- package/bin/sdk/api/defend/user/index.d.ts +26 -0
- package/bin/sdk/api/defend/user/index.js +12 -0
- package/bin/sdk/api/defend/user/item/index.d.ts +19 -0
- package/bin/sdk/api/defend/user/item/index.js +7 -0
- package/bin/sdk/api/defend/user/item/type/index.d.ts +21 -0
- package/bin/sdk/api/defend/user/item/type/index.js +8 -0
- package/bin/sdk/api/defend/user/item/type/item/index.d.ts +38 -0
- package/bin/sdk/api/defend/user/item/type/item/index.js +14 -0
- package/bin/sdk/api/defend/user/type/index.d.ts +26 -0
- package/bin/sdk/api/defend/user/type/index.js +12 -0
- package/bin/sdk/api/defend/user/type/item/index.d.ts +80 -0
- package/bin/sdk/api/defend/user/type/item/index.js +35 -0
- package/bin/sdk/api/defend/user/type/privileged/index.d.ts +80 -0
- package/bin/sdk/api/defend/user/type/privileged/index.js +35 -0
- package/bin/sdk/api/deploy/analyze/index.d.ts +19 -0
- package/bin/sdk/api/deploy/analyze/index.js +7 -0
- package/bin/sdk/api/deploy/analyze/invoke/index.d.ts +48 -0
- package/bin/sdk/api/deploy/analyze/invoke/index.js +22 -0
- package/bin/sdk/api/deploy/breakGlass/index.d.ts +63 -0
- package/bin/sdk/api/deploy/breakGlass/index.js +30 -0
- package/bin/sdk/api/deploy/compare/index.d.ts +36 -0
- package/bin/sdk/api/deploy/compare/index.js +16 -0
- package/bin/sdk/api/deploy/compare/invoke/index.d.ts +29 -0
- package/bin/sdk/api/deploy/compare/invoke/index.js +12 -0
- package/bin/sdk/api/deploy/component/architecture/index.d.ts +27 -0
- package/bin/sdk/api/deploy/component/architecture/index.js +10 -0
- package/bin/sdk/api/deploy/component/configurationCategory/index.d.ts +27 -0
- package/bin/sdk/api/deploy/component/configurationCategory/index.js +10 -0
- package/bin/sdk/api/deploy/component/configurationItem/index.d.ts +38 -0
- package/bin/sdk/api/deploy/component/configurationItem/index.js +17 -0
- package/bin/sdk/api/deploy/component/configurationItem/item/docs/index.d.ts +27 -0
- package/bin/sdk/api/deploy/component/configurationItem/item/docs/index.js +10 -0
- package/bin/sdk/api/deploy/component/configurationItem/item/index.d.ts +19 -0
- package/bin/sdk/api/deploy/component/configurationItem/item/index.js +7 -0
- package/bin/sdk/api/deploy/component/index.d.ts +29 -0
- package/bin/sdk/api/deploy/component/index.js +16 -0
- package/bin/sdk/api/deploy/errors/index.d.ts +55 -0
- package/bin/sdk/api/deploy/errors/index.js +26 -0
- package/bin/sdk/api/deploy/index.d.ts +214 -0
- package/bin/sdk/api/deploy/index.js +130 -0
- package/bin/sdk/api/deploy/progress/index.d.ts +42 -0
- package/bin/sdk/api/deploy/progress/index.js +15 -0
- package/bin/sdk/api/deploy/remediate/index.d.ts +69 -0
- package/bin/sdk/api/deploy/remediate/index.js +34 -0
- package/bin/sdk/api/deploy/remove/index.d.ts +37 -0
- package/bin/sdk/api/deploy/remove/index.js +13 -0
- package/bin/sdk/api/deploy/restore/index.d.ts +21 -0
- package/bin/sdk/api/deploy/restore/index.js +8 -0
- package/bin/sdk/api/deploy/restore/item/index.d.ts +28 -0
- package/bin/sdk/api/deploy/restore/item/index.js +11 -0
- package/bin/sdk/api/deploy/skip/index.d.ts +61 -0
- package/bin/sdk/api/deploy/skip/index.js +28 -0
- package/bin/sdk/api/deploy/skip/item/index.d.ts +41 -0
- package/bin/sdk/api/deploy/skip/item/index.js +18 -0
- package/bin/sdk/api/deploy/validate/index.d.ts +29 -0
- package/bin/sdk/api/deploy/validate/index.js +13 -0
- package/bin/sdk/api/discover/architectureReport/correlation/index.d.ts +38 -0
- package/bin/sdk/api/discover/architectureReport/correlation/index.js +17 -0
- package/bin/sdk/api/discover/architectureReport/correlation/item/data/index.d.ts +27 -0
- package/bin/sdk/api/discover/architectureReport/correlation/item/data/index.js +10 -0
- package/bin/sdk/api/discover/architectureReport/correlation/item/index.d.ts +19 -0
- package/bin/sdk/api/discover/architectureReport/correlation/item/index.js +7 -0
- package/bin/sdk/api/discover/architectureReport/index.d.ts +19 -0
- package/bin/sdk/api/discover/architectureReport/index.js +8 -0
- package/bin/sdk/api/discover/cache/index.d.ts +19 -0
- package/bin/sdk/api/discover/cache/index.js +7 -0
- package/bin/sdk/api/discover/cache/reset/index.d.ts +25 -0
- package/bin/sdk/api/discover/cache/reset/index.js +7 -0
- package/bin/sdk/api/discover/index.d.ts +44 -0
- package/bin/sdk/api/discover/index.js +27 -0
- package/bin/sdk/api/discover/licenseReport/correlation/index.d.ts +38 -0
- package/bin/sdk/api/discover/licenseReport/correlation/index.js +17 -0
- package/bin/sdk/api/discover/licenseReport/correlation/item/data/index.d.ts +27 -0
- package/bin/sdk/api/discover/licenseReport/correlation/item/data/index.js +10 -0
- package/bin/sdk/api/discover/licenseReport/correlation/item/index.d.ts +19 -0
- package/bin/sdk/api/discover/licenseReport/correlation/item/index.js +7 -0
- package/bin/sdk/api/discover/licenseReport/index.d.ts +19 -0
- package/bin/sdk/api/discover/licenseReport/index.js +8 -0
- package/bin/sdk/api/discover/progress/index.d.ts +27 -0
- package/bin/sdk/api/discover/progress/index.js +10 -0
- package/bin/sdk/api/discover/report/index.d.ts +25 -0
- package/bin/sdk/api/discover/report/index.js +7 -0
- package/bin/sdk/api/discover/status/index.d.ts +27 -0
- package/bin/sdk/api/discover/status/index.js +10 -0
- package/bin/sdk/api/index.d.ts +44 -0
- package/bin/sdk/api/index.js +29 -0
- package/bin/sdk/api/update/check/channel/index.d.ts +21 -0
- package/bin/sdk/api/update/check/channel/index.js +8 -0
- package/bin/sdk/api/update/check/channel/item/index.d.ts +51 -0
- package/bin/sdk/api/update/check/channel/item/index.js +24 -0
- package/bin/sdk/api/update/check/index.d.ts +60 -0
- package/bin/sdk/api/update/check/index.js +30 -0
- package/bin/sdk/api/update/index.d.ts +45 -0
- package/bin/sdk/api/update/index.js +25 -0
- package/bin/sdk/api/update/install/channel/index.d.ts +21 -0
- package/bin/sdk/api/update/install/channel/index.js +8 -0
- package/bin/sdk/api/update/install/channel/item/index.d.ts +25 -0
- package/bin/sdk/api/update/install/channel/item/index.js +7 -0
- package/bin/sdk/api/update/install/index.d.ts +34 -0
- package/bin/sdk/api/update/install/index.js +13 -0
- package/bin/sdk/api/update/upload/index.d.ts +27 -0
- package/bin/sdk/api/update/upload/index.js +9 -0
- package/bin/sdk/models/architectureReport/index.d.ts +49 -0
- package/bin/sdk/models/architectureReport/index.js +25 -0
- package/bin/sdk/models/core/index.d.ts +137 -0
- package/bin/sdk/models/core/index.js +71 -0
- package/bin/sdk/models/deploy/index.d.ts +677 -0
- package/bin/sdk/models/deploy/index.js +364 -0
- package/bin/sdk/models/discover/architectureReport/index.d.ts +61 -0
- package/bin/sdk/models/discover/architectureReport/index.js +31 -0
- package/bin/sdk/models/discover/index.d.ts +29 -0
- package/bin/sdk/models/discover/index.js +15 -0
- package/bin/sdk/models/index.d.ts +165 -0
- package/bin/sdk/models/index.js +88 -0
- package/bin/sdk/models/licenseReport/index.d.ts +49 -0
- package/bin/sdk/models/licenseReport/index.js +25 -0
- package/bin/sdk/models/managedObject/index.d.ts +287 -0
- package/bin/sdk/models/managedObject/index.js +140 -0
- package/bin/sdk/models/objectPage/index.d.ts +174 -0
- package/bin/sdk/models/objectPage/index.js +103 -0
- package/bin/sdk/models/objectPage/intermediary/index.d.ts +60 -0
- package/bin/sdk/models/objectPage/intermediary/index.js +36 -0
- package/bin/sdk/shieldClient.d.ts +24 -0
- package/bin/sdk/shieldClient.js +35 -0
- package/package.json +205 -5
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
2
|
+
/**
|
|
3
|
+
* Builds and executes requests for operations under /Api/Update/Upload
|
|
4
|
+
*/
|
|
5
|
+
export interface UploadRequestBuilder extends BaseRequestBuilder<UploadRequestBuilder> {
|
|
6
|
+
/**
|
|
7
|
+
* THIS API SHOULD ONLY BE USED IF INSTRUCTED BY SHI EMPLOYEES!Uploads the specified ZIP package, validates signature and installs it if it matches. This ignores version numbers and will allow you to install the same version again if necessary.This endpoint requires the `Update.ReadWrite`, or the `Everything.ReadWrite` scope (permission).
|
|
8
|
+
* @param body Binary request body
|
|
9
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
10
|
+
*/
|
|
11
|
+
post(body: ArrayBuffer | undefined, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
|
|
12
|
+
/**
|
|
13
|
+
* THIS API SHOULD ONLY BE USED IF INSTRUCTED BY SHI EMPLOYEES!Uploads the specified ZIP package, validates signature and installs it if it matches. This ignores version numbers and will allow you to install the same version again if necessary.This endpoint requires the `Update.ReadWrite`, or the `Everything.ReadWrite` scope (permission).
|
|
14
|
+
* @param body Binary request body
|
|
15
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
16
|
+
* @returns {RequestInformation}
|
|
17
|
+
*/
|
|
18
|
+
toPostRequestInformation(body: ArrayBuffer | undefined, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Uri template for the request builder.
|
|
22
|
+
*/
|
|
23
|
+
export declare const UploadRequestBuilderUriTemplate = "{+baseurl}/Api/Update/Upload";
|
|
24
|
+
/**
|
|
25
|
+
* Metadata for all the requests in the request builder.
|
|
26
|
+
*/
|
|
27
|
+
export declare const UploadRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export const UploadRequestBuilderUriTemplate = "{+baseurl}/Api/Update/Upload";
|
|
2
|
+
export const UploadRequestBuilderRequestsMetadata = {
|
|
3
|
+
post: {
|
|
4
|
+
uriTemplate: UploadRequestBuilderUriTemplate,
|
|
5
|
+
adapterMethodName: "sendNoResponseContent",
|
|
6
|
+
requestBodyContentType: "application/octet-stream",
|
|
7
|
+
requestInformationContentSetMethod: "setStreamContent",
|
|
8
|
+
},
|
|
9
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { type AdditionalDataHolder, type Guid, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions';
|
|
2
|
+
/**
|
|
3
|
+
* Metadata that describes the execution session (run) that is used to tie/relate all of the architecture report together.
|
|
4
|
+
*/
|
|
5
|
+
export interface CorrelationRecord extends AdditionalDataHolder, Parsable {
|
|
6
|
+
/**
|
|
7
|
+
* The user principal name used to authenticate into the tenant being audited.
|
|
8
|
+
*/
|
|
9
|
+
auditTenantAccount?: string | null;
|
|
10
|
+
/**
|
|
11
|
+
* Unique Identifier that represents a single run of architectural analysis. This record is used to identify which architecture report records should be grouped together.
|
|
12
|
+
*/
|
|
13
|
+
correlationId?: Guid | null;
|
|
14
|
+
/**
|
|
15
|
+
* Timestamp when the record was created.
|
|
16
|
+
*/
|
|
17
|
+
createdAt?: Date | null;
|
|
18
|
+
/**
|
|
19
|
+
* User account used to store/report the architecture report to the SHI Lab cloud service.
|
|
20
|
+
*/
|
|
21
|
+
reportTenantAccount?: string | null;
|
|
22
|
+
/**
|
|
23
|
+
* Unique identifier of the customer tenant that the report was created for.
|
|
24
|
+
*/
|
|
25
|
+
tenantId?: Guid | null;
|
|
26
|
+
/**
|
|
27
|
+
* Timestamp when the record was updated last.
|
|
28
|
+
*/
|
|
29
|
+
updatedAt?: Date | null;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
33
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
34
|
+
* @returns {CorrelationRecord}
|
|
35
|
+
*/
|
|
36
|
+
export declare function createCorrelationRecordFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
37
|
+
/**
|
|
38
|
+
* The deserialization information for the current model
|
|
39
|
+
* @param CorrelationRecord The instance to deserialize into.
|
|
40
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
41
|
+
*/
|
|
42
|
+
export declare function deserializeIntoCorrelationRecord(correlationRecord?: Partial<CorrelationRecord> | undefined): Record<string, (node: ParseNode) => void>;
|
|
43
|
+
/**
|
|
44
|
+
* Serializes information the current object
|
|
45
|
+
* @param CorrelationRecord The instance to serialize from.
|
|
46
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
47
|
+
* @param writer Serialization writer to use to serialize this model
|
|
48
|
+
*/
|
|
49
|
+
export declare function serializeCorrelationRecord(writer: SerializationWriter, correlationRecord?: Partial<CorrelationRecord> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export function createCorrelationRecordFromDiscriminatorValue(parseNode) {
|
|
2
|
+
return deserializeIntoCorrelationRecord;
|
|
3
|
+
}
|
|
4
|
+
export function deserializeIntoCorrelationRecord(correlationRecord = {}) {
|
|
5
|
+
return {
|
|
6
|
+
"auditTenantAccount": n => { correlationRecord.auditTenantAccount = n.getStringValue(); },
|
|
7
|
+
"correlationId": n => { correlationRecord.correlationId = n.getGuidValue(); },
|
|
8
|
+
"createdAt": n => { correlationRecord.createdAt = n.getDateValue(); },
|
|
9
|
+
"reportTenantAccount": n => { correlationRecord.reportTenantAccount = n.getStringValue(); },
|
|
10
|
+
"tenantId": n => { correlationRecord.tenantId = n.getGuidValue(); },
|
|
11
|
+
"updatedAt": n => { correlationRecord.updatedAt = n.getDateValue(); },
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export function serializeCorrelationRecord(writer, correlationRecord = {}, isSerializingDerivedType = false) {
|
|
15
|
+
if (!correlationRecord || isSerializingDerivedType) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
writer.writeStringValue("auditTenantAccount", correlationRecord.auditTenantAccount);
|
|
19
|
+
writer.writeGuidValue("correlationId", correlationRecord.correlationId);
|
|
20
|
+
writer.writeDateValue("createdAt", correlationRecord.createdAt);
|
|
21
|
+
writer.writeStringValue("reportTenantAccount", correlationRecord.reportTenantAccount);
|
|
22
|
+
writer.writeGuidValue("tenantId", correlationRecord.tenantId);
|
|
23
|
+
writer.writeDateValue("updatedAt", correlationRecord.updatedAt);
|
|
24
|
+
writer.writeAdditionalData(correlationRecord.additionalData);
|
|
25
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { type AdditionalDataHolder, type ApiError, type Guid, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
4
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
5
|
+
* @returns {HealthReport}
|
|
6
|
+
*/
|
|
7
|
+
export declare function createHealthReportFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
10
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
11
|
+
* @returns {ProgressBar}
|
|
12
|
+
*/
|
|
13
|
+
export declare function createProgressBarFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
14
|
+
/**
|
|
15
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
16
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
17
|
+
* @returns {SystemRequirements}
|
|
18
|
+
*/
|
|
19
|
+
export declare function createSystemRequirementsFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
20
|
+
/**
|
|
21
|
+
* The deserialization information for the current model
|
|
22
|
+
* @param HealthReport The instance to deserialize into.
|
|
23
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
24
|
+
*/
|
|
25
|
+
export declare function deserializeIntoHealthReport(healthReport?: Partial<HealthReport> | undefined): Record<string, (node: ParseNode) => void>;
|
|
26
|
+
/**
|
|
27
|
+
* The deserialization information for the current model
|
|
28
|
+
* @param ProgressBar The instance to deserialize into.
|
|
29
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
30
|
+
*/
|
|
31
|
+
export declare function deserializeIntoProgressBar(progressBar?: Partial<ProgressBar> | undefined): Record<string, (node: ParseNode) => void>;
|
|
32
|
+
/**
|
|
33
|
+
* The deserialization information for the current model
|
|
34
|
+
* @param SystemRequirements The instance to deserialize into.
|
|
35
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
36
|
+
*/
|
|
37
|
+
export declare function deserializeIntoSystemRequirements(systemRequirements?: Partial<SystemRequirements> | undefined): Record<string, (node: ParseNode) => void>;
|
|
38
|
+
/**
|
|
39
|
+
* Health report that indicates if a service is down or not that SHIELD web app relies on.
|
|
40
|
+
*/
|
|
41
|
+
export interface HealthReport extends AdditionalDataHolder, ApiError, Parsable {
|
|
42
|
+
/**
|
|
43
|
+
* Flag that indicates if the client side authentication validation is working or not.
|
|
44
|
+
*/
|
|
45
|
+
authClient?: boolean | null;
|
|
46
|
+
/**
|
|
47
|
+
* Flag that indicates if the server side authentication is working or not.
|
|
48
|
+
*/
|
|
49
|
+
authServer?: boolean | null;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Used to indicate the progress of a long running operation.
|
|
53
|
+
*/
|
|
54
|
+
export interface ProgressBar extends AdditionalDataHolder, Parsable {
|
|
55
|
+
/**
|
|
56
|
+
* Sub progress bar that should appear below the current progress bar for a dependent execution branch.
|
|
57
|
+
*/
|
|
58
|
+
childBar?: ProgressBar[] | null;
|
|
59
|
+
/**
|
|
60
|
+
* Current step/value for the progress bar. This is in relation to the `totalStepCount` property. If undefined, an indeterminate/pulsing progress bar is used instead.
|
|
61
|
+
*/
|
|
62
|
+
currentStep?: number | null;
|
|
63
|
+
/**
|
|
64
|
+
* Long form text describing the current step.
|
|
65
|
+
*/
|
|
66
|
+
description?: string | null;
|
|
67
|
+
/**
|
|
68
|
+
* Text/label to render with the progress bar.
|
|
69
|
+
*/
|
|
70
|
+
displayName?: string | null;
|
|
71
|
+
/**
|
|
72
|
+
* Unique identifier to be able to select this specific instance via search.
|
|
73
|
+
*/
|
|
74
|
+
id?: Guid | null;
|
|
75
|
+
/**
|
|
76
|
+
* Number of steps before the progress bar is completely filed.
|
|
77
|
+
*/
|
|
78
|
+
totalStepCount?: number | null;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Serializes information the current object
|
|
82
|
+
* @param HealthReport The instance to serialize from.
|
|
83
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
84
|
+
* @param writer Serialization writer to use to serialize this model
|
|
85
|
+
*/
|
|
86
|
+
export declare function serializeHealthReport(writer: SerializationWriter, healthReport?: Partial<HealthReport> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
87
|
+
/**
|
|
88
|
+
* Serializes information the current object
|
|
89
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
90
|
+
* @param ProgressBar The instance to serialize from.
|
|
91
|
+
* @param writer Serialization writer to use to serialize this model
|
|
92
|
+
*/
|
|
93
|
+
export declare function serializeProgressBar(writer: SerializationWriter, progressBar?: Partial<ProgressBar> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
94
|
+
/**
|
|
95
|
+
* Serializes information the current object
|
|
96
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
97
|
+
* @param SystemRequirements The instance to serialize from.
|
|
98
|
+
* @param writer Serialization writer to use to serialize this model
|
|
99
|
+
*/
|
|
100
|
+
export declare function serializeSystemRequirements(writer: SerializationWriter, systemRequirements?: Partial<SystemRequirements> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
101
|
+
/**
|
|
102
|
+
* Collection of indicators that notify the caller if the system requirements have been met for various sub components to operate.
|
|
103
|
+
*/
|
|
104
|
+
export interface SystemRequirements extends AdditionalDataHolder, Parsable {
|
|
105
|
+
/**
|
|
106
|
+
* Flag that indicates if the required core Azure RBAC assignment(s) are present or not.
|
|
107
|
+
*/
|
|
108
|
+
azurePermissions?: boolean | null;
|
|
109
|
+
/**
|
|
110
|
+
* Flag that indicates if the core permissions for the SHI - Data Gateway have been configured properly or not.
|
|
111
|
+
*/
|
|
112
|
+
dataGatewayPermissions?: boolean | null;
|
|
113
|
+
/**
|
|
114
|
+
* Flag that indicates if the required defend licenses are present or not.
|
|
115
|
+
*/
|
|
116
|
+
defendEntitlement?: boolean | null;
|
|
117
|
+
/**
|
|
118
|
+
* Flag that indicates if the required deploy licenses are present or not.
|
|
119
|
+
*/
|
|
120
|
+
deployEntitlement?: boolean | null;
|
|
121
|
+
/**
|
|
122
|
+
* Flag that indicates if the core permissions for the SHIELD - Authenticator App have been configured properly or not.
|
|
123
|
+
*/
|
|
124
|
+
desktopPermissions?: boolean | null;
|
|
125
|
+
/**
|
|
126
|
+
* Flag that indicates if the required discover licenses are present or not.
|
|
127
|
+
*/
|
|
128
|
+
discoverEntitlement?: boolean | null;
|
|
129
|
+
/**
|
|
130
|
+
* Flag that indicates if the core permissions for Entra Directory Role assignment have been configured properly or not.
|
|
131
|
+
*/
|
|
132
|
+
entraDirectoryRole?: boolean | null;
|
|
133
|
+
/**
|
|
134
|
+
* Flag that indicates if the core permissions for the Microsoft Graph API have been configured properly or not.
|
|
135
|
+
*/
|
|
136
|
+
msGraphPermissions?: boolean | null;
|
|
137
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
export function createHealthReportFromDiscriminatorValue(parseNode) {
|
|
2
|
+
return deserializeIntoHealthReport;
|
|
3
|
+
}
|
|
4
|
+
export function createProgressBarFromDiscriminatorValue(parseNode) {
|
|
5
|
+
return deserializeIntoProgressBar;
|
|
6
|
+
}
|
|
7
|
+
export function createSystemRequirementsFromDiscriminatorValue(parseNode) {
|
|
8
|
+
return deserializeIntoSystemRequirements;
|
|
9
|
+
}
|
|
10
|
+
export function deserializeIntoHealthReport(healthReport = {}) {
|
|
11
|
+
return {
|
|
12
|
+
"authClient": n => { healthReport.authClient = n.getBooleanValue(); },
|
|
13
|
+
"authServer": n => { healthReport.authServer = n.getBooleanValue(); },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export function deserializeIntoProgressBar(progressBar = {}) {
|
|
17
|
+
return {
|
|
18
|
+
"childBar": n => { progressBar.childBar = n.getCollectionOfObjectValues(createProgressBarFromDiscriminatorValue); },
|
|
19
|
+
"currentStep": n => { progressBar.currentStep = n.getNumberValue(); },
|
|
20
|
+
"description": n => { progressBar.description = n.getStringValue(); },
|
|
21
|
+
"displayName": n => { progressBar.displayName = n.getStringValue(); },
|
|
22
|
+
"id": n => { progressBar.id = n.getGuidValue(); },
|
|
23
|
+
"totalStepCount": n => { progressBar.totalStepCount = n.getNumberValue(); },
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export function deserializeIntoSystemRequirements(systemRequirements = {}) {
|
|
27
|
+
return {
|
|
28
|
+
"azurePermissions": n => { systemRequirements.azurePermissions = n.getBooleanValue(); },
|
|
29
|
+
"dataGatewayPermissions": n => { systemRequirements.dataGatewayPermissions = n.getBooleanValue(); },
|
|
30
|
+
"defendEntitlement": n => { systemRequirements.defendEntitlement = n.getBooleanValue(); },
|
|
31
|
+
"deployEntitlement": n => { systemRequirements.deployEntitlement = n.getBooleanValue(); },
|
|
32
|
+
"desktopPermissions": n => { systemRequirements.desktopPermissions = n.getBooleanValue(); },
|
|
33
|
+
"discoverEntitlement": n => { systemRequirements.discoverEntitlement = n.getBooleanValue(); },
|
|
34
|
+
"entraDirectoryRole": n => { systemRequirements.entraDirectoryRole = n.getBooleanValue(); },
|
|
35
|
+
"msGraphPermissions": n => { systemRequirements.msGraphPermissions = n.getBooleanValue(); },
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function serializeHealthReport(writer, healthReport = {}, isSerializingDerivedType = false) {
|
|
39
|
+
if (!healthReport || isSerializingDerivedType) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
writer.writeBooleanValue("authClient", healthReport.authClient);
|
|
43
|
+
writer.writeBooleanValue("authServer", healthReport.authServer);
|
|
44
|
+
writer.writeAdditionalData(healthReport.additionalData);
|
|
45
|
+
}
|
|
46
|
+
export function serializeProgressBar(writer, progressBar = {}, isSerializingDerivedType = false) {
|
|
47
|
+
if (!progressBar || isSerializingDerivedType) {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
writer.writeCollectionOfObjectValues("childBar", progressBar.childBar, serializeProgressBar);
|
|
51
|
+
writer.writeNumberValue("currentStep", progressBar.currentStep);
|
|
52
|
+
writer.writeStringValue("description", progressBar.description);
|
|
53
|
+
writer.writeStringValue("displayName", progressBar.displayName);
|
|
54
|
+
writer.writeGuidValue("id", progressBar.id);
|
|
55
|
+
writer.writeNumberValue("totalStepCount", progressBar.totalStepCount);
|
|
56
|
+
writer.writeAdditionalData(progressBar.additionalData);
|
|
57
|
+
}
|
|
58
|
+
export function serializeSystemRequirements(writer, systemRequirements = {}, isSerializingDerivedType = false) {
|
|
59
|
+
if (!systemRequirements || isSerializingDerivedType) {
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
writer.writeBooleanValue("azurePermissions", systemRequirements.azurePermissions);
|
|
63
|
+
writer.writeBooleanValue("dataGatewayPermissions", systemRequirements.dataGatewayPermissions);
|
|
64
|
+
writer.writeBooleanValue("defendEntitlement", systemRequirements.defendEntitlement);
|
|
65
|
+
writer.writeBooleanValue("deployEntitlement", systemRequirements.deployEntitlement);
|
|
66
|
+
writer.writeBooleanValue("desktopPermissions", systemRequirements.desktopPermissions);
|
|
67
|
+
writer.writeBooleanValue("discoverEntitlement", systemRequirements.discoverEntitlement);
|
|
68
|
+
writer.writeBooleanValue("entraDirectoryRole", systemRequirements.entraDirectoryRole);
|
|
69
|
+
writer.writeBooleanValue("msGraphPermissions", systemRequirements.msGraphPermissions);
|
|
70
|
+
writer.writeAdditionalData(systemRequirements.additionalData);
|
|
71
|
+
}
|