diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml
index 694e81b4a476..d632d54b16d3 100644
--- a/common/config/rush/pnpm-lock.yaml
+++ b/common/config/rush/pnpm-lock.yaml
@@ -57,6 +57,7 @@ specifiers:
'@rush-temp/arm-operations': file:./projects/arm-operations.tgz
'@rush-temp/arm-orbital': file:./projects/arm-orbital.tgz
'@rush-temp/arm-policy': file:./projects/arm-policy.tgz
+ '@rush-temp/arm-policyinsights': file:./projects/arm-policyinsights.tgz
'@rush-temp/arm-portal': file:./projects/arm-portal.tgz
'@rush-temp/arm-postgresql': file:./projects/arm-postgresql.tgz
'@rush-temp/arm-purview': file:./projects/arm-purview.tgz
@@ -238,6 +239,7 @@ dependencies:
'@rush-temp/arm-operations': file:projects/arm-operations.tgz
'@rush-temp/arm-orbital': file:projects/arm-orbital.tgz
'@rush-temp/arm-policy': file:projects/arm-policy.tgz
+ '@rush-temp/arm-policyinsights': file:projects/arm-policyinsights.tgz
'@rush-temp/arm-portal': file:projects/arm-portal.tgz
'@rush-temp/arm-postgresql': file:projects/arm-postgresql.tgz
'@rush-temp/arm-purview': file:projects/arm-purview.tgz
@@ -6977,7 +6979,7 @@ packages:
hasBin: true
dev: false
- /ts-node/10.4.0_276ff2ad8f60608417677a4691c0f835:
+ /ts-node/10.4.0_28670484a221c7e896c5d6b821a5cbb7:
resolution: {integrity: sha512-g0FlPvvCXSIO1JDF6S232P5jPYqBkRL9qly81ZgAOSU7rwI0stphCgd2kLiCrU9DjQCrJMWEqcNSjQL02s6d8A==}
hasBin: true
peerDependencies:
@@ -7003,11 +7005,11 @@ packages:
create-require: 1.1.1
diff: 4.0.2
make-error: 1.3.6
- typescript: 4.2.4
+ typescript: 4.4.4
yn: 3.1.1
dev: false
- /ts-node/10.4.0_54d7f9b57c83a5c5120be11b085b9de6:
+ /ts-node/10.4.0_f9f9f28f986ed7ad377c75abc9f416f4:
resolution: {integrity: sha512-g0FlPvvCXSIO1JDF6S232P5jPYqBkRL9qly81ZgAOSU7rwI0stphCgd2kLiCrU9DjQCrJMWEqcNSjQL02s6d8A==}
hasBin: true
peerDependencies:
@@ -7033,7 +7035,7 @@ packages:
create-require: 1.1.1
diff: 4.0.2
make-error: 1.3.6
- typescript: 4.4.4
+ typescript: 4.2.4
yn: 3.1.1
dev: false
@@ -7629,7 +7631,7 @@ packages:
prettier: 2.5.1
rimraf: 3.0.2
rollup: 1.32.1
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
transitivePeerDependencies:
@@ -7857,7 +7859,7 @@ packages:
rollup: 1.32.1
sinon: 9.2.4
source-map-support: 0.5.21
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
transitivePeerDependencies:
@@ -7908,7 +7910,7 @@ packages:
rollup: 1.32.1
sinon: 9.2.4
source-map-support: 0.5.21
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
transitivePeerDependencies:
@@ -7965,7 +7967,7 @@ packages:
rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1
rollup-plugin-terser: 5.3.1_rollup@1.32.1
sinon: 9.2.4
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
uglify-js: 3.14.5
@@ -8980,6 +8982,27 @@ packages:
uglify-js: 3.14.5
dev: false
+ file:projects/arm-policyinsights.tgz:
+ resolution: {integrity: sha512-mty2JGyCqtk6i7mJUY8k3uETMvVfupq6ABTnT5vU61RdMq23z/eqPajxdAqrKo1Kdd0Dg6lCuhg2M2kbDDgh0A==, tarball: file:projects/arm-policyinsights.tgz}
+ name: '@rush-temp/arm-policyinsights'
+ version: 0.0.0
+ dependencies:
+ '@microsoft/api-extractor': 7.19.2
+ '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1
+ '@rollup/plugin-json': 4.1.0_rollup@1.32.1
+ '@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1
+ '@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1
+ cross-env: 7.0.3
+ mkdirp: 1.0.4
+ mocha: 7.2.0
+ rimraf: 3.0.2
+ rollup: 1.32.1
+ rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1
+ tslib: 2.3.1
+ typescript: 4.2.4
+ uglify-js: 3.14.5
+ dev: false
+
file:projects/arm-portal.tgz:
resolution: {integrity: sha512-uW56O3SchJbqVBOehKnE9Vg+WlJtDZI/0tLjS6J70AETVrtUoMRmZWdHufMrJffyTiMiJcJ7quvR5PMAXgb8RQ==, tarball: file:projects/arm-portal.tgz}
name: '@rush-temp/arm-portal'
@@ -9487,7 +9510,7 @@ packages:
rollup: 1.32.1
safe-buffer: 5.2.1
source-map-support: 0.5.21
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
util: 0.12.4
@@ -9982,7 +10005,7 @@ packages:
dev: false
file:projects/core-amqp.tgz:
- resolution: {integrity: sha512-jmyXvDp5FyZIlqp1zATESQp6qO2NqjKSfY5o9ojPsKN/g9WJ45RL4jfy+cD5u8C2t9jSDTsCoL+jbiLptpkDLA==, tarball: file:projects/core-amqp.tgz}
+ resolution: {integrity: sha512-nAZlMW/WFVSloK1iVzoSJNx9CHjvMl4/kJrnq1s5Okn96/AQX19SYkqfdvmew1Oy3bxfDC2g3n3e1CFLrlSyEg==, tarball: file:projects/core-amqp.tgz}
name: '@rush-temp/core-amqp'
version: 0.0.0
dependencies:
@@ -10025,7 +10048,7 @@ packages:
rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1
rollup-plugin-terser: 5.3.1_rollup@1.32.1
sinon: 9.2.4
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
url: 0.11.0
@@ -10111,7 +10134,7 @@ packages:
rimraf: 3.0.2
rollup: 1.32.1
sinon: 9.2.4
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
util: 0.12.4
@@ -10342,7 +10365,7 @@ packages:
shx: 0.3.3
sinon: 9.2.4
tough-cookie: 4.0.0
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
tunnel: 0.0.6
typescript: 4.2.4
@@ -10390,7 +10413,7 @@ packages:
prettier: 2.5.1
rimraf: 3.0.2
rollup: 1.32.1
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
uglify-js: 3.14.5
@@ -10657,7 +10680,7 @@ packages:
sinon: 9.2.4
snap-shot-it: 7.9.6
source-map-support: 0.5.21
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
universal-user-agent: 6.0.0
@@ -10714,7 +10737,7 @@ packages:
rollup-plugin-terser: 5.3.1_rollup@1.32.1
rollup-plugin-visualizer: 4.2.2_rollup@1.32.1
sinon: 9.2.4
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
util: 0.12.4
@@ -10760,7 +10783,7 @@ packages:
rollup: 1.32.1
rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1
rollup-plugin-visualizer: 4.2.2_rollup@1.32.1
- ts-node: 10.4.0_54d7f9b57c83a5c5120be11b085b9de6
+ ts-node: 10.4.0_28670484a221c7e896c5d6b821a5cbb7
tslib: 2.3.1
typescript: 4.4.4
yaml: 1.10.2
@@ -10917,7 +10940,7 @@ packages:
rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1
rollup-plugin-terser: 5.3.1_rollup@1.32.1
sinon: 9.2.4
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
uuid: 8.3.2
@@ -10979,7 +11002,7 @@ packages:
rollup-plugin-visualizer: 4.2.2_rollup@1.32.1
sinon: 9.2.4
source-map-support: 0.5.21
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
uuid: 8.3.2
@@ -11034,7 +11057,7 @@ packages:
prettier: 2.5.1
rimraf: 3.0.2
rollup: 1.32.1
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
util: 0.12.4
@@ -11087,7 +11110,7 @@ packages:
prettier: 2.5.1
rimraf: 3.0.2
rollup: 1.32.1
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
util: 0.12.4
@@ -11289,7 +11312,7 @@ packages:
rollup-plugin-terser: 5.3.1_rollup@1.32.1
rollup-plugin-visualizer: 4.2.2_rollup@1.32.1
sinon: 9.2.4
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
util: 0.12.4
@@ -11553,7 +11576,7 @@ packages:
rimraf: 3.0.2
rollup: 1.32.1
sinon: 9.2.4
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
transitivePeerDependencies:
@@ -11702,7 +11725,7 @@ packages:
rimraf: 3.0.2
rollup: 1.32.1
sinon: 9.2.4
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
transitivePeerDependencies:
@@ -11774,7 +11797,7 @@ packages:
eslint: 7.32.0
prettier: 2.5.1
rimraf: 3.0.2
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
transitivePeerDependencies:
@@ -11794,7 +11817,7 @@ packages:
eslint: 7.32.0
prettier: 2.5.1
rimraf: 3.0.2
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
transitivePeerDependencies:
@@ -11814,7 +11837,7 @@ packages:
eslint: 7.32.0
prettier: 2.5.1
rimraf: 3.0.2
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
transitivePeerDependencies:
@@ -11834,7 +11857,7 @@ packages:
eslint: 7.32.0
prettier: 2.5.1
rimraf: 3.0.2
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
uuid: 8.3.2
@@ -11873,7 +11896,7 @@ packages:
eslint: 7.32.0
prettier: 2.5.1
rimraf: 3.0.2
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
transitivePeerDependencies:
@@ -11894,7 +11917,7 @@ packages:
eslint: 7.32.0
prettier: 2.5.1
rimraf: 3.0.2
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
uuid: 8.3.2
@@ -11917,7 +11940,7 @@ packages:
moment: 2.29.1
prettier: 2.5.1
rimraf: 3.0.2
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
uuid: 8.3.2
@@ -11937,7 +11960,7 @@ packages:
eslint: 7.32.0
prettier: 1.19.1
rimraf: 3.0.2
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
transitivePeerDependencies:
@@ -11957,7 +11980,7 @@ packages:
eslint: 7.32.0
prettier: 2.5.1
rimraf: 3.0.2
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
transitivePeerDependencies:
@@ -11978,7 +12001,7 @@ packages:
eslint: 7.32.0
prettier: 2.5.1
rimraf: 3.0.2
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
uuid: 8.3.2
@@ -12000,7 +12023,7 @@ packages:
eslint: 7.32.0
prettier: 2.5.1
rimraf: 3.0.2
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
uuid: 8.3.2
@@ -12021,7 +12044,7 @@ packages:
eslint: 7.32.0
prettier: 2.5.1
rimraf: 3.0.2
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
uuid: 8.3.2
@@ -12041,7 +12064,7 @@ packages:
eslint: 7.32.0
prettier: 2.5.1
rimraf: 3.0.2
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
transitivePeerDependencies:
@@ -12060,7 +12083,7 @@ packages:
eslint: 7.32.0
prettier: 2.5.1
rimraf: 3.0.2
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
transitivePeerDependencies:
@@ -12081,7 +12104,7 @@ packages:
eslint: 7.32.0
prettier: 2.5.1
rimraf: 3.0.2
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
uuid: 8.3.2
@@ -12104,7 +12127,7 @@ packages:
node-fetch: 2.6.6
prettier: 2.5.1
rimraf: 3.0.2
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
uuid: 8.3.2
@@ -12125,7 +12148,7 @@ packages:
eslint: 7.32.0
prettier: 2.5.1
rimraf: 3.0.2
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
uuid: 8.3.2
@@ -12146,7 +12169,7 @@ packages:
eslint: 7.32.0
prettier: 2.5.1
rimraf: 3.0.2
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
uuid: 8.3.2
@@ -12167,7 +12190,7 @@ packages:
eslint: 7.32.0
prettier: 2.5.1
rimraf: 3.0.2
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
uuid: 8.3.2
@@ -12539,7 +12562,7 @@ packages:
rimraf: 3.0.2
rollup: 1.32.1
sinon: 9.2.4
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
util: 0.12.4
@@ -12608,7 +12631,7 @@ packages:
rimraf: 3.0.2
rollup: 1.32.1
sinon: 9.2.4
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
ws: 8.3.0
@@ -12671,7 +12694,7 @@ packages:
rollup-plugin-visualizer: 4.2.2_rollup@1.32.1
sinon: 9.2.4
source-map-support: 0.5.21
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
util: 0.12.4
@@ -12734,7 +12757,7 @@ packages:
rollup-plugin-terser: 5.3.1_rollup@1.32.1
rollup-plugin-visualizer: 4.2.2_rollup@1.32.1
source-map-support: 0.5.21
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
util: 0.12.4
@@ -12797,7 +12820,7 @@ packages:
rollup-plugin-terser: 5.3.1_rollup@1.32.1
rollup-plugin-visualizer: 4.2.2_rollup@1.32.1
source-map-support: 0.5.21
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
util: 0.12.4
@@ -12858,7 +12881,7 @@ packages:
rollup-plugin-terser: 5.3.1_rollup@1.32.1
rollup-plugin-visualizer: 4.2.2_rollup@1.32.1
source-map-support: 0.5.21
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
util: 0.12.4
@@ -12916,7 +12939,7 @@ packages:
rollup-plugin-terser: 5.3.1_rollup@1.32.1
rollup-plugin-visualizer: 4.2.2_rollup@1.32.1
source-map-support: 0.5.21
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
util: 0.12.4
@@ -12976,7 +12999,7 @@ packages:
rollup-plugin-terser: 5.3.1_rollup@1.32.1
rollup-plugin-visualizer: 4.2.2_rollup@1.32.1
source-map-support: 0.5.21
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
util: 0.12.4
@@ -13028,7 +13051,7 @@ packages:
rollup: 1.32.1
sinon: 9.2.4
source-map-support: 0.5.21
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
uglify-js: 3.14.5
@@ -13082,7 +13105,7 @@ packages:
rollup: 1.32.1
sinon: 9.2.4
source-map-support: 0.5.21
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
uglify-js: 3.14.5
@@ -13135,7 +13158,7 @@ packages:
rollup: 1.32.1
sinon: 9.2.4
source-map-support: 0.5.21
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
uglify-js: 3.14.5
diff --git a/rush.json b/rush.json
index 66a9aa13703f..97b105e0599d 100644
--- a/rush.json
+++ b/rush.json
@@ -1215,6 +1215,11 @@
"packageName": "@azure/arm-containerinstance",
"projectFolder": "sdk/containerinstance/arm-containerinstance",
"versionPolicyName": "management"
+ },
+ {
+ "packageName": "@azure/arm-policyinsights",
+ "projectFolder": "sdk/policyinsights/arm-policyinsights",
+ "versionPolicyName": "management"
}
]
}
\ No newline at end of file
diff --git a/sdk/policyinsights/arm-policyinsights/CHANGELOG.md b/sdk/policyinsights/arm-policyinsights/CHANGELOG.md
new file mode 100644
index 000000000000..e0f86e78c0be
--- /dev/null
+++ b/sdk/policyinsights/arm-policyinsights/CHANGELOG.md
@@ -0,0 +1,11 @@
+# Release History
+
+## 5.0.0-beta.1 (2022-01-05)
+
+The package of @azure/arm-policyinsights is using our next generation design principles since version 5.0.0-beta.1, which contains breaking changes.
+
+To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).
+
+To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide).
+
+To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
diff --git a/sdk/policyinsights/arm-policyinsights/LICENSE.txt b/sdk/policyinsights/arm-policyinsights/LICENSE
similarity index 96%
rename from sdk/policyinsights/arm-policyinsights/LICENSE.txt
rename to sdk/policyinsights/arm-policyinsights/LICENSE
index ea8fb1516028..5d1d36e0af80 100644
--- a/sdk/policyinsights/arm-policyinsights/LICENSE.txt
+++ b/sdk/policyinsights/arm-policyinsights/LICENSE
@@ -1,6 +1,6 @@
The MIT License (MIT)
-Copyright (c) 2020 Microsoft
+Copyright (c) 2022 Microsoft
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
+SOFTWARE.
\ No newline at end of file
diff --git a/sdk/policyinsights/arm-policyinsights/README.md b/sdk/policyinsights/arm-policyinsights/README.md
index 102d82856790..9dfc71891973 100644
--- a/sdk/policyinsights/arm-policyinsights/README.md
+++ b/sdk/policyinsights/arm-policyinsights/README.md
@@ -1,104 +1,98 @@
-## Azure PolicyInsightsClient SDK for JavaScript
+# Azure PolicyInsights client library for JavaScript
-This package contains an isomorphic SDK for PolicyInsightsClient.
+This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure PolicyInsights client.
+
+
+
+[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/policyinsights/arm-policyinsights) |
+[Package (NPM)](https://www.npmjs.com/package/@azure/arm-policyinsights) |
+[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-policyinsights?view=azure-node-preview) |
+[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
+
+## Getting started
### Currently supported environments
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
-- Latest versions of Safari, Chrome, Edge, and Firefox.
+- Latest versions of Safari, Chrome, Edge and Firefox.
+
+### Prerequisites
+
+- An [Azure subscription][azure_sub].
-### How to Install
+### Install the `@azure/arm-policyinsights` package
+
+Install the Azure PolicyInsights client library for JavaScript with `npm`:
```bash
npm install @azure/arm-policyinsights
```
-### How to use
+### Create and authenticate a `PolicyInsightsClient`
+
+To create a client object to access the Azure PolicyInsights API, you will need the `endpoint` of your Azure PolicyInsights resource and a `credential`. The Azure PolicyInsights client can use Azure Active Directory credentials to authenticate.
+You can find the endpoint for your Azure PolicyInsights resource in the [Azure Portal][azure_portal].
-#### nodejs - client creation and listForManagementGroup remediations as an example written in TypeScript.
+You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
-##### Install @azure/ms-rest-nodeauth
+To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
-- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`.
```bash
-npm install @azure/ms-rest-nodeauth@"^3.0.0"
+npm install @azure/identity
```
-##### Sample code
+You will also need to **register a new AAD application and grant access to Azure PolicyInsights** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
+Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.
+
+For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
-While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package
-```typescript
-const msRestNodeAuth = require("@azure/ms-rest-nodeauth");
+```javascript
const { PolicyInsightsClient } = require("@azure/arm-policyinsights");
-const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
-
-msRestNodeAuth.interactiveLogin().then((creds) => {
- const client = new PolicyInsightsClient(creds, subscriptionId);
- const managementGroupId = "testmanagementGroupId";
- const top = 1;
- const filter = "testfilter";
- client.remediations.listForManagementGroup(managementGroupId, top, filter).then((result) => {
- console.log("The result is:");
- console.log(result);
- });
-}).catch((err) => {
- console.error(err);
-});
+const { DefaultAzureCredential } = require("@azure/identity");
+const subscriptionId = "00000000-0000-0000-0000-000000000000";
+const client = new PolicyInsightsClient(new DefaultAzureCredential(), subscriptionId);
```
-#### browser - Authentication, client creation and listForManagementGroup remediations as an example written in JavaScript.
-##### Install @azure/ms-rest-browserauth
+### JavaScript Bundle
+To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
-```bash
-npm install @azure/ms-rest-browserauth
-```
+## Key concepts
-##### Sample code
-
-See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.
-
-- index.html
-```html
-
-
-
- @azure/arm-policyinsights sample
-
-
-
-
-
-
-
-
+### PolicyInsightsClient
+
+`PolicyInsightsClient` is the primary interface for developers using the Azure PolicyInsights client library. Explore the methods on this client object to understand the different features of the Azure PolicyInsights service that you can access.
+
+## Troubleshooting
+
+### Logging
+
+Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
+
+```javascript
+const { setLogLevel } = require("@azure/logger");
+setLogLevel("info");
```
+For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).
+
+## Next steps
+
+Please take a look at the [samples](https://github.com/Azure-Samples/azure-samples-js-management) directory for detailed examples on how to use this library.
+
+## Contributing
+
+If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.
+
## Related projects
-- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
+- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
+
+![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fpolicyinsights%2Farm-policyinsights%2FREADME.png)
-![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/policyinsights/arm-policyinsights/README.png)
+[azure_cli]: https://docs.microsoft.com/cli/azure
+[azure_sub]: https://azure.microsoft.com/free/
+[azure_sub]: https://azure.microsoft.com/free/
+[azure_portal]: https://portal.azure.com
+[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity
+[defaultazurecredential]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential
diff --git a/sdk/policyinsights/arm-policyinsights/_meta.json b/sdk/policyinsights/arm-policyinsights/_meta.json
new file mode 100644
index 000000000000..d0f98dfaae0b
--- /dev/null
+++ b/sdk/policyinsights/arm-policyinsights/_meta.json
@@ -0,0 +1,7 @@
+{
+ "commit": "4a2c1e8f277dd11a0da89d56eab8ff1a922d3a69",
+ "readme": "specification/policyinsights/resource-manager/readme.md",
+ "autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/policyinsights/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211130.1",
+ "repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
+ "use": "@autorest/typescript@6.0.0-alpha.16.20211130.1"
+}
\ No newline at end of file
diff --git a/sdk/policyinsights/arm-policyinsights/api-extractor.json b/sdk/policyinsights/arm-policyinsights/api-extractor.json
new file mode 100644
index 000000000000..23ec622292e9
--- /dev/null
+++ b/sdk/policyinsights/arm-policyinsights/api-extractor.json
@@ -0,0 +1,18 @@
+{
+ "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
+ "mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
+ "docModel": { "enabled": true },
+ "apiReport": { "enabled": true, "reportFolder": "./review" },
+ "dtsRollup": {
+ "enabled": true,
+ "untrimmedFilePath": "",
+ "publicTrimmedFilePath": "./types/arm-policyinsights.d.ts"
+ },
+ "messages": {
+ "tsdocMessageReporting": { "default": { "logLevel": "none" } },
+ "extractorMessageReporting": {
+ "ae-missing-release-tag": { "logLevel": "none" },
+ "ae-unresolved-link": { "logLevel": "none" }
+ }
+ }
+}
diff --git a/sdk/policyinsights/arm-policyinsights/package.json b/sdk/policyinsights/arm-policyinsights/package.json
index 2d1a254b3b14..73cc559473f8 100644
--- a/sdk/policyinsights/arm-policyinsights/package.json
+++ b/sdk/policyinsights/arm-policyinsights/package.json
@@ -1,57 +1,91 @@
{
"name": "@azure/arm-policyinsights",
+ "sdk-type": "mgmt",
"author": "Microsoft Corporation",
- "description": "PolicyInsightsClient Library with typescript type definitions for node.js and browser.",
- "version": "4.0.0",
+ "description": "A generated SDK for PolicyInsightsClient.",
+ "version": "5.0.0-beta.1",
+ "engines": { "node": ">=12.0.0" },
"dependencies": {
- "@azure/ms-rest-azure-js": "^2.0.1",
- "@azure/ms-rest-js": "^2.0.4",
- "tslib": "^1.10.0"
+ "@azure/core-lro": "^2.2.0",
+ "@azure/abort-controller": "^1.0.0",
+ "@azure/core-paging": "^1.2.0",
+ "@azure/core-client": "^1.0.0",
+ "@azure/core-auth": "^1.3.0",
+ "@azure/core-rest-pipeline": "^1.1.0",
+ "tslib": "^2.2.0"
},
- "keywords": [
- "node",
- "azure",
- "typescript",
- "browser",
- "isomorphic"
- ],
+ "keywords": ["node", "azure", "typescript", "browser", "isomorphic"],
"license": "MIT",
- "main": "./dist/arm-policyinsights.js",
- "module": "./esm/policyInsightsClient.js",
- "types": "./esm/policyInsightsClient.d.ts",
+ "main": "./dist/index.js",
+ "module": "./dist-esm/src/index.js",
+ "types": "./types/arm-policyinsights.d.ts",
"devDependencies": {
- "typescript": "^3.5.3",
- "rollup": "^1.18.0",
- "rollup-plugin-node-resolve": "^5.2.0",
+ "@microsoft/api-extractor": "^7.18.11",
+ "@rollup/plugin-commonjs": "11.0.2",
+ "@rollup/plugin-json": "^4.0.0",
+ "@rollup/plugin-multi-entry": "^3.0.0",
+ "@rollup/plugin-node-resolve": "^8.0.0",
+ "mkdirp": "^1.0.4",
+ "rollup": "^1.16.3",
"rollup-plugin-sourcemaps": "^0.4.2",
- "uglify-js": "^3.6.0"
+ "typescript": "~4.2.0",
+ "uglify-js": "^3.4.9",
+ "rimraf": "^3.0.0",
+ "@azure/identity": "^2.0.1",
+ "@azure-tools/test-recorder": "^1.0.0",
+ "mocha": "^7.1.1",
+ "cross-env": "^7.0.2"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/policyinsights/arm-policyinsights",
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
},
- "bugs": {
- "url": "https://github.com/Azure/azure-sdk-for-js/issues"
- },
+ "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": [
"dist/**/*.js",
"dist/**/*.js.map",
"dist/**/*.d.ts",
"dist/**/*.d.ts.map",
- "esm/**/*.js",
- "esm/**/*.js.map",
- "esm/**/*.d.ts",
- "esm/**/*.d.ts.map",
+ "dist-esm/**/*.js",
+ "dist-esm/**/*.js.map",
+ "dist-esm/**/*.d.ts",
+ "dist-esm/**/*.d.ts.map",
"src/**/*.ts",
"README.md",
+ "LICENSE",
"rollup.config.js",
- "tsconfig.json"
+ "tsconfig.json",
+ "review/*",
+ "CHANGELOG.md",
+ "types/*"
],
"scripts": {
- "build": "tsc && rollup -c rollup.config.js && npm run minify",
- "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-policyinsights.js.map'\" -o ./dist/arm-policyinsights.min.js ./dist/arm-policyinsights.js",
- "prepack": "npm install && npm run build"
+ "build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api",
+ "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
+ "prepack": "npm run build",
+ "pack": "npm pack 2>&1",
+ "extract-api": "api-extractor run --local",
+ "lint": "echo skipped",
+ "audit": "echo skipped",
+ "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
+ "build:node": "echo skipped",
+ "build:browser": "echo skipped",
+ "build:test": "echo skipped",
+ "build:samples": "echo skipped.",
+ "check-format": "echo skipped",
+ "execute:samples": "echo skipped",
+ "format": "echo skipped",
+ "test": "npm run integration-test",
+ "test:node": "echo skipped",
+ "test:browser": "echo skipped",
+ "unit-test": "npm run unit-test:node && npm run unit-test:browser",
+ "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
+ "unit-test:browser": "echo skipped",
+ "integration-test": "npm run integration-test:node && npm run integration-test:browser",
+ "integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
+ "integration-test:browser": "echo skipped",
+ "docs": "echo skipped"
},
"sideEffects": false,
"autoPublish": true
diff --git a/sdk/policyinsights/arm-policyinsights/review/arm-policyinsights.api.md b/sdk/policyinsights/arm-policyinsights/review/arm-policyinsights.api.md
new file mode 100644
index 000000000000..310e0ec4e0a9
--- /dev/null
+++ b/sdk/policyinsights/arm-policyinsights/review/arm-policyinsights.api.md
@@ -0,0 +1,1525 @@
+## API Report File for "@azure/arm-policyinsights"
+
+> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
+
+```ts
+
+import * as coreAuth from '@azure/core-auth';
+import * as coreClient from '@azure/core-client';
+import { PagedAsyncIterableIterator } from '@azure/core-paging';
+import { PollerLike } from '@azure/core-lro';
+import { PollOperationState } from '@azure/core-lro';
+
+// @public
+export type Attestation = Resource & {
+ readonly systemData?: SystemData;
+ policyAssignmentId: string;
+ policyDefinitionReferenceId?: string;
+ complianceState?: ComplianceState;
+ expiresOn?: Date;
+ owner?: string;
+ comments?: string;
+ evidence?: AttestationEvidence[];
+ readonly provisioningState?: string;
+ readonly lastComplianceStateChangeAt?: Date;
+};
+
+// @public
+export interface AttestationEvidence {
+ description?: string;
+ sourceUri?: string;
+}
+
+// @public
+export interface AttestationListResult {
+ readonly nextLink?: string;
+ readonly value?: Attestation[];
+}
+
+// @public
+export interface Attestations {
+ beginCreateOrUpdateAtResource(resourceId: string, attestationName: string, parameters: Attestation, options?: AttestationsCreateOrUpdateAtResourceOptionalParams): Promise, AttestationsCreateOrUpdateAtResourceResponse>>;
+ beginCreateOrUpdateAtResourceAndWait(resourceId: string, attestationName: string, parameters: Attestation, options?: AttestationsCreateOrUpdateAtResourceOptionalParams): Promise;
+ beginCreateOrUpdateAtResourceGroup(resourceGroupName: string, attestationName: string, parameters: Attestation, options?: AttestationsCreateOrUpdateAtResourceGroupOptionalParams): Promise, AttestationsCreateOrUpdateAtResourceGroupResponse>>;
+ beginCreateOrUpdateAtResourceGroupAndWait(resourceGroupName: string, attestationName: string, parameters: Attestation, options?: AttestationsCreateOrUpdateAtResourceGroupOptionalParams): Promise;
+ beginCreateOrUpdateAtSubscription(attestationName: string, parameters: Attestation, options?: AttestationsCreateOrUpdateAtSubscriptionOptionalParams): Promise, AttestationsCreateOrUpdateAtSubscriptionResponse>>;
+ beginCreateOrUpdateAtSubscriptionAndWait(attestationName: string, parameters: Attestation, options?: AttestationsCreateOrUpdateAtSubscriptionOptionalParams): Promise;
+ deleteAtResource(resourceId: string, attestationName: string, options?: AttestationsDeleteAtResourceOptionalParams): Promise;
+ deleteAtResourceGroup(resourceGroupName: string, attestationName: string, options?: AttestationsDeleteAtResourceGroupOptionalParams): Promise;
+ deleteAtSubscription(attestationName: string, options?: AttestationsDeleteAtSubscriptionOptionalParams): Promise;
+ getAtResource(resourceId: string, attestationName: string, options?: AttestationsGetAtResourceOptionalParams): Promise;
+ getAtResourceGroup(resourceGroupName: string, attestationName: string, options?: AttestationsGetAtResourceGroupOptionalParams): Promise;
+ getAtSubscription(attestationName: string, options?: AttestationsGetAtSubscriptionOptionalParams): Promise;
+ listForResource(resourceId: string, options?: AttestationsListForResourceOptionalParams): PagedAsyncIterableIterator;
+ listForResourceGroup(resourceGroupName: string, options?: AttestationsListForResourceGroupOptionalParams): PagedAsyncIterableIterator;
+ listForSubscription(options?: AttestationsListForSubscriptionOptionalParams): PagedAsyncIterableIterator;
+}
+
+// @public
+export interface AttestationsCreateOrUpdateAtResourceGroupOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export type AttestationsCreateOrUpdateAtResourceGroupResponse = Attestation;
+
+// @public
+export interface AttestationsCreateOrUpdateAtResourceOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export type AttestationsCreateOrUpdateAtResourceResponse = Attestation;
+
+// @public
+export interface AttestationsCreateOrUpdateAtSubscriptionOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export type AttestationsCreateOrUpdateAtSubscriptionResponse = Attestation;
+
+// @public
+export interface AttestationsDeleteAtResourceGroupOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export interface AttestationsDeleteAtResourceOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export interface AttestationsDeleteAtSubscriptionOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export interface AttestationsGetAtResourceGroupOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type AttestationsGetAtResourceGroupResponse = Attestation;
+
+// @public
+export interface AttestationsGetAtResourceOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type AttestationsGetAtResourceResponse = Attestation;
+
+// @public
+export interface AttestationsGetAtSubscriptionOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type AttestationsGetAtSubscriptionResponse = Attestation;
+
+// @public
+export interface AttestationsListForResourceGroupNextOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type AttestationsListForResourceGroupNextResponse = AttestationListResult;
+
+// @public
+export interface AttestationsListForResourceGroupOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type AttestationsListForResourceGroupResponse = AttestationListResult;
+
+// @public
+export interface AttestationsListForResourceNextOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type AttestationsListForResourceNextResponse = AttestationListResult;
+
+// @public
+export interface AttestationsListForResourceOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type AttestationsListForResourceResponse = AttestationListResult;
+
+// @public
+export interface AttestationsListForSubscriptionNextOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type AttestationsListForSubscriptionNextResponse = AttestationListResult;
+
+// @public
+export interface AttestationsListForSubscriptionOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type AttestationsListForSubscriptionResponse = AttestationListResult;
+
+// @public
+export interface CheckRestrictionsRequest {
+ pendingFields?: PendingField[];
+ resourceDetails: CheckRestrictionsResourceDetails;
+}
+
+// @public
+export interface CheckRestrictionsResourceDetails {
+ apiVersion?: string;
+ resourceContent: Record;
+ scope?: string;
+}
+
+// @public
+export interface CheckRestrictionsResult {
+ readonly contentEvaluationResult?: CheckRestrictionsResultContentEvaluationResult;
+ readonly fieldRestrictions?: FieldRestrictions[];
+}
+
+// @public
+export interface CheckRestrictionsResultContentEvaluationResult {
+ policyEvaluations?: PolicyEvaluationResult[];
+}
+
+// @public
+export interface ComplianceDetail {
+ complianceState?: string;
+ count?: number;
+}
+
+// @public
+export type ComplianceState = string;
+
+// @public
+export interface ComponentEventDetails {
+ [property: string]: any;
+ id?: string;
+ name?: string;
+ policyDefinitionAction?: string;
+ principalOid?: string;
+ tenantId?: string;
+ timestamp?: Date;
+ type?: string;
+}
+
+// @public
+export interface ComponentStateDetails {
+ [property: string]: any;
+ complianceState?: string;
+ id?: string;
+ name?: string;
+ timestamp?: Date;
+ type?: string;
+}
+
+// @public
+export type CreatedByType = string;
+
+// @public
+export interface ErrorDefinition {
+ readonly additionalInfo?: TypedErrorInfo[];
+ readonly code?: string;
+ readonly details?: ErrorDefinition[];
+ readonly message?: string;
+ readonly target?: string;
+}
+
+// @public
+export interface ErrorDefinitionAutoGenerated {
+ readonly additionalInfo?: TypedErrorInfo[];
+ readonly code?: string;
+ readonly details?: ErrorDefinitionAutoGenerated[];
+ readonly message?: string;
+ readonly target?: string;
+}
+
+// @public
+export interface ErrorDefinitionAutoGenerated2 {
+ readonly additionalInfo?: TypedErrorInfo[];
+ readonly code?: string;
+ readonly details?: ErrorDefinitionAutoGenerated2[];
+ readonly message?: string;
+ readonly target?: string;
+}
+
+// @public
+export interface ErrorResponse {
+ error?: ErrorDefinition;
+}
+
+// @public
+export interface ErrorResponseAutoGenerated {
+ error?: ErrorDefinitionAutoGenerated;
+}
+
+// @public
+export interface ErrorResponseAutoGenerated2 {
+ error?: ErrorDefinitionAutoGenerated2;
+}
+
+// @public
+export interface ExpressionEvaluationDetails {
+ expression?: string;
+ readonly expressionKind?: string;
+ expressionValue?: Record;
+ operator?: string;
+ path?: string;
+ result?: string;
+ targetValue?: Record;
+}
+
+// @public
+export interface FieldRestriction {
+ readonly defaultValue?: string;
+ readonly policy?: PolicyReference;
+ readonly result?: FieldRestrictionResult;
+ readonly values?: string[];
+}
+
+// @public
+export type FieldRestrictionResult = string;
+
+// @public
+export interface FieldRestrictions {
+ readonly field?: string;
+ restrictions?: FieldRestriction[];
+}
+
+// @public
+export interface IfNotExistsEvaluationDetails {
+ resourceId?: string;
+ totalResources?: number;
+}
+
+// @public
+export enum KnownComplianceState {
+ Compliant = "Compliant",
+ NonCompliant = "NonCompliant",
+ Unknown = "Unknown"
+}
+
+// @public
+export enum KnownCreatedByType {
+ // (undocumented)
+ Application = "Application",
+ // (undocumented)
+ Key = "Key",
+ // (undocumented)
+ ManagedIdentity = "ManagedIdentity",
+ // (undocumented)
+ User = "User"
+}
+
+// @public
+export enum KnownFieldRestrictionResult {
+ Deny = "Deny",
+ Removed = "Removed",
+ Required = "Required"
+}
+
+// @public
+export enum KnownPolicyStatesResource {
+ // (undocumented)
+ Default = "default",
+ // (undocumented)
+ Latest = "latest"
+}
+
+// @public
+export enum KnownResourceDiscoveryMode {
+ ExistingNonCompliant = "ExistingNonCompliant",
+ ReEvaluateCompliance = "ReEvaluateCompliance"
+}
+
+// @public
+export interface Operation {
+ display?: OperationDisplay;
+ name?: string;
+}
+
+// @public
+export interface OperationDisplay {
+ description?: string;
+ operation?: string;
+ provider?: string;
+ resource?: string;
+}
+
+// @public
+export interface Operations {
+ list(options?: OperationsListOptionalParams): Promise;
+}
+
+// @public
+export interface OperationsListOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type OperationsListResponse = OperationsListResults;
+
+// @public
+export interface OperationsListResults {
+ odataCount?: number;
+ value?: Operation[];
+}
+
+// @public
+export interface PendingField {
+ field: string;
+ values?: string[];
+}
+
+// @public
+export interface PolicyAssignmentSummary {
+ policyAssignmentId?: string;
+ policyDefinitions?: PolicyDefinitionSummary[];
+ policyGroups?: PolicyGroupSummary[];
+ policySetDefinitionId?: string;
+ results?: SummaryResults;
+}
+
+// @public
+export interface PolicyDefinitionSummary {
+ effect?: string;
+ policyDefinitionGroupNames?: string[];
+ policyDefinitionId?: string;
+ policyDefinitionReferenceId?: string;
+ results?: SummaryResults;
+}
+
+// @public
+export interface PolicyDetails {
+ readonly policyAssignmentDisplayName?: string;
+ readonly policyAssignmentId?: string;
+ readonly policyAssignmentScope?: string;
+ readonly policyDefinitionId?: string;
+ readonly policyDefinitionReferenceId?: string;
+ readonly policySetDefinitionId?: string;
+}
+
+// @public
+export interface PolicyEvaluationDetails {
+ evaluatedExpressions?: ExpressionEvaluationDetails[];
+ ifNotExistsDetails?: IfNotExistsEvaluationDetails;
+}
+
+// @public
+export interface PolicyEvaluationResult {
+ readonly evaluationDetails?: PolicyEvaluationDetails;
+ readonly evaluationResult?: string;
+ readonly policyInfo?: PolicyReference;
+}
+
+// @public
+export interface PolicyEvent {
+ [property: string]: any;
+ complianceState?: string;
+ components?: ComponentEventDetails[];
+ effectiveParameters?: string;
+ isCompliant?: boolean;
+ managementGroupIds?: string;
+ odataContext?: string;
+ odataId?: string;
+ policyAssignmentId?: string;
+ policyAssignmentName?: string;
+ policyAssignmentOwner?: string;
+ policyAssignmentParameters?: string;
+ policyAssignmentScope?: string;
+ policyDefinitionAction?: string;
+ policyDefinitionCategory?: string;
+ policyDefinitionId?: string;
+ policyDefinitionName?: string;
+ policyDefinitionReferenceId?: string;
+ policySetDefinitionCategory?: string;
+ policySetDefinitionId?: string;
+ policySetDefinitionName?: string;
+ policySetDefinitionOwner?: string;
+ policySetDefinitionParameters?: string;
+ principalOid?: string;
+ resourceGroup?: string;
+ resourceId?: string;
+ resourceLocation?: string;
+ resourceTags?: string;
+ resourceType?: string;
+ subscriptionId?: string;
+ tenantId?: string;
+ timestamp?: Date;
+}
+
+// @public
+export interface PolicyEvents {
+ listQueryResultsForManagementGroup(managementGroupName: string, options?: PolicyEventsListQueryResultsForManagementGroupOptionalParams): PagedAsyncIterableIterator;
+ listQueryResultsForPolicyDefinition(subscriptionId: string, policyDefinitionName: string, options?: PolicyEventsListQueryResultsForPolicyDefinitionOptionalParams): PagedAsyncIterableIterator;
+ listQueryResultsForPolicySetDefinition(subscriptionId: string, policySetDefinitionName: string, options?: PolicyEventsListQueryResultsForPolicySetDefinitionOptionalParams): PagedAsyncIterableIterator;
+ listQueryResultsForResource(resourceId: string, options?: PolicyEventsListQueryResultsForResourceOptionalParams): PagedAsyncIterableIterator;
+ listQueryResultsForResourceGroup(subscriptionId: string, resourceGroupName: string, options?: PolicyEventsListQueryResultsForResourceGroupOptionalParams): PagedAsyncIterableIterator;
+ listQueryResultsForResourceGroupLevelPolicyAssignment(subscriptionId: string, resourceGroupName: string, policyAssignmentName: string, options?: PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentOptionalParams): PagedAsyncIterableIterator;
+ listQueryResultsForSubscription(subscriptionId: string, options?: PolicyEventsListQueryResultsForSubscriptionOptionalParams): PagedAsyncIterableIterator;
+ listQueryResultsForSubscriptionLevelPolicyAssignment(subscriptionId: string, policyAssignmentName: string, options?: PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentOptionalParams): PagedAsyncIterableIterator;
+}
+
+// @public
+export interface PolicyEventsListQueryResultsForManagementGroupNextOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyEventsListQueryResultsForManagementGroupNextResponse = PolicyEventsQueryResults;
+
+// @public
+export interface PolicyEventsListQueryResultsForManagementGroupOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyEventsListQueryResultsForManagementGroupResponse = PolicyEventsQueryResults;
+
+// @public
+export interface PolicyEventsListQueryResultsForPolicyDefinitionNextOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyEventsListQueryResultsForPolicyDefinitionNextResponse = PolicyEventsQueryResults;
+
+// @public
+export interface PolicyEventsListQueryResultsForPolicyDefinitionOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyEventsListQueryResultsForPolicyDefinitionResponse = PolicyEventsQueryResults;
+
+// @public
+export interface PolicyEventsListQueryResultsForPolicySetDefinitionNextOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyEventsListQueryResultsForPolicySetDefinitionNextResponse = PolicyEventsQueryResults;
+
+// @public
+export interface PolicyEventsListQueryResultsForPolicySetDefinitionOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyEventsListQueryResultsForPolicySetDefinitionResponse = PolicyEventsQueryResults;
+
+// @public
+export interface PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentNextOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentNextResponse = PolicyEventsQueryResults;
+
+// @public
+export interface PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentResponse = PolicyEventsQueryResults;
+
+// @public
+export interface PolicyEventsListQueryResultsForResourceGroupNextOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyEventsListQueryResultsForResourceGroupNextResponse = PolicyEventsQueryResults;
+
+// @public
+export interface PolicyEventsListQueryResultsForResourceGroupOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyEventsListQueryResultsForResourceGroupResponse = PolicyEventsQueryResults;
+
+// @public
+export interface PolicyEventsListQueryResultsForResourceNextOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyEventsListQueryResultsForResourceNextResponse = PolicyEventsQueryResults;
+
+// @public
+export interface PolicyEventsListQueryResultsForResourceOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyEventsListQueryResultsForResourceResponse = PolicyEventsQueryResults;
+
+// @public
+export interface PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentNextOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentNextResponse = PolicyEventsQueryResults;
+
+// @public
+export interface PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentResponse = PolicyEventsQueryResults;
+
+// @public
+export interface PolicyEventsListQueryResultsForSubscriptionNextOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyEventsListQueryResultsForSubscriptionNextResponse = PolicyEventsQueryResults;
+
+// @public
+export interface PolicyEventsListQueryResultsForSubscriptionOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyEventsListQueryResultsForSubscriptionResponse = PolicyEventsQueryResults;
+
+// @public
+export interface PolicyEventsQueryResults {
+ odataContext?: string;
+ odataCount?: number;
+ odataNextLink?: string;
+ value?: PolicyEvent[];
+}
+
+// @public
+export interface PolicyGroupSummary {
+ policyGroupName?: string;
+ results?: SummaryResults;
+}
+
+// @public (undocumented)
+export class PolicyInsightsClient extends coreClient.ServiceClient {
+ // (undocumented)
+ $host: string;
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: PolicyInsightsClientOptionalParams);
+ // (undocumented)
+ attestations: Attestations;
+ // (undocumented)
+ operations: Operations;
+ // (undocumented)
+ policyEvents: PolicyEvents;
+ // (undocumented)
+ policyMetadataOperations: PolicyMetadataOperations;
+ // (undocumented)
+ policyRestrictions: PolicyRestrictions;
+ // (undocumented)
+ policyStates: PolicyStates;
+ // (undocumented)
+ policyTrackedResources: PolicyTrackedResources;
+ // (undocumented)
+ remediations: Remediations;
+ // (undocumented)
+ subscriptionId: string;
+}
+
+// @public
+export interface PolicyInsightsClientOptionalParams extends coreClient.ServiceClientOptions {
+ $host?: string;
+ endpoint?: string;
+}
+
+// @public
+export interface PolicyMetadata {
+ readonly additionalContentUrl?: string;
+ readonly category?: string;
+ readonly description?: string;
+ readonly id?: string;
+ readonly metadata?: Record;
+ readonly metadataId?: string;
+ readonly name?: string;
+ readonly owner?: string;
+ readonly requirements?: string;
+ readonly title?: string;
+ readonly type?: string;
+}
+
+// @public
+export interface PolicyMetadataCollection {
+ readonly nextLink?: string;
+ readonly value?: SlimPolicyMetadata[];
+}
+
+// @public
+export interface PolicyMetadataGetResourceOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type PolicyMetadataGetResourceResponse = PolicyMetadata;
+
+// @public
+export interface PolicyMetadataListNextOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyMetadataListNextResponse = PolicyMetadataCollection;
+
+// @public
+export interface PolicyMetadataListOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyMetadataListResponse = PolicyMetadataCollection;
+
+// @public
+export interface PolicyMetadataOperations {
+ getResource(resourceName: string, options?: PolicyMetadataGetResourceOptionalParams): Promise;
+ list(options?: PolicyMetadataListOptionalParams): PagedAsyncIterableIterator;
+}
+
+// @public
+export type PolicyMetadataProperties = PolicyMetadataSlimProperties & {
+ readonly description?: string;
+ readonly requirements?: string;
+};
+
+// @public
+export interface PolicyMetadataSlimProperties {
+ readonly additionalContentUrl?: string;
+ readonly category?: string;
+ readonly metadata?: Record;
+ readonly metadataId?: string;
+ readonly owner?: string;
+ readonly title?: string;
+}
+
+// @public
+export interface PolicyReference {
+ readonly policyAssignmentId?: string;
+ readonly policyDefinitionId?: string;
+ readonly policyDefinitionReferenceId?: string;
+ readonly policySetDefinitionId?: string;
+}
+
+// @public
+export interface PolicyRestrictions {
+ checkAtResourceGroupScope(resourceGroupName: string, parameters: CheckRestrictionsRequest, options?: PolicyRestrictionsCheckAtResourceGroupScopeOptionalParams): Promise;
+ checkAtSubscriptionScope(parameters: CheckRestrictionsRequest, options?: PolicyRestrictionsCheckAtSubscriptionScopeOptionalParams): Promise;
+}
+
+// @public
+export interface PolicyRestrictionsCheckAtResourceGroupScopeOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type PolicyRestrictionsCheckAtResourceGroupScopeResponse = CheckRestrictionsResult;
+
+// @public
+export interface PolicyRestrictionsCheckAtSubscriptionScopeOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type PolicyRestrictionsCheckAtSubscriptionScopeResponse = CheckRestrictionsResult;
+
+// @public
+export interface PolicyState {
+ [property: string]: any;
+ complianceState?: string;
+ components?: ComponentStateDetails[];
+ effectiveParameters?: string;
+ isCompliant?: boolean;
+ managementGroupIds?: string;
+ odataContext?: string;
+ odataId?: string;
+ policyAssignmentId?: string;
+ policyAssignmentName?: string;
+ policyAssignmentOwner?: string;
+ policyAssignmentParameters?: string;
+ policyAssignmentScope?: string;
+ readonly policyAssignmentVersion?: string;
+ policyDefinitionAction?: string;
+ policyDefinitionCategory?: string;
+ policyDefinitionGroupNames?: string[];
+ policyDefinitionId?: string;
+ policyDefinitionName?: string;
+ policyDefinitionReferenceId?: string;
+ readonly policyDefinitionVersion?: string;
+ policyEvaluationDetails?: PolicyEvaluationDetails;
+ policySetDefinitionCategory?: string;
+ policySetDefinitionId?: string;
+ policySetDefinitionName?: string;
+ policySetDefinitionOwner?: string;
+ policySetDefinitionParameters?: string;
+ readonly policySetDefinitionVersion?: string;
+ resourceGroup?: string;
+ resourceId?: string;
+ resourceLocation?: string;
+ resourceTags?: string;
+ resourceType?: string;
+ subscriptionId?: string;
+ timestamp?: Date;
+}
+
+// @public
+export interface PolicyStates {
+ beginTriggerResourceGroupEvaluation(subscriptionId: string, resourceGroupName: string, options?: PolicyStatesTriggerResourceGroupEvaluationOptionalParams): Promise, void>>;
+ beginTriggerResourceGroupEvaluationAndWait(subscriptionId: string, resourceGroupName: string, options?: PolicyStatesTriggerResourceGroupEvaluationOptionalParams): Promise;
+ beginTriggerSubscriptionEvaluation(subscriptionId: string, options?: PolicyStatesTriggerSubscriptionEvaluationOptionalParams): Promise, void>>;
+ beginTriggerSubscriptionEvaluationAndWait(subscriptionId: string, options?: PolicyStatesTriggerSubscriptionEvaluationOptionalParams): Promise;
+ listQueryResultsForManagementGroup(policyStatesResource: PolicyStatesResource, managementGroupName: string, options?: PolicyStatesListQueryResultsForManagementGroupOptionalParams): PagedAsyncIterableIterator;
+ listQueryResultsForPolicyDefinition(policyStatesResource: PolicyStatesResource, subscriptionId: string, policyDefinitionName: string, options?: PolicyStatesListQueryResultsForPolicyDefinitionOptionalParams): PagedAsyncIterableIterator;
+ listQueryResultsForPolicySetDefinition(policyStatesResource: PolicyStatesResource, subscriptionId: string, policySetDefinitionName: string, options?: PolicyStatesListQueryResultsForPolicySetDefinitionOptionalParams): PagedAsyncIterableIterator;
+ listQueryResultsForResource(policyStatesResource: PolicyStatesResource, resourceId: string, options?: PolicyStatesListQueryResultsForResourceOptionalParams): PagedAsyncIterableIterator;
+ listQueryResultsForResourceGroup(policyStatesResource: PolicyStatesResource, subscriptionId: string, resourceGroupName: string, options?: PolicyStatesListQueryResultsForResourceGroupOptionalParams): PagedAsyncIterableIterator;
+ listQueryResultsForResourceGroupLevelPolicyAssignment(policyStatesResource: PolicyStatesResource, subscriptionId: string, resourceGroupName: string, policyAssignmentName: string, options?: PolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentOptionalParams): PagedAsyncIterableIterator;
+ listQueryResultsForSubscription(policyStatesResource: PolicyStatesResource, subscriptionId: string, options?: PolicyStatesListQueryResultsForSubscriptionOptionalParams): PagedAsyncIterableIterator;
+ listQueryResultsForSubscriptionLevelPolicyAssignment(policyStatesResource: PolicyStatesResource, subscriptionId: string, policyAssignmentName: string, options?: PolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentOptionalParams): PagedAsyncIterableIterator;
+ summarizeForManagementGroup(managementGroupName: string, options?: PolicyStatesSummarizeForManagementGroupOptionalParams): Promise;
+ summarizeForPolicyDefinition(subscriptionId: string, policyDefinitionName: string, options?: PolicyStatesSummarizeForPolicyDefinitionOptionalParams): Promise;
+ summarizeForPolicySetDefinition(subscriptionId: string, policySetDefinitionName: string, options?: PolicyStatesSummarizeForPolicySetDefinitionOptionalParams): Promise;
+ summarizeForResource(resourceId: string, options?: PolicyStatesSummarizeForResourceOptionalParams): Promise;
+ summarizeForResourceGroup(subscriptionId: string, resourceGroupName: string, options?: PolicyStatesSummarizeForResourceGroupOptionalParams): Promise;
+ summarizeForResourceGroupLevelPolicyAssignment(subscriptionId: string, resourceGroupName: string, policyAssignmentName: string, options?: PolicyStatesSummarizeForResourceGroupLevelPolicyAssignmentOptionalParams): Promise;
+ summarizeForSubscription(subscriptionId: string, options?: PolicyStatesSummarizeForSubscriptionOptionalParams): Promise;
+ summarizeForSubscriptionLevelPolicyAssignment(subscriptionId: string, policyAssignmentName: string, options?: PolicyStatesSummarizeForSubscriptionLevelPolicyAssignmentOptionalParams): Promise;
+}
+
+// @public
+export interface PolicyStatesListQueryResultsForManagementGroupNextOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyStatesListQueryResultsForManagementGroupNextResponse = PolicyStatesQueryResults;
+
+// @public
+export interface PolicyStatesListQueryResultsForManagementGroupOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyStatesListQueryResultsForManagementGroupResponse = PolicyStatesQueryResults;
+
+// @public
+export interface PolicyStatesListQueryResultsForPolicyDefinitionNextOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyStatesListQueryResultsForPolicyDefinitionNextResponse = PolicyStatesQueryResults;
+
+// @public
+export interface PolicyStatesListQueryResultsForPolicyDefinitionOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyStatesListQueryResultsForPolicyDefinitionResponse = PolicyStatesQueryResults;
+
+// @public
+export interface PolicyStatesListQueryResultsForPolicySetDefinitionNextOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyStatesListQueryResultsForPolicySetDefinitionNextResponse = PolicyStatesQueryResults;
+
+// @public
+export interface PolicyStatesListQueryResultsForPolicySetDefinitionOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyStatesListQueryResultsForPolicySetDefinitionResponse = PolicyStatesQueryResults;
+
+// @public
+export interface PolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentNextOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentNextResponse = PolicyStatesQueryResults;
+
+// @public
+export interface PolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentResponse = PolicyStatesQueryResults;
+
+// @public
+export interface PolicyStatesListQueryResultsForResourceGroupNextOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyStatesListQueryResultsForResourceGroupNextResponse = PolicyStatesQueryResults;
+
+// @public
+export interface PolicyStatesListQueryResultsForResourceGroupOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyStatesListQueryResultsForResourceGroupResponse = PolicyStatesQueryResults;
+
+// @public
+export interface PolicyStatesListQueryResultsForResourceNextOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyStatesListQueryResultsForResourceNextResponse = PolicyStatesQueryResults;
+
+// @public
+export interface PolicyStatesListQueryResultsForResourceOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyStatesListQueryResultsForResourceResponse = PolicyStatesQueryResults;
+
+// @public
+export interface PolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentNextOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentNextResponse = PolicyStatesQueryResults;
+
+// @public
+export interface PolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentResponse = PolicyStatesQueryResults;
+
+// @public
+export interface PolicyStatesListQueryResultsForSubscriptionNextOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyStatesListQueryResultsForSubscriptionNextResponse = PolicyStatesQueryResults;
+
+// @public
+export interface PolicyStatesListQueryResultsForSubscriptionOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyStatesListQueryResultsForSubscriptionResponse = PolicyStatesQueryResults;
+
+// @public
+export interface PolicyStatesQueryResults {
+ odataContext?: string;
+ odataCount?: number;
+ odataNextLink?: string;
+ value?: PolicyState[];
+}
+
+// @public
+export type PolicyStatesResource = string;
+
+// @public
+export interface PolicyStatesSummarizeForManagementGroupOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyStatesSummarizeForManagementGroupResponse = SummarizeResults;
+
+// @public
+export interface PolicyStatesSummarizeForPolicyDefinitionOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyStatesSummarizeForPolicyDefinitionResponse = SummarizeResults;
+
+// @public
+export interface PolicyStatesSummarizeForPolicySetDefinitionOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyStatesSummarizeForPolicySetDefinitionResponse = SummarizeResults;
+
+// @public
+export interface PolicyStatesSummarizeForResourceGroupLevelPolicyAssignmentOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyStatesSummarizeForResourceGroupLevelPolicyAssignmentResponse = SummarizeResults;
+
+// @public
+export interface PolicyStatesSummarizeForResourceGroupOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyStatesSummarizeForResourceGroupResponse = SummarizeResults;
+
+// @public
+export interface PolicyStatesSummarizeForResourceOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyStatesSummarizeForResourceResponse = SummarizeResults;
+
+// @public
+export interface PolicyStatesSummarizeForSubscriptionLevelPolicyAssignmentOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyStatesSummarizeForSubscriptionLevelPolicyAssignmentResponse = SummarizeResults;
+
+// @public
+export interface PolicyStatesSummarizeForSubscriptionOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyStatesSummarizeForSubscriptionResponse = SummarizeResults;
+
+// @public
+export interface PolicyStatesTriggerResourceGroupEvaluationOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export interface PolicyStatesTriggerSubscriptionEvaluationOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export interface PolicyTrackedResource {
+ readonly createdBy?: TrackedResourceModificationDetails;
+ readonly lastModifiedBy?: TrackedResourceModificationDetails;
+ readonly lastUpdateUtc?: Date;
+ readonly policyDetails?: PolicyDetails;
+ readonly trackedResourceId?: string;
+}
+
+// @public
+export interface PolicyTrackedResources {
+ listQueryResultsForManagementGroup(managementGroupName: string, options?: PolicyTrackedResourcesListQueryResultsForManagementGroupOptionalParams): PagedAsyncIterableIterator;
+ listQueryResultsForResource(resourceId: string, options?: PolicyTrackedResourcesListQueryResultsForResourceOptionalParams): PagedAsyncIterableIterator;
+ listQueryResultsForResourceGroup(resourceGroupName: string, options?: PolicyTrackedResourcesListQueryResultsForResourceGroupOptionalParams): PagedAsyncIterableIterator;
+ listQueryResultsForSubscription(options?: PolicyTrackedResourcesListQueryResultsForSubscriptionOptionalParams): PagedAsyncIterableIterator;
+}
+
+// @public
+export interface PolicyTrackedResourcesListQueryResultsForManagementGroupNextOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyTrackedResourcesListQueryResultsForManagementGroupNextResponse = PolicyTrackedResourcesQueryResults;
+
+// @public
+export interface PolicyTrackedResourcesListQueryResultsForManagementGroupOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyTrackedResourcesListQueryResultsForManagementGroupResponse = PolicyTrackedResourcesQueryResults;
+
+// @public
+export interface PolicyTrackedResourcesListQueryResultsForResourceGroupNextOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyTrackedResourcesListQueryResultsForResourceGroupNextResponse = PolicyTrackedResourcesQueryResults;
+
+// @public
+export interface PolicyTrackedResourcesListQueryResultsForResourceGroupOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyTrackedResourcesListQueryResultsForResourceGroupResponse = PolicyTrackedResourcesQueryResults;
+
+// @public
+export interface PolicyTrackedResourcesListQueryResultsForResourceNextOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyTrackedResourcesListQueryResultsForResourceNextResponse = PolicyTrackedResourcesQueryResults;
+
+// @public
+export interface PolicyTrackedResourcesListQueryResultsForResourceOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyTrackedResourcesListQueryResultsForResourceResponse = PolicyTrackedResourcesQueryResults;
+
+// @public
+export interface PolicyTrackedResourcesListQueryResultsForSubscriptionNextOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyTrackedResourcesListQueryResultsForSubscriptionNextResponse = PolicyTrackedResourcesQueryResults;
+
+// @public
+export interface PolicyTrackedResourcesListQueryResultsForSubscriptionOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type PolicyTrackedResourcesListQueryResultsForSubscriptionResponse = PolicyTrackedResourcesQueryResults;
+
+// @public
+export interface PolicyTrackedResourcesQueryResults {
+ readonly nextLink?: string;
+ readonly value?: PolicyTrackedResource[];
+}
+
+// @public
+export interface QueryFailure {
+ error?: QueryFailureError;
+}
+
+// @public
+export interface QueryFailureError {
+ readonly code?: string;
+ readonly message?: string;
+}
+
+// @public
+export interface QueryOptions {
+ apply?: string;
+ expand?: string;
+ filter?: string;
+ from?: Date;
+ orderBy?: string;
+ select?: string;
+ skipToken?: string;
+ to?: Date;
+ top?: number;
+}
+
+// @public
+export interface Remediation {
+ readonly correlationId?: string;
+ readonly createdOn?: Date;
+ readonly deploymentStatus?: RemediationDeploymentSummary;
+ failureThreshold?: RemediationPropertiesFailureThreshold;
+ filters?: RemediationFilters;
+ readonly id?: string;
+ readonly lastUpdatedOn?: Date;
+ readonly name?: string;
+ parallelDeployments?: number;
+ policyAssignmentId?: string;
+ policyDefinitionReferenceId?: string;
+ readonly provisioningState?: string;
+ resourceCount?: number;
+ resourceDiscoveryMode?: ResourceDiscoveryMode;
+ readonly statusMessage?: string;
+ readonly systemData?: SystemData;
+ readonly type?: string;
+}
+
+// @public
+export interface RemediationDeployment {
+ readonly createdOn?: Date;
+ readonly deploymentId?: string;
+ readonly error?: ErrorDefinition;
+ readonly lastUpdatedOn?: Date;
+ readonly remediatedResourceId?: string;
+ readonly resourceLocation?: string;
+ readonly status?: string;
+}
+
+// @public
+export interface RemediationDeploymentsListResult {
+ readonly nextLink?: string;
+ readonly value?: RemediationDeployment[];
+}
+
+// @public
+export interface RemediationDeploymentSummary {
+ readonly failedDeployments?: number;
+ readonly successfulDeployments?: number;
+ readonly totalDeployments?: number;
+}
+
+// @public
+export interface RemediationFilters {
+ locations?: string[];
+}
+
+// @public
+export interface RemediationListResult {
+ readonly nextLink?: string;
+ readonly value?: Remediation[];
+}
+
+// @public
+export interface RemediationPropertiesFailureThreshold {
+ percentage?: number;
+}
+
+// @public
+export interface Remediations {
+ cancelAtManagementGroup(managementGroupId: string, remediationName: string, options?: RemediationsCancelAtManagementGroupOptionalParams): Promise;
+ cancelAtResource(resourceId: string, remediationName: string, options?: RemediationsCancelAtResourceOptionalParams): Promise;
+ cancelAtResourceGroup(resourceGroupName: string, remediationName: string, options?: RemediationsCancelAtResourceGroupOptionalParams): Promise;
+ cancelAtSubscription(remediationName: string, options?: RemediationsCancelAtSubscriptionOptionalParams): Promise;
+ createOrUpdateAtManagementGroup(managementGroupId: string, remediationName: string, parameters: Remediation, options?: RemediationsCreateOrUpdateAtManagementGroupOptionalParams): Promise;
+ createOrUpdateAtResource(resourceId: string, remediationName: string, parameters: Remediation, options?: RemediationsCreateOrUpdateAtResourceOptionalParams): Promise;
+ createOrUpdateAtResourceGroup(resourceGroupName: string, remediationName: string, parameters: Remediation, options?: RemediationsCreateOrUpdateAtResourceGroupOptionalParams): Promise;
+ createOrUpdateAtSubscription(remediationName: string, parameters: Remediation, options?: RemediationsCreateOrUpdateAtSubscriptionOptionalParams): Promise;
+ deleteAtManagementGroup(managementGroupId: string, remediationName: string, options?: RemediationsDeleteAtManagementGroupOptionalParams): Promise;
+ deleteAtResource(resourceId: string, remediationName: string, options?: RemediationsDeleteAtResourceOptionalParams): Promise;
+ deleteAtResourceGroup(resourceGroupName: string, remediationName: string, options?: RemediationsDeleteAtResourceGroupOptionalParams): Promise;
+ deleteAtSubscription(remediationName: string, options?: RemediationsDeleteAtSubscriptionOptionalParams): Promise;
+ getAtManagementGroup(managementGroupId: string, remediationName: string, options?: RemediationsGetAtManagementGroupOptionalParams): Promise;
+ getAtResource(resourceId: string, remediationName: string, options?: RemediationsGetAtResourceOptionalParams): Promise;
+ getAtResourceGroup(resourceGroupName: string, remediationName: string, options?: RemediationsGetAtResourceGroupOptionalParams): Promise;
+ getAtSubscription(remediationName: string, options?: RemediationsGetAtSubscriptionOptionalParams): Promise;
+ listDeploymentsAtManagementGroup(managementGroupId: string, remediationName: string, options?: RemediationsListDeploymentsAtManagementGroupOptionalParams): PagedAsyncIterableIterator;
+ listDeploymentsAtResource(resourceId: string, remediationName: string, options?: RemediationsListDeploymentsAtResourceOptionalParams): PagedAsyncIterableIterator;
+ listDeploymentsAtResourceGroup(resourceGroupName: string, remediationName: string, options?: RemediationsListDeploymentsAtResourceGroupOptionalParams): PagedAsyncIterableIterator;
+ listDeploymentsAtSubscription(remediationName: string, options?: RemediationsListDeploymentsAtSubscriptionOptionalParams): PagedAsyncIterableIterator;
+ listForManagementGroup(managementGroupId: string, options?: RemediationsListForManagementGroupOptionalParams): PagedAsyncIterableIterator;
+ listForResource(resourceId: string, options?: RemediationsListForResourceOptionalParams): PagedAsyncIterableIterator;
+ listForResourceGroup(resourceGroupName: string, options?: RemediationsListForResourceGroupOptionalParams): PagedAsyncIterableIterator;
+ listForSubscription(options?: RemediationsListForSubscriptionOptionalParams): PagedAsyncIterableIterator;
+}
+
+// @public
+export interface RemediationsCancelAtManagementGroupOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type RemediationsCancelAtManagementGroupResponse = Remediation;
+
+// @public
+export interface RemediationsCancelAtResourceGroupOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type RemediationsCancelAtResourceGroupResponse = Remediation;
+
+// @public
+export interface RemediationsCancelAtResourceOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type RemediationsCancelAtResourceResponse = Remediation;
+
+// @public
+export interface RemediationsCancelAtSubscriptionOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type RemediationsCancelAtSubscriptionResponse = Remediation;
+
+// @public
+export interface RemediationsCreateOrUpdateAtManagementGroupOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type RemediationsCreateOrUpdateAtManagementGroupResponse = Remediation;
+
+// @public
+export interface RemediationsCreateOrUpdateAtResourceGroupOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type RemediationsCreateOrUpdateAtResourceGroupResponse = Remediation;
+
+// @public
+export interface RemediationsCreateOrUpdateAtResourceOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type RemediationsCreateOrUpdateAtResourceResponse = Remediation;
+
+// @public
+export interface RemediationsCreateOrUpdateAtSubscriptionOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type RemediationsCreateOrUpdateAtSubscriptionResponse = Remediation;
+
+// @public
+export interface RemediationsDeleteAtManagementGroupOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type RemediationsDeleteAtManagementGroupResponse = Remediation;
+
+// @public
+export interface RemediationsDeleteAtResourceGroupOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type RemediationsDeleteAtResourceGroupResponse = Remediation;
+
+// @public
+export interface RemediationsDeleteAtResourceOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type RemediationsDeleteAtResourceResponse = Remediation;
+
+// @public
+export interface RemediationsDeleteAtSubscriptionOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type RemediationsDeleteAtSubscriptionResponse = Remediation;
+
+// @public
+export interface RemediationsGetAtManagementGroupOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type RemediationsGetAtManagementGroupResponse = Remediation;
+
+// @public
+export interface RemediationsGetAtResourceGroupOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type RemediationsGetAtResourceGroupResponse = Remediation;
+
+// @public
+export interface RemediationsGetAtResourceOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type RemediationsGetAtResourceResponse = Remediation;
+
+// @public
+export interface RemediationsGetAtSubscriptionOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type RemediationsGetAtSubscriptionResponse = Remediation;
+
+// @public
+export interface RemediationsListDeploymentsAtManagementGroupNextOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type RemediationsListDeploymentsAtManagementGroupNextResponse = RemediationDeploymentsListResult;
+
+// @public
+export interface RemediationsListDeploymentsAtManagementGroupOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type RemediationsListDeploymentsAtManagementGroupResponse = RemediationDeploymentsListResult;
+
+// @public
+export interface RemediationsListDeploymentsAtResourceGroupNextOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type RemediationsListDeploymentsAtResourceGroupNextResponse = RemediationDeploymentsListResult;
+
+// @public
+export interface RemediationsListDeploymentsAtResourceGroupOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type RemediationsListDeploymentsAtResourceGroupResponse = RemediationDeploymentsListResult;
+
+// @public
+export interface RemediationsListDeploymentsAtResourceNextOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type RemediationsListDeploymentsAtResourceNextResponse = RemediationDeploymentsListResult;
+
+// @public
+export interface RemediationsListDeploymentsAtResourceOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type RemediationsListDeploymentsAtResourceResponse = RemediationDeploymentsListResult;
+
+// @public
+export interface RemediationsListDeploymentsAtSubscriptionNextOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type RemediationsListDeploymentsAtSubscriptionNextResponse = RemediationDeploymentsListResult;
+
+// @public
+export interface RemediationsListDeploymentsAtSubscriptionOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type RemediationsListDeploymentsAtSubscriptionResponse = RemediationDeploymentsListResult;
+
+// @public
+export interface RemediationsListForManagementGroupNextOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type RemediationsListForManagementGroupNextResponse = RemediationListResult;
+
+// @public
+export interface RemediationsListForManagementGroupOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type RemediationsListForManagementGroupResponse = RemediationListResult;
+
+// @public
+export interface RemediationsListForResourceGroupNextOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type RemediationsListForResourceGroupNextResponse = RemediationListResult;
+
+// @public
+export interface RemediationsListForResourceGroupOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type RemediationsListForResourceGroupResponse = RemediationListResult;
+
+// @public
+export interface RemediationsListForResourceNextOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type RemediationsListForResourceNextResponse = RemediationListResult;
+
+// @public
+export interface RemediationsListForResourceOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type RemediationsListForResourceResponse = RemediationListResult;
+
+// @public
+export interface RemediationsListForSubscriptionNextOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type RemediationsListForSubscriptionNextResponse = RemediationListResult;
+
+// @public
+export interface RemediationsListForSubscriptionOptionalParams extends coreClient.OperationOptions {
+ queryOptions?: QueryOptions;
+}
+
+// @public
+export type RemediationsListForSubscriptionResponse = RemediationListResult;
+
+// @public
+export interface Resource {
+ readonly id?: string;
+ readonly name?: string;
+ readonly type?: string;
+}
+
+// @public
+export type ResourceDiscoveryMode = string;
+
+// @public
+export interface SlimPolicyMetadata {
+ readonly additionalContentUrl?: string;
+ readonly category?: string;
+ readonly id?: string;
+ readonly metadata?: Record;
+ readonly metadataId?: string;
+ readonly name?: string;
+ readonly owner?: string;
+ readonly title?: string;
+ readonly type?: string;
+}
+
+// @public
+export interface SummarizeResults {
+ odataContext?: string;
+ odataCount?: number;
+ value?: Summary[];
+}
+
+// @public
+export interface Summary {
+ odataContext?: string;
+ odataId?: string;
+ policyAssignments?: PolicyAssignmentSummary[];
+ results?: SummaryResults;
+}
+
+// @public
+export interface SummaryResults {
+ nonCompliantPolicies?: number;
+ nonCompliantResources?: number;
+ policyDetails?: ComplianceDetail[];
+ policyGroupDetails?: ComplianceDetail[];
+ queryResultsUri?: string;
+ resourceDetails?: ComplianceDetail[];
+}
+
+// @public
+export interface SystemData {
+ createdAt?: Date;
+ createdBy?: string;
+ createdByType?: CreatedByType;
+ lastModifiedAt?: Date;
+ lastModifiedBy?: string;
+ lastModifiedByType?: CreatedByType;
+}
+
+// @public
+export interface TrackedResourceModificationDetails {
+ readonly deploymentId?: string;
+ readonly deploymentTime?: Date;
+ readonly policyDetails?: PolicyDetails;
+}
+
+// @public
+export interface TypedErrorInfo {
+ readonly info?: any;
+ readonly type?: string;
+}
+
+// (No @packageDocumentation comment for this package)
+
+```
diff --git a/sdk/policyinsights/arm-policyinsights/rollup.config.js b/sdk/policyinsights/arm-policyinsights/rollup.config.js
index 7ff1dc95eeb3..9be1955eb7f1 100644
--- a/sdk/policyinsights/arm-policyinsights/rollup.config.js
+++ b/sdk/policyinsights/arm-policyinsights/rollup.config.js
@@ -1,37 +1,188 @@
-import rollup from "rollup";
-import nodeResolve from "rollup-plugin-node-resolve";
-import sourcemaps from "rollup-plugin-sourcemaps";
-
-/**
- * @type {rollup.RollupFileOptions}
- */
-const config = {
- input: "./esm/policyInsightsClient.js",
- external: [
- "@azure/ms-rest-js",
- "@azure/ms-rest-azure-js"
- ],
- output: {
- file: "./dist/arm-policyinsights.js",
- format: "umd",
- name: "Azure.ArmPolicyinsights",
- sourcemap: true,
- globals: {
- "@azure/ms-rest-js": "msRest",
- "@azure/ms-rest-azure-js": "msRestAzure"
- },
- banner: `/*
+/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */`
- },
- plugins: [
- nodeResolve({ mainFields: ['module', 'main'] }),
- sourcemaps()
- ]
+ */
+
+import nodeResolve from "@rollup/plugin-node-resolve";
+import cjs from "@rollup/plugin-commonjs";
+import sourcemaps from "rollup-plugin-sourcemaps";
+import multiEntry from "@rollup/plugin-multi-entry";
+import json from "@rollup/plugin-json";
+
+import nodeBuiltins from "builtin-modules";
+
+/**
+ * Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api.
+ *
+ * NOTE: this manual configuration is only needed because OpenTelemetry uses an
+ * __exportStar downleveled helper function to declare its exports which confuses
+ * rollup's automatic discovery mechanism.
+ *
+ * @returns an object reference that can be `...`'d into your cjs() configuration.
+ */
+export function openTelemetryCommonJs() {
+ const namedExports = {};
+
+ for (const key of [
+ "@opentelemetry/api",
+ "@azure/core-tracing/node_modules/@opentelemetry/api"
+ ]) {
+ namedExports[key] = [
+ "SpanKind",
+ "TraceFlags",
+ "getSpan",
+ "setSpan",
+ "SpanStatusCode",
+ "getSpanContext",
+ "setSpanContext"
+ ];
+ }
+
+ const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"];
+
+ for (const version of releasedOpenTelemetryVersions) {
+ namedExports[
+ // working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path.
+ `../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js`
+ ] = [
+ "SpanKind",
+ "TraceFlags",
+ "getSpan",
+ "setSpan",
+ "StatusCode",
+ "CanonicalCode",
+ "getSpanContext",
+ "setSpanContext"
+ ];
+ }
+
+ return namedExports;
+}
+
+// #region Warning Handler
+
+/**
+ * A function that can determine whether a rollupwarning should be ignored. If
+ * the function returns `true`, then the warning will not be displayed.
+ */
+
+function ignoreNiseSinonEvalWarnings(warning) {
+ return (
+ warning.code === "EVAL" &&
+ warning.id &&
+ (warning.id.includes("node_modules/nise") ||
+ warning.id.includes("node_modules/sinon")) === true
+ );
+}
+
+function ignoreChaiCircularDependencyWarnings(warning) {
+ return (
+ warning.code === "CIRCULAR_DEPENDENCY" &&
+ warning.importer && warning.importer.includes("node_modules/chai") === true
+ );
+}
+
+const warningInhibitors = [
+ ignoreChaiCircularDependencyWarnings,
+ ignoreNiseSinonEvalWarnings
+];
+
+/**
+ * Construct a warning handler for the shared rollup configuration
+ * that ignores certain warnings that are not relevant to testing.
+ */
+function makeOnWarnForTesting() {
+ return (warning, warn) => {
+ // If every inhibitor returns false (i.e. no inhibitors), then show the warning
+ if (warningInhibitors.every((inhib) => !inhib(warning))) {
+ warn(warning);
+ }
+ };
+}
+
+// #endregion
+
+function makeBrowserTestConfig() {
+ const config = {
+ input: {
+ include: ["dist-esm/test/**/*.spec.js"],
+ exclude: ["dist-esm/test/**/node/**"]
+ },
+ output: {
+ file: `dist-test/index.browser.js`,
+ format: "umd",
+ sourcemap: true
+ },
+ preserveSymlinks: false,
+ plugins: [
+ multiEntry({ exports: false }),
+ nodeResolve({
+ mainFields: ["module", "browser"]
+ }),
+ cjs({
+ namedExports: {
+ // Chai's strange internal architecture makes it impossible to statically
+ // analyze its exports.
+ chai: [
+ "version",
+ "use",
+ "util",
+ "config",
+ "expect",
+ "should",
+ "assert"
+ ],
+ ...openTelemetryCommonJs()
+ }
+ }),
+ json(),
+ sourcemaps()
+ //viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
+ ],
+ onwarn: makeOnWarnForTesting(),
+ // Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0,
+ // rollup started respecting the "sideEffects" field in package.json. Since
+ // our package.json sets "sideEffects=false", this also applies to test
+ // code, which causes all tests to be removed by tree-shaking.
+ treeshake: false
+ };
+
+ return config;
+}
+
+const defaultConfigurationOptions = {
+ disableBrowserBundle: false
};
-export default config;
+export function makeConfig(pkg, options) {
+ options = {
+ ...defaultConfigurationOptions,
+ ...(options || {})
+ };
+
+ const baseConfig = {
+ // Use the package's module field if it has one
+ input: pkg["module"] || "dist-esm/src/index.js",
+ external: [
+ ...nodeBuiltins,
+ ...Object.keys(pkg.dependencies),
+ ...Object.keys(pkg.devDependencies)
+ ],
+ output: { file: "dist/index.js", format: "cjs", sourcemap: true },
+ preserveSymlinks: false,
+ plugins: [sourcemaps(), nodeResolve(), cjs()]
+ };
+
+ const config = [baseConfig];
+
+ if (!options.disableBrowserBundle) {
+ config.push(makeBrowserTestConfig());
+ }
+
+ return config;
+}
+
+export default makeConfig(require("./package.json"));
diff --git a/sdk/policyinsights/arm-policyinsights/src/models/operationsMappers.ts b/sdk/policyinsights/arm-policyinsights/src/index.ts
similarity index 57%
rename from sdk/policyinsights/arm-policyinsights/src/models/operationsMappers.ts
rename to sdk/policyinsights/arm-policyinsights/src/index.ts
index 6ffbd6a5e379..21498560cbc9 100644
--- a/sdk/policyinsights/arm-policyinsights/src/models/operationsMappers.ts
+++ b/sdk/policyinsights/arm-policyinsights/src/index.ts
@@ -6,10 +6,7 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-export {
- Operation,
- OperationDisplay,
- OperationsListResults,
- QueryFailure,
- QueryFailureError
-} from "../models/mappers";
+///
+export * from "./models";
+export { PolicyInsightsClient } from "./policyInsightsClient";
+export * from "./operationsInterfaces";
diff --git a/sdk/policyinsights/arm-policyinsights/src/lroImpl.ts b/sdk/policyinsights/arm-policyinsights/src/lroImpl.ts
new file mode 100644
index 000000000000..518d5f053b4e
--- /dev/null
+++ b/sdk/policyinsights/arm-policyinsights/src/lroImpl.ts
@@ -0,0 +1,34 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+import { LongRunningOperation, LroResponse } from "@azure/core-lro";
+
+export class LroImpl implements LongRunningOperation {
+ constructor(
+ private sendOperationFn: (args: any, spec: any) => Promise>,
+ private args: Record,
+ private spec: {
+ readonly requestBody?: unknown;
+ readonly path?: string;
+ readonly httpMethod: string;
+ } & Record,
+ public requestPath: string = spec.path!,
+ public requestMethod: string = spec.httpMethod
+ ) {}
+ public async sendInitialRequest(): Promise> {
+ return this.sendOperationFn(this.args, this.spec);
+ }
+ public async sendPollRequest(path: string): Promise> {
+ const { requestBody, ...restSpec } = this.spec;
+ return this.sendOperationFn(this.args, {
+ ...restSpec,
+ path,
+ httpMethod: "GET"
+ });
+ }
+}
diff --git a/sdk/policyinsights/arm-policyinsights/src/models/index.ts b/sdk/policyinsights/arm-policyinsights/src/models/index.ts
index 57d1668e10b9..a7ca5bf300e9 100644
--- a/sdk/policyinsights/arm-policyinsights/src/models/index.ts
+++ b/sdk/policyinsights/arm-policyinsights/src/models/index.ts
@@ -6,3258 +6,2221 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
-import * as msRest from "@azure/ms-rest-js";
+import * as coreClient from "@azure/core-client";
-export { BaseResource, CloudError };
+/** Query results. */
+export interface PolicyTrackedResourcesQueryResults {
+ /**
+ * Query results.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly value?: PolicyTrackedResource[];
+ /**
+ * The URL to get the next set of results.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly nextLink?: string;
+}
-/**
- * The policy details.
- */
+/** Policy tracked resource record. */
+export interface PolicyTrackedResource {
+ /**
+ * The ID of the policy tracked resource.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly trackedResourceId?: string;
+ /**
+ * The details of the policy that require the tracked resource.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly policyDetails?: PolicyDetails;
+ /**
+ * The details of the policy triggered deployment that created the tracked resource.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly createdBy?: TrackedResourceModificationDetails;
+ /**
+ * The details of the policy triggered deployment that modified the tracked resource.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly lastModifiedBy?: TrackedResourceModificationDetails;
+ /**
+ * Timestamp of the last update to the tracked resource.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly lastUpdateUtc?: Date;
+}
+
+/** The policy details. */
export interface PolicyDetails {
/**
* The ID of the policy definition.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly policyDefinitionId?: string;
/**
* The ID of the policy assignment.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly policyAssignmentId?: string;
/**
* The display name of the policy assignment.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly policyAssignmentDisplayName?: string;
/**
* The scope of the policy assignment.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly policyAssignmentScope?: string;
/**
* The ID of the policy set definition.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly policySetDefinitionId?: string;
/**
* The policy definition reference ID within the policy set definition.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly policyDefinitionReferenceId?: string;
}
-/**
- * The details of the policy triggered deployment that created or modified the tracked resource.
- */
+/** The details of the policy triggered deployment that created or modified the tracked resource. */
export interface TrackedResourceModificationDetails {
/**
* The details of the policy that created or modified the tracked resource.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly policyDetails?: PolicyDetails;
/**
* The ID of the deployment that created or modified the tracked resource.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly deploymentId?: string;
/**
* Timestamp of the deployment that created or modified the tracked resource.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly deploymentTime?: Date;
}
-/**
- * Policy tracked resource record.
- */
-export interface PolicyTrackedResource {
- /**
- * The ID of the policy tracked resource.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly trackedResourceId?: string;
- /**
- * The details of the policy that require the tracked resource.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly policyDetails?: PolicyDetails;
- /**
- * The details of the policy triggered deployment that created the tracked resource.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly createdBy?: TrackedResourceModificationDetails;
- /**
- * The details of the policy triggered deployment that modified the tracked resource.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly lastModifiedBy?: TrackedResourceModificationDetails;
- /**
- * Timestamp of the last update to the tracked resource.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly lastUpdateUtc?: Date;
+/** Error response. */
+export interface QueryFailure {
+ /** Error definition. */
+ error?: QueryFailureError;
}
-/**
- * Error definition.
- */
+/** Error definition. */
export interface QueryFailureError {
/**
* Service specific error code which serves as the substatus for the HTTP error code.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly code?: string;
/**
* Description of the error.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly message?: string;
}
-/**
- * Error response.
- */
-export interface QueryFailure {
+/** List of deployments for a remediation. */
+export interface RemediationDeploymentsListResult {
/**
- * Error definition.
+ * Array of deployments for the remediation.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- error?: QueryFailureError;
-}
-
-/**
- * The filters that will be applied to determine which resources to remediate.
- */
-export interface RemediationFilters {
+ readonly value?: RemediationDeployment[];
/**
- * The resource locations that will be remediated.
+ * The URL to get the next set of results.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- locations?: string[];
+ readonly nextLink?: string;
}
-/**
- * The deployment status summary for all deployments created by the remediation.
- */
-export interface RemediationDeploymentSummary {
- /**
- * The number of deployments required by the remediation.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly totalDeployments?: number;
- /**
- * The number of deployments required by the remediation that have succeeded.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly successfulDeployments?: number;
+/** Details of a single deployment created by the remediation. */
+export interface RemediationDeployment {
/**
- * The number of deployments required by the remediation that have failed.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * Resource ID of the resource that is being remediated by the deployment.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- readonly failedDeployments?: number;
-}
-
-/**
- * The remediation definition.
- */
-export interface Remediation extends BaseResource {
+ readonly remediatedResourceId?: string;
/**
- * The resource ID of the policy assignment that should be remediated.
+ * Resource ID of the template deployment that will remediate the resource.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- policyAssignmentId?: string;
+ readonly deploymentId?: string;
/**
- * The policy definition reference ID of the individual definition that should be remediated.
- * Required when the policy assignment being remediated assigns a policy set definition.
+ * Status of the remediation deployment.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- policyDefinitionReferenceId?: string;
+ readonly status?: string;
/**
- * The way resources to remediate are discovered. Defaults to ExistingNonCompliant if not
- * specified. Possible values include: 'ExistingNonCompliant', 'ReEvaluateCompliance'
+ * Location of the resource that is being remediated.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- resourceDiscoveryMode?: ResourceDiscoveryMode;
+ readonly resourceLocation?: string;
/**
- * The status of the remediation.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * Error encountered while remediated the resource.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- readonly provisioningState?: string;
+ readonly error?: ErrorDefinition;
/**
* The time at which the remediation was created.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly createdOn?: Date;
/**
- * The time at which the remediation was last updated.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * The time at which the remediation deployment was last updated.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly lastUpdatedOn?: Date;
- /**
- * The filters that will be applied to determine which resources to remediate.
- */
- filters?: RemediationFilters;
- /**
- * The deployment status summary for all deployments created by the remediation.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly deploymentStatus?: RemediationDeploymentSummary;
- /**
- * The ID of the remediation.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly id?: string;
- /**
- * The type of the remediation.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly type?: string;
- /**
- * The name of the remediation.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly name?: string;
-}
-
-/**
- * Scenario specific error details.
- */
-export interface TypedErrorInfo {
- /**
- * The type of included error details.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly type?: string;
- /**
- * The scenario specific error details.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly info?: any;
}
-/**
- * Error definition.
- */
+/** Error definition. */
export interface ErrorDefinition {
/**
* Service specific error code which serves as the substatus for the HTTP error code.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly code?: string;
/**
* Description of the error.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly message?: string;
/**
* The target of the error.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly target?: string;
/**
* Internal error details.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly details?: ErrorDefinition[];
/**
* Additional scenario specific error details.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly additionalInfo?: TypedErrorInfo[];
}
-/**
- * Details of a single deployment created by the remediation.
- */
-export interface RemediationDeployment {
- /**
- * Resource ID of the resource that is being remediated by the deployment.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly remediatedResourceId?: string;
- /**
- * Resource ID of the template deployment that will remediate the resource.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly deploymentId?: string;
- /**
- * Status of the remediation deployment.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly status?: string;
- /**
- * Location of the resource that is being remediated.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly resourceLocation?: string;
- /**
- * Error encountered while remediated the resource.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly error?: ErrorDefinition;
+/** Scenario specific error details. */
+export interface TypedErrorInfo {
/**
- * The time at which the remediation was created.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * The type of included error details.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- readonly createdOn?: Date;
+ readonly type?: string;
/**
- * The time at which the remediation deployment was last updated.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * The scenario specific error details.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- readonly lastUpdatedOn?: Date;
+ readonly info?: any;
}
-/**
- * Error response.
- */
+/** Error response. */
export interface ErrorResponse {
- /**
- * The error details.
- */
+ /** The error details. */
error?: ErrorDefinition;
}
-/**
- * Component event details.
- */
-export interface ComponentEventDetails {
+/** The remediation definition. */
+export interface Remediation {
/**
- * Component Id.
+ * The ID of the remediation.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- id?: string;
+ readonly id?: string;
/**
- * Component type.
+ * The type of the remediation.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- type?: string;
+ readonly type?: string;
/**
- * Component name.
+ * The name of the remediation.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- name?: string;
+ readonly name?: string;
/**
- * Timestamp for component policy event record.
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- timestamp?: Date;
+ readonly systemData?: SystemData;
+ /** The resource ID of the policy assignment that should be remediated. */
+ policyAssignmentId?: string;
+ /** The policy definition reference ID of the individual definition that should be remediated. Required when the policy assignment being remediated assigns a policy set definition. */
+ policyDefinitionReferenceId?: string;
+ /** The way resources to remediate are discovered. Defaults to ExistingNonCompliant if not specified. */
+ resourceDiscoveryMode?: ResourceDiscoveryMode;
/**
- * Tenant ID for the policy event record.
+ * The status of the remediation.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- tenantId?: string;
+ readonly provisioningState?: string;
/**
- * Principal object ID for the user who initiated the resource component operation that triggered
- * the policy event.
+ * The time at which the remediation was created.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- principalOid?: string;
+ readonly createdOn?: Date;
/**
- * Policy definition action, i.e. effect.
+ * The time at which the remediation was last updated.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- policyDefinitionAction?: string;
+ readonly lastUpdatedOn?: Date;
+ /** The filters that will be applied to determine which resources to remediate. */
+ filters?: RemediationFilters;
/**
- * Describes unknown properties. The value of an unknown property can be of "any" type.
+ * The deployment status summary for all deployments created by the remediation.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- [property: string]: any;
-}
-
-/**
- * Policy event record.
- */
-export interface PolicyEvent {
+ readonly deploymentStatus?: RemediationDeploymentSummary;
/**
- * OData entity ID; always set to null since policy event records do not have an entity ID.
+ * The remediation status message. Provides additional details regarding the state of the remediation.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- odataid?: string;
+ readonly statusMessage?: string;
/**
- * OData context string; used by OData clients to resolve type information based on metadata.
+ * The remediation correlation Id. Can be used to find events related to the remediation in the activity log.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- odatacontext?: string;
+ readonly correlationId?: string;
+ /** Determines the max number of resources that can be remediated by the remediation job. If not provided, the default resource count is used. */
+ resourceCount?: number;
+ /** Determines how many resources to remediate at any given time. Can be used to increase or reduce the pace of the remediation. If not provided, the default parallel deployments value is used. */
+ parallelDeployments?: number;
+ /** The remediation failure threshold settings */
+ failureThreshold?: RemediationPropertiesFailureThreshold;
+}
+
+/** The filters that will be applied to determine which resources to remediate. */
+export interface RemediationFilters {
+ /** The resource locations that will be remediated. */
+ locations?: string[];
+}
+
+/** The deployment status summary for all deployments created by the remediation. */
+export interface RemediationDeploymentSummary {
/**
- * Timestamp for the policy event record.
+ * The number of deployments required by the remediation.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- timestamp?: Date;
+ readonly totalDeployments?: number;
/**
- * Resource ID.
+ * The number of deployments required by the remediation that have succeeded.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- resourceId?: string;
+ readonly successfulDeployments?: number;
/**
- * Policy assignment ID.
+ * The number of deployments required by the remediation that have failed.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- policyAssignmentId?: string;
+ readonly failedDeployments?: number;
+}
+
+/** The remediation failure threshold settings */
+export interface RemediationPropertiesFailureThreshold {
+ /** A number between 0.0 to 1.0 representing the percentage failure threshold. The remediation will fail if the percentage of failed remediation operations (i.e. failed deployments) exceeds this threshold. */
+ percentage?: number;
+}
+
+/** Metadata pertaining to creation and last modification of the resource. */
+export interface SystemData {
+ /** The identity that created the resource. */
+ createdBy?: string;
+ /** The type of identity that created the resource. */
+ createdByType?: CreatedByType;
+ /** The timestamp of resource creation (UTC). */
+ createdAt?: Date;
+ /** The identity that last modified the resource. */
+ lastModifiedBy?: string;
+ /** The type of identity that last modified the resource. */
+ lastModifiedByType?: CreatedByType;
+ /** The timestamp of resource last modification (UTC) */
+ lastModifiedAt?: Date;
+}
+
+/** List of remediations. */
+export interface RemediationListResult {
/**
- * Policy definition ID.
+ * Array of remediation definitions.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- policyDefinitionId?: string;
+ readonly value?: Remediation[];
/**
- * Effective parameters for the policy assignment.
+ * The URL to get the next set of results.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
+ readonly nextLink?: string;
+}
+
+/** Query results. */
+export interface PolicyEventsQueryResults {
+ /** OData context string; used by OData clients to resolve type information based on metadata. */
+ odataContext?: string;
+ /** OData entity count; represents the number of policy event records returned. */
+ odataCount?: number;
+ /** Odata next link; URL to get the next set of results. */
+ odataNextLink?: string;
+ /** Query results. */
+ value?: PolicyEvent[];
+}
+
+/** Policy event record. */
+export interface PolicyEvent {
+ /** Describes unknown properties. The value of an unknown property can be of "any" type. */
+ [property: string]: any;
+ /** OData entity ID; always set to null since policy event records do not have an entity ID. */
+ odataId?: string;
+ /** OData context string; used by OData clients to resolve type information based on metadata. */
+ odataContext?: string;
+ /** Timestamp for the policy event record. */
+ timestamp?: Date;
+ /** Resource ID. */
+ resourceId?: string;
+ /** Policy assignment ID. */
+ policyAssignmentId?: string;
+ /** Policy definition ID. */
+ policyDefinitionId?: string;
+ /** Effective parameters for the policy assignment. */
effectiveParameters?: string;
- /**
- * Flag which states whether the resource is compliant against the policy assignment it was
- * evaluated against.
- */
+ /** Flag which states whether the resource is compliant against the policy assignment it was evaluated against. */
isCompliant?: boolean;
- /**
- * Subscription ID.
- */
+ /** Subscription ID. */
subscriptionId?: string;
- /**
- * Resource type.
- */
+ /** Resource type. */
resourceType?: string;
- /**
- * Resource location.
- */
+ /** Resource location. */
resourceLocation?: string;
- /**
- * Resource group name.
- */
+ /** Resource group name. */
resourceGroup?: string;
- /**
- * List of resource tags.
- */
+ /** List of resource tags. */
resourceTags?: string;
- /**
- * Policy assignment name.
- */
+ /** Policy assignment name. */
policyAssignmentName?: string;
- /**
- * Policy assignment owner.
- */
+ /** Policy assignment owner. */
policyAssignmentOwner?: string;
- /**
- * Policy assignment parameters.
- */
+ /** Policy assignment parameters. */
policyAssignmentParameters?: string;
- /**
- * Policy assignment scope.
- */
+ /** Policy assignment scope. */
policyAssignmentScope?: string;
- /**
- * Policy definition name.
- */
+ /** Policy definition name. */
policyDefinitionName?: string;
- /**
- * Policy definition action, i.e. effect.
- */
+ /** Policy definition action, i.e. effect. */
policyDefinitionAction?: string;
- /**
- * Policy definition category.
- */
+ /** Policy definition category. */
policyDefinitionCategory?: string;
- /**
- * Policy set definition ID, if the policy assignment is for a policy set.
- */
+ /** Policy set definition ID, if the policy assignment is for a policy set. */
policySetDefinitionId?: string;
- /**
- * Policy set definition name, if the policy assignment is for a policy set.
- */
+ /** Policy set definition name, if the policy assignment is for a policy set. */
policySetDefinitionName?: string;
- /**
- * Policy set definition owner, if the policy assignment is for a policy set.
- */
+ /** Policy set definition owner, if the policy assignment is for a policy set. */
policySetDefinitionOwner?: string;
- /**
- * Policy set definition category, if the policy assignment is for a policy set.
- */
+ /** Policy set definition category, if the policy assignment is for a policy set. */
policySetDefinitionCategory?: string;
- /**
- * Policy set definition parameters, if the policy assignment is for a policy set.
- */
+ /** Policy set definition parameters, if the policy assignment is for a policy set. */
policySetDefinitionParameters?: string;
- /**
- * Comma separated list of management group IDs, which represent the hierarchy of the management
- * groups the resource is under.
- */
+ /** Comma separated list of management group IDs, which represent the hierarchy of the management groups the resource is under. */
managementGroupIds?: string;
- /**
- * Reference ID for the policy definition inside the policy set, if the policy assignment is for
- * a policy set.
- */
+ /** Reference ID for the policy definition inside the policy set, if the policy assignment is for a policy set. */
policyDefinitionReferenceId?: string;
- /**
- * Compliance state of the resource.
- */
+ /** Compliance state of the resource. */
complianceState?: string;
- /**
- * Tenant ID for the policy event record.
- */
+ /** Tenant ID for the policy event record. */
tenantId?: string;
- /**
- * Principal object ID for the user who initiated the resource operation that triggered the
- * policy event.
- */
+ /** Principal object ID for the user who initiated the resource operation that triggered the policy event. */
principalOid?: string;
- /**
- * Components events records populated only when URL contains $expand=components clause.
- */
+ /** Components events records populated only when URL contains $expand=components clause. */
components?: ComponentEventDetails[];
- /**
- * Describes unknown properties. The value of an unknown property can be of "any" type.
- */
- [property: string]: any;
-}
-
-/**
- * Evaluation details of policy language expressions.
- */
-export interface ExpressionEvaluationDetails {
- /**
- * Evaluation result.
- */
- result?: string;
- /**
- * Expression evaluated.
- */
- expression?: string;
- /**
- * Property path if the expression is a field or an alias.
- */
- path?: string;
- /**
- * Value of the expression.
- */
- expressionValue?: any;
- /**
- * Target value to be compared with the expression value.
- */
- targetValue?: any;
- /**
- * Operator to compare the expression value and the target value.
- */
- operator?: string;
-}
-
-/**
- * Evaluation details of IfNotExists effect.
- */
-export interface IfNotExistsEvaluationDetails {
- /**
- * ID of the last evaluated resource for IfNotExists effect.
- */
- resourceId?: string;
- /**
- * Total number of resources to which the existence condition is applicable.
- */
- totalResources?: number;
-}
-
-/**
- * Policy evaluation details.
- */
-export interface PolicyEvaluationDetails {
- /**
- * Details of the evaluated expressions.
- */
- evaluatedExpressions?: ExpressionEvaluationDetails[];
- /**
- * Evaluation details of IfNotExists effect.
- */
- ifNotExistsDetails?: IfNotExistsEvaluationDetails;
}
-/**
- * Component state details.
- */
-export interface ComponentStateDetails {
- /**
- * Component Id.
- */
+/** Component event details. */
+export interface ComponentEventDetails {
+ /** Describes unknown properties. The value of an unknown property can be of "any" type. */
+ [property: string]: any;
+ /** Component Id. */
id?: string;
- /**
- * Component type.
- */
+ /** Component type. */
type?: string;
- /**
- * Component name.
- */
+ /** Component name. */
name?: string;
- /**
- * Component compliance evaluation timestamp.
- */
+ /** Timestamp for component policy event record. */
timestamp?: Date;
- /**
- * Component compliance state.
- */
- complianceState?: string;
- /**
- * Describes unknown properties. The value of an unknown property can be of "any" type.
- */
- [property: string]: any;
+ /** Tenant ID for the policy event record. */
+ tenantId?: string;
+ /** Principal object ID for the user who initiated the resource component operation that triggered the policy event. */
+ principalOid?: string;
+ /** Policy definition action, i.e. effect. */
+ policyDefinitionAction?: string;
}
-/**
- * Policy state record.
- */
+/** Query results. */
+export interface PolicyStatesQueryResults {
+ /** OData context string; used by OData clients to resolve type information based on metadata. */
+ odataContext?: string;
+ /** OData entity count; represents the number of policy state records returned. */
+ odataCount?: number;
+ /** Odata next link; URL to get the next set of results. */
+ odataNextLink?: string;
+ /** Query results. */
+ value?: PolicyState[];
+}
+
+/** Policy state record. */
export interface PolicyState {
- /**
- * OData entity ID; always set to null since policy state records do not have an entity ID.
- */
- odataid?: string;
- /**
- * OData context string; used by OData clients to resolve type information based on metadata.
- */
- odatacontext?: string;
- /**
- * Timestamp for the policy state record.
- */
+ /** Describes unknown properties. The value of an unknown property can be of "any" type. */
+ [property: string]: any;
+ /** OData entity ID; always set to null since policy state records do not have an entity ID. */
+ odataId?: string;
+ /** OData context string; used by OData clients to resolve type information based on metadata. */
+ odataContext?: string;
+ /** Timestamp for the policy state record. */
timestamp?: Date;
- /**
- * Resource ID.
- */
+ /** Resource ID. */
resourceId?: string;
- /**
- * Policy assignment ID.
- */
+ /** Policy assignment ID. */
policyAssignmentId?: string;
- /**
- * Policy definition ID.
- */
+ /** Policy definition ID. */
policyDefinitionId?: string;
- /**
- * Effective parameters for the policy assignment.
- */
+ /** Effective parameters for the policy assignment. */
effectiveParameters?: string;
- /**
- * Flag which states whether the resource is compliant against the policy assignment it was
- * evaluated against. This property is deprecated; please use ComplianceState instead.
- */
+ /** Flag which states whether the resource is compliant against the policy assignment it was evaluated against. This property is deprecated; please use ComplianceState instead. */
isCompliant?: boolean;
- /**
- * Subscription ID.
- */
+ /** Subscription ID. */
subscriptionId?: string;
- /**
- * Resource type.
- */
+ /** Resource type. */
resourceType?: string;
- /**
- * Resource location.
- */
+ /** Resource location. */
resourceLocation?: string;
- /**
- * Resource group name.
- */
+ /** Resource group name. */
resourceGroup?: string;
- /**
- * List of resource tags.
- */
+ /** List of resource tags. */
resourceTags?: string;
- /**
- * Policy assignment name.
- */
+ /** Policy assignment name. */
policyAssignmentName?: string;
- /**
- * Policy assignment owner.
- */
+ /** Policy assignment owner. */
policyAssignmentOwner?: string;
- /**
- * Policy assignment parameters.
- */
+ /** Policy assignment parameters. */
policyAssignmentParameters?: string;
- /**
- * Policy assignment scope.
- */
+ /** Policy assignment scope. */
policyAssignmentScope?: string;
- /**
- * Policy definition name.
- */
+ /** Policy definition name. */
policyDefinitionName?: string;
- /**
- * Policy definition action, i.e. effect.
- */
+ /** Policy definition action, i.e. effect. */
policyDefinitionAction?: string;
- /**
- * Policy definition category.
- */
+ /** Policy definition category. */
policyDefinitionCategory?: string;
- /**
- * Policy set definition ID, if the policy assignment is for a policy set.
- */
+ /** Policy set definition ID, if the policy assignment is for a policy set. */
policySetDefinitionId?: string;
- /**
- * Policy set definition name, if the policy assignment is for a policy set.
- */
+ /** Policy set definition name, if the policy assignment is for a policy set. */
policySetDefinitionName?: string;
- /**
- * Policy set definition owner, if the policy assignment is for a policy set.
- */
+ /** Policy set definition owner, if the policy assignment is for a policy set. */
policySetDefinitionOwner?: string;
- /**
- * Policy set definition category, if the policy assignment is for a policy set.
- */
+ /** Policy set definition category, if the policy assignment is for a policy set. */
policySetDefinitionCategory?: string;
- /**
- * Policy set definition parameters, if the policy assignment is for a policy set.
- */
+ /** Policy set definition parameters, if the policy assignment is for a policy set. */
policySetDefinitionParameters?: string;
- /**
- * Comma separated list of management group IDs, which represent the hierarchy of the management
- * groups the resource is under.
- */
+ /** Comma separated list of management group IDs, which represent the hierarchy of the management groups the resource is under. */
managementGroupIds?: string;
- /**
- * Reference ID for the policy definition inside the policy set, if the policy assignment is for
- * a policy set.
- */
+ /** Reference ID for the policy definition inside the policy set, if the policy assignment is for a policy set. */
policyDefinitionReferenceId?: string;
- /**
- * Compliance state of the resource.
- */
+ /** Compliance state of the resource. */
complianceState?: string;
- /**
- * Policy evaluation details.
- */
+ /** Policy evaluation details. */
policyEvaluationDetails?: PolicyEvaluationDetails;
- /**
- * Policy definition group names.
- */
+ /** Policy definition group names. */
policyDefinitionGroupNames?: string[];
- /**
- * Components state compliance records populated only when URL contains $expand=components
- * clause.
- */
+ /** Components state compliance records populated only when URL contains $expand=components clause. */
components?: ComponentStateDetails[];
/**
* Evaluated policy definition version.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly policyDefinitionVersion?: string;
/**
* Evaluated policy set definition version.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly policySetDefinitionVersion?: string;
/**
* Evaluated policy assignment version.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly policyAssignmentVersion?: string;
- /**
- * Describes unknown properties. The value of an unknown property can be of "any" type.
- */
- [property: string]: any;
}
-/**
- * The compliance state rollup.
- */
-export interface ComplianceDetail {
+/** Policy evaluation details. */
+export interface PolicyEvaluationDetails {
+ /** Details of the evaluated expressions. */
+ evaluatedExpressions?: ExpressionEvaluationDetails[];
+ /** Evaluation details of IfNotExists effect. */
+ ifNotExistsDetails?: IfNotExistsEvaluationDetails;
+}
+
+/** Evaluation details of policy language expressions. */
+export interface ExpressionEvaluationDetails {
+ /** Evaluation result. */
+ result?: string;
+ /** Expression evaluated. */
+ expression?: string;
/**
- * The compliance state.
+ * The kind of expression that was evaluated.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
+ readonly expressionKind?: string;
+ /** Property path if the expression is a field or an alias. */
+ path?: string;
+ /** Value of the expression. */
+ expressionValue?: Record;
+ /** Target value to be compared with the expression value. */
+ targetValue?: Record;
+ /** Operator to compare the expression value and the target value. */
+ operator?: string;
+}
+
+/** Evaluation details of IfNotExists effect. */
+export interface IfNotExistsEvaluationDetails {
+ /** ID of the last evaluated resource for IfNotExists effect. */
+ resourceId?: string;
+ /** Total number of resources to which the existence condition is applicable. */
+ totalResources?: number;
+}
+
+/** Component state details. */
+export interface ComponentStateDetails {
+ /** Describes unknown properties. The value of an unknown property can be of "any" type. */
+ [property: string]: any;
+ /** Component Id. */
+ id?: string;
+ /** Component type. */
+ type?: string;
+ /** Component name. */
+ name?: string;
+ /** Component compliance evaluation timestamp. */
+ timestamp?: Date;
+ /** Component compliance state. */
complianceState?: string;
- /**
- * Summarized count value for this compliance state.
- */
- count?: number;
}
-/**
- * Compliance summary on a particular summary level.
- */
+/** Summarize action results. */
+export interface SummarizeResults {
+ /** OData context string; used by OData clients to resolve type information based on metadata. */
+ odataContext?: string;
+ /** OData entity count; represents the number of summaries returned; always set to 1. */
+ odataCount?: number;
+ /** Summarize action results. */
+ value?: Summary[];
+}
+
+/** Summary results. */
+export interface Summary {
+ /** OData entity ID; always set to null since summaries do not have an entity ID. */
+ odataId?: string;
+ /** OData context string; used by OData clients to resolve type information based on metadata. */
+ odataContext?: string;
+ /** Compliance summary for all policy assignments. */
+ results?: SummaryResults;
+ /** Policy assignments summary. */
+ policyAssignments?: PolicyAssignmentSummary[];
+}
+
+/** Compliance summary on a particular summary level. */
export interface SummaryResults {
- /**
- * HTTP POST URI for queryResults action on Microsoft.PolicyInsights to retrieve raw results for
- * the compliance summary. This property will not be available by default in future API versions,
- * but could be queried explicitly.
- */
+ /** HTTP POST URI for queryResults action on Microsoft.PolicyInsights to retrieve raw results for the compliance summary. This property will not be available by default in future API versions, but could be queried explicitly. */
queryResultsUri?: string;
- /**
- * Number of non-compliant resources.
- */
+ /** Number of non-compliant resources. */
nonCompliantResources?: number;
- /**
- * Number of non-compliant policies.
- */
+ /** Number of non-compliant policies. */
nonCompliantPolicies?: number;
- /**
- * The resources summary at this level.
- */
+ /** The resources summary at this level. */
resourceDetails?: ComplianceDetail[];
- /**
- * The policy artifact summary at this level. For query scope level, it represents policy
- * assignment summary. For policy assignment level, it represents policy definitions summary.
- */
+ /** The policy artifact summary at this level. For query scope level, it represents policy assignment summary. For policy assignment level, it represents policy definitions summary. */
policyDetails?: ComplianceDetail[];
- /**
- * The policy definition group summary at this level.
- */
+ /** The policy definition group summary at this level. */
policyGroupDetails?: ComplianceDetail[];
}
-/**
- * Policy definition summary.
- */
+/** The compliance state rollup. */
+export interface ComplianceDetail {
+ /** The compliance state. */
+ complianceState?: string;
+ /** Summarized count value for this compliance state. */
+ count?: number;
+}
+
+/** Policy assignment summary. */
+export interface PolicyAssignmentSummary {
+ /** Policy assignment ID. */
+ policyAssignmentId?: string;
+ /** Policy set definition ID, if the policy assignment is for a policy set. */
+ policySetDefinitionId?: string;
+ /** Compliance summary for the policy assignment. */
+ results?: SummaryResults;
+ /** Policy definitions summary. */
+ policyDefinitions?: PolicyDefinitionSummary[];
+ /** Policy definition group summary. */
+ policyGroups?: PolicyGroupSummary[];
+}
+
+/** Policy definition summary. */
export interface PolicyDefinitionSummary {
- /**
- * Policy definition ID.
- */
+ /** Policy definition ID. */
policyDefinitionId?: string;
- /**
- * Policy definition reference ID.
- */
+ /** Policy definition reference ID. */
policyDefinitionReferenceId?: string;
- /**
- * Policy definition group names.
- */
+ /** Policy definition group names. */
policyDefinitionGroupNames?: string[];
- /**
- * Policy effect, i.e. policy definition action.
- */
+ /** Policy effect, i.e. policy definition action. */
effect?: string;
- /**
- * Compliance summary for the policy definition.
- */
+ /** Compliance summary for the policy definition. */
results?: SummaryResults;
}
-/**
- * Policy definition group summary.
- */
+/** Policy definition group summary. */
export interface PolicyGroupSummary {
- /**
- * Policy group name.
- */
+ /** Policy group name. */
policyGroupName?: string;
- /**
- * Compliance summary for the policy definition group.
- */
- results?: SummaryResults;
-}
-
-/**
- * Policy assignment summary.
- */
-export interface PolicyAssignmentSummary {
- /**
- * Policy assignment ID.
- */
- policyAssignmentId?: string;
- /**
- * Policy set definition ID, if the policy assignment is for a policy set.
- */
- policySetDefinitionId?: string;
- /**
- * Compliance summary for the policy assignment.
- */
+ /** Compliance summary for the policy definition group. */
results?: SummaryResults;
- /**
- * Policy definitions summary.
- */
- policyDefinitions?: PolicyDefinitionSummary[];
- /**
- * Policy definition group summary.
- */
- policyGroups?: PolicyGroupSummary[];
}
-/**
- * Summary results.
- */
-export interface Summary {
- /**
- * OData entity ID; always set to null since summaries do not have an entity ID.
- */
- odataid?: string;
- /**
- * OData context string; used by OData clients to resolve type information based on metadata.
- */
- odatacontext?: string;
- /**
- * Compliance summary for all policy assignments.
- */
- results?: SummaryResults;
- /**
- * Policy assignments summary.
- */
- policyAssignments?: PolicyAssignmentSummary[];
+/** List of available operations. */
+export interface OperationsListResults {
+ /** OData entity count; represents the number of operations returned. */
+ odataCount?: number;
+ /** List of available operations. */
+ value?: Operation[];
}
-/**
- * Summarize action results.
- */
-export interface SummarizeResults {
- /**
- * OData context string; used by OData clients to resolve type information based on metadata.
- */
- odatacontext?: string;
- /**
- * OData entity count; represents the number of summaries returned; always set to 1.
- */
- odatacount?: number;
- /**
- * Summarize action results.
- */
- value?: Summary[];
+/** Operation definition. */
+export interface Operation {
+ /** Operation name. */
+ name?: string;
+ /** Display metadata associated with the operation. */
+ display?: OperationDisplay;
}
-/**
- * Display metadata associated with the operation.
- */
+/** Display metadata associated with the operation. */
export interface OperationDisplay {
- /**
- * Resource provider name.
- */
+ /** Resource provider name. */
provider?: string;
- /**
- * Resource name on which the operation is performed.
- */
+ /** Resource name on which the operation is performed. */
resource?: string;
- /**
- * Operation name.
- */
+ /** Operation name. */
operation?: string;
- /**
- * Operation description.
- */
+ /** Operation description. */
description?: string;
}
-/**
- * Operation definition.
- */
-export interface Operation {
- /**
- * Operation name.
- */
- name?: string;
+/** Policy metadata resource definition. */
+export interface PolicyMetadata {
/**
- * Display metadata associated with the operation.
+ * The ID of the policy metadata.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- display?: OperationDisplay;
-}
-
-/**
- * List of available operations.
- */
-export interface OperationsListResults {
+ readonly id?: string;
/**
- * OData entity count; represents the number of operations returned.
+ * The type of the policy metadata.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- odatacount?: number;
+ readonly type?: string;
/**
- * List of available operations.
+ * The name of the policy metadata.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- value?: Operation[];
-}
-
-/**
- * Policy metadata resource definition.
- */
-export interface PolicyMetadata {
+ readonly name?: string;
/**
* The policy metadata identifier.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly metadataId?: string;
/**
* The category of the policy metadata.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly category?: string;
/**
* The title of the policy metadata.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly title?: string;
/**
* The owner of the policy metadata.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly owner?: string;
/**
* Url for getting additional content about the resource metadata.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly additionalContentUrl?: string;
/**
* Additional metadata.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- readonly metadata?: any;
+ readonly metadata?: Record;
/**
* The description of the policy metadata.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly description?: string;
/**
* The requirements of the policy metadata.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly requirements?: string;
- /**
- * The ID of the policy metadata.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly id?: string;
- /**
- * The type of the policy metadata.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly type?: string;
- /**
- * The name of the policy metadata.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly name?: string;
}
-/**
- * Slim version of policy metadata resource definition, excluding properties with large strings
- */
-export interface SlimPolicyMetadata {
+/** The properties of the policy metadata, excluding properties containing large strings */
+export interface PolicyMetadataSlimProperties {
/**
* The policy metadata identifier.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly metadataId?: string;
/**
* The category of the policy metadata.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly category?: string;
/**
* The title of the policy metadata.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly title?: string;
/**
* The owner of the policy metadata.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly owner?: string;
/**
* Url for getting additional content about the resource metadata.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly additionalContentUrl?: string;
/**
* Additional metadata.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- readonly metadata?: any;
+ readonly metadata?: Record;
+}
+
+/** Error response. */
+export interface ErrorResponseAutoGenerated {
+ /** The error details. */
+ error?: ErrorDefinitionAutoGenerated;
+}
+
+/** Error definition. */
+export interface ErrorDefinitionAutoGenerated {
/**
- * The ID of the policy metadata.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * Service specific error code which serves as the substatus for the HTTP error code.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- readonly id?: string;
+ readonly code?: string;
/**
- * The type of the policy metadata.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * Description of the error.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- readonly type?: string;
+ readonly message?: string;
/**
- * The name of the policy metadata.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * The target of the error.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- readonly name?: string;
+ readonly target?: string;
+ /**
+ * Internal error details.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly details?: ErrorDefinitionAutoGenerated[];
+ /**
+ * Additional scenario specific error details.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly additionalInfo?: TypedErrorInfo[];
}
-/**
- * Additional parameters for a set of operations.
- */
-export interface QueryOptions {
+/** Collection of policy metadata resources. */
+export interface PolicyMetadataCollection {
/**
- * Maximum number of records to return.
+ * Array of policy metadata definitions.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- top?: number;
+ readonly value?: SlimPolicyMetadata[];
/**
- * OData filter expression.
+ * The URL to get the next set of results.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- filter?: string;
+ readonly nextLink?: string;
+}
+
+/** Slim version of policy metadata resource definition, excluding properties with large strings */
+export interface SlimPolicyMetadata {
/**
- * Ordering expression using OData notation. One or more comma-separated column names with an
- * optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc".
+ * The ID of the policy metadata.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- orderBy?: string;
+ readonly id?: string;
/**
- * Select expression using OData notation. Limits the columns on each record to just those
- * requested, e.g. "$select=PolicyAssignmentId, ResourceId".
+ * The type of the policy metadata.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- select?: string;
+ readonly type?: string;
/**
- * ISO 8601 formatted timestamp specifying the start time of the interval to query. When not
- * specified, the service uses ($to - 1-day).
+ * The name of the policy metadata.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- from?: Date;
+ readonly name?: string;
/**
- * ISO 8601 formatted timestamp specifying the end time of the interval to query. When not
- * specified, the service uses request time.
+ * The policy metadata identifier.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- to?: Date;
+ readonly metadataId?: string;
/**
- * OData apply expression for aggregations.
+ * The category of the policy metadata.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- apply?: string;
+ readonly category?: string;
/**
- * Skiptoken is only provided if a previous response returned a partial result as a part of
- * nextLink element.
+ * The title of the policy metadata.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- skipToken?: string;
+ readonly title?: string;
/**
- * The $expand query parameter. For example, to expand components use $expand=components
+ * The owner of the policy metadata.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- expand?: string;
-}
-
-/**
- * Optional Parameters.
- */
-export interface PolicyTrackedResourcesListQueryResultsForManagementGroupOptionalParams extends msRest.RequestOptionsBase {
+ readonly owner?: string;
/**
- * Additional parameters for the operation
+ * Url for getting additional content about the resource metadata.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- queryOptions?: QueryOptions;
-}
-
-/**
- * Optional Parameters.
- */
-export interface PolicyTrackedResourcesListQueryResultsForSubscriptionOptionalParams extends msRest.RequestOptionsBase {
+ readonly additionalContentUrl?: string;
/**
- * Additional parameters for the operation
+ * Additional metadata.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- queryOptions?: QueryOptions;
+ readonly metadata?: Record;
}
-/**
- * Optional Parameters.
- */
-export interface PolicyTrackedResourcesListQueryResultsForResourceGroupOptionalParams extends msRest.RequestOptionsBase {
- /**
- * Additional parameters for the operation
- */
- queryOptions?: QueryOptions;
+/** The check policy restrictions parameters describing the resource that is being evaluated. */
+export interface CheckRestrictionsRequest {
+ /** The information about the resource that will be evaluated. */
+ resourceDetails: CheckRestrictionsResourceDetails;
+ /** The list of fields and values that should be evaluated for potential restrictions. */
+ pendingFields?: PendingField[];
}
-/**
- * Optional Parameters.
- */
-export interface PolicyTrackedResourcesListQueryResultsForResourceOptionalParams extends msRest.RequestOptionsBase {
- /**
- * Additional parameters for the operation
- */
- queryOptions?: QueryOptions;
+/** The information about the resource that will be evaluated. */
+export interface CheckRestrictionsResourceDetails {
+ /** The resource content. This should include whatever properties are already known and can be a partial set of all resource properties. */
+ resourceContent: Record;
+ /** The api-version of the resource content. */
+ apiVersion?: string;
+ /** The scope where the resource is being created. For example, if the resource is a child resource this would be the parent resource's resource ID. */
+ scope?: string;
}
-/**
- * Optional Parameters.
- */
-export interface RemediationsListDeploymentsAtManagementGroupOptionalParams extends msRest.RequestOptionsBase {
- /**
- * Additional parameters for the operation
- */
- queryOptions?: QueryOptions;
+/** A field that should be evaluated against Azure Policy to determine restrictions. */
+export interface PendingField {
+ /** The name of the field. This can be a top-level property like 'name' or 'type' or an Azure Policy field alias. */
+ field: string;
+ /** The list of potential values for the field that should be evaluated against Azure Policy. */
+ values?: string[];
}
-/**
- * Optional Parameters.
- */
-export interface RemediationsListForManagementGroupOptionalParams extends msRest.RequestOptionsBase {
+/** The result of a check policy restrictions evaluation on a resource. */
+export interface CheckRestrictionsResult {
/**
- * Additional parameters for the operation
+ * The restrictions that will be placed on various fields in the resource by policy.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- queryOptions?: QueryOptions;
-}
-
-/**
- * Optional Parameters.
- */
-export interface RemediationsListDeploymentsAtSubscriptionOptionalParams extends msRest.RequestOptionsBase {
+ readonly fieldRestrictions?: FieldRestrictions[];
/**
- * Additional parameters for the operation
+ * Evaluation results for the provided partial resource content.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- queryOptions?: QueryOptions;
+ readonly contentEvaluationResult?: CheckRestrictionsResultContentEvaluationResult;
}
-/**
- * Optional Parameters.
- */
-export interface RemediationsListForSubscriptionOptionalParams extends msRest.RequestOptionsBase {
+/** The restrictions that will be placed on a field in the resource by policy. */
+export interface FieldRestrictions {
/**
- * Additional parameters for the operation
+ * The name of the field. This can be a top-level property like 'name' or 'type' or an Azure Policy field alias.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- queryOptions?: QueryOptions;
+ readonly field?: string;
+ /** The restrictions placed on that field by policy. */
+ restrictions?: FieldRestriction[];
}
-/**
- * Optional Parameters.
- */
-export interface RemediationsListDeploymentsAtResourceGroupOptionalParams extends msRest.RequestOptionsBase {
+/** The restrictions on a field imposed by a specific policy. */
+export interface FieldRestriction {
/**
- * Additional parameters for the operation
+ * The type of restriction that is imposed on the field.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- queryOptions?: QueryOptions;
-}
-
-/**
- * Optional Parameters.
- */
-export interface RemediationsListForResourceGroupOptionalParams extends msRest.RequestOptionsBase {
+ readonly result?: FieldRestrictionResult;
/**
- * Additional parameters for the operation
+ * The value that policy will set for the field if the user does not provide a value.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- queryOptions?: QueryOptions;
-}
-
-/**
- * Optional Parameters.
- */
-export interface RemediationsListDeploymentsAtResourceOptionalParams extends msRest.RequestOptionsBase {
+ readonly defaultValue?: string;
/**
- * Additional parameters for the operation
+ * The values that policy either requires or denies for the field.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- queryOptions?: QueryOptions;
-}
-
-/**
- * Optional Parameters.
- */
-export interface RemediationsListForResourceOptionalParams extends msRest.RequestOptionsBase {
+ readonly values?: string[];
/**
- * Additional parameters for the operation
+ * The details of the policy that is causing the field restriction.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- queryOptions?: QueryOptions;
+ readonly policy?: PolicyReference;
}
-/**
- * Optional Parameters.
- */
-export interface PolicyEventsListQueryResultsForManagementGroupOptionalParams extends msRest.RequestOptionsBase {
+/** Resource identifiers for a policy. */
+export interface PolicyReference {
/**
- * Additional parameters for the operation
+ * The resource identifier of the policy definition.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- queryOptions?: QueryOptions;
-}
-
-/**
- * Optional Parameters.
- */
-export interface PolicyEventsListQueryResultsForSubscriptionOptionalParams extends msRest.RequestOptionsBase {
+ readonly policyDefinitionId?: string;
/**
- * Additional parameters for the operation
+ * The resource identifier of the policy set definition.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- queryOptions?: QueryOptions;
-}
-
-/**
- * Optional Parameters.
- */
-export interface PolicyEventsListQueryResultsForResourceGroupOptionalParams extends msRest.RequestOptionsBase {
+ readonly policySetDefinitionId?: string;
/**
- * Additional parameters for the operation
+ * The reference identifier of a specific policy definition within a policy set definition.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- queryOptions?: QueryOptions;
-}
-
-/**
- * Optional Parameters.
- */
-export interface PolicyEventsListQueryResultsForResourceOptionalParams extends msRest.RequestOptionsBase {
+ readonly policyDefinitionReferenceId?: string;
/**
- * Additional parameters for the operation
+ * The resource identifier of the policy assignment.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- queryOptions?: QueryOptions;
+ readonly policyAssignmentId?: string;
}
-/**
- * Optional Parameters.
- */
-export interface PolicyEventsListQueryResultsForPolicySetDefinitionOptionalParams extends msRest.RequestOptionsBase {
- /**
- * Additional parameters for the operation
- */
- queryOptions?: QueryOptions;
+/** Evaluation results for the provided partial resource content. */
+export interface CheckRestrictionsResultContentEvaluationResult {
+ /** Policy evaluation results against the given resource content. This will indicate if the partial content that was provided will be denied as-is. */
+ policyEvaluations?: PolicyEvaluationResult[];
}
-/**
- * Optional Parameters.
- */
-export interface PolicyEventsListQueryResultsForPolicyDefinitionOptionalParams extends msRest.RequestOptionsBase {
+/** The result of a non-compliant policy evaluation against the given resource content. */
+export interface PolicyEvaluationResult {
/**
- * Additional parameters for the operation
+ * The details of the policy that was evaluated.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- queryOptions?: QueryOptions;
-}
-
-/**
- * Optional Parameters.
- */
-export interface PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentOptionalParams extends msRest.RequestOptionsBase {
+ readonly policyInfo?: PolicyReference;
/**
- * Additional parameters for the operation
+ * The result of the policy evaluation against the resource. This will typically be 'NonCompliant' but may contain other values if errors were encountered.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- queryOptions?: QueryOptions;
-}
-
-/**
- * Optional Parameters.
- */
-export interface PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentOptionalParams extends msRest.RequestOptionsBase {
+ readonly evaluationResult?: string;
/**
- * Additional parameters for the operation
+ * The detailed results of the policy expressions and values that were evaluated.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- queryOptions?: QueryOptions;
+ readonly evaluationDetails?: PolicyEvaluationDetails;
}
-/**
- * Optional Parameters.
- */
-export interface PolicyStatesListQueryResultsForManagementGroupOptionalParams extends msRest.RequestOptionsBase {
+/** List of attestations. */
+export interface AttestationListResult {
/**
- * Additional parameters for the operation
+ * Array of attestation definitions.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- queryOptions?: QueryOptions;
-}
-
-/**
- * Optional Parameters.
- */
-export interface PolicyStatesSummarizeForManagementGroupOptionalParams extends msRest.RequestOptionsBase {
+ readonly value?: Attestation[];
/**
- * Additional parameters for the operation
+ * The URL to get the next set of results.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- queryOptions?: QueryOptions;
+ readonly nextLink?: string;
}
-/**
- * Optional Parameters.
- */
-export interface PolicyStatesListQueryResultsForSubscriptionOptionalParams extends msRest.RequestOptionsBase {
- /**
- * Additional parameters for the operation
- */
- queryOptions?: QueryOptions;
+/** A piece of evidence supporting the compliance state set in the attestation. */
+export interface AttestationEvidence {
+ /** The description for this piece of evidence. */
+ description?: string;
+ /** The URI location of the evidence. */
+ sourceUri?: string;
}
-/**
- * Optional Parameters.
- */
-export interface PolicyStatesSummarizeForSubscriptionOptionalParams extends msRest.RequestOptionsBase {
+/** Common fields that are returned in the response for all Azure Resource Manager resources */
+export interface Resource {
/**
- * Additional parameters for the operation
+ * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- queryOptions?: QueryOptions;
-}
-
-/**
- * Optional Parameters.
- */
-export interface PolicyStatesListQueryResultsForResourceGroupOptionalParams extends msRest.RequestOptionsBase {
+ readonly id?: string;
/**
- * Additional parameters for the operation
+ * The name of the resource
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- queryOptions?: QueryOptions;
-}
-
-/**
- * Optional Parameters.
- */
-export interface PolicyStatesSummarizeForResourceGroupOptionalParams extends msRest.RequestOptionsBase {
+ readonly name?: string;
/**
- * Additional parameters for the operation
+ * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- queryOptions?: QueryOptions;
+ readonly type?: string;
}
-/**
- * Optional Parameters.
- */
-export interface PolicyStatesListQueryResultsForResourceOptionalParams extends msRest.RequestOptionsBase {
- /**
- * Additional parameters for the operation
- */
- queryOptions?: QueryOptions;
+/** Error response. */
+export interface ErrorResponseAutoGenerated2 {
+ /** The error details. */
+ error?: ErrorDefinitionAutoGenerated2;
}
-/**
- * Optional Parameters.
- */
-export interface PolicyStatesSummarizeForResourceOptionalParams extends msRest.RequestOptionsBase {
+/** Error definition. */
+export interface ErrorDefinitionAutoGenerated2 {
/**
- * Additional parameters for the operation
+ * Service specific error code which serves as the substatus for the HTTP error code.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- queryOptions?: QueryOptions;
-}
-
-/**
- * Optional Parameters.
- */
-export interface PolicyStatesListQueryResultsForPolicySetDefinitionOptionalParams extends msRest.RequestOptionsBase {
+ readonly code?: string;
/**
- * Additional parameters for the operation
+ * Description of the error.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- queryOptions?: QueryOptions;
-}
-
-/**
- * Optional Parameters.
- */
-export interface PolicyStatesSummarizeForPolicySetDefinitionOptionalParams extends msRest.RequestOptionsBase {
+ readonly message?: string;
/**
- * Additional parameters for the operation
+ * The target of the error.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- queryOptions?: QueryOptions;
-}
-
-/**
- * Optional Parameters.
- */
-export interface PolicyStatesListQueryResultsForPolicyDefinitionOptionalParams extends msRest.RequestOptionsBase {
+ readonly target?: string;
/**
- * Additional parameters for the operation
+ * Internal error details.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- queryOptions?: QueryOptions;
-}
-
-/**
- * Optional Parameters.
- */
-export interface PolicyStatesSummarizeForPolicyDefinitionOptionalParams extends msRest.RequestOptionsBase {
+ readonly details?: ErrorDefinitionAutoGenerated2[];
/**
- * Additional parameters for the operation
+ * Additional scenario specific error details.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- queryOptions?: QueryOptions;
+ readonly additionalInfo?: TypedErrorInfo[];
}
-/**
- * Optional Parameters.
- */
-export interface PolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentOptionalParams extends msRest.RequestOptionsBase {
+/** The properties of the policy metadata. */
+export type PolicyMetadataProperties = PolicyMetadataSlimProperties & {
/**
- * Additional parameters for the operation
+ * The description of the policy metadata.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- queryOptions?: QueryOptions;
-}
-
-/**
- * Optional Parameters.
- */
-export interface PolicyStatesSummarizeForSubscriptionLevelPolicyAssignmentOptionalParams extends msRest.RequestOptionsBase {
+ readonly description?: string;
/**
- * Additional parameters for the operation
+ * The requirements of the policy metadata.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- queryOptions?: QueryOptions;
-}
+ readonly requirements?: string;
+};
-/**
- * Optional Parameters.
- */
-export interface PolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentOptionalParams extends msRest.RequestOptionsBase {
+/** An attestation resource. */
+export type Attestation = Resource & {
/**
- * Additional parameters for the operation
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- queryOptions?: QueryOptions;
-}
-
-/**
- * Optional Parameters.
- */
-export interface PolicyStatesSummarizeForResourceGroupLevelPolicyAssignmentOptionalParams extends msRest.RequestOptionsBase {
+ readonly systemData?: SystemData;
+ /** The resource ID of the policy assignment that the attestation is setting the state for. */
+ policyAssignmentId: string;
+ /** The policy definition reference ID from a policy set definition that the attestation is setting the state for. If the policy assignment assigns a policy set definition the attestation can choose a definition within the set definition with this property or omit this and set the state for the entire set definition. */
+ policyDefinitionReferenceId?: string;
+ /** The compliance state that should be set on the resource. */
+ complianceState?: ComplianceState;
+ /** The time the compliance state should expire. */
+ expiresOn?: Date;
+ /** The person responsible for setting the state of the resource. This value is typically an Azure Active Directory object ID. */
+ owner?: string;
+ /** Comments describing why this attestation was created. */
+ comments?: string;
+ /** The evidence supporting the compliance state set in this attestation. */
+ evidence?: AttestationEvidence[];
+ /**
+ * The status of the attestation.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly provisioningState?: string;
/**
- * Additional parameters for the operation
+ * The time the compliance state was last changed in this attestation.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- queryOptions?: QueryOptions;
+ readonly lastComplianceStateChangeAt?: Date;
+};
+
+/** Parameter group */
+export interface QueryOptions {
+ /** Maximum number of records to return. */
+ top?: number;
+ /** OData filter expression. */
+ filter?: string;
+ /** Ordering expression using OData notation. One or more comma-separated column names with an optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc". */
+ orderBy?: string;
+ /** Select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId". */
+ select?: string;
+ /** ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). */
+ from?: Date;
+ /** ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. */
+ to?: Date;
+ /** OData apply expression for aggregations. */
+ apply?: string;
+ /** Skiptoken is only provided if a previous response returned a partial result as a part of nextLink element. */
+ skipToken?: string;
+ /** The $expand query parameter. For example, to expand components use $expand=components */
+ expand?: string;
}
-/**
- * Optional Parameters.
- */
-export interface PolicyMetadataListOptionalParams extends msRest.RequestOptionsBase {
- /**
- * Additional parameters for the operation
- */
- queryOptions?: QueryOptions;
+/** Known values of {@link ResourceDiscoveryMode} that the service accepts. */
+export enum KnownResourceDiscoveryMode {
+ /** Remediate resources that are already known to be non-compliant. */
+ ExistingNonCompliant = "ExistingNonCompliant",
+ /** Re-evaluate the compliance state of resources and then remediate the resources found to be non-compliant. */
+ ReEvaluateCompliance = "ReEvaluateCompliance"
}
/**
- * An interface representing PolicyInsightsClientOptions.
+ * Defines values for ResourceDiscoveryMode. \
+ * {@link KnownResourceDiscoveryMode} can be used interchangeably with ResourceDiscoveryMode,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **ExistingNonCompliant**: Remediate resources that are already known to be non-compliant. \
+ * **ReEvaluateCompliance**: Re-evaluate the compliance state of resources and then remediate the resources found to be non-compliant.
*/
-export interface PolicyInsightsClientOptions extends AzureServiceClientOptions {
- baseUri?: string;
+export type ResourceDiscoveryMode = string;
+
+/** Known values of {@link CreatedByType} that the service accepts. */
+export enum KnownCreatedByType {
+ User = "User",
+ Application = "Application",
+ ManagedIdentity = "ManagedIdentity",
+ Key = "Key"
}
/**
- * @interface
- * Query results.
- * @extends Array
+ * Defines values for CreatedByType. \
+ * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **User** \
+ * **Application** \
+ * **ManagedIdentity** \
+ * **Key**
*/
-export interface PolicyTrackedResourcesQueryResults extends Array {
- /**
- * The URL to get the next set of results.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly nextLink?: string;
+export type CreatedByType = string;
+
+/** Known values of {@link PolicyStatesResource} that the service accepts. */
+export enum KnownPolicyStatesResource {
+ Default = "default",
+ Latest = "latest"
}
/**
- * @interface
- * List of deployments for a remediation.
- * @extends Array
+ * Defines values for PolicyStatesResource. \
+ * {@link KnownPolicyStatesResource} can be used interchangeably with PolicyStatesResource,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **default** \
+ * **latest**
*/
-export interface RemediationDeploymentsListResult extends Array {
- /**
- * The URL to get the next set of results.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly nextLink?: string;
+export type PolicyStatesResource = string;
+
+/** Known values of {@link FieldRestrictionResult} that the service accepts. */
+export enum KnownFieldRestrictionResult {
+ /** The field and/or values are required by policy. */
+ Required = "Required",
+ /** The field will be removed by policy. */
+ Removed = "Removed",
+ /** The field and/or values will be denied by policy. */
+ Deny = "Deny"
}
/**
- * @interface
- * List of remediations.
- * @extends Array
+ * Defines values for FieldRestrictionResult. \
+ * {@link KnownFieldRestrictionResult} can be used interchangeably with FieldRestrictionResult,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **Required**: The field and\/or values are required by policy. \
+ * **Removed**: The field will be removed by policy. \
+ * **Deny**: The field and\/or values will be denied by policy.
*/
-export interface RemediationListResult extends Array {
- /**
- * The URL to get the next set of results.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly nextLink?: string;
+export type FieldRestrictionResult = string;
+
+/** Known values of {@link ComplianceState} that the service accepts. */
+export enum KnownComplianceState {
+ /** The resource is in compliance with the policy. */
+ Compliant = "Compliant",
+ /** The resource is not in compliance with the policy. */
+ NonCompliant = "NonCompliant",
+ /** The compliance state of the resource is not known. */
+ Unknown = "Unknown"
}
/**
- * @interface
- * Query results.
- * @extends Array
+ * Defines values for ComplianceState. \
+ * {@link KnownComplianceState} can be used interchangeably with ComplianceState,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **Compliant**: The resource is in compliance with the policy. \
+ * **NonCompliant**: The resource is not in compliance with the policy. \
+ * **Unknown**: The compliance state of the resource is not known.
*/
-export interface PolicyEventsQueryResults extends Array {
- /**
- * OData context string; used by OData clients to resolve type information based on metadata.
- */
- odatacontext?: string;
- /**
- * OData entity count; represents the number of policy event records returned.
- */
- odatacount?: number;
- /**
- * Odata next link; URL to get the next set of results.
- */
- odatanextLink?: string;
+export type ComplianceState = string;
+
+/** Optional parameters. */
+export interface PolicyTrackedResourcesListQueryResultsForManagementGroupOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
}
-/**
- * @interface
- * Query results.
- * @extends Array
- */
-export interface PolicyStatesQueryResults extends Array {
- /**
- * OData context string; used by OData clients to resolve type information based on metadata.
- */
- odatacontext?: string;
- /**
- * OData entity count; represents the number of policy state records returned.
- */
- odatacount?: number;
- /**
- * Odata next link; URL to get the next set of results.
- */
- odatanextLink?: string;
+/** Contains response data for the listQueryResultsForManagementGroup operation. */
+export type PolicyTrackedResourcesListQueryResultsForManagementGroupResponse = PolicyTrackedResourcesQueryResults;
+
+/** Optional parameters. */
+export interface PolicyTrackedResourcesListQueryResultsForSubscriptionOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
}
-/**
- * @interface
- * Collection of policy metadata resources.
- * @extends Array
- */
-export interface PolicyMetadataCollection extends Array {
- /**
- * The URL to get the next set of results.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly nextLink?: string;
+/** Contains response data for the listQueryResultsForSubscription operation. */
+export type PolicyTrackedResourcesListQueryResultsForSubscriptionResponse = PolicyTrackedResourcesQueryResults;
+
+/** Optional parameters. */
+export interface PolicyTrackedResourcesListQueryResultsForResourceGroupOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
}
-/**
- * Defines values for ResourceDiscoveryMode.
- * Possible values include: 'ExistingNonCompliant', 'ReEvaluateCompliance'
- * @readonly
- * @enum {string}
- */
-export type ResourceDiscoveryMode = 'ExistingNonCompliant' | 'ReEvaluateCompliance';
+/** Contains response data for the listQueryResultsForResourceGroup operation. */
+export type PolicyTrackedResourcesListQueryResultsForResourceGroupResponse = PolicyTrackedResourcesQueryResults;
-/**
- * Defines values for PolicyStatesResource.
- * Possible values include: 'default', 'latest'
- * @readonly
- * @enum {string}
- */
-export type PolicyStatesResource = 'default' | 'latest';
+/** Optional parameters. */
+export interface PolicyTrackedResourcesListQueryResultsForResourceOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listQueryResultsForManagementGroup operation.
- */
-export type PolicyTrackedResourcesListQueryResultsForManagementGroupResponse = PolicyTrackedResourcesQueryResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listQueryResultsForResource operation. */
+export type PolicyTrackedResourcesListQueryResultsForResourceResponse = PolicyTrackedResourcesQueryResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyTrackedResourcesQueryResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyTrackedResourcesListQueryResultsForManagementGroupNextOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listQueryResultsForSubscription operation.
- */
-export type PolicyTrackedResourcesListQueryResultsForSubscriptionResponse = PolicyTrackedResourcesQueryResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listQueryResultsForManagementGroupNext operation. */
+export type PolicyTrackedResourcesListQueryResultsForManagementGroupNextResponse = PolicyTrackedResourcesQueryResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyTrackedResourcesQueryResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyTrackedResourcesListQueryResultsForSubscriptionNextOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listQueryResultsForResourceGroup operation.
- */
-export type PolicyTrackedResourcesListQueryResultsForResourceGroupResponse = PolicyTrackedResourcesQueryResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listQueryResultsForSubscriptionNext operation. */
+export type PolicyTrackedResourcesListQueryResultsForSubscriptionNextResponse = PolicyTrackedResourcesQueryResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyTrackedResourcesQueryResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyTrackedResourcesListQueryResultsForResourceGroupNextOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listQueryResultsForResource operation.
- */
-export type PolicyTrackedResourcesListQueryResultsForResourceResponse = PolicyTrackedResourcesQueryResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listQueryResultsForResourceGroupNext operation. */
+export type PolicyTrackedResourcesListQueryResultsForResourceGroupNextResponse = PolicyTrackedResourcesQueryResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyTrackedResourcesQueryResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyTrackedResourcesListQueryResultsForResourceNextOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listQueryResultsForManagementGroupNext operation.
- */
-export type PolicyTrackedResourcesListQueryResultsForManagementGroupNextResponse = PolicyTrackedResourcesQueryResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listQueryResultsForResourceNext operation. */
+export type PolicyTrackedResourcesListQueryResultsForResourceNextResponse = PolicyTrackedResourcesQueryResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyTrackedResourcesQueryResults;
- };
-};
+/** Optional parameters. */
+export interface RemediationsListDeploymentsAtManagementGroupOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listQueryResultsForSubscriptionNext operation.
- */
-export type PolicyTrackedResourcesListQueryResultsForSubscriptionNextResponse = PolicyTrackedResourcesQueryResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listDeploymentsAtManagementGroup operation. */
+export type RemediationsListDeploymentsAtManagementGroupResponse = RemediationDeploymentsListResult;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyTrackedResourcesQueryResults;
- };
-};
+/** Optional parameters. */
+export interface RemediationsCancelAtManagementGroupOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the listQueryResultsForResourceGroupNext operation.
- */
-export type PolicyTrackedResourcesListQueryResultsForResourceGroupNextResponse = PolicyTrackedResourcesQueryResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the cancelAtManagementGroup operation. */
+export type RemediationsCancelAtManagementGroupResponse = Remediation;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyTrackedResourcesQueryResults;
- };
-};
+/** Optional parameters. */
+export interface RemediationsListForManagementGroupOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listQueryResultsForResourceNext operation.
- */
-export type PolicyTrackedResourcesListQueryResultsForResourceNextResponse = PolicyTrackedResourcesQueryResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listForManagementGroup operation. */
+export type RemediationsListForManagementGroupResponse = RemediationListResult;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyTrackedResourcesQueryResults;
- };
-};
+/** Optional parameters. */
+export interface RemediationsCreateOrUpdateAtManagementGroupOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the listDeploymentsAtManagementGroup operation.
- */
-export type RemediationsListDeploymentsAtManagementGroupResponse = RemediationDeploymentsListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the createOrUpdateAtManagementGroup operation. */
+export type RemediationsCreateOrUpdateAtManagementGroupResponse = Remediation;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: RemediationDeploymentsListResult;
- };
-};
+/** Optional parameters. */
+export interface RemediationsGetAtManagementGroupOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the cancelAtManagementGroup operation.
- */
-export type RemediationsCancelAtManagementGroupResponse = Remediation & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the getAtManagementGroup operation. */
+export type RemediationsGetAtManagementGroupResponse = Remediation;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Remediation;
- };
-};
+/** Optional parameters. */
+export interface RemediationsDeleteAtManagementGroupOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the listForManagementGroup operation.
- */
-export type RemediationsListForManagementGroupResponse = RemediationListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the deleteAtManagementGroup operation. */
+export type RemediationsDeleteAtManagementGroupResponse = Remediation;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: RemediationListResult;
- };
-};
+/** Optional parameters. */
+export interface RemediationsListDeploymentsAtSubscriptionOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the createOrUpdateAtManagementGroup operation.
- */
-export type RemediationsCreateOrUpdateAtManagementGroupResponse = Remediation & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listDeploymentsAtSubscription operation. */
+export type RemediationsListDeploymentsAtSubscriptionResponse = RemediationDeploymentsListResult;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Remediation;
- };
-};
+/** Optional parameters. */
+export interface RemediationsCancelAtSubscriptionOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the getAtManagementGroup operation.
- */
-export type RemediationsGetAtManagementGroupResponse = Remediation & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the cancelAtSubscription operation. */
+export type RemediationsCancelAtSubscriptionResponse = Remediation;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Remediation;
- };
-};
+/** Optional parameters. */
+export interface RemediationsListForSubscriptionOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the deleteAtManagementGroup operation.
- */
-export type RemediationsDeleteAtManagementGroupResponse = Remediation & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listForSubscription operation. */
+export type RemediationsListForSubscriptionResponse = RemediationListResult;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Remediation;
- };
-};
+/** Optional parameters. */
+export interface RemediationsCreateOrUpdateAtSubscriptionOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the listDeploymentsAtSubscription operation.
- */
-export type RemediationsListDeploymentsAtSubscriptionResponse = RemediationDeploymentsListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the createOrUpdateAtSubscription operation. */
+export type RemediationsCreateOrUpdateAtSubscriptionResponse = Remediation;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: RemediationDeploymentsListResult;
- };
-};
+/** Optional parameters. */
+export interface RemediationsGetAtSubscriptionOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the cancelAtSubscription operation.
- */
-export type RemediationsCancelAtSubscriptionResponse = Remediation & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the getAtSubscription operation. */
+export type RemediationsGetAtSubscriptionResponse = Remediation;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Remediation;
- };
-};
+/** Optional parameters. */
+export interface RemediationsDeleteAtSubscriptionOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the listForSubscription operation.
- */
-export type RemediationsListForSubscriptionResponse = RemediationListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the deleteAtSubscription operation. */
+export type RemediationsDeleteAtSubscriptionResponse = Remediation;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: RemediationListResult;
- };
-};
+/** Optional parameters. */
+export interface RemediationsListDeploymentsAtResourceGroupOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the createOrUpdateAtSubscription operation.
- */
-export type RemediationsCreateOrUpdateAtSubscriptionResponse = Remediation & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listDeploymentsAtResourceGroup operation. */
+export type RemediationsListDeploymentsAtResourceGroupResponse = RemediationDeploymentsListResult;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Remediation;
- };
-};
+/** Optional parameters. */
+export interface RemediationsCancelAtResourceGroupOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the getAtSubscription operation.
- */
-export type RemediationsGetAtSubscriptionResponse = Remediation & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the cancelAtResourceGroup operation. */
+export type RemediationsCancelAtResourceGroupResponse = Remediation;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Remediation;
- };
-};
+/** Optional parameters. */
+export interface RemediationsListForResourceGroupOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the deleteAtSubscription operation.
- */
-export type RemediationsDeleteAtSubscriptionResponse = Remediation & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listForResourceGroup operation. */
+export type RemediationsListForResourceGroupResponse = RemediationListResult;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Remediation;
- };
-};
+/** Optional parameters. */
+export interface RemediationsCreateOrUpdateAtResourceGroupOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the listDeploymentsAtResourceGroup operation.
- */
-export type RemediationsListDeploymentsAtResourceGroupResponse = RemediationDeploymentsListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the createOrUpdateAtResourceGroup operation. */
+export type RemediationsCreateOrUpdateAtResourceGroupResponse = Remediation;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: RemediationDeploymentsListResult;
- };
-};
+/** Optional parameters. */
+export interface RemediationsGetAtResourceGroupOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the cancelAtResourceGroup operation.
- */
-export type RemediationsCancelAtResourceGroupResponse = Remediation & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the getAtResourceGroup operation. */
+export type RemediationsGetAtResourceGroupResponse = Remediation;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Remediation;
- };
-};
+/** Optional parameters. */
+export interface RemediationsDeleteAtResourceGroupOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the listForResourceGroup operation.
- */
-export type RemediationsListForResourceGroupResponse = RemediationListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the deleteAtResourceGroup operation. */
+export type RemediationsDeleteAtResourceGroupResponse = Remediation;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: RemediationListResult;
- };
-};
+/** Optional parameters. */
+export interface RemediationsListDeploymentsAtResourceOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the createOrUpdateAtResourceGroup operation.
- */
-export type RemediationsCreateOrUpdateAtResourceGroupResponse = Remediation & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listDeploymentsAtResource operation. */
+export type RemediationsListDeploymentsAtResourceResponse = RemediationDeploymentsListResult;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Remediation;
- };
-};
+/** Optional parameters. */
+export interface RemediationsCancelAtResourceOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the getAtResourceGroup operation.
- */
-export type RemediationsGetAtResourceGroupResponse = Remediation & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the cancelAtResource operation. */
+export type RemediationsCancelAtResourceResponse = Remediation;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Remediation;
- };
-};
+/** Optional parameters. */
+export interface RemediationsListForResourceOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the deleteAtResourceGroup operation.
- */
-export type RemediationsDeleteAtResourceGroupResponse = Remediation & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listForResource operation. */
+export type RemediationsListForResourceResponse = RemediationListResult;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Remediation;
- };
-};
+/** Optional parameters. */
+export interface RemediationsCreateOrUpdateAtResourceOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the listDeploymentsAtResource operation.
- */
-export type RemediationsListDeploymentsAtResourceResponse = RemediationDeploymentsListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the createOrUpdateAtResource operation. */
+export type RemediationsCreateOrUpdateAtResourceResponse = Remediation;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: RemediationDeploymentsListResult;
- };
-};
+/** Optional parameters. */
+export interface RemediationsGetAtResourceOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the cancelAtResource operation.
- */
-export type RemediationsCancelAtResourceResponse = Remediation & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the getAtResource operation. */
+export type RemediationsGetAtResourceResponse = Remediation;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Remediation;
- };
-};
+/** Optional parameters. */
+export interface RemediationsDeleteAtResourceOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the listForResource operation.
- */
-export type RemediationsListForResourceResponse = RemediationListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the deleteAtResource operation. */
+export type RemediationsDeleteAtResourceResponse = Remediation;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: RemediationListResult;
- };
-};
+/** Optional parameters. */
+export interface RemediationsListDeploymentsAtManagementGroupNextOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the createOrUpdateAtResource operation.
- */
-export type RemediationsCreateOrUpdateAtResourceResponse = Remediation & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listDeploymentsAtManagementGroupNext operation. */
+export type RemediationsListDeploymentsAtManagementGroupNextResponse = RemediationDeploymentsListResult;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Remediation;
- };
-};
+/** Optional parameters. */
+export interface RemediationsListForManagementGroupNextOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the getAtResource operation.
- */
-export type RemediationsGetAtResourceResponse = Remediation & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listForManagementGroupNext operation. */
+export type RemediationsListForManagementGroupNextResponse = RemediationListResult;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Remediation;
- };
-};
+/** Optional parameters. */
+export interface RemediationsListDeploymentsAtSubscriptionNextOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the deleteAtResource operation.
- */
-export type RemediationsDeleteAtResourceResponse = Remediation & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listDeploymentsAtSubscriptionNext operation. */
+export type RemediationsListDeploymentsAtSubscriptionNextResponse = RemediationDeploymentsListResult;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Remediation;
- };
-};
+/** Optional parameters. */
+export interface RemediationsListForSubscriptionNextOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listDeploymentsAtManagementGroupNext operation.
- */
-export type RemediationsListDeploymentsAtManagementGroupNextResponse = RemediationDeploymentsListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listForSubscriptionNext operation. */
+export type RemediationsListForSubscriptionNextResponse = RemediationListResult;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: RemediationDeploymentsListResult;
- };
-};
+/** Optional parameters. */
+export interface RemediationsListDeploymentsAtResourceGroupNextOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listForManagementGroupNext operation.
- */
-export type RemediationsListForManagementGroupNextResponse = RemediationListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listDeploymentsAtResourceGroupNext operation. */
+export type RemediationsListDeploymentsAtResourceGroupNextResponse = RemediationDeploymentsListResult;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: RemediationListResult;
- };
-};
+/** Optional parameters. */
+export interface RemediationsListForResourceGroupNextOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listDeploymentsAtSubscriptionNext operation.
- */
-export type RemediationsListDeploymentsAtSubscriptionNextResponse = RemediationDeploymentsListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listForResourceGroupNext operation. */
+export type RemediationsListForResourceGroupNextResponse = RemediationListResult;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: RemediationDeploymentsListResult;
- };
-};
+/** Optional parameters. */
+export interface RemediationsListDeploymentsAtResourceNextOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listForSubscriptionNext operation.
- */
-export type RemediationsListForSubscriptionNextResponse = RemediationListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listDeploymentsAtResourceNext operation. */
+export type RemediationsListDeploymentsAtResourceNextResponse = RemediationDeploymentsListResult;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: RemediationListResult;
- };
-};
+/** Optional parameters. */
+export interface RemediationsListForResourceNextOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listDeploymentsAtResourceGroupNext operation.
- */
-export type RemediationsListDeploymentsAtResourceGroupNextResponse = RemediationDeploymentsListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listForResourceNext operation. */
+export type RemediationsListForResourceNextResponse = RemediationListResult;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: RemediationDeploymentsListResult;
- };
-};
+/** Optional parameters. */
+export interface PolicyEventsListQueryResultsForManagementGroupOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listForResourceGroupNext operation.
- */
-export type RemediationsListForResourceGroupNextResponse = RemediationListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listQueryResultsForManagementGroup operation. */
+export type PolicyEventsListQueryResultsForManagementGroupResponse = PolicyEventsQueryResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: RemediationListResult;
- };
-};
+/** Optional parameters. */
+export interface PolicyEventsListQueryResultsForSubscriptionOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listDeploymentsAtResourceNext operation.
- */
-export type RemediationsListDeploymentsAtResourceNextResponse = RemediationDeploymentsListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listQueryResultsForSubscription operation. */
+export type PolicyEventsListQueryResultsForSubscriptionResponse = PolicyEventsQueryResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: RemediationDeploymentsListResult;
- };
-};
+/** Optional parameters. */
+export interface PolicyEventsListQueryResultsForResourceGroupOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listForResourceNext operation.
- */
-export type RemediationsListForResourceNextResponse = RemediationListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listQueryResultsForResourceGroup operation. */
+export type PolicyEventsListQueryResultsForResourceGroupResponse = PolicyEventsQueryResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: RemediationListResult;
- };
-};
+/** Optional parameters. */
+export interface PolicyEventsListQueryResultsForResourceOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listQueryResultsForManagementGroup operation.
- */
-export type PolicyEventsListQueryResultsForManagementGroupResponse = PolicyEventsQueryResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listQueryResultsForResource operation. */
+export type PolicyEventsListQueryResultsForResourceResponse = PolicyEventsQueryResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyEventsQueryResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyEventsListQueryResultsForPolicySetDefinitionOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listQueryResultsForSubscription operation.
- */
-export type PolicyEventsListQueryResultsForSubscriptionResponse = PolicyEventsQueryResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listQueryResultsForPolicySetDefinition operation. */
+export type PolicyEventsListQueryResultsForPolicySetDefinitionResponse = PolicyEventsQueryResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyEventsQueryResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyEventsListQueryResultsForPolicyDefinitionOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listQueryResultsForResourceGroup operation.
- */
-export type PolicyEventsListQueryResultsForResourceGroupResponse = PolicyEventsQueryResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listQueryResultsForPolicyDefinition operation. */
+export type PolicyEventsListQueryResultsForPolicyDefinitionResponse = PolicyEventsQueryResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyEventsQueryResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listQueryResultsForResource operation.
- */
-export type PolicyEventsListQueryResultsForResourceResponse = PolicyEventsQueryResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listQueryResultsForSubscriptionLevelPolicyAssignment operation. */
+export type PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentResponse = PolicyEventsQueryResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyEventsQueryResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listQueryResultsForPolicySetDefinition operation.
- */
-export type PolicyEventsListQueryResultsForPolicySetDefinitionResponse = PolicyEventsQueryResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listQueryResultsForResourceGroupLevelPolicyAssignment operation. */
+export type PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentResponse = PolicyEventsQueryResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyEventsQueryResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyEventsListQueryResultsForManagementGroupNextOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listQueryResultsForPolicyDefinition operation.
- */
-export type PolicyEventsListQueryResultsForPolicyDefinitionResponse = PolicyEventsQueryResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listQueryResultsForManagementGroupNext operation. */
+export type PolicyEventsListQueryResultsForManagementGroupNextResponse = PolicyEventsQueryResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyEventsQueryResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyEventsListQueryResultsForSubscriptionNextOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listQueryResultsForSubscriptionLevelPolicyAssignment operation.
- */
-export type PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentResponse = PolicyEventsQueryResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listQueryResultsForSubscriptionNext operation. */
+export type PolicyEventsListQueryResultsForSubscriptionNextResponse = PolicyEventsQueryResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyEventsQueryResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyEventsListQueryResultsForResourceGroupNextOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listQueryResultsForResourceGroupLevelPolicyAssignment operation.
- */
-export type PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentResponse = PolicyEventsQueryResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listQueryResultsForResourceGroupNext operation. */
+export type PolicyEventsListQueryResultsForResourceGroupNextResponse = PolicyEventsQueryResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyEventsQueryResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyEventsListQueryResultsForResourceNextOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listQueryResultsForManagementGroupNext operation.
- */
-export type PolicyEventsListQueryResultsForManagementGroupNextResponse = PolicyEventsQueryResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listQueryResultsForResourceNext operation. */
+export type PolicyEventsListQueryResultsForResourceNextResponse = PolicyEventsQueryResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyEventsQueryResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyEventsListQueryResultsForPolicySetDefinitionNextOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listQueryResultsForSubscriptionNext operation.
- */
-export type PolicyEventsListQueryResultsForSubscriptionNextResponse = PolicyEventsQueryResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listQueryResultsForPolicySetDefinitionNext operation. */
+export type PolicyEventsListQueryResultsForPolicySetDefinitionNextResponse = PolicyEventsQueryResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyEventsQueryResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyEventsListQueryResultsForPolicyDefinitionNextOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listQueryResultsForResourceGroupNext operation.
- */
-export type PolicyEventsListQueryResultsForResourceGroupNextResponse = PolicyEventsQueryResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listQueryResultsForPolicyDefinitionNext operation. */
+export type PolicyEventsListQueryResultsForPolicyDefinitionNextResponse = PolicyEventsQueryResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyEventsQueryResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentNextOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listQueryResultsForResourceNext operation.
- */
-export type PolicyEventsListQueryResultsForResourceNextResponse = PolicyEventsQueryResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listQueryResultsForSubscriptionLevelPolicyAssignmentNext operation. */
+export type PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentNextResponse = PolicyEventsQueryResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyEventsQueryResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentNextOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listQueryResultsForPolicySetDefinitionNext operation.
- */
-export type PolicyEventsListQueryResultsForPolicySetDefinitionNextResponse = PolicyEventsQueryResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listQueryResultsForResourceGroupLevelPolicyAssignmentNext operation. */
+export type PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentNextResponse = PolicyEventsQueryResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyEventsQueryResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyStatesListQueryResultsForManagementGroupOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listQueryResultsForPolicyDefinitionNext operation.
- */
-export type PolicyEventsListQueryResultsForPolicyDefinitionNextResponse = PolicyEventsQueryResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listQueryResultsForManagementGroup operation. */
+export type PolicyStatesListQueryResultsForManagementGroupResponse = PolicyStatesQueryResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyEventsQueryResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyStatesSummarizeForManagementGroupOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listQueryResultsForSubscriptionLevelPolicyAssignmentNext
- * operation.
- */
-export type PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentNextResponse = PolicyEventsQueryResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the summarizeForManagementGroup operation. */
+export type PolicyStatesSummarizeForManagementGroupResponse = SummarizeResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyEventsQueryResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyStatesListQueryResultsForSubscriptionOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listQueryResultsForResourceGroupLevelPolicyAssignmentNext
- * operation.
- */
-export type PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentNextResponse = PolicyEventsQueryResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listQueryResultsForSubscription operation. */
+export type PolicyStatesListQueryResultsForSubscriptionResponse = PolicyStatesQueryResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyEventsQueryResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyStatesSummarizeForSubscriptionOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listQueryResultsForManagementGroup operation.
- */
-export type PolicyStatesListQueryResultsForManagementGroupResponse = PolicyStatesQueryResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the summarizeForSubscription operation. */
+export type PolicyStatesSummarizeForSubscriptionResponse = SummarizeResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyStatesQueryResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyStatesListQueryResultsForResourceGroupOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the summarizeForManagementGroup operation.
- */
-export type PolicyStatesSummarizeForManagementGroupResponse = SummarizeResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listQueryResultsForResourceGroup operation. */
+export type PolicyStatesListQueryResultsForResourceGroupResponse = PolicyStatesQueryResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: SummarizeResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyStatesSummarizeForResourceGroupOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listQueryResultsForSubscription operation.
- */
-export type PolicyStatesListQueryResultsForSubscriptionResponse = PolicyStatesQueryResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the summarizeForResourceGroup operation. */
+export type PolicyStatesSummarizeForResourceGroupResponse = SummarizeResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyStatesQueryResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyStatesListQueryResultsForResourceOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the summarizeForSubscription operation.
- */
-export type PolicyStatesSummarizeForSubscriptionResponse = SummarizeResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listQueryResultsForResource operation. */
+export type PolicyStatesListQueryResultsForResourceResponse = PolicyStatesQueryResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: SummarizeResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyStatesSummarizeForResourceOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listQueryResultsForResourceGroup operation.
- */
-export type PolicyStatesListQueryResultsForResourceGroupResponse = PolicyStatesQueryResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the summarizeForResource operation. */
+export type PolicyStatesSummarizeForResourceResponse = SummarizeResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyStatesQueryResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyStatesTriggerSubscriptionEvaluationOptionalParams
+ extends coreClient.OperationOptions {
+ /** Delay to wait until next poll, in milliseconds. */
+ updateIntervalInMs?: number;
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
+ resumeFrom?: string;
+}
-/**
- * Contains response data for the summarizeForResourceGroup operation.
- */
-export type PolicyStatesSummarizeForResourceGroupResponse = SummarizeResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Optional parameters. */
+export interface PolicyStatesTriggerResourceGroupEvaluationOptionalParams
+ extends coreClient.OperationOptions {
+ /** Delay to wait until next poll, in milliseconds. */
+ updateIntervalInMs?: number;
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
+ resumeFrom?: string;
+}
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: SummarizeResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyStatesListQueryResultsForPolicySetDefinitionOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listQueryResultsForResource operation.
- */
-export type PolicyStatesListQueryResultsForResourceResponse = PolicyStatesQueryResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listQueryResultsForPolicySetDefinition operation. */
+export type PolicyStatesListQueryResultsForPolicySetDefinitionResponse = PolicyStatesQueryResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyStatesQueryResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyStatesSummarizeForPolicySetDefinitionOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the summarizeForResource operation.
- */
-export type PolicyStatesSummarizeForResourceResponse = SummarizeResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the summarizeForPolicySetDefinition operation. */
+export type PolicyStatesSummarizeForPolicySetDefinitionResponse = SummarizeResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: SummarizeResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyStatesListQueryResultsForPolicyDefinitionOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listQueryResultsForPolicySetDefinition operation.
- */
-export type PolicyStatesListQueryResultsForPolicySetDefinitionResponse = PolicyStatesQueryResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listQueryResultsForPolicyDefinition operation. */
+export type PolicyStatesListQueryResultsForPolicyDefinitionResponse = PolicyStatesQueryResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyStatesQueryResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyStatesSummarizeForPolicyDefinitionOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the summarizeForPolicySetDefinition operation.
- */
-export type PolicyStatesSummarizeForPolicySetDefinitionResponse = SummarizeResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the summarizeForPolicyDefinition operation. */
+export type PolicyStatesSummarizeForPolicyDefinitionResponse = SummarizeResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: SummarizeResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listQueryResultsForPolicyDefinition operation.
- */
-export type PolicyStatesListQueryResultsForPolicyDefinitionResponse = PolicyStatesQueryResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listQueryResultsForSubscriptionLevelPolicyAssignment operation. */
+export type PolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentResponse = PolicyStatesQueryResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyStatesQueryResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyStatesSummarizeForSubscriptionLevelPolicyAssignmentOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the summarizeForPolicyDefinition operation.
- */
-export type PolicyStatesSummarizeForPolicyDefinitionResponse = SummarizeResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the summarizeForSubscriptionLevelPolicyAssignment operation. */
+export type PolicyStatesSummarizeForSubscriptionLevelPolicyAssignmentResponse = SummarizeResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: SummarizeResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listQueryResultsForSubscriptionLevelPolicyAssignment operation.
- */
-export type PolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentResponse = PolicyStatesQueryResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listQueryResultsForResourceGroupLevelPolicyAssignment operation. */
+export type PolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentResponse = PolicyStatesQueryResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyStatesQueryResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyStatesSummarizeForResourceGroupLevelPolicyAssignmentOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the summarizeForSubscriptionLevelPolicyAssignment operation.
- */
-export type PolicyStatesSummarizeForSubscriptionLevelPolicyAssignmentResponse = SummarizeResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the summarizeForResourceGroupLevelPolicyAssignment operation. */
+export type PolicyStatesSummarizeForResourceGroupLevelPolicyAssignmentResponse = SummarizeResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: SummarizeResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyStatesListQueryResultsForManagementGroupNextOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listQueryResultsForResourceGroupLevelPolicyAssignment operation.
- */
-export type PolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentResponse = PolicyStatesQueryResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listQueryResultsForManagementGroupNext operation. */
+export type PolicyStatesListQueryResultsForManagementGroupNextResponse = PolicyStatesQueryResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyStatesQueryResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyStatesListQueryResultsForSubscriptionNextOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the summarizeForResourceGroupLevelPolicyAssignment operation.
- */
-export type PolicyStatesSummarizeForResourceGroupLevelPolicyAssignmentResponse = SummarizeResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listQueryResultsForSubscriptionNext operation. */
+export type PolicyStatesListQueryResultsForSubscriptionNextResponse = PolicyStatesQueryResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: SummarizeResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyStatesListQueryResultsForResourceGroupNextOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listQueryResultsForManagementGroupNext operation.
- */
-export type PolicyStatesListQueryResultsForManagementGroupNextResponse = PolicyStatesQueryResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listQueryResultsForResourceGroupNext operation. */
+export type PolicyStatesListQueryResultsForResourceGroupNextResponse = PolicyStatesQueryResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyStatesQueryResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyStatesListQueryResultsForResourceNextOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listQueryResultsForSubscriptionNext operation.
- */
-export type PolicyStatesListQueryResultsForSubscriptionNextResponse = PolicyStatesQueryResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listQueryResultsForResourceNext operation. */
+export type PolicyStatesListQueryResultsForResourceNextResponse = PolicyStatesQueryResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyStatesQueryResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyStatesListQueryResultsForPolicySetDefinitionNextOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listQueryResultsForResourceGroupNext operation.
- */
-export type PolicyStatesListQueryResultsForResourceGroupNextResponse = PolicyStatesQueryResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listQueryResultsForPolicySetDefinitionNext operation. */
+export type PolicyStatesListQueryResultsForPolicySetDefinitionNextResponse = PolicyStatesQueryResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyStatesQueryResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyStatesListQueryResultsForPolicyDefinitionNextOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listQueryResultsForResourceNext operation.
- */
-export type PolicyStatesListQueryResultsForResourceNextResponse = PolicyStatesQueryResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listQueryResultsForPolicyDefinitionNext operation. */
+export type PolicyStatesListQueryResultsForPolicyDefinitionNextResponse = PolicyStatesQueryResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyStatesQueryResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentNextOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listQueryResultsForPolicySetDefinitionNext operation.
- */
-export type PolicyStatesListQueryResultsForPolicySetDefinitionNextResponse = PolicyStatesQueryResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listQueryResultsForSubscriptionLevelPolicyAssignmentNext operation. */
+export type PolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentNextResponse = PolicyStatesQueryResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyStatesQueryResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentNextOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the listQueryResultsForPolicyDefinitionNext operation.
- */
-export type PolicyStatesListQueryResultsForPolicyDefinitionNextResponse = PolicyStatesQueryResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listQueryResultsForResourceGroupLevelPolicyAssignmentNext operation. */
+export type PolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentNextResponse = PolicyStatesQueryResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyStatesQueryResults;
- };
-};
+/** Optional parameters. */
+export interface OperationsListOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the listQueryResultsForSubscriptionLevelPolicyAssignmentNext
- * operation.
- */
-export type PolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentNextResponse = PolicyStatesQueryResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the list operation. */
+export type OperationsListResponse = OperationsListResults;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyStatesQueryResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyMetadataGetResourceOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the listQueryResultsForResourceGroupLevelPolicyAssignmentNext
- * operation.
- */
-export type PolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentNextResponse = PolicyStatesQueryResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the getResource operation. */
+export type PolicyMetadataGetResourceResponse = PolicyMetadata;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyStatesQueryResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyMetadataListOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the list operation.
- */
-export type OperationsListResponse = OperationsListResults & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the list operation. */
+export type PolicyMetadataListResponse = PolicyMetadataCollection;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: OperationsListResults;
- };
-};
+/** Optional parameters. */
+export interface PolicyMetadataListNextOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
-/**
- * Contains response data for the getResource operation.
- */
-export type PolicyMetadataGetResourceResponse = PolicyMetadata & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listNext operation. */
+export type PolicyMetadataListNextResponse = PolicyMetadataCollection;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyMetadata;
- };
-};
+/** Optional parameters. */
+export interface PolicyRestrictionsCheckAtSubscriptionScopeOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the list operation.
- */
-export type PolicyMetadataListResponse = PolicyMetadataCollection & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the checkAtSubscriptionScope operation. */
+export type PolicyRestrictionsCheckAtSubscriptionScopeResponse = CheckRestrictionsResult;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyMetadataCollection;
- };
-};
+/** Optional parameters. */
+export interface PolicyRestrictionsCheckAtResourceGroupScopeOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the listNext operation.
- */
-export type PolicyMetadataListNextResponse = PolicyMetadataCollection & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the checkAtResourceGroupScope operation. */
+export type PolicyRestrictionsCheckAtResourceGroupScopeResponse = CheckRestrictionsResult;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PolicyMetadataCollection;
- };
-};
+/** Optional parameters. */
+export interface AttestationsListForSubscriptionOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
+
+/** Contains response data for the listForSubscription operation. */
+export type AttestationsListForSubscriptionResponse = AttestationListResult;
+
+/** Optional parameters. */
+export interface AttestationsCreateOrUpdateAtSubscriptionOptionalParams
+ extends coreClient.OperationOptions {
+ /** Delay to wait until next poll, in milliseconds. */
+ updateIntervalInMs?: number;
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
+ resumeFrom?: string;
+}
+
+/** Contains response data for the createOrUpdateAtSubscription operation. */
+export type AttestationsCreateOrUpdateAtSubscriptionResponse = Attestation;
+
+/** Optional parameters. */
+export interface AttestationsGetAtSubscriptionOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the getAtSubscription operation. */
+export type AttestationsGetAtSubscriptionResponse = Attestation;
+
+/** Optional parameters. */
+export interface AttestationsDeleteAtSubscriptionOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Optional parameters. */
+export interface AttestationsListForResourceGroupOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
+
+/** Contains response data for the listForResourceGroup operation. */
+export type AttestationsListForResourceGroupResponse = AttestationListResult;
+
+/** Optional parameters. */
+export interface AttestationsCreateOrUpdateAtResourceGroupOptionalParams
+ extends coreClient.OperationOptions {
+ /** Delay to wait until next poll, in milliseconds. */
+ updateIntervalInMs?: number;
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
+ resumeFrom?: string;
+}
+
+/** Contains response data for the createOrUpdateAtResourceGroup operation. */
+export type AttestationsCreateOrUpdateAtResourceGroupResponse = Attestation;
+
+/** Optional parameters. */
+export interface AttestationsGetAtResourceGroupOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the getAtResourceGroup operation. */
+export type AttestationsGetAtResourceGroupResponse = Attestation;
+
+/** Optional parameters. */
+export interface AttestationsDeleteAtResourceGroupOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Optional parameters. */
+export interface AttestationsListForResourceOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
+
+/** Contains response data for the listForResource operation. */
+export type AttestationsListForResourceResponse = AttestationListResult;
+
+/** Optional parameters. */
+export interface AttestationsCreateOrUpdateAtResourceOptionalParams
+ extends coreClient.OperationOptions {
+ /** Delay to wait until next poll, in milliseconds. */
+ updateIntervalInMs?: number;
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
+ resumeFrom?: string;
+}
+
+/** Contains response data for the createOrUpdateAtResource operation. */
+export type AttestationsCreateOrUpdateAtResourceResponse = Attestation;
+
+/** Optional parameters. */
+export interface AttestationsGetAtResourceOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the getAtResource operation. */
+export type AttestationsGetAtResourceResponse = Attestation;
+
+/** Optional parameters. */
+export interface AttestationsDeleteAtResourceOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Optional parameters. */
+export interface AttestationsListForSubscriptionNextOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
+
+/** Contains response data for the listForSubscriptionNext operation. */
+export type AttestationsListForSubscriptionNextResponse = AttestationListResult;
+
+/** Optional parameters. */
+export interface AttestationsListForResourceGroupNextOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
+
+/** Contains response data for the listForResourceGroupNext operation. */
+export type AttestationsListForResourceGroupNextResponse = AttestationListResult;
+
+/** Optional parameters. */
+export interface AttestationsListForResourceNextOptionalParams
+ extends coreClient.OperationOptions {
+ /** Parameter group */
+ queryOptions?: QueryOptions;
+}
+
+/** Contains response data for the listForResourceNext operation. */
+export type AttestationsListForResourceNextResponse = AttestationListResult;
+
+/** Optional parameters. */
+export interface PolicyInsightsClientOptionalParams
+ extends coreClient.ServiceClientOptions {
+ /** server parameter */
+ $host?: string;
+ /** Overrides client endpoint. */
+ endpoint?: string;
+}
diff --git a/sdk/policyinsights/arm-policyinsights/src/models/mappers.ts b/sdk/policyinsights/arm-policyinsights/src/models/mappers.ts
index 940810fdde6d..47ef25b45fde 100644
--- a/sdk/policyinsights/arm-policyinsights/src/models/mappers.ts
+++ b/sdk/policyinsights/arm-policyinsights/src/models/mappers.ts
@@ -6,56 +6,29 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js";
-import * as msRest from "@azure/ms-rest-js";
+import * as coreClient from "@azure/core-client";
-export const CloudError = CloudErrorMapper;
-export const BaseResource = BaseResourceMapper;
-
-export const PolicyDetails: msRest.CompositeMapper = {
- serializedName: "PolicyDetails",
+export const PolicyTrackedResourcesQueryResults: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "PolicyDetails",
+ className: "PolicyTrackedResourcesQueryResults",
modelProperties: {
- policyDefinitionId: {
- readOnly: true,
- serializedName: "policyDefinitionId",
- type: {
- name: "String"
- }
- },
- policyAssignmentId: {
- readOnly: true,
- serializedName: "policyAssignmentId",
- type: {
- name: "String"
- }
- },
- policyAssignmentDisplayName: {
- readOnly: true,
- serializedName: "policyAssignmentDisplayName",
- type: {
- name: "String"
- }
- },
- policyAssignmentScope: {
- readOnly: true,
- serializedName: "policyAssignmentScope",
- type: {
- name: "String"
- }
- },
- policySetDefinitionId: {
+ value: {
+ serializedName: "value",
readOnly: true,
- serializedName: "policySetDefinitionId",
type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "PolicyTrackedResource"
+ }
+ }
}
},
- policyDefinitionReferenceId: {
+ nextLink: {
+ serializedName: "nextLink",
readOnly: true,
- serializedName: "policyDefinitionReferenceId",
type: {
name: "String"
}
@@ -64,30 +37,42 @@ export const PolicyDetails: msRest.CompositeMapper = {
}
};
-export const TrackedResourceModificationDetails: msRest.CompositeMapper = {
- serializedName: "TrackedResourceModificationDetails",
+export const PolicyTrackedResource: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "TrackedResourceModificationDetails",
+ className: "PolicyTrackedResource",
modelProperties: {
- policyDetails: {
+ trackedResourceId: {
+ serializedName: "trackedResourceId",
readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ policyDetails: {
serializedName: "policyDetails",
type: {
name: "Composite",
className: "PolicyDetails"
}
},
- deploymentId: {
- readOnly: true,
- serializedName: "deploymentId",
+ createdBy: {
+ serializedName: "createdBy",
type: {
- name: "String"
+ name: "Composite",
+ className: "TrackedResourceModificationDetails"
}
},
- deploymentTime: {
+ lastModifiedBy: {
+ serializedName: "lastModifiedBy",
+ type: {
+ name: "Composite",
+ className: "TrackedResourceModificationDetails"
+ }
+ },
+ lastUpdateUtc: {
+ serializedName: "lastUpdateUtc",
readOnly: true,
- serializedName: "deploymentTime",
type: {
name: "DateTime"
}
@@ -96,80 +81,88 @@ export const TrackedResourceModificationDetails: msRest.CompositeMapper = {
}
};
-export const PolicyTrackedResource: msRest.CompositeMapper = {
- serializedName: "PolicyTrackedResource",
+export const PolicyDetails: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "PolicyTrackedResource",
+ className: "PolicyDetails",
modelProperties: {
- trackedResourceId: {
+ policyDefinitionId: {
+ serializedName: "policyDefinitionId",
readOnly: true,
- serializedName: "trackedResourceId",
type: {
name: "String"
}
},
- policyDetails: {
+ policyAssignmentId: {
+ serializedName: "policyAssignmentId",
readOnly: true,
- serializedName: "policyDetails",
type: {
- name: "Composite",
- className: "PolicyDetails"
+ name: "String"
}
},
- createdBy: {
+ policyAssignmentDisplayName: {
+ serializedName: "policyAssignmentDisplayName",
readOnly: true,
- serializedName: "createdBy",
type: {
- name: "Composite",
- className: "TrackedResourceModificationDetails"
+ name: "String"
}
},
- lastModifiedBy: {
+ policyAssignmentScope: {
+ serializedName: "policyAssignmentScope",
readOnly: true,
- serializedName: "lastModifiedBy",
type: {
- name: "Composite",
- className: "TrackedResourceModificationDetails"
+ name: "String"
}
},
- lastUpdateUtc: {
+ policySetDefinitionId: {
+ serializedName: "policySetDefinitionId",
readOnly: true,
- serializedName: "lastUpdateUtc",
type: {
- name: "DateTime"
+ name: "String"
+ }
+ },
+ policyDefinitionReferenceId: {
+ serializedName: "policyDefinitionReferenceId",
+ readOnly: true,
+ type: {
+ name: "String"
}
}
}
}
};
-export const QueryFailureError: msRest.CompositeMapper = {
- serializedName: "QueryFailure_error",
+export const TrackedResourceModificationDetails: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "QueryFailureError",
+ className: "TrackedResourceModificationDetails",
modelProperties: {
- code: {
+ policyDetails: {
+ serializedName: "policyDetails",
+ type: {
+ name: "Composite",
+ className: "PolicyDetails"
+ }
+ },
+ deploymentId: {
+ serializedName: "deploymentId",
readOnly: true,
- serializedName: "code",
type: {
name: "String"
}
},
- message: {
+ deploymentTime: {
+ serializedName: "deploymentTime",
readOnly: true,
- serializedName: "message",
type: {
- name: "String"
+ name: "DateTime"
}
}
}
}
};
-export const QueryFailure: msRest.CompositeMapper = {
- serializedName: "QueryFailure",
+export const QueryFailure: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "QueryFailure",
@@ -185,306 +178,722 @@ export const QueryFailure: msRest.CompositeMapper = {
}
};
-export const RemediationFilters: msRest.CompositeMapper = {
- serializedName: "RemediationFilters",
+export const QueryFailureError: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "RemediationFilters",
+ className: "QueryFailureError",
modelProperties: {
- locations: {
- serializedName: "locations",
+ code: {
+ serializedName: "code",
+ readOnly: true,
type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
+ name: "String"
+ }
+ },
+ message: {
+ serializedName: "message",
+ readOnly: true,
+ type: {
+ name: "String"
}
}
}
}
};
-export const RemediationDeploymentSummary: msRest.CompositeMapper = {
- serializedName: "RemediationDeploymentSummary",
+export const RemediationDeploymentsListResult: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "RemediationDeploymentSummary",
+ className: "RemediationDeploymentsListResult",
modelProperties: {
- totalDeployments: {
- readOnly: true,
- serializedName: "totalDeployments",
- type: {
- name: "Number"
- }
- },
- successfulDeployments: {
+ value: {
+ serializedName: "value",
readOnly: true,
- serializedName: "successfulDeployments",
type: {
- name: "Number"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "RemediationDeployment"
+ }
+ }
}
},
- failedDeployments: {
+ nextLink: {
+ serializedName: "nextLink",
readOnly: true,
- serializedName: "failedDeployments",
type: {
- name: "Number"
+ name: "String"
}
}
}
}
};
-export const Remediation: msRest.CompositeMapper = {
- serializedName: "Remediation",
+export const RemediationDeployment: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "Remediation",
+ className: "RemediationDeployment",
modelProperties: {
- policyAssignmentId: {
- serializedName: "properties.policyAssignmentId",
+ remediatedResourceId: {
+ serializedName: "remediatedResourceId",
+ readOnly: true,
type: {
name: "String"
}
},
- policyDefinitionReferenceId: {
- serializedName: "properties.policyDefinitionReferenceId",
+ deploymentId: {
+ serializedName: "deploymentId",
+ readOnly: true,
type: {
name: "String"
}
},
- resourceDiscoveryMode: {
- serializedName: "properties.resourceDiscoveryMode",
+ status: {
+ serializedName: "status",
+ readOnly: true,
type: {
name: "String"
}
},
- provisioningState: {
+ resourceLocation: {
+ serializedName: "resourceLocation",
readOnly: true,
- serializedName: "properties.provisioningState",
type: {
name: "String"
}
},
+ error: {
+ serializedName: "error",
+ type: {
+ name: "Composite",
+ className: "ErrorDefinition"
+ }
+ },
createdOn: {
+ serializedName: "createdOn",
readOnly: true,
- serializedName: "properties.createdOn",
type: {
name: "DateTime"
}
},
lastUpdatedOn: {
+ serializedName: "lastUpdatedOn",
readOnly: true,
- serializedName: "properties.lastUpdatedOn",
type: {
name: "DateTime"
}
- },
- filters: {
- serializedName: "properties.filters",
- type: {
- name: "Composite",
- className: "RemediationFilters"
- }
- },
- deploymentStatus: {
+ }
+ }
+ }
+};
+
+export const ErrorDefinition: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ErrorDefinition",
+ modelProperties: {
+ code: {
+ serializedName: "code",
readOnly: true,
- serializedName: "properties.deploymentStatus",
type: {
- name: "Composite",
- className: "RemediationDeploymentSummary"
+ name: "String"
}
},
- id: {
+ message: {
+ serializedName: "message",
readOnly: true,
- serializedName: "id",
type: {
name: "String"
}
},
- type: {
+ target: {
+ serializedName: "target",
readOnly: true,
- serializedName: "type",
type: {
name: "String"
}
},
- name: {
+ details: {
+ serializedName: "details",
readOnly: true,
- serializedName: "name",
type: {
- name: "String"
- }
- }
- }
- }
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ErrorDefinition"
+ }
+ }
+ }
+ },
+ additionalInfo: {
+ serializedName: "additionalInfo",
+ readOnly: true,
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "TypedErrorInfo"
+ }
+ }
+ }
+ }
+ }
+ }
};
-export const TypedErrorInfo: msRest.CompositeMapper = {
- serializedName: "TypedErrorInfo",
+export const TypedErrorInfo: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "TypedErrorInfo",
modelProperties: {
type: {
+ serializedName: "type",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ info: {
+ serializedName: "info",
readOnly: true,
+ type: {
+ name: "any"
+ }
+ }
+ }
+ }
+};
+
+export const ErrorResponse: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ErrorResponse",
+ modelProperties: {
+ error: {
+ serializedName: "error",
+ type: {
+ name: "Composite",
+ className: "ErrorDefinition"
+ }
+ }
+ }
+ }
+};
+
+export const Remediation: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "Remediation",
+ modelProperties: {
+ id: {
+ serializedName: "id",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ type: {
serializedName: "type",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ name: {
+ serializedName: "name",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ systemData: {
+ serializedName: "systemData",
+ type: {
+ name: "Composite",
+ className: "SystemData"
+ }
+ },
+ policyAssignmentId: {
+ serializedName: "properties.policyAssignmentId",
+ type: {
+ name: "String"
+ }
+ },
+ policyDefinitionReferenceId: {
+ serializedName: "properties.policyDefinitionReferenceId",
+ type: {
+ name: "String"
+ }
+ },
+ resourceDiscoveryMode: {
+ serializedName: "properties.resourceDiscoveryMode",
+ type: {
+ name: "String"
+ }
+ },
+ provisioningState: {
+ serializedName: "properties.provisioningState",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ createdOn: {
+ serializedName: "properties.createdOn",
+ readOnly: true,
+ type: {
+ name: "DateTime"
+ }
+ },
+ lastUpdatedOn: {
+ serializedName: "properties.lastUpdatedOn",
+ readOnly: true,
+ type: {
+ name: "DateTime"
+ }
+ },
+ filters: {
+ serializedName: "properties.filters",
+ type: {
+ name: "Composite",
+ className: "RemediationFilters"
+ }
+ },
+ deploymentStatus: {
+ serializedName: "properties.deploymentStatus",
+ type: {
+ name: "Composite",
+ className: "RemediationDeploymentSummary"
+ }
+ },
+ statusMessage: {
+ serializedName: "properties.statusMessage",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ correlationId: {
+ serializedName: "properties.correlationId",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ resourceCount: {
+ serializedName: "properties.resourceCount",
+ type: {
+ name: "Number"
+ }
+ },
+ parallelDeployments: {
+ serializedName: "properties.parallelDeployments",
+ type: {
+ name: "Number"
+ }
+ },
+ failureThreshold: {
+ serializedName: "properties.failureThreshold",
+ type: {
+ name: "Composite",
+ className: "RemediationPropertiesFailureThreshold"
+ }
+ }
+ }
+ }
+};
+
+export const RemediationFilters: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "RemediationFilters",
+ modelProperties: {
+ locations: {
+ serializedName: "locations",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const RemediationDeploymentSummary: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "RemediationDeploymentSummary",
+ modelProperties: {
+ totalDeployments: {
+ serializedName: "totalDeployments",
+ readOnly: true,
+ type: {
+ name: "Number"
+ }
+ },
+ successfulDeployments: {
+ serializedName: "successfulDeployments",
+ readOnly: true,
+ type: {
+ name: "Number"
+ }
+ },
+ failedDeployments: {
+ serializedName: "failedDeployments",
+ readOnly: true,
+ type: {
+ name: "Number"
+ }
+ }
+ }
+ }
+};
+
+export const RemediationPropertiesFailureThreshold: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "RemediationPropertiesFailureThreshold",
+ modelProperties: {
+ percentage: {
+ serializedName: "percentage",
+ type: {
+ name: "Number"
+ }
+ }
+ }
+ }
+};
+
+export const SystemData: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "SystemData",
+ modelProperties: {
+ createdBy: {
+ serializedName: "createdBy",
+ type: {
+ name: "String"
+ }
+ },
+ createdByType: {
+ serializedName: "createdByType",
+ type: {
+ name: "String"
+ }
+ },
+ createdAt: {
+ serializedName: "createdAt",
+ type: {
+ name: "DateTime"
+ }
+ },
+ lastModifiedBy: {
+ serializedName: "lastModifiedBy",
+ type: {
+ name: "String"
+ }
+ },
+ lastModifiedByType: {
+ serializedName: "lastModifiedByType",
+ type: {
+ name: "String"
+ }
+ },
+ lastModifiedAt: {
+ serializedName: "lastModifiedAt",
+ type: {
+ name: "DateTime"
+ }
+ }
+ }
+ }
+};
+
+export const RemediationListResult: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "RemediationListResult",
+ modelProperties: {
+ value: {
+ serializedName: "value",
+ readOnly: true,
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "Remediation"
+ }
+ }
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const PolicyEventsQueryResults: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "PolicyEventsQueryResults",
+ modelProperties: {
+ odataContext: {
+ serializedName: "@odata\\.context",
+ type: {
+ name: "String"
+ }
+ },
+ odataCount: {
+ constraints: {
+ InclusiveMinimum: 0
+ },
+ serializedName: "@odata\\.count",
+ type: {
+ name: "Number"
+ }
+ },
+ odataNextLink: {
+ serializedName: "@odata\\.nextLink",
+ type: {
+ name: "String"
+ }
+ },
+ value: {
+ serializedName: "value",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "PolicyEvent"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const PolicyEvent: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "PolicyEvent",
+ additionalProperties: { type: { name: "Object" } },
+ modelProperties: {
+ odataId: {
+ serializedName: "@odata\\.id",
+ type: {
+ name: "String"
+ }
+ },
+ odataContext: {
+ serializedName: "@odata\\.context",
+ type: {
+ name: "String"
+ }
+ },
+ timestamp: {
+ serializedName: "timestamp",
+ type: {
+ name: "DateTime"
+ }
+ },
+ resourceId: {
+ serializedName: "resourceId",
+ type: {
+ name: "String"
+ }
+ },
+ policyAssignmentId: {
+ serializedName: "policyAssignmentId",
+ type: {
+ name: "String"
+ }
+ },
+ policyDefinitionId: {
+ serializedName: "policyDefinitionId",
+ type: {
+ name: "String"
+ }
+ },
+ effectiveParameters: {
+ serializedName: "effectiveParameters",
+ type: {
+ name: "String"
+ }
+ },
+ isCompliant: {
+ serializedName: "isCompliant",
+ type: {
+ name: "Boolean"
+ }
+ },
+ subscriptionId: {
+ serializedName: "subscriptionId",
+ type: {
+ name: "String"
+ }
+ },
+ resourceType: {
+ serializedName: "resourceType",
+ type: {
+ name: "String"
+ }
+ },
+ resourceLocation: {
+ serializedName: "resourceLocation",
type: {
name: "String"
}
},
- info: {
- readOnly: true,
- serializedName: "info",
+ resourceGroup: {
+ serializedName: "resourceGroup",
type: {
- name: "Object"
+ name: "String"
}
- }
- }
- }
-};
-
-export const ErrorDefinition: msRest.CompositeMapper = {
- serializedName: "ErrorDefinition",
- type: {
- name: "Composite",
- className: "ErrorDefinition",
- modelProperties: {
- code: {
- readOnly: true,
- serializedName: "code",
+ },
+ resourceTags: {
+ serializedName: "resourceTags",
type: {
name: "String"
}
},
- message: {
- readOnly: true,
- serializedName: "message",
+ policyAssignmentName: {
+ serializedName: "policyAssignmentName",
type: {
name: "String"
}
},
- target: {
- readOnly: true,
- serializedName: "target",
+ policyAssignmentOwner: {
+ serializedName: "policyAssignmentOwner",
type: {
name: "String"
}
},
- details: {
- readOnly: true,
- serializedName: "details",
+ policyAssignmentParameters: {
+ serializedName: "policyAssignmentParameters",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ErrorDefinition"
- }
- }
+ name: "String"
}
},
- additionalInfo: {
- readOnly: true,
- serializedName: "additionalInfo",
+ policyAssignmentScope: {
+ serializedName: "policyAssignmentScope",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "TypedErrorInfo"
- }
- }
+ name: "String"
}
- }
- }
- }
-};
-
-export const RemediationDeployment: msRest.CompositeMapper = {
- serializedName: "RemediationDeployment",
- type: {
- name: "Composite",
- className: "RemediationDeployment",
- modelProperties: {
- remediatedResourceId: {
- readOnly: true,
- serializedName: "remediatedResourceId",
+ },
+ policyDefinitionName: {
+ serializedName: "policyDefinitionName",
type: {
name: "String"
}
},
- deploymentId: {
- readOnly: true,
- serializedName: "deploymentId",
+ policyDefinitionAction: {
+ serializedName: "policyDefinitionAction",
type: {
name: "String"
}
},
- status: {
- readOnly: true,
- serializedName: "status",
+ policyDefinitionCategory: {
+ serializedName: "policyDefinitionCategory",
type: {
name: "String"
}
},
- resourceLocation: {
- readOnly: true,
- serializedName: "resourceLocation",
+ policySetDefinitionId: {
+ serializedName: "policySetDefinitionId",
type: {
name: "String"
}
},
- error: {
- readOnly: true,
- serializedName: "error",
+ policySetDefinitionName: {
+ serializedName: "policySetDefinitionName",
type: {
- name: "Composite",
- className: "ErrorDefinition"
+ name: "String"
}
},
- createdOn: {
- readOnly: true,
- serializedName: "createdOn",
+ policySetDefinitionOwner: {
+ serializedName: "policySetDefinitionOwner",
type: {
- name: "DateTime"
+ name: "String"
}
},
- lastUpdatedOn: {
- readOnly: true,
- serializedName: "lastUpdatedOn",
+ policySetDefinitionCategory: {
+ serializedName: "policySetDefinitionCategory",
type: {
- name: "DateTime"
+ name: "String"
}
- }
- }
- }
-};
-
-export const ErrorResponse: msRest.CompositeMapper = {
- serializedName: "ErrorResponse",
- type: {
- name: "Composite",
- className: "ErrorResponse",
- modelProperties: {
- error: {
- serializedName: "error",
+ },
+ policySetDefinitionParameters: {
+ serializedName: "policySetDefinitionParameters",
type: {
- name: "Composite",
- className: "ErrorDefinition"
+ name: "String"
+ }
+ },
+ managementGroupIds: {
+ serializedName: "managementGroupIds",
+ type: {
+ name: "String"
+ }
+ },
+ policyDefinitionReferenceId: {
+ serializedName: "policyDefinitionReferenceId",
+ type: {
+ name: "String"
+ }
+ },
+ complianceState: {
+ serializedName: "complianceState",
+ type: {
+ name: "String"
+ }
+ },
+ tenantId: {
+ serializedName: "tenantId",
+ type: {
+ name: "String"
+ }
+ },
+ principalOid: {
+ serializedName: "principalOid",
+ type: {
+ name: "String"
+ }
+ },
+ components: {
+ serializedName: "components",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ComponentEventDetails"
+ }
+ }
}
}
}
}
};
-export const ComponentEventDetails: msRest.CompositeMapper = {
- serializedName: "ComponentEventDetails",
+export const ComponentEventDetails: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "ComponentEventDetails",
+ additionalProperties: { type: { name: "Object" } },
modelProperties: {
id: {
serializedName: "id",
@@ -528,28 +937,65 @@ export const ComponentEventDetails: msRest.CompositeMapper = {
name: "String"
}
}
- },
- additionalProperties: {
- type: {
- name: "Object"
+ }
+ }
+};
+
+export const PolicyStatesQueryResults: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "PolicyStatesQueryResults",
+ modelProperties: {
+ odataContext: {
+ serializedName: "@odata\\.context",
+ type: {
+ name: "String"
+ }
+ },
+ odataCount: {
+ constraints: {
+ InclusiveMinimum: 0
+ },
+ serializedName: "@odata\\.count",
+ type: {
+ name: "Number"
+ }
+ },
+ odataNextLink: {
+ serializedName: "@odata\\.nextLink",
+ type: {
+ name: "String"
+ }
+ },
+ value: {
+ serializedName: "value",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "PolicyState"
+ }
+ }
+ }
}
}
}
};
-export const PolicyEvent: msRest.CompositeMapper = {
- serializedName: "PolicyEvent",
+export const PolicyState: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "PolicyEvent",
+ className: "PolicyState",
+ additionalProperties: { type: { name: "Object" } },
modelProperties: {
- odataid: {
+ odataId: {
serializedName: "@odata\\.id",
type: {
name: "String"
}
},
- odatacontext: {
+ odataContext: {
serializedName: "@odata\\.context",
type: {
name: "String"
@@ -711,46 +1157,90 @@ export const PolicyEvent: msRest.CompositeMapper = {
name: "String"
}
},
- tenantId: {
- serializedName: "tenantId",
+ policyEvaluationDetails: {
+ serializedName: "policyEvaluationDetails",
+ type: {
+ name: "Composite",
+ className: "PolicyEvaluationDetails"
+ }
+ },
+ policyDefinitionGroupNames: {
+ serializedName: "policyDefinitionGroupNames",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ },
+ components: {
+ serializedName: "components",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ComponentStateDetails"
+ }
+ }
+ }
+ },
+ policyDefinitionVersion: {
+ serializedName: "policyDefinitionVersion",
+ readOnly: true,
type: {
name: "String"
}
},
- principalOid: {
- serializedName: "principalOid",
+ policySetDefinitionVersion: {
+ serializedName: "policySetDefinitionVersion",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ policyAssignmentVersion: {
+ serializedName: "policyAssignmentVersion",
+ readOnly: true,
type: {
name: "String"
}
- },
- components: {
- serializedName: "components",
+ }
+ }
+ }
+};
+
+export const PolicyEvaluationDetails: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "PolicyEvaluationDetails",
+ modelProperties: {
+ evaluatedExpressions: {
+ serializedName: "evaluatedExpressions",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "ComponentEventDetails",
- additionalProperties: {
- type: {
- name: "Object"
- }
- }
+ className: "ExpressionEvaluationDetails"
}
}
}
- }
- },
- additionalProperties: {
- type: {
- name: "Object"
+ },
+ ifNotExistsDetails: {
+ serializedName: "ifNotExistsDetails",
+ type: {
+ name: "Composite",
+ className: "IfNotExistsEvaluationDetails"
+ }
}
}
}
};
-export const ExpressionEvaluationDetails: msRest.CompositeMapper = {
- serializedName: "ExpressionEvaluationDetails",
+export const ExpressionEvaluationDetails: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "ExpressionEvaluationDetails",
@@ -767,6 +1257,13 @@ export const ExpressionEvaluationDetails: msRest.CompositeMapper = {
name: "String"
}
},
+ expressionKind: {
+ serializedName: "expressionKind",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
path: {
serializedName: "path",
type: {
@@ -776,13 +1273,15 @@ export const ExpressionEvaluationDetails: msRest.CompositeMapper = {
expressionValue: {
serializedName: "expressionValue",
type: {
- name: "Object"
+ name: "Dictionary",
+ value: { type: { name: "any" } }
}
},
targetValue: {
serializedName: "targetValue",
type: {
- name: "Object"
+ name: "Dictionary",
+ value: { type: { name: "any" } }
}
},
operator: {
@@ -795,8 +1294,7 @@ export const ExpressionEvaluationDetails: msRest.CompositeMapper = {
}
};
-export const IfNotExistsEvaluationDetails: msRest.CompositeMapper = {
- serializedName: "IfNotExistsEvaluationDetails",
+export const IfNotExistsEvaluationDetails: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "IfNotExistsEvaluationDetails",
@@ -817,40 +1315,11 @@ export const IfNotExistsEvaluationDetails: msRest.CompositeMapper = {
}
};
-export const PolicyEvaluationDetails: msRest.CompositeMapper = {
- serializedName: "PolicyEvaluationDetails",
- type: {
- name: "Composite",
- className: "PolicyEvaluationDetails",
- modelProperties: {
- evaluatedExpressions: {
- serializedName: "evaluatedExpressions",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ExpressionEvaluationDetails"
- }
- }
- }
- },
- ifNotExistsDetails: {
- serializedName: "ifNotExistsDetails",
- type: {
- name: "Composite",
- className: "IfNotExistsEvaluationDetails"
- }
- }
- }
- }
-};
-
-export const ComponentStateDetails: msRest.CompositeMapper = {
- serializedName: "ComponentStateDetails",
+export const ComponentStateDetails: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "ComponentStateDetails",
+ additionalProperties: { type: { name: "Object" } },
modelProperties: {
id: {
serializedName: "id",
@@ -882,256 +1351,157 @@ export const ComponentStateDetails: msRest.CompositeMapper = {
name: "String"
}
}
- },
- additionalProperties: {
- type: {
- name: "Object"
- }
}
}
};
-export const PolicyState: msRest.CompositeMapper = {
- serializedName: "PolicyState",
+export const SummarizeResults: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "PolicyState",
+ className: "SummarizeResults",
modelProperties: {
- odataid: {
- serializedName: "@odata\\.id",
- type: {
- name: "String"
- }
- },
- odatacontext: {
+ odataContext: {
serializedName: "@odata\\.context",
type: {
name: "String"
}
},
- timestamp: {
- serializedName: "timestamp",
- type: {
- name: "DateTime"
- }
- },
- resourceId: {
- serializedName: "resourceId",
- type: {
- name: "String"
- }
- },
- policyAssignmentId: {
- serializedName: "policyAssignmentId",
- type: {
- name: "String"
- }
- },
- policyDefinitionId: {
- serializedName: "policyDefinitionId",
- type: {
- name: "String"
- }
- },
- effectiveParameters: {
- serializedName: "effectiveParameters",
- type: {
- name: "String"
- }
- },
- isCompliant: {
- serializedName: "isCompliant",
- type: {
- name: "Boolean"
- }
- },
- subscriptionId: {
- serializedName: "subscriptionId",
- type: {
- name: "String"
- }
- },
- resourceType: {
- serializedName: "resourceType",
- type: {
- name: "String"
- }
- },
- resourceLocation: {
- serializedName: "resourceLocation",
- type: {
- name: "String"
- }
- },
- resourceGroup: {
- serializedName: "resourceGroup",
- type: {
- name: "String"
- }
- },
- resourceTags: {
- serializedName: "resourceTags",
- type: {
- name: "String"
- }
- },
- policyAssignmentName: {
- serializedName: "policyAssignmentName",
- type: {
- name: "String"
- }
- },
- policyAssignmentOwner: {
- serializedName: "policyAssignmentOwner",
- type: {
- name: "String"
- }
- },
- policyAssignmentParameters: {
- serializedName: "policyAssignmentParameters",
- type: {
- name: "String"
- }
- },
- policyAssignmentScope: {
- serializedName: "policyAssignmentScope",
- type: {
- name: "String"
- }
- },
- policyDefinitionName: {
- serializedName: "policyDefinitionName",
- type: {
- name: "String"
- }
- },
- policyDefinitionAction: {
- serializedName: "policyDefinitionAction",
- type: {
- name: "String"
- }
- },
- policyDefinitionCategory: {
- serializedName: "policyDefinitionCategory",
- type: {
- name: "String"
- }
- },
- policySetDefinitionId: {
- serializedName: "policySetDefinitionId",
+ odataCount: {
+ constraints: {
+ InclusiveMaximum: 1,
+ InclusiveMinimum: 1
+ },
+ serializedName: "@odata\\.count",
type: {
- name: "String"
+ name: "Number"
}
},
- policySetDefinitionName: {
- serializedName: "policySetDefinitionName",
+ value: {
+ serializedName: "value",
type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "Summary"
+ }
+ }
}
- },
- policySetDefinitionOwner: {
- serializedName: "policySetDefinitionOwner",
+ }
+ }
+ }
+};
+
+export const Summary: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "Summary",
+ modelProperties: {
+ odataId: {
+ serializedName: "@odata\\.id",
type: {
name: "String"
}
},
- policySetDefinitionCategory: {
- serializedName: "policySetDefinitionCategory",
+ odataContext: {
+ serializedName: "@odata\\.context",
type: {
name: "String"
}
},
- policySetDefinitionParameters: {
- serializedName: "policySetDefinitionParameters",
+ results: {
+ serializedName: "results",
type: {
- name: "String"
+ name: "Composite",
+ className: "SummaryResults"
}
},
- managementGroupIds: {
- serializedName: "managementGroupIds",
+ policyAssignments: {
+ serializedName: "policyAssignments",
type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "PolicyAssignmentSummary"
+ }
+ }
}
- },
- policyDefinitionReferenceId: {
- serializedName: "policyDefinitionReferenceId",
+ }
+ }
+ }
+};
+
+export const SummaryResults: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "SummaryResults",
+ modelProperties: {
+ queryResultsUri: {
+ serializedName: "queryResultsUri",
type: {
name: "String"
}
},
- complianceState: {
- serializedName: "complianceState",
+ nonCompliantResources: {
+ constraints: {
+ InclusiveMinimum: 0
+ },
+ serializedName: "nonCompliantResources",
type: {
- name: "String"
+ name: "Number"
}
},
- policyEvaluationDetails: {
- serializedName: "policyEvaluationDetails",
+ nonCompliantPolicies: {
+ constraints: {
+ InclusiveMinimum: 0
+ },
+ serializedName: "nonCompliantPolicies",
type: {
- name: "Composite",
- className: "PolicyEvaluationDetails"
+ name: "Number"
}
},
- policyDefinitionGroupNames: {
- serializedName: "policyDefinitionGroupNames",
+ resourceDetails: {
+ serializedName: "resourceDetails",
type: {
name: "Sequence",
element: {
type: {
- name: "String"
+ name: "Composite",
+ className: "ComplianceDetail"
}
}
}
},
- components: {
- serializedName: "components",
+ policyDetails: {
+ serializedName: "policyDetails",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "ComponentStateDetails",
- additionalProperties: {
- type: {
- name: "Object"
- }
- }
+ className: "ComplianceDetail"
}
}
}
},
- policyDefinitionVersion: {
- readOnly: true,
- serializedName: "policyDefinitionVersion",
- type: {
- name: "String"
- }
- },
- policySetDefinitionVersion: {
- readOnly: true,
- serializedName: "policySetDefinitionVersion",
- type: {
- name: "String"
- }
- },
- policyAssignmentVersion: {
- readOnly: true,
- serializedName: "policyAssignmentVersion",
+ policyGroupDetails: {
+ serializedName: "policyGroupDetails",
type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ComplianceDetail"
+ }
+ }
}
}
- },
- additionalProperties: {
- type: {
- name: "Object"
- }
}
}
};
-export const ComplianceDetail: msRest.CompositeMapper = {
- serializedName: "ComplianceDetail",
+export const ComplianceDetail: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "ComplianceDetail",
@@ -1152,68 +1522,50 @@ export const ComplianceDetail: msRest.CompositeMapper = {
}
};
-export const SummaryResults: msRest.CompositeMapper = {
- serializedName: "SummaryResults",
+export const PolicyAssignmentSummary: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "SummaryResults",
+ className: "PolicyAssignmentSummary",
modelProperties: {
- queryResultsUri: {
- serializedName: "queryResultsUri",
+ policyAssignmentId: {
+ serializedName: "policyAssignmentId",
type: {
name: "String"
}
},
- nonCompliantResources: {
- serializedName: "nonCompliantResources",
- constraints: {
- InclusiveMinimum: 0
- },
- type: {
- name: "Number"
- }
- },
- nonCompliantPolicies: {
- serializedName: "nonCompliantPolicies",
- constraints: {
- InclusiveMinimum: 0
- },
+ policySetDefinitionId: {
+ serializedName: "policySetDefinitionId",
type: {
- name: "Number"
+ name: "String"
}
},
- resourceDetails: {
- serializedName: "resourceDetails",
+ results: {
+ serializedName: "results",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ComplianceDetail"
- }
- }
+ name: "Composite",
+ className: "SummaryResults"
}
},
- policyDetails: {
- serializedName: "policyDetails",
+ policyDefinitions: {
+ serializedName: "policyDefinitions",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "ComplianceDetail"
+ className: "PolicyDefinitionSummary"
}
}
}
},
- policyGroupDetails: {
- serializedName: "policyGroupDetails",
+ policyGroups: {
+ serializedName: "policyGroups",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "ComplianceDetail"
+ className: "PolicyGroupSummary"
}
}
}
@@ -1222,8 +1574,7 @@ export const SummaryResults: msRest.CompositeMapper = {
}
};
-export const PolicyDefinitionSummary: msRest.CompositeMapper = {
- serializedName: "PolicyDefinitionSummary",
+export const PolicyDefinitionSummary: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "PolicyDefinitionSummary",
@@ -1268,8 +1619,7 @@ export const PolicyDefinitionSummary: msRest.CompositeMapper = {
}
};
-export const PolicyGroupSummary: msRest.CompositeMapper = {
- serializedName: "PolicyGroupSummary",
+export const PolicyGroupSummary: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "PolicyGroupSummary",
@@ -1291,432 +1641,616 @@ export const PolicyGroupSummary: msRest.CompositeMapper = {
}
};
-export const PolicyAssignmentSummary: msRest.CompositeMapper = {
- serializedName: "PolicyAssignmentSummary",
+export const OperationsListResults: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "PolicyAssignmentSummary",
+ className: "OperationsListResults",
modelProperties: {
- policyAssignmentId: {
- serializedName: "policyAssignmentId",
+ odataCount: {
+ constraints: {
+ InclusiveMinimum: 1
+ },
+ serializedName: "@odata\\.count",
type: {
- name: "String"
+ name: "Number"
}
},
- policySetDefinitionId: {
- serializedName: "policySetDefinitionId",
+ value: {
+ serializedName: "value",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "Operation"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const Operation: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "Operation",
+ modelProperties: {
+ name: {
+ serializedName: "name",
type: {
name: "String"
}
},
- results: {
- serializedName: "results",
+ display: {
+ serializedName: "display",
type: {
name: "Composite",
- className: "SummaryResults"
+ className: "OperationDisplay"
+ }
+ }
+ }
+ }
+};
+
+export const OperationDisplay: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "OperationDisplay",
+ modelProperties: {
+ provider: {
+ serializedName: "provider",
+ type: {
+ name: "String"
}
},
- policyDefinitions: {
- serializedName: "policyDefinitions",
+ resource: {
+ serializedName: "resource",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "PolicyDefinitionSummary"
- }
- }
+ name: "String"
}
},
- policyGroups: {
- serializedName: "policyGroups",
+ operation: {
+ serializedName: "operation",
+ type: {
+ name: "String"
+ }
+ },
+ description: {
+ serializedName: "description",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const PolicyMetadata: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "PolicyMetadata",
+ modelProperties: {
+ id: {
+ serializedName: "id",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ type: {
+ serializedName: "type",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ name: {
+ serializedName: "name",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ metadataId: {
+ serializedName: "properties.metadataId",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ category: {
+ serializedName: "properties.category",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ title: {
+ serializedName: "properties.title",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ owner: {
+ serializedName: "properties.owner",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ additionalContentUrl: {
+ serializedName: "properties.additionalContentUrl",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ metadata: {
+ serializedName: "properties.metadata",
+ readOnly: true,
+ type: {
+ name: "Dictionary",
+ value: { type: { name: "any" } }
+ }
+ },
+ description: {
+ serializedName: "properties.description",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ requirements: {
+ serializedName: "properties.requirements",
+ readOnly: true,
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "PolicyGroupSummary"
- }
- }
+ name: "String"
}
}
}
}
};
-export const Summary: msRest.CompositeMapper = {
- serializedName: "Summary",
+export const PolicyMetadataSlimProperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "Summary",
+ className: "PolicyMetadataSlimProperties",
modelProperties: {
- odataid: {
- serializedName: "@odata\\.id",
+ metadataId: {
+ serializedName: "metadataId",
+ readOnly: true,
type: {
name: "String"
}
},
- odatacontext: {
- serializedName: "@odata\\.context",
+ category: {
+ serializedName: "category",
+ readOnly: true,
type: {
name: "String"
}
},
- results: {
- serializedName: "results",
+ title: {
+ serializedName: "title",
+ readOnly: true,
type: {
- name: "Composite",
- className: "SummaryResults"
+ name: "String"
}
},
- policyAssignments: {
- serializedName: "policyAssignments",
+ owner: {
+ serializedName: "owner",
+ readOnly: true,
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "PolicyAssignmentSummary"
- }
- }
+ name: "String"
+ }
+ },
+ additionalContentUrl: {
+ serializedName: "additionalContentUrl",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ metadata: {
+ serializedName: "metadata",
+ readOnly: true,
+ type: {
+ name: "Dictionary",
+ value: { type: { name: "any" } }
}
}
}
}
};
-export const SummarizeResults: msRest.CompositeMapper = {
- serializedName: "SummarizeResults",
+export const ErrorResponseAutoGenerated: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "SummarizeResults",
+ className: "ErrorResponseAutoGenerated",
modelProperties: {
- odatacontext: {
- serializedName: "@odata\\.context",
- type: {
- name: "String"
- }
- },
- odatacount: {
- serializedName: "@odata\\.count",
- constraints: {
- InclusiveMaximum: 1,
- InclusiveMinimum: 1
- },
- type: {
- name: "Number"
- }
- },
- value: {
- serializedName: "value",
+ error: {
+ serializedName: "error",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "Summary"
- }
- }
+ name: "Composite",
+ className: "ErrorDefinitionAutoGenerated"
}
}
}
}
};
-export const OperationDisplay: msRest.CompositeMapper = {
- serializedName: "Operation_display",
+export const ErrorDefinitionAutoGenerated: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "OperationDisplay",
+ className: "ErrorDefinitionAutoGenerated",
modelProperties: {
- provider: {
- serializedName: "provider",
+ code: {
+ serializedName: "code",
+ readOnly: true,
type: {
name: "String"
}
},
- resource: {
- serializedName: "resource",
+ message: {
+ serializedName: "message",
+ readOnly: true,
type: {
name: "String"
}
},
- operation: {
- serializedName: "operation",
+ target: {
+ serializedName: "target",
+ readOnly: true,
type: {
name: "String"
}
},
- description: {
- serializedName: "description",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const Operation: msRest.CompositeMapper = {
- serializedName: "Operation",
- type: {
- name: "Composite",
- className: "Operation",
- modelProperties: {
- name: {
- serializedName: "name",
+ details: {
+ serializedName: "details",
+ readOnly: true,
type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ErrorDefinitionAutoGenerated"
+ }
+ }
}
},
- display: {
- serializedName: "display",
+ additionalInfo: {
+ serializedName: "additionalInfo",
+ readOnly: true,
type: {
- name: "Composite",
- className: "OperationDisplay"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "TypedErrorInfo"
+ }
+ }
}
}
}
}
};
-export const OperationsListResults: msRest.CompositeMapper = {
- serializedName: "OperationsListResults",
+export const PolicyMetadataCollection: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "OperationsListResults",
+ className: "PolicyMetadataCollection",
modelProperties: {
- odatacount: {
- serializedName: "@odata\\.count",
- constraints: {
- InclusiveMinimum: 1
- },
- type: {
- name: "Number"
- }
- },
value: {
serializedName: "value",
+ readOnly: true,
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "Operation"
+ className: "SlimPolicyMetadata"
}
}
}
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
}
}
}
};
-export const PolicyMetadata: msRest.CompositeMapper = {
- serializedName: "PolicyMetadata",
+export const SlimPolicyMetadata: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "PolicyMetadata",
+ className: "SlimPolicyMetadata",
modelProperties: {
- metadataId: {
+ id: {
+ serializedName: "id",
readOnly: true,
- serializedName: "properties.metadataId",
type: {
name: "String"
}
},
- category: {
+ type: {
+ serializedName: "type",
readOnly: true,
- serializedName: "properties.category",
type: {
name: "String"
}
},
- title: {
+ name: {
+ serializedName: "name",
readOnly: true,
- serializedName: "properties.title",
type: {
name: "String"
}
},
- owner: {
+ metadataId: {
+ serializedName: "properties.metadataId",
readOnly: true,
- serializedName: "properties.owner",
type: {
name: "String"
}
},
- additionalContentUrl: {
+ category: {
+ serializedName: "properties.category",
readOnly: true,
- serializedName: "properties.additionalContentUrl",
type: {
name: "String"
}
},
- metadata: {
+ title: {
+ serializedName: "properties.title",
readOnly: true,
- serializedName: "properties.metadata",
type: {
- name: "Object"
+ name: "String"
}
},
- description: {
+ owner: {
+ serializedName: "properties.owner",
readOnly: true,
- serializedName: "properties.description",
type: {
name: "String"
}
},
- requirements: {
+ additionalContentUrl: {
+ serializedName: "properties.additionalContentUrl",
readOnly: true,
- serializedName: "properties.requirements",
type: {
name: "String"
}
},
- id: {
+ metadata: {
+ serializedName: "properties.metadata",
readOnly: true,
- serializedName: "id",
type: {
- name: "String"
+ name: "Dictionary",
+ value: { type: { name: "any" } }
}
- },
- type: {
- readOnly: true,
- serializedName: "type",
+ }
+ }
+ }
+};
+
+export const CheckRestrictionsRequest: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "CheckRestrictionsRequest",
+ modelProperties: {
+ resourceDetails: {
+ serializedName: "resourceDetails",
type: {
- name: "String"
+ name: "Composite",
+ className: "CheckRestrictionsResourceDetails"
}
},
- name: {
- readOnly: true,
- serializedName: "name",
+ pendingFields: {
+ serializedName: "pendingFields",
type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "PendingField"
+ }
+ }
}
}
}
}
};
-export const SlimPolicyMetadata: msRest.CompositeMapper = {
- serializedName: "SlimPolicyMetadata",
+export const CheckRestrictionsResourceDetails: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "SlimPolicyMetadata",
+ className: "CheckRestrictionsResourceDetails",
modelProperties: {
- metadataId: {
- readOnly: true,
- serializedName: "properties.metadataId",
+ resourceContent: {
+ serializedName: "resourceContent",
+ required: true,
type: {
- name: "String"
+ name: "Dictionary",
+ value: { type: { name: "any" } }
}
},
- category: {
- readOnly: true,
- serializedName: "properties.category",
+ apiVersion: {
+ serializedName: "apiVersion",
type: {
name: "String"
}
},
- title: {
- readOnly: true,
- serializedName: "properties.title",
+ scope: {
+ serializedName: "scope",
type: {
name: "String"
}
- },
- owner: {
- readOnly: true,
- serializedName: "properties.owner",
+ }
+ }
+ }
+};
+
+export const PendingField: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "PendingField",
+ modelProperties: {
+ field: {
+ serializedName: "field",
+ required: true,
type: {
name: "String"
}
},
- additionalContentUrl: {
- readOnly: true,
- serializedName: "properties.additionalContentUrl",
+ values: {
+ serializedName: "values",
type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
}
- },
- metadata: {
+ }
+ }
+ }
+};
+
+export const CheckRestrictionsResult: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "CheckRestrictionsResult",
+ modelProperties: {
+ fieldRestrictions: {
+ serializedName: "fieldRestrictions",
readOnly: true,
- serializedName: "properties.metadata",
type: {
- name: "Object"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "FieldRestrictions"
+ }
+ }
}
},
- id: {
- readOnly: true,
- serializedName: "id",
+ contentEvaluationResult: {
+ serializedName: "contentEvaluationResult",
type: {
- name: "String"
+ name: "Composite",
+ className: "CheckRestrictionsResultContentEvaluationResult"
}
- },
- type: {
+ }
+ }
+ }
+};
+
+export const FieldRestrictions: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "FieldRestrictions",
+ modelProperties: {
+ field: {
+ serializedName: "field",
readOnly: true,
- serializedName: "type",
type: {
name: "String"
}
},
- name: {
- readOnly: true,
- serializedName: "name",
+ restrictions: {
+ serializedName: "restrictions",
type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "FieldRestriction"
+ }
+ }
}
}
}
}
};
-export const QueryOptions: msRest.CompositeMapper = {
+export const FieldRestriction: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "QueryOptions",
+ className: "FieldRestriction",
modelProperties: {
- top: {
- type: {
- name: "Number"
- }
- },
- filter: {
+ result: {
+ serializedName: "result",
+ readOnly: true,
type: {
name: "String"
}
},
- orderBy: {
+ defaultValue: {
+ serializedName: "defaultValue",
+ readOnly: true,
type: {
name: "String"
}
},
- select: {
+ values: {
+ serializedName: "values",
+ readOnly: true,
type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
}
},
- from: {
+ policy: {
+ serializedName: "policy",
type: {
- name: "DateTime"
+ name: "Composite",
+ className: "PolicyReference"
}
- },
- to: {
+ }
+ }
+ }
+};
+
+export const PolicyReference: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "PolicyReference",
+ modelProperties: {
+ policyDefinitionId: {
+ serializedName: "policyDefinitionId",
+ readOnly: true,
type: {
- name: "DateTime"
+ name: "String"
}
},
- apply: {
+ policySetDefinitionId: {
+ serializedName: "policySetDefinitionId",
+ readOnly: true,
type: {
name: "String"
}
},
- skipToken: {
+ policyDefinitionReferenceId: {
+ serializedName: "policyDefinitionReferenceId",
+ readOnly: true,
type: {
name: "String"
}
},
- expand: {
+ policyAssignmentId: {
+ serializedName: "policyAssignmentId",
+ readOnly: true,
type: {
name: "String"
}
@@ -1725,58 +2259,78 @@ export const QueryOptions: msRest.CompositeMapper = {
}
};
-export const PolicyTrackedResourcesQueryResults: msRest.CompositeMapper = {
- serializedName: "PolicyTrackedResourcesQueryResults",
+export const CheckRestrictionsResultContentEvaluationResult: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "PolicyTrackedResourcesQueryResults",
+ className: "CheckRestrictionsResultContentEvaluationResult",
modelProperties: {
- value: {
- readOnly: true,
- serializedName: "",
+ policyEvaluations: {
+ serializedName: "policyEvaluations",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "PolicyTrackedResource"
+ className: "PolicyEvaluationResult"
}
}
}
+ }
+ }
+ }
+};
+
+export const PolicyEvaluationResult: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "PolicyEvaluationResult",
+ modelProperties: {
+ policyInfo: {
+ serializedName: "policyInfo",
+ type: {
+ name: "Composite",
+ className: "PolicyReference"
+ }
},
- nextLink: {
+ evaluationResult: {
+ serializedName: "evaluationResult",
readOnly: true,
- serializedName: "nextLink",
type: {
name: "String"
}
+ },
+ evaluationDetails: {
+ serializedName: "evaluationDetails",
+ type: {
+ name: "Composite",
+ className: "PolicyEvaluationDetails"
+ }
}
}
}
};
-export const RemediationDeploymentsListResult: msRest.CompositeMapper = {
- serializedName: "RemediationDeploymentsListResult",
+export const AttestationListResult: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "RemediationDeploymentsListResult",
+ className: "AttestationListResult",
modelProperties: {
value: {
+ serializedName: "value",
readOnly: true,
- serializedName: "",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "RemediationDeployment"
+ className: "Attestation"
}
}
}
},
nextLink: {
- readOnly: true,
serializedName: "nextLink",
+ readOnly: true,
type: {
name: "String"
}
@@ -1785,28 +2339,19 @@ export const RemediationDeploymentsListResult: msRest.CompositeMapper = {
}
};
-export const RemediationListResult: msRest.CompositeMapper = {
- serializedName: "RemediationListResult",
+export const AttestationEvidence: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "RemediationListResult",
+ className: "AttestationEvidence",
modelProperties: {
- value: {
- readOnly: true,
- serializedName: "",
+ description: {
+ serializedName: "description",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "Remediation"
- }
- }
+ name: "String"
}
},
- nextLink: {
- readOnly: true,
- serializedName: "nextLink",
+ sourceUri: {
+ serializedName: "sourceUri",
type: {
name: "String"
}
@@ -1815,94 +2360,100 @@ export const RemediationListResult: msRest.CompositeMapper = {
}
};
-export const PolicyEventsQueryResults: msRest.CompositeMapper = {
- serializedName: "PolicyEventsQueryResults",
+export const Resource: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "PolicyEventsQueryResults",
+ className: "Resource",
modelProperties: {
- odatacontext: {
- serializedName: "@odata\\.context",
+ id: {
+ serializedName: "id",
+ readOnly: true,
type: {
name: "String"
}
},
- odatacount: {
- serializedName: "@odata\\.count",
- constraints: {
- InclusiveMinimum: 0
- },
+ name: {
+ serializedName: "name",
+ readOnly: true,
type: {
- name: "Number"
+ name: "String"
}
},
- odatanextLink: {
- serializedName: "@odata\\.nextLink",
+ type: {
+ serializedName: "type",
+ readOnly: true,
type: {
name: "String"
}
- },
- value: {
- serializedName: "",
+ }
+ }
+ }
+};
+
+export const ErrorResponseAutoGenerated2: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ErrorResponseAutoGenerated2",
+ modelProperties: {
+ error: {
+ serializedName: "error",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "PolicyEvent",
- additionalProperties: {
- type: {
- name: "Object"
- }
- }
- }
- }
+ name: "Composite",
+ className: "ErrorDefinitionAutoGenerated2"
}
}
}
}
};
-export const PolicyStatesQueryResults: msRest.CompositeMapper = {
- serializedName: "PolicyStatesQueryResults",
+export const ErrorDefinitionAutoGenerated2: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "PolicyStatesQueryResults",
+ className: "ErrorDefinitionAutoGenerated2",
modelProperties: {
- odatacontext: {
- serializedName: "@odata\\.context",
+ code: {
+ serializedName: "code",
+ readOnly: true,
type: {
name: "String"
}
},
- odatacount: {
- serializedName: "@odata\\.count",
- constraints: {
- InclusiveMinimum: 0
- },
+ message: {
+ serializedName: "message",
+ readOnly: true,
type: {
- name: "Number"
+ name: "String"
}
},
- odatanextLink: {
- serializedName: "@odata\\.nextLink",
+ target: {
+ serializedName: "target",
+ readOnly: true,
type: {
name: "String"
}
},
- value: {
- serializedName: "",
+ details: {
+ serializedName: "details",
+ readOnly: true,
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ErrorDefinitionAutoGenerated2"
+ }
+ }
+ }
+ },
+ additionalInfo: {
+ serializedName: "additionalInfo",
+ readOnly: true,
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "PolicyState",
- additionalProperties: {
- type: {
- name: "Object"
- }
- }
+ className: "TypedErrorInfo"
}
}
}
@@ -1911,31 +2462,105 @@ export const PolicyStatesQueryResults: msRest.CompositeMapper = {
}
};
-export const PolicyMetadataCollection: msRest.CompositeMapper = {
- serializedName: "PolicyMetadataCollection",
+export const PolicyMetadataProperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "PolicyMetadataCollection",
+ className: "PolicyMetadataProperties",
modelProperties: {
- value: {
+ ...PolicyMetadataSlimProperties.type.modelProperties,
+ description: {
+ serializedName: "description",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ requirements: {
+ serializedName: "requirements",
readOnly: true,
- serializedName: "",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const Attestation: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "Attestation",
+ modelProperties: {
+ ...Resource.type.modelProperties,
+ systemData: {
+ serializedName: "systemData",
+ type: {
+ name: "Composite",
+ className: "SystemData"
+ }
+ },
+ policyAssignmentId: {
+ serializedName: "properties.policyAssignmentId",
+ required: true,
+ type: {
+ name: "String"
+ }
+ },
+ policyDefinitionReferenceId: {
+ serializedName: "properties.policyDefinitionReferenceId",
+ type: {
+ name: "String"
+ }
+ },
+ complianceState: {
+ serializedName: "properties.complianceState",
+ type: {
+ name: "String"
+ }
+ },
+ expiresOn: {
+ serializedName: "properties.expiresOn",
+ type: {
+ name: "DateTime"
+ }
+ },
+ owner: {
+ serializedName: "properties.owner",
+ type: {
+ name: "String"
+ }
+ },
+ comments: {
+ serializedName: "properties.comments",
+ type: {
+ name: "String"
+ }
+ },
+ evidence: {
+ serializedName: "properties.evidence",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "SlimPolicyMetadata"
+ className: "AttestationEvidence"
}
}
}
},
- nextLink: {
+ provisioningState: {
+ serializedName: "properties.provisioningState",
readOnly: true,
- serializedName: "nextLink",
type: {
name: "String"
}
+ },
+ lastComplianceStateChangeAt: {
+ serializedName: "properties.lastComplianceStateChangeAt",
+ readOnly: true,
+ type: {
+ name: "DateTime"
+ }
}
}
}
diff --git a/sdk/policyinsights/arm-policyinsights/src/models/parameters.ts b/sdk/policyinsights/arm-policyinsights/src/models/parameters.ts
index 7445618f3b52..66fe333aea04 100644
--- a/sdk/policyinsights/arm-policyinsights/src/models/parameters.ts
+++ b/sdk/policyinsights/arm-policyinsights/src/models/parameters.ts
@@ -3,358 +3,452 @@
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
+import {
+ OperationParameter,
+ OperationURLParameter,
+ OperationQueryParameter
+} from "@azure/core-client";
+import {
+ Remediation as RemediationMapper,
+ CheckRestrictionsRequest as CheckRestrictionsRequestMapper,
+ Attestation as AttestationMapper
+} from "../models/mappers";
-export const acceptLanguage: msRest.OperationParameter = {
- parameterPath: "acceptLanguage",
+export const accept: OperationParameter = {
+ parameterPath: "accept",
mapper: {
- serializedName: "accept-language",
- defaultValue: 'en-US',
+ defaultValue: "application/json",
+ isConstant: true,
+ serializedName: "Accept",
type: {
name: "String"
}
}
};
-export const apiVersion0: msRest.OperationQueryParameter = {
- parameterPath: "apiVersion",
+
+export const $host: OperationURLParameter = {
+ parameterPath: "$host",
mapper: {
+ serializedName: "$host",
required: true,
+ type: {
+ name: "String"
+ }
+ },
+ skipEncoding: true
+};
+
+export const managementGroupsNamespace: OperationURLParameter = {
+ parameterPath: "managementGroupsNamespace",
+ mapper: {
+ defaultValue: "Microsoft.Management",
isConstant: true,
- serializedName: "api-version",
- defaultValue: '2018-07-01-preview',
+ serializedName: "managementGroupsNamespace",
type: {
name: "String"
}
}
};
-export const apiVersion1: msRest.OperationQueryParameter = {
- parameterPath: "apiVersion",
+
+export const managementGroupName: OperationURLParameter = {
+ parameterPath: "managementGroupName",
mapper: {
+ serializedName: "managementGroupName",
required: true,
- isConstant: true,
- serializedName: "api-version",
- defaultValue: '2019-07-01',
type: {
name: "String"
}
}
};
-export const apiVersion2: msRest.OperationQueryParameter = {
- parameterPath: "apiVersion",
+
+export const policyTrackedResourcesResource: OperationURLParameter = {
+ parameterPath: "policyTrackedResourcesResource",
mapper: {
- required: true,
+ defaultValue: "default",
isConstant: true,
- serializedName: "api-version",
- defaultValue: '2019-10-01',
+ serializedName: "policyTrackedResourcesResource",
type: {
name: "String"
}
}
};
-export const apply: msRest.OperationQueryParameter = {
- parameterPath: [
- "options",
- "queryOptions",
- "apply"
- ],
+
+export const top: OperationQueryParameter = {
+ parameterPath: ["options", "queryOptions", "top"],
mapper: {
- serializedName: "$apply",
+ constraints: {
+ InclusiveMinimum: 0
+ },
+ serializedName: "$top",
+ type: {
+ name: "Number"
+ }
+ }
+};
+
+export const filter: OperationQueryParameter = {
+ parameterPath: ["options", "queryOptions", "filter"],
+ mapper: {
+ serializedName: "$filter",
type: {
name: "String"
}
}
};
-export const authorizationNamespace: msRest.OperationURLParameter = {
- parameterPath: "authorizationNamespace",
+
+export const apiVersion: OperationQueryParameter = {
+ parameterPath: "apiVersion",
mapper: {
- required: true,
+ defaultValue: "2018-07-01-preview",
isConstant: true,
- serializedName: "authorizationNamespace",
- defaultValue: 'Microsoft.Authorization',
+ serializedName: "api-version",
type: {
name: "String"
}
}
};
-export const expand: msRest.OperationQueryParameter = {
- parameterPath: [
- "options",
- "queryOptions",
- "expand"
- ],
+
+export const subscriptionId: OperationURLParameter = {
+ parameterPath: "subscriptionId",
mapper: {
- serializedName: "$expand",
+ serializedName: "subscriptionId",
+ required: true,
type: {
name: "String"
}
}
};
-export const filter: msRest.OperationQueryParameter = {
- parameterPath: [
- "options",
- "queryOptions",
- "filter"
- ],
+
+export const resourceGroupName: OperationURLParameter = {
+ parameterPath: "resourceGroupName",
mapper: {
- serializedName: "$filter",
+ serializedName: "resourceGroupName",
+ required: true,
type: {
name: "String"
}
}
};
-export const from: msRest.OperationQueryParameter = {
- parameterPath: [
- "options",
- "queryOptions",
- "from"
- ],
+
+export const resourceId: OperationURLParameter = {
+ parameterPath: "resourceId",
mapper: {
- serializedName: "$from",
+ serializedName: "resourceId",
+ required: true,
type: {
- name: "DateTime"
+ name: "String"
}
- }
+ },
+ skipEncoding: true
};
-export const managementGroupId: msRest.OperationURLParameter = {
- parameterPath: "managementGroupId",
+
+export const nextLink: OperationURLParameter = {
+ parameterPath: "nextLink",
mapper: {
+ serializedName: "nextLink",
required: true,
+ type: {
+ name: "String"
+ }
+ },
+ skipEncoding: true
+};
+
+export const managementGroupId: OperationURLParameter = {
+ parameterPath: "managementGroupId",
+ mapper: {
serializedName: "managementGroupId",
+ required: true,
type: {
name: "String"
}
}
};
-export const managementGroupName: msRest.OperationURLParameter = {
- parameterPath: "managementGroupName",
+
+export const remediationName: OperationURLParameter = {
+ parameterPath: "remediationName",
mapper: {
+ serializedName: "remediationName",
required: true,
- serializedName: "managementGroupName",
type: {
name: "String"
}
}
};
-export const managementGroupsNamespace: msRest.OperationURLParameter = {
- parameterPath: "managementGroupsNamespace",
+
+export const apiVersion1: OperationQueryParameter = {
+ parameterPath: "apiVersion",
mapper: {
- required: true,
+ defaultValue: "2021-10-01",
isConstant: true,
- serializedName: "managementGroupsNamespace",
- defaultValue: 'Microsoft.Management',
+ serializedName: "api-version",
type: {
name: "String"
}
}
};
-export const nextPageLink: msRest.OperationURLParameter = {
- parameterPath: "nextPageLink",
+
+export const contentType: OperationParameter = {
+ parameterPath: ["options", "contentType"],
mapper: {
- required: true,
- serializedName: "nextLink",
+ defaultValue: "application/json",
+ isConstant: true,
+ serializedName: "Content-Type",
type: {
name: "String"
}
- },
- skipEncoding: true
+ }
+};
+
+export const parameters: OperationParameter = {
+ parameterPath: "parameters",
+ mapper: RemediationMapper
};
-export const orderBy: msRest.OperationQueryParameter = {
- parameterPath: [
- "options",
- "queryOptions",
- "orderBy"
- ],
+
+export const policyEventsResource: OperationURLParameter = {
+ parameterPath: "policyEventsResource",
mapper: {
- serializedName: "$orderby",
+ defaultValue: "default",
+ isConstant: true,
+ serializedName: "policyEventsResource",
type: {
name: "String"
}
}
};
-export const policyAssignmentName: msRest.OperationURLParameter = {
- parameterPath: "policyAssignmentName",
+
+export const apiVersion2: OperationQueryParameter = {
+ parameterPath: "apiVersion",
mapper: {
- required: true,
- serializedName: "policyAssignmentName",
+ defaultValue: "2019-10-01",
+ isConstant: true,
+ serializedName: "api-version",
type: {
name: "String"
}
}
};
-export const policyDefinitionName: msRest.OperationURLParameter = {
- parameterPath: "policyDefinitionName",
+
+export const orderBy: OperationQueryParameter = {
+ parameterPath: ["options", "queryOptions", "orderBy"],
mapper: {
- required: true,
- serializedName: "policyDefinitionName",
+ serializedName: "$orderby",
type: {
name: "String"
}
}
};
-export const policyEventsResource: msRest.OperationURLParameter = {
- parameterPath: "policyEventsResource",
+
+export const select: OperationQueryParameter = {
+ parameterPath: ["options", "queryOptions", "select"],
mapper: {
- required: true,
- isConstant: true,
- serializedName: "policyEventsResource",
- defaultValue: 'default',
+ serializedName: "$select",
type: {
name: "String"
}
}
};
-export const policySetDefinitionName: msRest.OperationURLParameter = {
- parameterPath: "policySetDefinitionName",
+
+export const fromParam: OperationQueryParameter = {
+ parameterPath: ["options", "queryOptions", "fromParam"],
mapper: {
- required: true,
- serializedName: "policySetDefinitionName",
+ serializedName: "$from",
+ type: {
+ name: "DateTime"
+ }
+ }
+};
+
+export const to: OperationQueryParameter = {
+ parameterPath: ["options", "queryOptions", "to"],
+ mapper: {
+ serializedName: "$to",
+ type: {
+ name: "DateTime"
+ }
+ }
+};
+
+export const apply: OperationQueryParameter = {
+ parameterPath: ["options", "queryOptions", "apply"],
+ mapper: {
+ serializedName: "$apply",
type: {
name: "String"
}
}
};
-export const policyStatesResource: msRest.OperationURLParameter = {
- parameterPath: "policyStatesResource",
+
+export const skipToken: OperationQueryParameter = {
+ parameterPath: ["options", "queryOptions", "skipToken"],
mapper: {
- required: true,
- serializedName: "policyStatesResource",
+ serializedName: "$skiptoken",
type: {
name: "String"
}
}
};
-export const policyStatesSummaryResource: msRest.OperationURLParameter = {
- parameterPath: "policyStatesSummaryResource",
+
+export const subscriptionId1: OperationURLParameter = {
+ parameterPath: "subscriptionId",
mapper: {
+ serializedName: "subscriptionId",
required: true,
- isConstant: true,
- serializedName: "policyStatesSummaryResource",
- defaultValue: 'latest',
type: {
name: "String"
}
}
};
-export const policyTrackedResourcesResource: msRest.OperationURLParameter = {
- parameterPath: "policyTrackedResourcesResource",
+
+export const expand: OperationQueryParameter = {
+ parameterPath: ["options", "queryOptions", "expand"],
mapper: {
- required: true,
+ serializedName: "$expand",
+ type: {
+ name: "String"
+ }
+ }
+};
+
+export const authorizationNamespace: OperationURLParameter = {
+ parameterPath: "authorizationNamespace",
+ mapper: {
+ defaultValue: "Microsoft.Authorization",
isConstant: true,
- serializedName: "policyTrackedResourcesResource",
- defaultValue: 'default',
+ serializedName: "authorizationNamespace",
type: {
name: "String"
}
}
};
-export const remediationName: msRest.OperationURLParameter = {
- parameterPath: "remediationName",
+
+export const policySetDefinitionName: OperationURLParameter = {
+ parameterPath: "policySetDefinitionName",
mapper: {
+ serializedName: "policySetDefinitionName",
required: true,
- serializedName: "remediationName",
type: {
name: "String"
}
}
};
-export const resourceGroupName: msRest.OperationURLParameter = {
- parameterPath: "resourceGroupName",
+
+export const policyDefinitionName: OperationURLParameter = {
+ parameterPath: "policyDefinitionName",
mapper: {
+ serializedName: "policyDefinitionName",
required: true,
- serializedName: "resourceGroupName",
type: {
name: "String"
}
}
};
-export const resourceId: msRest.OperationURLParameter = {
- parameterPath: "resourceId",
+
+export const policyAssignmentName: OperationURLParameter = {
+ parameterPath: "policyAssignmentName",
mapper: {
+ serializedName: "policyAssignmentName",
required: true,
- serializedName: "resourceId",
type: {
name: "String"
}
- },
- skipEncoding: true
+ }
};
-export const resourceName: msRest.OperationURLParameter = {
- parameterPath: "resourceName",
+
+export const policyStatesResource: OperationURLParameter = {
+ parameterPath: "policyStatesResource",
mapper: {
+ serializedName: "policyStatesResource",
required: true,
- serializedName: "resourceName",
type: {
name: "String"
}
- },
- skipEncoding: true
+ }
};
-export const select: msRest.OperationQueryParameter = {
- parameterPath: [
- "options",
- "queryOptions",
- "select"
- ],
+
+export const policyStatesSummaryResource: OperationURLParameter = {
+ parameterPath: "policyStatesSummaryResource",
mapper: {
- serializedName: "$select",
+ defaultValue: "latest",
+ isConstant: true,
+ serializedName: "policyStatesSummaryResource",
type: {
name: "String"
}
}
};
-export const skipToken: msRest.OperationQueryParameter = {
- parameterPath: [
- "options",
- "queryOptions",
- "skipToken"
- ],
+
+export const resourceName: OperationURLParameter = {
+ parameterPath: "resourceName",
mapper: {
- serializedName: "$skiptoken",
+ serializedName: "resourceName",
+ required: true,
+ type: {
+ name: "String"
+ }
+ },
+ skipEncoding: true
+};
+
+export const parameters1: OperationParameter = {
+ parameterPath: "parameters",
+ mapper: CheckRestrictionsRequestMapper
+};
+
+export const apiVersion3: OperationQueryParameter = {
+ parameterPath: "apiVersion",
+ mapper: {
+ defaultValue: "2020-07-01",
+ isConstant: true,
+ serializedName: "api-version",
type: {
name: "String"
}
}
};
-export const subscriptionId: msRest.OperationURLParameter = {
- parameterPath: "subscriptionId",
+
+export const resourceGroupName1: OperationURLParameter = {
+ parameterPath: "resourceGroupName",
mapper: {
+ constraints: {
+ MaxLength: 90,
+ MinLength: 1
+ },
+ serializedName: "resourceGroupName",
required: true,
- serializedName: "subscriptionId",
type: {
name: "String"
}
}
};
-export const to: msRest.OperationQueryParameter = {
- parameterPath: [
- "options",
- "queryOptions",
- "to"
- ],
+
+export const apiVersion4: OperationQueryParameter = {
+ parameterPath: "apiVersion",
mapper: {
- serializedName: "$to",
+ defaultValue: "2021-01-01",
+ isConstant: true,
+ serializedName: "api-version",
type: {
- name: "DateTime"
+ name: "String"
}
}
};
-export const top: msRest.OperationQueryParameter = {
- parameterPath: [
- "options",
- "queryOptions",
- "top"
- ],
+
+export const parameters2: OperationParameter = {
+ parameterPath: "parameters",
+ mapper: AttestationMapper
+};
+
+export const attestationName: OperationURLParameter = {
+ parameterPath: "attestationName",
mapper: {
- serializedName: "$top",
- constraints: {
- InclusiveMinimum: 0
- },
+ serializedName: "attestationName",
+ required: true,
type: {
- name: "Number"
+ name: "String"
}
}
};
diff --git a/sdk/policyinsights/arm-policyinsights/src/models/policyEventsMappers.ts b/sdk/policyinsights/arm-policyinsights/src/models/policyEventsMappers.ts
deleted file mode 100644
index 4ca299f43fe0..000000000000
--- a/sdk/policyinsights/arm-policyinsights/src/models/policyEventsMappers.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */
-
-export {
- ComponentEventDetails,
- PolicyEvent,
- PolicyEventsQueryResults,
- QueryFailure,
- QueryFailureError
-} from "../models/mappers";
diff --git a/sdk/policyinsights/arm-policyinsights/src/models/policyMetadataOperationsMappers.ts b/sdk/policyinsights/arm-policyinsights/src/models/policyMetadataOperationsMappers.ts
deleted file mode 100644
index 68820531d620..000000000000
--- a/sdk/policyinsights/arm-policyinsights/src/models/policyMetadataOperationsMappers.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */
-
-export {
- ErrorDefinition,
- ErrorResponse,
- PolicyMetadata,
- PolicyMetadataCollection,
- SlimPolicyMetadata,
- TypedErrorInfo
-} from "../models/mappers";
diff --git a/sdk/policyinsights/arm-policyinsights/src/models/policyStatesMappers.ts b/sdk/policyinsights/arm-policyinsights/src/models/policyStatesMappers.ts
deleted file mode 100644
index 6f4233b0fa5f..000000000000
--- a/sdk/policyinsights/arm-policyinsights/src/models/policyStatesMappers.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */
-
-export {
- ComplianceDetail,
- ComponentStateDetails,
- ExpressionEvaluationDetails,
- IfNotExistsEvaluationDetails,
- PolicyAssignmentSummary,
- PolicyDefinitionSummary,
- PolicyEvaluationDetails,
- PolicyGroupSummary,
- PolicyState,
- PolicyStatesQueryResults,
- QueryFailure,
- QueryFailureError,
- SummarizeResults,
- Summary,
- SummaryResults
-} from "../models/mappers";
diff --git a/sdk/policyinsights/arm-policyinsights/src/models/policyTrackedResourcesMappers.ts b/sdk/policyinsights/arm-policyinsights/src/models/policyTrackedResourcesMappers.ts
deleted file mode 100644
index 17b2d08e9634..000000000000
--- a/sdk/policyinsights/arm-policyinsights/src/models/policyTrackedResourcesMappers.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */
-
-export {
- PolicyDetails,
- PolicyTrackedResource,
- PolicyTrackedResourcesQueryResults,
- QueryFailure,
- QueryFailureError,
- TrackedResourceModificationDetails
-} from "../models/mappers";
diff --git a/sdk/policyinsights/arm-policyinsights/src/models/remediationsMappers.ts b/sdk/policyinsights/arm-policyinsights/src/models/remediationsMappers.ts
deleted file mode 100644
index 9e4ea0ef211c..000000000000
--- a/sdk/policyinsights/arm-policyinsights/src/models/remediationsMappers.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */
-
-export {
- BaseResource,
- ErrorDefinition,
- ErrorResponse,
- Remediation,
- RemediationDeployment,
- RemediationDeploymentsListResult,
- RemediationDeploymentSummary,
- RemediationFilters,
- RemediationListResult,
- TypedErrorInfo
-} from "../models/mappers";
diff --git a/sdk/policyinsights/arm-policyinsights/src/operations/attestations.ts b/sdk/policyinsights/arm-policyinsights/src/operations/attestations.ts
new file mode 100644
index 000000000000..0520d3eaac8c
--- /dev/null
+++ b/sdk/policyinsights/arm-policyinsights/src/operations/attestations.ts
@@ -0,0 +1,999 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+import { PagedAsyncIterableIterator } from "@azure/core-paging";
+import { Attestations } from "../operationsInterfaces";
+import * as coreClient from "@azure/core-client";
+import * as Mappers from "../models/mappers";
+import * as Parameters from "../models/parameters";
+import { PolicyInsightsClient } from "../policyInsightsClient";
+import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
+import { LroImpl } from "../lroImpl";
+import {
+ Attestation,
+ AttestationsListForSubscriptionNextOptionalParams,
+ AttestationsListForSubscriptionOptionalParams,
+ AttestationsListForResourceGroupNextOptionalParams,
+ AttestationsListForResourceGroupOptionalParams,
+ AttestationsListForResourceNextOptionalParams,
+ AttestationsListForResourceOptionalParams,
+ AttestationsListForSubscriptionResponse,
+ AttestationsCreateOrUpdateAtSubscriptionOptionalParams,
+ AttestationsCreateOrUpdateAtSubscriptionResponse,
+ AttestationsGetAtSubscriptionOptionalParams,
+ AttestationsGetAtSubscriptionResponse,
+ AttestationsDeleteAtSubscriptionOptionalParams,
+ AttestationsListForResourceGroupResponse,
+ AttestationsCreateOrUpdateAtResourceGroupOptionalParams,
+ AttestationsCreateOrUpdateAtResourceGroupResponse,
+ AttestationsGetAtResourceGroupOptionalParams,
+ AttestationsGetAtResourceGroupResponse,
+ AttestationsDeleteAtResourceGroupOptionalParams,
+ AttestationsListForResourceResponse,
+ AttestationsCreateOrUpdateAtResourceOptionalParams,
+ AttestationsCreateOrUpdateAtResourceResponse,
+ AttestationsGetAtResourceOptionalParams,
+ AttestationsGetAtResourceResponse,
+ AttestationsDeleteAtResourceOptionalParams,
+ AttestationsListForSubscriptionNextResponse,
+ AttestationsListForResourceGroupNextResponse,
+ AttestationsListForResourceNextResponse
+} from "../models";
+
+///
+/** Class containing Attestations operations. */
+export class AttestationsImpl implements Attestations {
+ private readonly client: PolicyInsightsClient;
+
+ /**
+ * Initialize a new instance of the class Attestations class.
+ * @param client Reference to the service client
+ */
+ constructor(client: PolicyInsightsClient) {
+ this.client = client;
+ }
+
+ /**
+ * Gets all attestations for the subscription.
+ * @param options The options parameters.
+ */
+ public listForSubscription(
+ options?: AttestationsListForSubscriptionOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listForSubscriptionPagingAll(options);
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ byPage: () => {
+ return this.listForSubscriptionPagingPage(options);
+ }
+ };
+ }
+
+ private async *listForSubscriptionPagingPage(
+ options?: AttestationsListForSubscriptionOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._listForSubscription(options);
+ yield result.value || [];
+ let continuationToken = result.nextLink;
+ while (continuationToken) {
+ result = await this._listForSubscriptionNext(continuationToken, options);
+ continuationToken = result.nextLink;
+ yield result.value || [];
+ }
+ }
+
+ private async *listForSubscriptionPagingAll(
+ options?: AttestationsListForSubscriptionOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listForSubscriptionPagingPage(options)) {
+ yield* page;
+ }
+ }
+
+ /**
+ * Gets all attestations for the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param options The options parameters.
+ */
+ public listForResourceGroup(
+ resourceGroupName: string,
+ options?: AttestationsListForResourceGroupOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listForResourceGroupPagingAll(resourceGroupName, options);
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ byPage: () => {
+ return this.listForResourceGroupPagingPage(resourceGroupName, options);
+ }
+ };
+ }
+
+ private async *listForResourceGroupPagingPage(
+ resourceGroupName: string,
+ options?: AttestationsListForResourceGroupOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._listForResourceGroup(resourceGroupName, options);
+ yield result.value || [];
+ let continuationToken = result.nextLink;
+ while (continuationToken) {
+ result = await this._listForResourceGroupNext(
+ resourceGroupName,
+ continuationToken,
+ options
+ );
+ continuationToken = result.nextLink;
+ yield result.value || [];
+ }
+ }
+
+ private async *listForResourceGroupPagingAll(
+ resourceGroupName: string,
+ options?: AttestationsListForResourceGroupOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listForResourceGroupPagingPage(
+ resourceGroupName,
+ options
+ )) {
+ yield* page;
+ }
+ }
+
+ /**
+ * Gets all attestations for a resource.
+ * @param resourceId Resource ID.
+ * @param options The options parameters.
+ */
+ public listForResource(
+ resourceId: string,
+ options?: AttestationsListForResourceOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listForResourcePagingAll(resourceId, options);
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ byPage: () => {
+ return this.listForResourcePagingPage(resourceId, options);
+ }
+ };
+ }
+
+ private async *listForResourcePagingPage(
+ resourceId: string,
+ options?: AttestationsListForResourceOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._listForResource(resourceId, options);
+ yield result.value || [];
+ let continuationToken = result.nextLink;
+ while (continuationToken) {
+ result = await this._listForResourceNext(
+ resourceId,
+ continuationToken,
+ options
+ );
+ continuationToken = result.nextLink;
+ yield result.value || [];
+ }
+ }
+
+ private async *listForResourcePagingAll(
+ resourceId: string,
+ options?: AttestationsListForResourceOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listForResourcePagingPage(
+ resourceId,
+ options
+ )) {
+ yield* page;
+ }
+ }
+
+ /**
+ * Gets all attestations for the subscription.
+ * @param options The options parameters.
+ */
+ private _listForSubscription(
+ options?: AttestationsListForSubscriptionOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest(
+ { options },
+ listForSubscriptionOperationSpec
+ );
+ }
+
+ /**
+ * Creates or updates an attestation at subscription scope.
+ * @param attestationName The name of the attestation.
+ * @param parameters The attestation parameters.
+ * @param options The options parameters.
+ */
+ async beginCreateOrUpdateAtSubscription(
+ attestationName: string,
+ parameters: Attestation,
+ options?: AttestationsCreateOrUpdateAtSubscriptionOptionalParams
+ ): Promise<
+ PollerLike<
+ PollOperationState,
+ AttestationsCreateOrUpdateAtSubscriptionResponse
+ >
+ > {
+ const directSendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ): Promise => {
+ return this.client.sendOperationRequest(args, spec);
+ };
+ const sendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ) => {
+ let currentRawResponse:
+ | coreClient.FullOperationResponse
+ | undefined = undefined;
+ const providedCallback = args.options?.onResponse;
+ const callback: coreClient.RawResponseCallback = (
+ rawResponse: coreClient.FullOperationResponse,
+ flatResponse: unknown
+ ) => {
+ currentRawResponse = rawResponse;
+ providedCallback?.(rawResponse, flatResponse);
+ };
+ const updatedArgs = {
+ ...args,
+ options: {
+ ...args.options,
+ onResponse: callback
+ }
+ };
+ const flatResponse = await directSendOperation(updatedArgs, spec);
+ return {
+ flatResponse,
+ rawResponse: {
+ statusCode: currentRawResponse!.status,
+ body: currentRawResponse!.parsedBody,
+ headers: currentRawResponse!.headers.toJSON()
+ }
+ };
+ };
+
+ const lro = new LroImpl(
+ sendOperation,
+ { attestationName, parameters, options },
+ createOrUpdateAtSubscriptionOperationSpec
+ );
+ return new LroEngine(lro, {
+ resumeFrom: options?.resumeFrom,
+ intervalInMs: options?.updateIntervalInMs
+ });
+ }
+
+ /**
+ * Creates or updates an attestation at subscription scope.
+ * @param attestationName The name of the attestation.
+ * @param parameters The attestation parameters.
+ * @param options The options parameters.
+ */
+ async beginCreateOrUpdateAtSubscriptionAndWait(
+ attestationName: string,
+ parameters: Attestation,
+ options?: AttestationsCreateOrUpdateAtSubscriptionOptionalParams
+ ): Promise {
+ const poller = await this.beginCreateOrUpdateAtSubscription(
+ attestationName,
+ parameters,
+ options
+ );
+ return poller.pollUntilDone();
+ }
+
+ /**
+ * Gets an existing attestation at subscription scope.
+ * @param attestationName The name of the attestation.
+ * @param options The options parameters.
+ */
+ getAtSubscription(
+ attestationName: string,
+ options?: AttestationsGetAtSubscriptionOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest(
+ { attestationName, options },
+ getAtSubscriptionOperationSpec
+ );
+ }
+
+ /**
+ * Deletes an existing attestation at subscription scope.
+ * @param attestationName The name of the attestation.
+ * @param options The options parameters.
+ */
+ deleteAtSubscription(
+ attestationName: string,
+ options?: AttestationsDeleteAtSubscriptionOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest(
+ { attestationName, options },
+ deleteAtSubscriptionOperationSpec
+ );
+ }
+
+ /**
+ * Gets all attestations for the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param options The options parameters.
+ */
+ private _listForResourceGroup(
+ resourceGroupName: string,
+ options?: AttestationsListForResourceGroupOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest(
+ { resourceGroupName, options },
+ listForResourceGroupOperationSpec
+ );
+ }
+
+ /**
+ * Creates or updates an attestation at resource group scope.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param attestationName The name of the attestation.
+ * @param parameters The attestation parameters.
+ * @param options The options parameters.
+ */
+ async beginCreateOrUpdateAtResourceGroup(
+ resourceGroupName: string,
+ attestationName: string,
+ parameters: Attestation,
+ options?: AttestationsCreateOrUpdateAtResourceGroupOptionalParams
+ ): Promise<
+ PollerLike<
+ PollOperationState,
+ AttestationsCreateOrUpdateAtResourceGroupResponse
+ >
+ > {
+ const directSendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ): Promise => {
+ return this.client.sendOperationRequest(args, spec);
+ };
+ const sendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ) => {
+ let currentRawResponse:
+ | coreClient.FullOperationResponse
+ | undefined = undefined;
+ const providedCallback = args.options?.onResponse;
+ const callback: coreClient.RawResponseCallback = (
+ rawResponse: coreClient.FullOperationResponse,
+ flatResponse: unknown
+ ) => {
+ currentRawResponse = rawResponse;
+ providedCallback?.(rawResponse, flatResponse);
+ };
+ const updatedArgs = {
+ ...args,
+ options: {
+ ...args.options,
+ onResponse: callback
+ }
+ };
+ const flatResponse = await directSendOperation(updatedArgs, spec);
+ return {
+ flatResponse,
+ rawResponse: {
+ statusCode: currentRawResponse!.status,
+ body: currentRawResponse!.parsedBody,
+ headers: currentRawResponse!.headers.toJSON()
+ }
+ };
+ };
+
+ const lro = new LroImpl(
+ sendOperation,
+ { resourceGroupName, attestationName, parameters, options },
+ createOrUpdateAtResourceGroupOperationSpec
+ );
+ return new LroEngine(lro, {
+ resumeFrom: options?.resumeFrom,
+ intervalInMs: options?.updateIntervalInMs
+ });
+ }
+
+ /**
+ * Creates or updates an attestation at resource group scope.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param attestationName The name of the attestation.
+ * @param parameters The attestation parameters.
+ * @param options The options parameters.
+ */
+ async beginCreateOrUpdateAtResourceGroupAndWait(
+ resourceGroupName: string,
+ attestationName: string,
+ parameters: Attestation,
+ options?: AttestationsCreateOrUpdateAtResourceGroupOptionalParams
+ ): Promise {
+ const poller = await this.beginCreateOrUpdateAtResourceGroup(
+ resourceGroupName,
+ attestationName,
+ parameters,
+ options
+ );
+ return poller.pollUntilDone();
+ }
+
+ /**
+ * Gets an existing attestation at resource group scope.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param attestationName The name of the attestation.
+ * @param options The options parameters.
+ */
+ getAtResourceGroup(
+ resourceGroupName: string,
+ attestationName: string,
+ options?: AttestationsGetAtResourceGroupOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest(
+ { resourceGroupName, attestationName, options },
+ getAtResourceGroupOperationSpec
+ );
+ }
+
+ /**
+ * Deletes an existing attestation at resource group scope.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param attestationName The name of the attestation.
+ * @param options The options parameters.
+ */
+ deleteAtResourceGroup(
+ resourceGroupName: string,
+ attestationName: string,
+ options?: AttestationsDeleteAtResourceGroupOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest(
+ { resourceGroupName, attestationName, options },
+ deleteAtResourceGroupOperationSpec
+ );
+ }
+
+ /**
+ * Gets all attestations for a resource.
+ * @param resourceId Resource ID.
+ * @param options The options parameters.
+ */
+ private _listForResource(
+ resourceId: string,
+ options?: AttestationsListForResourceOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest(
+ { resourceId, options },
+ listForResourceOperationSpec
+ );
+ }
+
+ /**
+ * Creates or updates an attestation at resource scope.
+ * @param resourceId Resource ID.
+ * @param attestationName The name of the attestation.
+ * @param parameters The attestation parameters.
+ * @param options The options parameters.
+ */
+ async beginCreateOrUpdateAtResource(
+ resourceId: string,
+ attestationName: string,
+ parameters: Attestation,
+ options?: AttestationsCreateOrUpdateAtResourceOptionalParams
+ ): Promise<
+ PollerLike<
+ PollOperationState,
+ AttestationsCreateOrUpdateAtResourceResponse
+ >
+ > {
+ const directSendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ): Promise => {
+ return this.client.sendOperationRequest(args, spec);
+ };
+ const sendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ) => {
+ let currentRawResponse:
+ | coreClient.FullOperationResponse
+ | undefined = undefined;
+ const providedCallback = args.options?.onResponse;
+ const callback: coreClient.RawResponseCallback = (
+ rawResponse: coreClient.FullOperationResponse,
+ flatResponse: unknown
+ ) => {
+ currentRawResponse = rawResponse;
+ providedCallback?.(rawResponse, flatResponse);
+ };
+ const updatedArgs = {
+ ...args,
+ options: {
+ ...args.options,
+ onResponse: callback
+ }
+ };
+ const flatResponse = await directSendOperation(updatedArgs, spec);
+ return {
+ flatResponse,
+ rawResponse: {
+ statusCode: currentRawResponse!.status,
+ body: currentRawResponse!.parsedBody,
+ headers: currentRawResponse!.headers.toJSON()
+ }
+ };
+ };
+
+ const lro = new LroImpl(
+ sendOperation,
+ { resourceId, attestationName, parameters, options },
+ createOrUpdateAtResourceOperationSpec
+ );
+ return new LroEngine(lro, {
+ resumeFrom: options?.resumeFrom,
+ intervalInMs: options?.updateIntervalInMs
+ });
+ }
+
+ /**
+ * Creates or updates an attestation at resource scope.
+ * @param resourceId Resource ID.
+ * @param attestationName The name of the attestation.
+ * @param parameters The attestation parameters.
+ * @param options The options parameters.
+ */
+ async beginCreateOrUpdateAtResourceAndWait(
+ resourceId: string,
+ attestationName: string,
+ parameters: Attestation,
+ options?: AttestationsCreateOrUpdateAtResourceOptionalParams
+ ): Promise {
+ const poller = await this.beginCreateOrUpdateAtResource(
+ resourceId,
+ attestationName,
+ parameters,
+ options
+ );
+ return poller.pollUntilDone();
+ }
+
+ /**
+ * Gets an existing attestation at resource scope.
+ * @param resourceId Resource ID.
+ * @param attestationName The name of the attestation.
+ * @param options The options parameters.
+ */
+ getAtResource(
+ resourceId: string,
+ attestationName: string,
+ options?: AttestationsGetAtResourceOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest(
+ { resourceId, attestationName, options },
+ getAtResourceOperationSpec
+ );
+ }
+
+ /**
+ * Deletes an existing attestation at individual resource scope.
+ * @param resourceId Resource ID.
+ * @param attestationName The name of the attestation.
+ * @param options The options parameters.
+ */
+ deleteAtResource(
+ resourceId: string,
+ attestationName: string,
+ options?: AttestationsDeleteAtResourceOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest(
+ { resourceId, attestationName, options },
+ deleteAtResourceOperationSpec
+ );
+ }
+
+ /**
+ * ListForSubscriptionNext
+ * @param nextLink The nextLink from the previous successful call to the ListForSubscription method.
+ * @param options The options parameters.
+ */
+ private _listForSubscriptionNext(
+ nextLink: string,
+ options?: AttestationsListForSubscriptionNextOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest(
+ { nextLink, options },
+ listForSubscriptionNextOperationSpec
+ );
+ }
+
+ /**
+ * ListForResourceGroupNext
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param nextLink The nextLink from the previous successful call to the ListForResourceGroup method.
+ * @param options The options parameters.
+ */
+ private _listForResourceGroupNext(
+ resourceGroupName: string,
+ nextLink: string,
+ options?: AttestationsListForResourceGroupNextOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest(
+ { resourceGroupName, nextLink, options },
+ listForResourceGroupNextOperationSpec
+ );
+ }
+
+ /**
+ * ListForResourceNext
+ * @param resourceId Resource ID.
+ * @param nextLink The nextLink from the previous successful call to the ListForResource method.
+ * @param options The options parameters.
+ */
+ private _listForResourceNext(
+ resourceId: string,
+ nextLink: string,
+ options?: AttestationsListForResourceNextOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest(
+ { resourceId, nextLink, options },
+ listForResourceNextOperationSpec
+ );
+ }
+}
+// Operation Specifications
+const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
+
+const listForSubscriptionOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/attestations",
+ httpMethod: "GET",
+ responses: {
+ 200: {
+ bodyMapper: Mappers.AttestationListResult
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponseAutoGenerated2
+ }
+ },
+ queryParameters: [Parameters.top, Parameters.filter, Parameters.apiVersion4],
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
+ headerParameters: [Parameters.accept],
+ serializer
+};
+const createOrUpdateAtSubscriptionOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/attestations/{attestationName}",
+ httpMethod: "PUT",
+ responses: {
+ 200: {
+ bodyMapper: Mappers.Attestation
+ },
+ 201: {
+ bodyMapper: Mappers.Attestation
+ },
+ 202: {
+ bodyMapper: Mappers.Attestation
+ },
+ 204: {
+ bodyMapper: Mappers.Attestation
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponseAutoGenerated2
+ }
+ },
+ requestBody: Parameters.parameters2,
+ queryParameters: [Parameters.apiVersion4],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.attestationName
+ ],
+ headerParameters: [Parameters.accept, Parameters.contentType],
+ mediaType: "json",
+ serializer
+};
+const getAtSubscriptionOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/attestations/{attestationName}",
+ httpMethod: "GET",
+ responses: {
+ 200: {
+ bodyMapper: Mappers.Attestation
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponseAutoGenerated2
+ }
+ },
+ queryParameters: [Parameters.apiVersion4],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.attestationName
+ ],
+ headerParameters: [Parameters.accept],
+ serializer
+};
+const deleteAtSubscriptionOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/attestations/{attestationName}",
+ httpMethod: "DELETE",
+ responses: {
+ 200: {},
+ 204: {},
+ default: {
+ bodyMapper: Mappers.ErrorResponseAutoGenerated2
+ }
+ },
+ queryParameters: [Parameters.apiVersion4],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.attestationName
+ ],
+ headerParameters: [Parameters.accept],
+ serializer
+};
+const listForResourceGroupOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/attestations",
+ httpMethod: "GET",
+ responses: {
+ 200: {
+ bodyMapper: Mappers.AttestationListResult
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponseAutoGenerated2
+ }
+ },
+ queryParameters: [Parameters.top, Parameters.filter, Parameters.apiVersion4],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName1
+ ],
+ headerParameters: [Parameters.accept],
+ serializer
+};
+const createOrUpdateAtResourceGroupOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/attestations/{attestationName}",
+ httpMethod: "PUT",
+ responses: {
+ 200: {
+ bodyMapper: Mappers.Attestation
+ },
+ 201: {
+ bodyMapper: Mappers.Attestation
+ },
+ 202: {
+ bodyMapper: Mappers.Attestation
+ },
+ 204: {
+ bodyMapper: Mappers.Attestation
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponseAutoGenerated2
+ }
+ },
+ requestBody: Parameters.parameters2,
+ queryParameters: [Parameters.apiVersion4],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName1,
+ Parameters.attestationName
+ ],
+ headerParameters: [Parameters.accept, Parameters.contentType],
+ mediaType: "json",
+ serializer
+};
+const getAtResourceGroupOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/attestations/{attestationName}",
+ httpMethod: "GET",
+ responses: {
+ 200: {
+ bodyMapper: Mappers.Attestation
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponseAutoGenerated2
+ }
+ },
+ queryParameters: [Parameters.apiVersion4],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName1,
+ Parameters.attestationName
+ ],
+ headerParameters: [Parameters.accept],
+ serializer
+};
+const deleteAtResourceGroupOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/attestations/{attestationName}",
+ httpMethod: "DELETE",
+ responses: {
+ 200: {},
+ 204: {},
+ default: {
+ bodyMapper: Mappers.ErrorResponseAutoGenerated2
+ }
+ },
+ queryParameters: [Parameters.apiVersion4],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName1,
+ Parameters.attestationName
+ ],
+ headerParameters: [Parameters.accept],
+ serializer
+};
+const listForResourceOperationSpec: coreClient.OperationSpec = {
+ path: "/{resourceId}/providers/Microsoft.PolicyInsights/attestations",
+ httpMethod: "GET",
+ responses: {
+ 200: {
+ bodyMapper: Mappers.AttestationListResult
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponseAutoGenerated2
+ }
+ },
+ queryParameters: [Parameters.top, Parameters.filter, Parameters.apiVersion4],
+ urlParameters: [Parameters.$host, Parameters.resourceId],
+ headerParameters: [Parameters.accept],
+ serializer
+};
+const createOrUpdateAtResourceOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/{resourceId}/providers/Microsoft.PolicyInsights/attestations/{attestationName}",
+ httpMethod: "PUT",
+ responses: {
+ 200: {
+ bodyMapper: Mappers.Attestation
+ },
+ 201: {
+ bodyMapper: Mappers.Attestation
+ },
+ 202: {
+ bodyMapper: Mappers.Attestation
+ },
+ 204: {
+ bodyMapper: Mappers.Attestation
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponseAutoGenerated2
+ }
+ },
+ requestBody: Parameters.parameters2,
+ queryParameters: [Parameters.apiVersion4],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.resourceId,
+ Parameters.attestationName
+ ],
+ headerParameters: [Parameters.accept, Parameters.contentType],
+ mediaType: "json",
+ serializer
+};
+const getAtResourceOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/{resourceId}/providers/Microsoft.PolicyInsights/attestations/{attestationName}",
+ httpMethod: "GET",
+ responses: {
+ 200: {
+ bodyMapper: Mappers.Attestation
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponseAutoGenerated2
+ }
+ },
+ queryParameters: [Parameters.apiVersion4],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.resourceId,
+ Parameters.attestationName
+ ],
+ headerParameters: [Parameters.accept],
+ serializer
+};
+const deleteAtResourceOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/{resourceId}/providers/Microsoft.PolicyInsights/attestations/{attestationName}",
+ httpMethod: "DELETE",
+ responses: {
+ 200: {},
+ 204: {},
+ default: {
+ bodyMapper: Mappers.ErrorResponseAutoGenerated2
+ }
+ },
+ queryParameters: [Parameters.apiVersion4],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.resourceId,
+ Parameters.attestationName
+ ],
+ headerParameters: [Parameters.accept],
+ serializer
+};
+const listForSubscriptionNextOperationSpec: coreClient.OperationSpec = {
+ path: "{nextLink}",
+ httpMethod: "GET",
+ responses: {
+ 200: {
+ bodyMapper: Mappers.AttestationListResult
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponseAutoGenerated2
+ }
+ },
+ queryParameters: [Parameters.top, Parameters.filter, Parameters.apiVersion4],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.nextLink
+ ],
+ headerParameters: [Parameters.accept],
+ serializer
+};
+const listForResourceGroupNextOperationSpec: coreClient.OperationSpec = {
+ path: "{nextLink}",
+ httpMethod: "GET",
+ responses: {
+ 200: {
+ bodyMapper: Mappers.AttestationListResult
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponseAutoGenerated2
+ }
+ },
+ queryParameters: [Parameters.top, Parameters.filter, Parameters.apiVersion4],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.nextLink,
+ Parameters.resourceGroupName1
+ ],
+ headerParameters: [Parameters.accept],
+ serializer
+};
+const listForResourceNextOperationSpec: coreClient.OperationSpec = {
+ path: "{nextLink}",
+ httpMethod: "GET",
+ responses: {
+ 200: {
+ bodyMapper: Mappers.AttestationListResult
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponseAutoGenerated2
+ }
+ },
+ queryParameters: [Parameters.top, Parameters.filter, Parameters.apiVersion4],
+ urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.nextLink],
+ headerParameters: [Parameters.accept],
+ serializer
+};
diff --git a/sdk/policyinsights/arm-policyinsights/src/operations/index.ts b/sdk/policyinsights/arm-policyinsights/src/operations/index.ts
index 7200c7f81b07..9de8cb75ec7a 100644
--- a/sdk/policyinsights/arm-policyinsights/src/operations/index.ts
+++ b/sdk/policyinsights/arm-policyinsights/src/operations/index.ts
@@ -3,8 +3,7 @@
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
export * from "./policyTrackedResources";
@@ -13,3 +12,5 @@ export * from "./policyEvents";
export * from "./policyStates";
export * from "./operations";
export * from "./policyMetadataOperations";
+export * from "./policyRestrictions";
+export * from "./attestations";
diff --git a/sdk/policyinsights/arm-policyinsights/src/operations/operations.ts b/sdk/policyinsights/arm-policyinsights/src/operations/operations.ts
index 72e2f9fea023..d4f55429c3ef 100644
--- a/sdk/policyinsights/arm-policyinsights/src/operations/operations.ts
+++ b/sdk/policyinsights/arm-policyinsights/src/operations/operations.ts
@@ -3,64 +3,47 @@
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
-import * as Models from "../models";
-import * as Mappers from "../models/operationsMappers";
+import { Operations } from "../operationsInterfaces";
+import * as coreClient from "@azure/core-client";
+import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
-import { PolicyInsightsClientContext } from "../policyInsightsClientContext";
+import { PolicyInsightsClient } from "../policyInsightsClient";
+import {
+ OperationsListOptionalParams,
+ OperationsListResponse
+} from "../models";
-/** Class representing a Operations. */
-export class Operations {
- private readonly client: PolicyInsightsClientContext;
+/** Class containing Operations operations. */
+export class OperationsImpl implements Operations {
+ private readonly client: PolicyInsightsClient;
/**
- * Create a Operations.
- * @param {PolicyInsightsClientContext} client Reference to the service client.
+ * Initialize a new instance of the class Operations class.
+ * @param client Reference to the service client
*/
- constructor(client: PolicyInsightsClientContext) {
+ constructor(client: PolicyInsightsClient) {
this.client = client;
}
/**
* Lists available operations.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- list(options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param callback The callback
- */
- list(callback: msRest.ServiceCallback): void;
- /**
- * @param options The optional parameters
- * @param callback The callback
- */
- list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
- options
- },
- listOperationSpec,
- callback) as Promise;
+ list(
+ options?: OperationsListOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
}
}
-
// Operation Specifications
-const serializer = new msRest.Serializer(Mappers);
-const listOperationSpec: msRest.OperationSpec = {
+const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
+
+const listOperationSpec: coreClient.OperationSpec = {
+ path: "/providers/Microsoft.PolicyInsights/operations",
httpMethod: "GET",
- path: "providers/Microsoft.PolicyInsights/operations",
- queryParameters: [
- Parameters.apiVersion2
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
responses: {
200: {
bodyMapper: Mappers.OperationsListResults
@@ -69,5 +52,8 @@ const listOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.QueryFailure
}
},
+ queryParameters: [Parameters.apiVersion2],
+ urlParameters: [Parameters.$host],
+ headerParameters: [Parameters.accept],
serializer
};
diff --git a/sdk/policyinsights/arm-policyinsights/src/operations/policyEvents.ts b/sdk/policyinsights/arm-policyinsights/src/operations/policyEvents.ts
index abcdb8bee075..580d381e81b2 100644
--- a/sdk/policyinsights/arm-policyinsights/src/operations/policyEvents.ts
+++ b/sdk/policyinsights/arm-policyinsights/src/operations/policyEvents.ts
@@ -3,239 +3,523 @@
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
-import * as Models from "../models";
-import * as Mappers from "../models/policyEventsMappers";
+import { PagedAsyncIterableIterator } from "@azure/core-paging";
+import { PolicyEvents } from "../operationsInterfaces";
+import * as coreClient from "@azure/core-client";
+import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
-import { PolicyInsightsClientContext } from "../policyInsightsClientContext";
+import { PolicyInsightsClient } from "../policyInsightsClient";
+import {
+ PolicyEvent,
+ PolicyEventsListQueryResultsForManagementGroupNextOptionalParams,
+ PolicyEventsListQueryResultsForManagementGroupOptionalParams,
+ PolicyEventsListQueryResultsForSubscriptionNextOptionalParams,
+ PolicyEventsListQueryResultsForSubscriptionOptionalParams,
+ PolicyEventsListQueryResultsForResourceGroupNextOptionalParams,
+ PolicyEventsListQueryResultsForResourceGroupOptionalParams,
+ PolicyEventsListQueryResultsForResourceNextOptionalParams,
+ PolicyEventsListQueryResultsForResourceOptionalParams,
+ PolicyEventsListQueryResultsForPolicySetDefinitionNextOptionalParams,
+ PolicyEventsListQueryResultsForPolicySetDefinitionOptionalParams,
+ PolicyEventsListQueryResultsForPolicyDefinitionNextOptionalParams,
+ PolicyEventsListQueryResultsForPolicyDefinitionOptionalParams,
+ PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentNextOptionalParams,
+ PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentOptionalParams,
+ PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentNextOptionalParams,
+ PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentOptionalParams,
+ PolicyEventsListQueryResultsForManagementGroupResponse,
+ PolicyEventsListQueryResultsForSubscriptionResponse,
+ PolicyEventsListQueryResultsForResourceGroupResponse,
+ PolicyEventsListQueryResultsForResourceResponse,
+ PolicyEventsListQueryResultsForPolicySetDefinitionResponse,
+ PolicyEventsListQueryResultsForPolicyDefinitionResponse,
+ PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentResponse,
+ PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentResponse,
+ PolicyEventsListQueryResultsForManagementGroupNextResponse,
+ PolicyEventsListQueryResultsForSubscriptionNextResponse,
+ PolicyEventsListQueryResultsForResourceGroupNextResponse,
+ PolicyEventsListQueryResultsForResourceNextResponse,
+ PolicyEventsListQueryResultsForPolicySetDefinitionNextResponse,
+ PolicyEventsListQueryResultsForPolicyDefinitionNextResponse,
+ PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentNextResponse,
+ PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentNextResponse
+} from "../models";
-/** Class representing a PolicyEvents. */
-export class PolicyEvents {
- private readonly client: PolicyInsightsClientContext;
+///
+/** Class containing PolicyEvents operations. */
+export class PolicyEventsImpl implements PolicyEvents {
+ private readonly client: PolicyInsightsClient;
/**
- * Create a PolicyEvents.
- * @param {PolicyInsightsClientContext} client Reference to the service client.
+ * Initialize a new instance of the class PolicyEvents class.
+ * @param client Reference to the service client
*/
- constructor(client: PolicyInsightsClientContext) {
+ constructor(client: PolicyInsightsClient) {
this.client = client;
}
/**
* Queries policy events for the resources under the management group.
* @param managementGroupName Management group name.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- listQueryResultsForManagementGroup(managementGroupName: string, options?: Models.PolicyEventsListQueryResultsForManagementGroupOptionalParams): Promise;
- /**
- * @param managementGroupName Management group name.
- * @param callback The callback
- */
- listQueryResultsForManagementGroup(managementGroupName: string, callback: msRest.ServiceCallback): void;
- /**
- * @param managementGroupName Management group name.
- * @param options The optional parameters
- * @param callback The callback
- */
- listQueryResultsForManagementGroup(managementGroupName: string, options: Models.PolicyEventsListQueryResultsForManagementGroupOptionalParams, callback: msRest.ServiceCallback): void;
- listQueryResultsForManagementGroup(managementGroupName: string, options?: Models.PolicyEventsListQueryResultsForManagementGroupOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
+ public listQueryResultsForManagementGroup(
+ managementGroupName: string,
+ options?: PolicyEventsListQueryResultsForManagementGroupOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listQueryResultsForManagementGroupPagingAll(
+ managementGroupName,
+ options
+ );
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ byPage: () => {
+ return this.listQueryResultsForManagementGroupPagingPage(
+ managementGroupName,
+ options
+ );
+ }
+ };
+ }
+
+ private async *listQueryResultsForManagementGroupPagingPage(
+ managementGroupName: string,
+ options?: PolicyEventsListQueryResultsForManagementGroupOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._listQueryResultsForManagementGroup(
+ managementGroupName,
+ options
+ );
+ yield result.value || [];
+ let continuationToken = result.odataNextLink;
+ while (continuationToken) {
+ result = await this._listQueryResultsForManagementGroupNext(
managementGroupName,
+ continuationToken,
options
- },
- listQueryResultsForManagementGroupOperationSpec,
- callback) as Promise;
+ );
+ continuationToken = result.odataNextLink;
+ yield result.value || [];
+ }
+ }
+
+ private async *listQueryResultsForManagementGroupPagingAll(
+ managementGroupName: string,
+ options?: PolicyEventsListQueryResultsForManagementGroupOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listQueryResultsForManagementGroupPagingPage(
+ managementGroupName,
+ options
+ )) {
+ yield* page;
+ }
}
/**
* Queries policy events for the resources under the subscription.
* @param subscriptionId Microsoft Azure subscription ID.
- * @param [options] The optional parameters
- * @returns Promise
- */
- listQueryResultsForSubscription(subscriptionId: string, options?: Models.PolicyEventsListQueryResultsForSubscriptionOptionalParams): Promise;
- /**
- * @param subscriptionId Microsoft Azure subscription ID.
- * @param callback The callback
- */
- listQueryResultsForSubscription(subscriptionId: string, callback: msRest.ServiceCallback): void;
- /**
- * @param subscriptionId Microsoft Azure subscription ID.
- * @param options The optional parameters
- * @param callback The callback
+ * @param options The options parameters.
*/
- listQueryResultsForSubscription(subscriptionId: string, options: Models.PolicyEventsListQueryResultsForSubscriptionOptionalParams, callback: msRest.ServiceCallback): void;
- listQueryResultsForSubscription(subscriptionId: string, options?: Models.PolicyEventsListQueryResultsForSubscriptionOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
+ public listQueryResultsForSubscription(
+ subscriptionId: string,
+ options?: PolicyEventsListQueryResultsForSubscriptionOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listQueryResultsForSubscriptionPagingAll(
+ subscriptionId,
+ options
+ );
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ byPage: () => {
+ return this.listQueryResultsForSubscriptionPagingPage(
+ subscriptionId,
+ options
+ );
+ }
+ };
+ }
+
+ private async *listQueryResultsForSubscriptionPagingPage(
+ subscriptionId: string,
+ options?: PolicyEventsListQueryResultsForSubscriptionOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._listQueryResultsForSubscription(
+ subscriptionId,
+ options
+ );
+ yield result.value || [];
+ let continuationToken = result.odataNextLink;
+ while (continuationToken) {
+ result = await this._listQueryResultsForSubscriptionNext(
subscriptionId,
+ continuationToken,
options
- },
- listQueryResultsForSubscriptionOperationSpec,
- callback) as Promise;
+ );
+ continuationToken = result.odataNextLink;
+ yield result.value || [];
+ }
+ }
+
+ private async *listQueryResultsForSubscriptionPagingAll(
+ subscriptionId: string,
+ options?: PolicyEventsListQueryResultsForSubscriptionOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listQueryResultsForSubscriptionPagingPage(
+ subscriptionId,
+ options
+ )) {
+ yield* page;
+ }
}
/**
* Queries policy events for the resources under the resource group.
* @param subscriptionId Microsoft Azure subscription ID.
* @param resourceGroupName Resource group name.
- * @param [options] The optional parameters
- * @returns Promise
- */
- listQueryResultsForResourceGroup(subscriptionId: string, resourceGroupName: string, options?: Models.PolicyEventsListQueryResultsForResourceGroupOptionalParams): Promise;
- /**
- * @param subscriptionId Microsoft Azure subscription ID.
- * @param resourceGroupName Resource group name.
- * @param callback The callback
- */
- listQueryResultsForResourceGroup(subscriptionId: string, resourceGroupName: string, callback: msRest.ServiceCallback): void;
- /**
- * @param subscriptionId Microsoft Azure subscription ID.
- * @param resourceGroupName Resource group name.
- * @param options The optional parameters
- * @param callback The callback
+ * @param options The options parameters.
*/
- listQueryResultsForResourceGroup(subscriptionId: string, resourceGroupName: string, options: Models.PolicyEventsListQueryResultsForResourceGroupOptionalParams, callback: msRest.ServiceCallback): void;
- listQueryResultsForResourceGroup(subscriptionId: string, resourceGroupName: string, options?: Models.PolicyEventsListQueryResultsForResourceGroupOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
+ public listQueryResultsForResourceGroup(
+ subscriptionId: string,
+ resourceGroupName: string,
+ options?: PolicyEventsListQueryResultsForResourceGroupOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listQueryResultsForResourceGroupPagingAll(
+ subscriptionId,
+ resourceGroupName,
+ options
+ );
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ byPage: () => {
+ return this.listQueryResultsForResourceGroupPagingPage(
+ subscriptionId,
+ resourceGroupName,
+ options
+ );
+ }
+ };
+ }
+
+ private async *listQueryResultsForResourceGroupPagingPage(
+ subscriptionId: string,
+ resourceGroupName: string,
+ options?: PolicyEventsListQueryResultsForResourceGroupOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._listQueryResultsForResourceGroup(
+ subscriptionId,
+ resourceGroupName,
+ options
+ );
+ yield result.value || [];
+ let continuationToken = result.odataNextLink;
+ while (continuationToken) {
+ result = await this._listQueryResultsForResourceGroupNext(
subscriptionId,
resourceGroupName,
+ continuationToken,
options
- },
- listQueryResultsForResourceGroupOperationSpec,
- callback) as Promise;
+ );
+ continuationToken = result.odataNextLink;
+ yield result.value || [];
+ }
+ }
+
+ private async *listQueryResultsForResourceGroupPagingAll(
+ subscriptionId: string,
+ resourceGroupName: string,
+ options?: PolicyEventsListQueryResultsForResourceGroupOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listQueryResultsForResourceGroupPagingPage(
+ subscriptionId,
+ resourceGroupName,
+ options
+ )) {
+ yield* page;
+ }
}
/**
* Queries policy events for the resource.
* @param resourceId Resource ID.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- listQueryResultsForResource(resourceId: string, options?: Models.PolicyEventsListQueryResultsForResourceOptionalParams): Promise;
- /**
- * @param resourceId Resource ID.
- * @param callback The callback
- */
- listQueryResultsForResource(resourceId: string, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceId Resource ID.
- * @param options The optional parameters
- * @param callback The callback
- */
- listQueryResultsForResource(resourceId: string, options: Models.PolicyEventsListQueryResultsForResourceOptionalParams, callback: msRest.ServiceCallback): void;
- listQueryResultsForResource(resourceId: string, options?: Models.PolicyEventsListQueryResultsForResourceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
+ public listQueryResultsForResource(
+ resourceId: string,
+ options?: PolicyEventsListQueryResultsForResourceOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listQueryResultsForResourcePagingAll(resourceId, options);
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ byPage: () => {
+ return this.listQueryResultsForResourcePagingPage(resourceId, options);
+ }
+ };
+ }
+
+ private async *listQueryResultsForResourcePagingPage(
+ resourceId: string,
+ options?: PolicyEventsListQueryResultsForResourceOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._listQueryResultsForResource(resourceId, options);
+ yield result.value || [];
+ let continuationToken = result.odataNextLink;
+ while (continuationToken) {
+ result = await this._listQueryResultsForResourceNext(
resourceId,
+ continuationToken,
options
- },
- listQueryResultsForResourceOperationSpec,
- callback) as Promise;
+ );
+ continuationToken = result.odataNextLink;
+ yield result.value || [];
+ }
+ }
+
+ private async *listQueryResultsForResourcePagingAll(
+ resourceId: string,
+ options?: PolicyEventsListQueryResultsForResourceOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listQueryResultsForResourcePagingPage(
+ resourceId,
+ options
+ )) {
+ yield* page;
+ }
}
/**
* Queries policy events for the subscription level policy set definition.
* @param subscriptionId Microsoft Azure subscription ID.
* @param policySetDefinitionName Policy set definition name.
- * @param [options] The optional parameters
- * @returns Promise
- */
- listQueryResultsForPolicySetDefinition(subscriptionId: string, policySetDefinitionName: string, options?: Models.PolicyEventsListQueryResultsForPolicySetDefinitionOptionalParams): Promise;
- /**
- * @param subscriptionId Microsoft Azure subscription ID.
- * @param policySetDefinitionName Policy set definition name.
- * @param callback The callback
+ * @param options The options parameters.
*/
- listQueryResultsForPolicySetDefinition(subscriptionId: string, policySetDefinitionName: string, callback: msRest.ServiceCallback): void;
- /**
- * @param subscriptionId Microsoft Azure subscription ID.
- * @param policySetDefinitionName Policy set definition name.
- * @param options The optional parameters
- * @param callback The callback
- */
- listQueryResultsForPolicySetDefinition(subscriptionId: string, policySetDefinitionName: string, options: Models.PolicyEventsListQueryResultsForPolicySetDefinitionOptionalParams, callback: msRest.ServiceCallback): void;
- listQueryResultsForPolicySetDefinition(subscriptionId: string, policySetDefinitionName: string, options?: Models.PolicyEventsListQueryResultsForPolicySetDefinitionOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
+ public listQueryResultsForPolicySetDefinition(
+ subscriptionId: string,
+ policySetDefinitionName: string,
+ options?: PolicyEventsListQueryResultsForPolicySetDefinitionOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listQueryResultsForPolicySetDefinitionPagingAll(
+ subscriptionId,
+ policySetDefinitionName,
+ options
+ );
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ byPage: () => {
+ return this.listQueryResultsForPolicySetDefinitionPagingPage(
+ subscriptionId,
+ policySetDefinitionName,
+ options
+ );
+ }
+ };
+ }
+
+ private async *listQueryResultsForPolicySetDefinitionPagingPage(
+ subscriptionId: string,
+ policySetDefinitionName: string,
+ options?: PolicyEventsListQueryResultsForPolicySetDefinitionOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._listQueryResultsForPolicySetDefinition(
+ subscriptionId,
+ policySetDefinitionName,
+ options
+ );
+ yield result.value || [];
+ let continuationToken = result.odataNextLink;
+ while (continuationToken) {
+ result = await this._listQueryResultsForPolicySetDefinitionNext(
subscriptionId,
policySetDefinitionName,
+ continuationToken,
options
- },
- listQueryResultsForPolicySetDefinitionOperationSpec,
- callback) as Promise;
+ );
+ continuationToken = result.odataNextLink;
+ yield result.value || [];
+ }
+ }
+
+ private async *listQueryResultsForPolicySetDefinitionPagingAll(
+ subscriptionId: string,
+ policySetDefinitionName: string,
+ options?: PolicyEventsListQueryResultsForPolicySetDefinitionOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listQueryResultsForPolicySetDefinitionPagingPage(
+ subscriptionId,
+ policySetDefinitionName,
+ options
+ )) {
+ yield* page;
+ }
}
/**
* Queries policy events for the subscription level policy definition.
* @param subscriptionId Microsoft Azure subscription ID.
* @param policyDefinitionName Policy definition name.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- listQueryResultsForPolicyDefinition(subscriptionId: string, policyDefinitionName: string, options?: Models.PolicyEventsListQueryResultsForPolicyDefinitionOptionalParams): Promise;
- /**
- * @param subscriptionId Microsoft Azure subscription ID.
- * @param policyDefinitionName Policy definition name.
- * @param callback The callback
- */
- listQueryResultsForPolicyDefinition(subscriptionId: string, policyDefinitionName: string, callback: msRest.ServiceCallback): void;
- /**
- * @param subscriptionId Microsoft Azure subscription ID.
- * @param policyDefinitionName Policy definition name.
- * @param options The optional parameters
- * @param callback The callback
- */
- listQueryResultsForPolicyDefinition(subscriptionId: string, policyDefinitionName: string, options: Models.PolicyEventsListQueryResultsForPolicyDefinitionOptionalParams, callback: msRest.ServiceCallback): void;
- listQueryResultsForPolicyDefinition(subscriptionId: string, policyDefinitionName: string, options?: Models.PolicyEventsListQueryResultsForPolicyDefinitionOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
+ public listQueryResultsForPolicyDefinition(
+ subscriptionId: string,
+ policyDefinitionName: string,
+ options?: PolicyEventsListQueryResultsForPolicyDefinitionOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listQueryResultsForPolicyDefinitionPagingAll(
+ subscriptionId,
+ policyDefinitionName,
+ options
+ );
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ byPage: () => {
+ return this.listQueryResultsForPolicyDefinitionPagingPage(
+ subscriptionId,
+ policyDefinitionName,
+ options
+ );
+ }
+ };
+ }
+
+ private async *listQueryResultsForPolicyDefinitionPagingPage(
+ subscriptionId: string,
+ policyDefinitionName: string,
+ options?: PolicyEventsListQueryResultsForPolicyDefinitionOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._listQueryResultsForPolicyDefinition(
+ subscriptionId,
+ policyDefinitionName,
+ options
+ );
+ yield result.value || [];
+ let continuationToken = result.odataNextLink;
+ while (continuationToken) {
+ result = await this._listQueryResultsForPolicyDefinitionNext(
subscriptionId,
policyDefinitionName,
+ continuationToken,
options
- },
- listQueryResultsForPolicyDefinitionOperationSpec,
- callback) as Promise;
+ );
+ continuationToken = result.odataNextLink;
+ yield result.value || [];
+ }
+ }
+
+ private async *listQueryResultsForPolicyDefinitionPagingAll(
+ subscriptionId: string,
+ policyDefinitionName: string,
+ options?: PolicyEventsListQueryResultsForPolicyDefinitionOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listQueryResultsForPolicyDefinitionPagingPage(
+ subscriptionId,
+ policyDefinitionName,
+ options
+ )) {
+ yield* page;
+ }
}
/**
* Queries policy events for the subscription level policy assignment.
* @param subscriptionId Microsoft Azure subscription ID.
* @param policyAssignmentName Policy assignment name.
- * @param [options] The optional parameters
- * @returns
- * Promise
- */
- listQueryResultsForSubscriptionLevelPolicyAssignment(subscriptionId: string, policyAssignmentName: string, options?: Models.PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentOptionalParams): Promise;
- /**
- * @param subscriptionId Microsoft Azure subscription ID.
- * @param policyAssignmentName Policy assignment name.
- * @param callback The callback
- */
- listQueryResultsForSubscriptionLevelPolicyAssignment(subscriptionId: string, policyAssignmentName: string, callback: msRest.ServiceCallback): void;
- /**
- * @param subscriptionId Microsoft Azure subscription ID.
- * @param policyAssignmentName Policy assignment name.
- * @param options The optional parameters
- * @param callback The callback
+ * @param options The options parameters.
*/
- listQueryResultsForSubscriptionLevelPolicyAssignment(subscriptionId: string, policyAssignmentName: string, options: Models.PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentOptionalParams, callback: msRest.ServiceCallback): void;
- listQueryResultsForSubscriptionLevelPolicyAssignment(subscriptionId: string, policyAssignmentName: string, options?: Models.PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
+ public listQueryResultsForSubscriptionLevelPolicyAssignment(
+ subscriptionId: string,
+ policyAssignmentName: string,
+ options?: PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listQueryResultsForSubscriptionLevelPolicyAssignmentPagingAll(
+ subscriptionId,
+ policyAssignmentName,
+ options
+ );
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ byPage: () => {
+ return this.listQueryResultsForSubscriptionLevelPolicyAssignmentPagingPage(
+ subscriptionId,
+ policyAssignmentName,
+ options
+ );
+ }
+ };
+ }
+
+ private async *listQueryResultsForSubscriptionLevelPolicyAssignmentPagingPage(
+ subscriptionId: string,
+ policyAssignmentName: string,
+ options?: PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._listQueryResultsForSubscriptionLevelPolicyAssignment(
+ subscriptionId,
+ policyAssignmentName,
+ options
+ );
+ yield result.value || [];
+ let continuationToken = result.odataNextLink;
+ while (continuationToken) {
+ result = await this._listQueryResultsForSubscriptionLevelPolicyAssignmentNext(
subscriptionId,
policyAssignmentName,
+ continuationToken,
options
- },
- listQueryResultsForSubscriptionLevelPolicyAssignmentOperationSpec,
- callback) as Promise;
+ );
+ continuationToken = result.odataNextLink;
+ yield result.value || [];
+ }
+ }
+
+ private async *listQueryResultsForSubscriptionLevelPolicyAssignmentPagingAll(
+ subscriptionId: string,
+ policyAssignmentName: string,
+ options?: PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listQueryResultsForSubscriptionLevelPolicyAssignmentPagingPage(
+ subscriptionId,
+ policyAssignmentName,
+ options
+ )) {
+ yield* page;
+ }
}
/**
@@ -243,289 +527,422 @@ export class PolicyEvents {
* @param subscriptionId Microsoft Azure subscription ID.
* @param resourceGroupName Resource group name.
* @param policyAssignmentName Policy assignment name.
- * @param [options] The optional parameters
- * @returns
- * Promise
- */
- listQueryResultsForResourceGroupLevelPolicyAssignment(subscriptionId: string, resourceGroupName: string, policyAssignmentName: string, options?: Models.PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentOptionalParams): Promise;
- /**
- * @param subscriptionId Microsoft Azure subscription ID.
- * @param resourceGroupName Resource group name.
- * @param policyAssignmentName Policy assignment name.
- * @param callback The callback
- */
- listQueryResultsForResourceGroupLevelPolicyAssignment(subscriptionId: string, resourceGroupName: string, policyAssignmentName: string, callback: msRest.ServiceCallback): void;
- /**
- * @param subscriptionId Microsoft Azure subscription ID.
- * @param resourceGroupName Resource group name.
- * @param policyAssignmentName Policy assignment name.
- * @param options The optional parameters
- * @param callback The callback
+ * @param options The options parameters.
*/
- listQueryResultsForResourceGroupLevelPolicyAssignment(subscriptionId: string, resourceGroupName: string, policyAssignmentName: string, options: Models.PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentOptionalParams, callback: msRest.ServiceCallback): void;
- listQueryResultsForResourceGroupLevelPolicyAssignment(subscriptionId: string, resourceGroupName: string, policyAssignmentName: string, options?: Models.PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
+ public listQueryResultsForResourceGroupLevelPolicyAssignment(
+ subscriptionId: string,
+ resourceGroupName: string,
+ policyAssignmentName: string,
+ options?: PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listQueryResultsForResourceGroupLevelPolicyAssignmentPagingAll(
+ subscriptionId,
+ resourceGroupName,
+ policyAssignmentName,
+ options
+ );
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ byPage: () => {
+ return this.listQueryResultsForResourceGroupLevelPolicyAssignmentPagingPage(
+ subscriptionId,
+ resourceGroupName,
+ policyAssignmentName,
+ options
+ );
+ }
+ };
+ }
+
+ private async *listQueryResultsForResourceGroupLevelPolicyAssignmentPagingPage(
+ subscriptionId: string,
+ resourceGroupName: string,
+ policyAssignmentName: string,
+ options?: PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._listQueryResultsForResourceGroupLevelPolicyAssignment(
+ subscriptionId,
+ resourceGroupName,
+ policyAssignmentName,
+ options
+ );
+ yield result.value || [];
+ let continuationToken = result.odataNextLink;
+ while (continuationToken) {
+ result = await this._listQueryResultsForResourceGroupLevelPolicyAssignmentNext(
subscriptionId,
resourceGroupName,
policyAssignmentName,
+ continuationToken,
options
- },
- listQueryResultsForResourceGroupLevelPolicyAssignmentOperationSpec,
- callback) as Promise;
+ );
+ continuationToken = result.odataNextLink;
+ yield result.value || [];
+ }
+ }
+
+ private async *listQueryResultsForResourceGroupLevelPolicyAssignmentPagingAll(
+ subscriptionId: string,
+ resourceGroupName: string,
+ policyAssignmentName: string,
+ options?: PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listQueryResultsForResourceGroupLevelPolicyAssignmentPagingPage(
+ subscriptionId,
+ resourceGroupName,
+ policyAssignmentName,
+ options
+ )) {
+ yield* page;
+ }
}
/**
* Queries policy events for the resources under the management group.
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param [options] The optional parameters
- * @returns Promise
- */
- listQueryResultsForManagementGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param callback The callback
- */
- listQueryResultsForManagementGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param options The optional parameters
- * @param callback The callback
+ * @param managementGroupName Management group name.
+ * @param options The options parameters.
*/
- listQueryResultsForManagementGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listQueryResultsForManagementGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ private _listQueryResultsForManagementGroup(
+ managementGroupName: string,
+ options?: PolicyEventsListQueryResultsForManagementGroupOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- nextPageLink,
- options
- },
- listQueryResultsForManagementGroupNextOperationSpec,
- callback) as Promise;
+ { managementGroupName, options },
+ listQueryResultsForManagementGroupOperationSpec
+ );
}
/**
* Queries policy events for the resources under the subscription.
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param [options] The optional parameters
- * @returns Promise
- */
- listQueryResultsForSubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param callback The callback
- */
- listQueryResultsForSubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param options The optional parameters
- * @param callback The callback
+ * @param subscriptionId Microsoft Azure subscription ID.
+ * @param options The options parameters.
*/
- listQueryResultsForSubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listQueryResultsForSubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ private _listQueryResultsForSubscription(
+ subscriptionId: string,
+ options?: PolicyEventsListQueryResultsForSubscriptionOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- nextPageLink,
- options
- },
- listQueryResultsForSubscriptionNextOperationSpec,
- callback) as Promise;
+ { subscriptionId, options },
+ listQueryResultsForSubscriptionOperationSpec
+ );
}
/**
* Queries policy events for the resources under the resource group.
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param [options] The optional parameters
- * @returns Promise
- */
- listQueryResultsForResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise