@azure/arm-policyinsights 6.0.0-alpha.20250718.1 → 6.0.0-alpha.20250721.1
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/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +34 -16
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/attestations.js +100 -136
- package/dist/browser/operations/attestations.js.map +1 -1
- package/dist/browser/operations/componentPolicyStates.js +1 -0
- package/dist/browser/operations/componentPolicyStates.js.map +1 -1
- package/dist/browser/operations/operations.js +1 -0
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/policyEvents.js +180 -316
- package/dist/browser/operations/policyEvents.js.map +1 -1
- package/dist/browser/operations/policyMetadataOperations.js +23 -40
- package/dist/browser/operations/policyMetadataOperations.js.map +1 -1
- package/dist/browser/operations/policyRestrictions.js +1 -0
- package/dist/browser/operations/policyRestrictions.js.map +1 -1
- package/dist/browser/operations/policyStates.js +202 -328
- package/dist/browser/operations/policyStates.js.map +1 -1
- package/dist/browser/operations/policyTrackedResources.js +89 -157
- package/dist/browser/operations/policyTrackedResources.js.map +1 -1
- package/dist/browser/operations/remediations.js +177 -313
- package/dist/browser/operations/remediations.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/browser/policyInsightsClient.js +21 -5
- package/dist/browser/policyInsightsClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +34 -16
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/attestations.js +100 -135
- package/dist/commonjs/operations/attestations.js.map +1 -1
- package/dist/commonjs/operations/componentPolicyStates.js +1 -0
- package/dist/commonjs/operations/componentPolicyStates.js.map +1 -1
- package/dist/commonjs/operations/operations.js +1 -0
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/policyEvents.js +180 -315
- package/dist/commonjs/operations/policyEvents.js.map +1 -1
- package/dist/commonjs/operations/policyMetadataOperations.js +23 -39
- package/dist/commonjs/operations/policyMetadataOperations.js.map +1 -1
- package/dist/commonjs/operations/policyRestrictions.js +1 -0
- package/dist/commonjs/operations/policyRestrictions.js.map +1 -1
- package/dist/commonjs/operations/policyStates.js +202 -327
- package/dist/commonjs/operations/policyStates.js.map +1 -1
- package/dist/commonjs/operations/policyTrackedResources.js +89 -156
- package/dist/commonjs/operations/policyTrackedResources.js.map +1 -1
- package/dist/commonjs/operations/remediations.js +177 -312
- package/dist/commonjs/operations/remediations.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/policyInsightsClient.js +21 -5
- package/dist/commonjs/policyInsightsClient.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +34 -16
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/attestations.js +100 -136
- package/dist/esm/operations/attestations.js.map +1 -1
- package/dist/esm/operations/componentPolicyStates.js +1 -0
- package/dist/esm/operations/componentPolicyStates.js.map +1 -1
- package/dist/esm/operations/operations.js +1 -0
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/policyEvents.js +180 -316
- package/dist/esm/operations/policyEvents.js.map +1 -1
- package/dist/esm/operations/policyMetadataOperations.js +23 -40
- package/dist/esm/operations/policyMetadataOperations.js.map +1 -1
- package/dist/esm/operations/policyRestrictions.js +1 -0
- package/dist/esm/operations/policyRestrictions.js.map +1 -1
- package/dist/esm/operations/policyStates.js +202 -328
- package/dist/esm/operations/policyStates.js.map +1 -1
- package/dist/esm/operations/policyTrackedResources.js +89 -157
- package/dist/esm/operations/policyTrackedResources.js.map +1 -1
- package/dist/esm/operations/remediations.js +177 -313
- package/dist/esm/operations/remediations.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/esm/policyInsightsClient.js +21 -5
- package/dist/esm/policyInsightsClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +34 -16
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/attestations.js +100 -136
- package/dist/react-native/operations/attestations.js.map +1 -1
- package/dist/react-native/operations/componentPolicyStates.js +1 -0
- package/dist/react-native/operations/componentPolicyStates.js.map +1 -1
- package/dist/react-native/operations/operations.js +1 -0
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/policyEvents.js +180 -316
- package/dist/react-native/operations/policyEvents.js.map +1 -1
- package/dist/react-native/operations/policyMetadataOperations.js +23 -40
- package/dist/react-native/operations/policyMetadataOperations.js.map +1 -1
- package/dist/react-native/operations/policyRestrictions.js +1 -0
- package/dist/react-native/operations/policyRestrictions.js.map +1 -1
- package/dist/react-native/operations/policyStates.js +202 -328
- package/dist/react-native/operations/policyStates.js.map +1 -1
- package/dist/react-native/operations/policyTrackedResources.js +89 -157
- package/dist/react-native/operations/policyTrackedResources.js.map +1 -1
- package/dist/react-native/operations/remediations.js +177 -313
- package/dist/react-native/operations/remediations.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/dist/react-native/policyInsightsClient.js +21 -5
- package/dist/react-native/policyInsightsClient.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-policyinsights-node.api.md +1716 -1716
package/dist/browser/lroImpl.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __rest } from "tslib";
|
|
2
1
|
export function createLroSpec(inputs) {
|
|
3
2
|
const { args, spec, sendOperationFn } = inputs;
|
|
4
3
|
return {
|
|
@@ -6,8 +5,13 @@ export function createLroSpec(inputs) {
|
|
|
6
5
|
requestPath: spec.path,
|
|
7
6
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
8
7
|
sendPollRequest: (path, options) => {
|
|
9
|
-
const { requestBody
|
|
10
|
-
return sendOperationFn(args,
|
|
8
|
+
const { requestBody, ...restSpec } = spec;
|
|
9
|
+
return sendOperationFn(args, {
|
|
10
|
+
...restSpec,
|
|
11
|
+
httpMethod: "GET",
|
|
12
|
+
path,
|
|
13
|
+
abortSignal: options?.abortSignal,
|
|
14
|
+
});
|
|
11
15
|
},
|
|
12
16
|
};
|
|
13
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAUA,MAAM,UAAU,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,EAAE,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,EAAE;gBAC3B,GAAG,QAAQ;gBACX,UAAU,EAAE,KAAK;gBACjB,IAAI;gBACJ,WAAW,EAAE,OAAO,EAAE,WAAW;aAClC,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (\n path: string,\n options?: { abortSignal?: AbortSignalLike },\n ) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal,\n });\n },\n };\n}\n"]}
|
|
@@ -2886,63 +2886,76 @@ export const PolicyMetadataProperties = {
|
|
|
2886
2886
|
type: {
|
|
2887
2887
|
name: "Composite",
|
|
2888
2888
|
className: "PolicyMetadataProperties",
|
|
2889
|
-
modelProperties:
|
|
2889
|
+
modelProperties: {
|
|
2890
|
+
...PolicyMetadataSlimProperties.type.modelProperties,
|
|
2891
|
+
description: {
|
|
2890
2892
|
serializedName: "description",
|
|
2891
2893
|
readOnly: true,
|
|
2892
2894
|
type: {
|
|
2893
2895
|
name: "String",
|
|
2894
2896
|
},
|
|
2895
|
-
},
|
|
2897
|
+
},
|
|
2898
|
+
requirements: {
|
|
2896
2899
|
serializedName: "requirements",
|
|
2897
2900
|
readOnly: true,
|
|
2898
2901
|
type: {
|
|
2899
2902
|
name: "String",
|
|
2900
2903
|
},
|
|
2901
|
-
}
|
|
2904
|
+
},
|
|
2905
|
+
},
|
|
2902
2906
|
},
|
|
2903
2907
|
};
|
|
2904
2908
|
export const Attestation = {
|
|
2905
2909
|
type: {
|
|
2906
2910
|
name: "Composite",
|
|
2907
2911
|
className: "Attestation",
|
|
2908
|
-
modelProperties:
|
|
2912
|
+
modelProperties: {
|
|
2913
|
+
...Resource.type.modelProperties,
|
|
2914
|
+
systemData: {
|
|
2909
2915
|
serializedName: "systemData",
|
|
2910
2916
|
type: {
|
|
2911
2917
|
name: "Composite",
|
|
2912
2918
|
className: "SystemData",
|
|
2913
2919
|
},
|
|
2914
|
-
},
|
|
2920
|
+
},
|
|
2921
|
+
policyAssignmentId: {
|
|
2915
2922
|
serializedName: "properties.policyAssignmentId",
|
|
2916
2923
|
required: true,
|
|
2917
2924
|
type: {
|
|
2918
2925
|
name: "String",
|
|
2919
2926
|
},
|
|
2920
|
-
},
|
|
2927
|
+
},
|
|
2928
|
+
policyDefinitionReferenceId: {
|
|
2921
2929
|
serializedName: "properties.policyDefinitionReferenceId",
|
|
2922
2930
|
type: {
|
|
2923
2931
|
name: "String",
|
|
2924
2932
|
},
|
|
2925
|
-
},
|
|
2933
|
+
},
|
|
2934
|
+
complianceState: {
|
|
2926
2935
|
serializedName: "properties.complianceState",
|
|
2927
2936
|
type: {
|
|
2928
2937
|
name: "String",
|
|
2929
2938
|
},
|
|
2930
|
-
},
|
|
2939
|
+
},
|
|
2940
|
+
expiresOn: {
|
|
2931
2941
|
serializedName: "properties.expiresOn",
|
|
2932
2942
|
type: {
|
|
2933
2943
|
name: "DateTime",
|
|
2934
2944
|
},
|
|
2935
|
-
},
|
|
2945
|
+
},
|
|
2946
|
+
owner: {
|
|
2936
2947
|
serializedName: "properties.owner",
|
|
2937
2948
|
type: {
|
|
2938
2949
|
name: "String",
|
|
2939
2950
|
},
|
|
2940
|
-
},
|
|
2951
|
+
},
|
|
2952
|
+
comments: {
|
|
2941
2953
|
serializedName: "properties.comments",
|
|
2942
2954
|
type: {
|
|
2943
2955
|
name: "String",
|
|
2944
2956
|
},
|
|
2945
|
-
},
|
|
2957
|
+
},
|
|
2958
|
+
evidence: {
|
|
2946
2959
|
serializedName: "properties.evidence",
|
|
2947
2960
|
type: {
|
|
2948
2961
|
name: "Sequence",
|
|
@@ -2953,30 +2966,35 @@ export const Attestation = {
|
|
|
2953
2966
|
},
|
|
2954
2967
|
},
|
|
2955
2968
|
},
|
|
2956
|
-
},
|
|
2969
|
+
},
|
|
2970
|
+
provisioningState: {
|
|
2957
2971
|
serializedName: "properties.provisioningState",
|
|
2958
2972
|
readOnly: true,
|
|
2959
2973
|
type: {
|
|
2960
2974
|
name: "String",
|
|
2961
2975
|
},
|
|
2962
|
-
},
|
|
2976
|
+
},
|
|
2977
|
+
lastComplianceStateChangeAt: {
|
|
2963
2978
|
serializedName: "properties.lastComplianceStateChangeAt",
|
|
2964
2979
|
readOnly: true,
|
|
2965
2980
|
type: {
|
|
2966
2981
|
name: "DateTime",
|
|
2967
2982
|
},
|
|
2968
|
-
},
|
|
2983
|
+
},
|
|
2984
|
+
assessmentDate: {
|
|
2969
2985
|
serializedName: "properties.assessmentDate",
|
|
2970
2986
|
type: {
|
|
2971
2987
|
name: "DateTime",
|
|
2972
2988
|
},
|
|
2973
|
-
},
|
|
2989
|
+
},
|
|
2990
|
+
metadata: {
|
|
2974
2991
|
serializedName: "properties.metadata",
|
|
2975
2992
|
type: {
|
|
2976
2993
|
name: "Dictionary",
|
|
2977
2994
|
value: { type: { name: "any" } },
|
|
2978
2995
|
},
|
|
2979
|
-
}
|
|
2996
|
+
},
|
|
2997
|
+
},
|
|
2980
2998
|
},
|
|
2981
2999
|
};
|
|
2982
3000
|
//# sourceMappingURL=mappers.js.map
|