diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 78401bee1eb1..886076624452 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -731,7 +731,7 @@ packages: resolution: {integrity: sha512-Q71Buur3RMcg6lCnisLL8Im562DBw+ybzgm+YQj/FbAaI8ZNu/zl/5z1fE4k3Q9LSIzYrz6HLRzlhdSBXpydlQ==} engines: {node: '>=8.0.0'} dependencies: - '@azure/core-http': 1.2.3 + '@azure/core-http': 1.2.6 '@azure/core-tracing': 1.0.0-preview.9 '@azure/logger': 1.0.3 '@azure/msal-node': 1.0.0-beta.6_debug@4.3.2 @@ -1589,7 +1589,6 @@ packages: /@opentelemetry/node/0.22.0_@opentelemetry+api@1.0.3: resolution: {integrity: sha512-+HhGbDruQ7cwejVOIYyxRa28uosnG8W95NiQZ6qE8PXXPsDSyGeftAPbtYpGit0H2f5hrVcMlwmWHeAo9xkSLA==} engines: {node: '>=8.0.0'} - deprecated: Package renamed to @opentelemetry/sdk-trace-node peerDependencies: '@opentelemetry/api': ^1.0.0 dependencies: @@ -3201,7 +3200,7 @@ packages: resolution: {integrity: sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==} deprecated: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797) dependencies: - ms: 2.1.1 + ms: 2.1.3 dev: false /debug/3.2.7: @@ -7978,7 +7977,7 @@ packages: /wide-align/1.1.5: resolution: {integrity: sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==} dependencies: - string-width: 1.0.2 + string-width: 4.2.3 dev: false /word-wrap/1.2.3: @@ -8300,7 +8299,7 @@ packages: dev: false file:projects/ai-anomaly-detector.tgz: - resolution: {integrity: sha512-V0r3PZ3S4eIrQjS2KbFFLbPdzya0AVbXcOm8ToCisNVSpxIfQzp3HQ176/l4Ny+xri4qCZCNYcmNAJRXX7lf6Q==, tarball: file:projects/ai-anomaly-detector.tgz} + resolution: {integrity: sha512-k60gU9MY6seTzTWHkWIZ2sH7xdTTfZMz99y00dJRNs11gu/sfqyn1MgCh3xMSvCB9FkTazsLd6oPGklpNDMpnw==, tarball: file:projects/ai-anomaly-detector.tgz} name: '@rush-temp/ai-anomaly-detector' version: 0.0.0 dependencies: @@ -8399,7 +8398,7 @@ packages: dev: false file:projects/ai-form-recognizer.tgz: - resolution: {integrity: sha512-kmdERWyKIqp6fXy5EgMWz9kZSOTZzjND6zHM83cNrvR8DiuhRyd79AuQirrDid95PwQQadMn4UWoo9gB+AbcTg==, tarball: file:projects/ai-form-recognizer.tgz} + resolution: {integrity: sha512-IzafuobVnnxfh9fkI7w7mcOcCRNIybcIuP2wRlDrwZN775T2qDtokW4hPk0elqTKcRIDs3tqSMhxw8vLu0Bl6A==, tarball: file:projects/ai-form-recognizer.tgz} name: '@rush-temp/ai-form-recognizer' version: 0.0.0 dependencies: @@ -8498,7 +8497,7 @@ packages: dev: false file:projects/ai-text-analytics.tgz: - resolution: {integrity: sha512-QJl0L6l7DxDarzFIgyyt+ci2dZt8YwdkzPrsQ07Wo0afRnipNhj1wCb21dGocFfLqCa+i2+IyCpVjdv5zCt31A==, tarball: file:projects/ai-text-analytics.tgz} + resolution: {integrity: sha512-xA7ScptuX6JMDoR8WlExRkry+m0r7Mflc+azl9/aXEf/Y+ImDHjAHQ6muUOSyknG8r0pmu6m6JQNgpTc8Wx46g==, tarball: file:projects/ai-text-analytics.tgz} name: '@rush-temp/ai-text-analytics' version: 0.0.0 dependencies: @@ -8551,7 +8550,7 @@ packages: dev: false file:projects/app-configuration.tgz: - resolution: {integrity: sha512-9RxrPnjfQrTUBBlhahdw1Hg9jkJrzquYaf35tL6qgnCsKd5sg1JZ7o7xflb9MpyFwcJfgiCfuNq0j0/OBezcLA==, tarball: file:projects/app-configuration.tgz} + resolution: {integrity: sha512-sPvElpc5bwIabAIHZpBTOonPqylTX7uXmivK1G6IpNS1aHtZhPJbcKWQ2Q6/1s0lDTOEhKPt5z09czDk4h2FJQ==, tarball: file:projects/app-configuration.tgz} name: '@rush-temp/app-configuration' version: 0.0.0 dependencies: @@ -9011,21 +9010,27 @@ packages: dev: false file:projects/arm-network.tgz: - resolution: {integrity: sha512-V6PUn85sJgrqj+Q1dtj+3y1rIaeirmEAWQHqs7LwG28ZatoFcvTCCPZdDniK8Feb1rIHR19GE8UG0za33HiPjw==, tarball: file:projects/arm-network.tgz} + resolution: {integrity: sha512-MOcwkl7XI+Jjaf2H6/8s8u5gBsLX4PJWLpBif2Y1RyP1HSlDhFZSoHhNyI6XcCSuCxTG7mZGGuPOg8euhSAH8Q==, tarball: file:projects/arm-network.tgz} name: '@rush-temp/arm-network' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.18.17 + '@azure/identity': 2.0.0-beta.6 + '@microsoft/api-extractor': 7.7.11 '@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 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.2 + transitivePeerDependencies: + - debug + - supports-color dev: false file:projects/arm-notificationhubs.tgz: @@ -9419,7 +9424,7 @@ packages: dev: false file:projects/attestation.tgz: - resolution: {integrity: sha512-WCiF7953kXpj9h/IPV9Y4KbomhboEkBQUzfVQE7FefAYJh8JjcfaSGGwX/FJXSZPCBgorfG7OjQ+i6y4d3eYTg==, tarball: file:projects/attestation.tgz} + resolution: {integrity: sha512-fhpxhAJlDGdkgbuKTKD3lBOBjxxtUfDEjwSwYmgOIv94dgmcSQygugB6dMjZn3l8XwCci0hxorI3BTm4LaNbcA==, tarball: file:projects/attestation.tgz} name: '@rush-temp/attestation' version: 0.0.0 dependencies: @@ -9597,7 +9602,7 @@ packages: dev: false file:projects/communication-identity.tgz: - resolution: {integrity: sha512-xrKP7DoDLOgOa/dRPiyWT/AQ7PdXejQtwV+hD2K9vK9+CGuwpBmdONAz2+qPQhCwrcz47lKDB62YD+Svp3jiAg==, tarball: file:projects/communication-identity.tgz} + resolution: {integrity: sha512-naYVfcc4DaPxq/vl1CtRPuqrvMDxE3dZSOSPpLgp48ZH6rgGjXp9UY0Jz2DS9/uPr20rFfIyjvprfvbZ5zs+RA==, tarball: file:projects/communication-identity.tgz} name: '@rush-temp/communication-identity' version: 0.0.0 dependencies: @@ -9655,7 +9660,7 @@ packages: dev: false file:projects/communication-network-traversal.tgz: - resolution: {integrity: sha512-cAbotaWlwtYYV5m5+rXDMjIsDtQ2GDrxf+qqjUqHjczm4B+dmQoNASgTjpjuN1YtIkILoTgS40G7+VP6w5MKhA==, tarball: file:projects/communication-network-traversal.tgz} + resolution: {integrity: sha512-JXTNG52bxAFRcTo1kAVKSRqvLnZqtkLHJXBXc1VlynQ7zpChO9k/ixq5ys7NiKCxlte8RsMhe9sRM1TRSxCJfw==, tarball: file:projects/communication-network-traversal.tgz} name: '@rush-temp/communication-network-traversal' version: 0.0.0 dependencies: @@ -9714,7 +9719,7 @@ packages: dev: false file:projects/communication-phone-numbers.tgz: - resolution: {integrity: sha512-HA74Chs+pE5JgaZa8dKNUGGUHbJnUUw+E6N6uD0cusLZnLlJAWo6ow668DINvBZYMfLSl6KIg7AmyxUThBpnGg==, tarball: file:projects/communication-phone-numbers.tgz} + resolution: {integrity: sha512-H8X0AA9SgMlTlvkUReOytTon/R6E1EHAcecVbzLrplFpW3jglss1bC2SymppdT5ruSfGmMT/RGDpxqDvzExkaA==, tarball: file:projects/communication-phone-numbers.tgz} name: '@rush-temp/communication-phone-numbers' version: 0.0.0 dependencies: @@ -9772,7 +9777,7 @@ packages: dev: false file:projects/communication-sms.tgz: - resolution: {integrity: sha512-H5dujcvqO7roaJBGtx7BC4goJxuheZymZnrffRv8oEy2EgO9LoDFv1dOuMWqkmTr+wzmxJpjOkAsTQ/Kxr7Hiw==, tarball: file:projects/communication-sms.tgz} + resolution: {integrity: sha512-XX2890G/sqzluIVyahS7ajPY4Np66iKjf8U9dXXnAwsHUDiD1xI0r/+QRk6gtaA/+HUHcCU08BI9jUZQmqjVRA==, tarball: file:projects/communication-sms.tgz} name: '@rush-temp/communication-sms' version: 0.0.0 dependencies: @@ -9874,7 +9879,7 @@ packages: dev: false file:projects/container-registry.tgz: - resolution: {integrity: sha512-KsUMR8KSQM+cDNbk1kwTApOBrpKGnBk+nWY5XKIOXgCAHzkNB2AQZadRCJ0zM49dvyB/x7ij9GIZzNwjJPW7Lg==, tarball: file:projects/container-registry.tgz} + resolution: {integrity: sha512-EDOvKO9mjCqSZabcMAsecz9WsPV2//leEAXa3bRom6TxqdHS84tgaWXYQeA9izs+9MFWx9fnzi4sPPuenTQrSA==, tarball: file:projects/container-registry.tgz} name: '@rush-temp/container-registry' version: 0.0.0 dependencies: @@ -10623,7 +10628,7 @@ packages: dev: false file:projects/data-tables.tgz: - resolution: {integrity: sha512-QVH8MmS+iHCq4uEmPqO+BY9AzhaEYPZdcFvJvLbtz7wnYXbo/DkCYJ/LFUUMRGhDRcnyWa1MSX5SZBnamREInQ==, tarball: file:projects/data-tables.tgz} + resolution: {integrity: sha512-Ppdprmhfup81eGGELsZLFgqOEzS5NRYc5Vt/AbUXT69+kWAIOP5L2dDH24q66C3PLuYk7N1s5xXGnTqRzLXuSw==, tarball: file:projects/data-tables.tgz} name: '@rush-temp/data-tables' version: 0.0.0 dependencies: @@ -10726,7 +10731,7 @@ packages: dev: false file:projects/digital-twins-core.tgz: - resolution: {integrity: sha512-UcshBEsZQQ02dzIZeX9ca/nCNd0aRmyoPRns78e11xTfFaBW5fNOdRYaxPmd/VElK/GpNlJ0zxSRVcFwBiq+ZA==, tarball: file:projects/digital-twins-core.tgz} + resolution: {integrity: sha512-JbiaAZTKbpTEXkwM3tXpIGF37Byi68uXKyabs92a93o5jbFaJEnlENvQjQ+xpAQR7kg/Yy1Bt/wOfEj8JopBWQ==, tarball: file:projects/digital-twins-core.tgz} name: '@rush-temp/digital-twins-core' version: 0.0.0 dependencies: @@ -10822,7 +10827,7 @@ packages: dev: false file:projects/event-hubs.tgz: - resolution: {integrity: sha512-v7VGuPpThkXKi4lvegedKIKc7/UNBR2Id4Kz8b7amuUUzVd99XOaC0ihwQd3xca4DZq1lL1efjKTIlqgj5wL0Q==, tarball: file:projects/event-hubs.tgz} + resolution: {integrity: sha512-u60wc48AXg1Ak1a9ZKCtkoUsltHwtjcDcc+Z0EshNKTBqTHMpLug9YiQQJ0RX9LeYLzI4CTOO0STVvs2Jeoskw==, tarball: file:projects/event-hubs.tgz} name: '@rush-temp/event-hubs' version: 0.0.0 dependencies: @@ -11275,7 +11280,7 @@ packages: dev: false file:projects/iot-device-update.tgz: - resolution: {integrity: sha512-F6Jo5aKP6ZqZ2giFJ0cBlooNsMrehgBPy7AHG40ICMPOgs4QAaApVKcilWpI2SNVrdHUfcr8NvIUGVv5blpJQg==, tarball: file:projects/iot-device-update.tgz} + resolution: {integrity: sha512-6LBsYH/eIaBvoej21Y8fBf3ZTBcjRgs18Ltet8id34p+o9URtBOPBpsgQPidpUhen9aSyY/8yUXIxTPXSkeoxg==, tarball: file:projects/iot-device-update.tgz} name: '@rush-temp/iot-device-update' version: 0.0.0 dependencies: @@ -11298,7 +11303,6 @@ packages: uglify-js: 3.14.2 uuid: 8.3.2 transitivePeerDependencies: - - debug - supports-color dev: false @@ -11852,7 +11856,7 @@ packages: dev: false file:projects/perf-ai-form-recognizer.tgz: - resolution: {integrity: sha512-XJPp5TcRwcs4cAaqNLC1UVbjBundpSraUBkEJd8rwjzwBv/1kuwyifE4tM50iOXLlB+bQFI5H5amLhDKMHjmJw==, tarball: file:projects/perf-ai-form-recognizer.tgz} + resolution: {integrity: sha512-inJ8CPESfHsR/5J7mMhGQQ4eXAMTOa9+26a1IDizmKz6UhpeM/kfYebvMYJjtvKWDv8rwfYGBEpHCwXXr8yzdw==, tarball: file:projects/perf-ai-form-recognizer.tgz} name: '@rush-temp/perf-ai-form-recognizer' version: 0.0.0 dependencies: @@ -11869,7 +11873,6 @@ packages: transitivePeerDependencies: - '@swc/core' - '@swc/wasm' - - debug - supports-color dev: false @@ -11894,7 +11897,7 @@ packages: dev: false file:projects/perf-ai-text-analytics.tgz: - resolution: {integrity: sha512-0Hh82rtazvs8+esYQWklo3jlBOQE8xPLoGkdOZe+Q0UDB6hcRDvaNuenUI4TMkkBZ0W/SDymRR4G2s70Xm1RlQ==, tarball: file:projects/perf-ai-text-analytics.tgz} + resolution: {integrity: sha512-0nm8JbGiHkWdkLiANmvFL4VX7Oz8EB1ELR0wI8F3mtz1/y/CaZQLwBTGfwIasxNrXMddaO3gr6cHyCPs7Vhm1g==, tarball: file:projects/perf-ai-text-analytics.tgz} name: '@rush-temp/perf-ai-text-analytics' version: 0.0.0 dependencies: @@ -11911,7 +11914,6 @@ packages: transitivePeerDependencies: - '@swc/core' - '@swc/wasm' - - debug - supports-color dev: false @@ -12058,7 +12060,7 @@ packages: dev: false file:projects/perf-keyvault-certificates.tgz: - resolution: {integrity: sha512-rsjkf1usyhaU0mKr9jIqhHU7e4ATYqh4NkaRdBPCScjOz3MA3ndYmi2lye53i9wDUcvfxOQb/HSdtScsuXA6+g==, tarball: file:projects/perf-keyvault-certificates.tgz} + resolution: {integrity: sha512-CgkoyMtb9yE2k43nODIE43YaMKp47jIHTda+My34qZqOobF/lpAhMSchnu5iTCDByxXU0884fVBG7Huf1M6q6Q==, tarball: file:projects/perf-keyvault-certificates.tgz} name: '@rush-temp/perf-keyvault-certificates' version: 0.0.0 dependencies: @@ -12077,12 +12079,11 @@ packages: transitivePeerDependencies: - '@swc/core' - '@swc/wasm' - - debug - supports-color dev: false file:projects/perf-keyvault-keys.tgz: - resolution: {integrity: sha512-6Vy8E3z4qyXvOdNXHzmUOtHLeR+TCtlwpNbqFo9iPx5AnKfQ31A/zyu8q2xWNQcxqTIS02konoPPRcwvP/AJFQ==, tarball: file:projects/perf-keyvault-keys.tgz} + resolution: {integrity: sha512-LVKSth+yOv+DaREd0kcgHbV+oVrbqZZsUhI/CVsot34uNGtRfNw0G2Cu7cUNohdHJ2ABf6wVtbQhua67L9DfKw==, tarball: file:projects/perf-keyvault-keys.tgz} name: '@rush-temp/perf-keyvault-keys' version: 0.0.0 dependencies: @@ -12101,12 +12102,11 @@ packages: transitivePeerDependencies: - '@swc/core' - '@swc/wasm' - - debug - supports-color dev: false file:projects/perf-keyvault-secrets.tgz: - resolution: {integrity: sha512-frFpbmjQOv8NuXI5/McYkFJ6cZGuFzR4joGz76S04k2bqRi0DkLhRn1H/iNXhy0T6cWx1WHMnR6WvY6g+61fsA==, tarball: file:projects/perf-keyvault-secrets.tgz} + resolution: {integrity: sha512-avhQXwbltqT5pi+VKaxXD93vUueYplVEVFqdkoP/5AwtflINKPXdvV17z+T88UolGILztw0rp2eylPU+Ug+Tig==, tarball: file:projects/perf-keyvault-secrets.tgz} name: '@rush-temp/perf-keyvault-secrets' version: 0.0.0 dependencies: @@ -12124,7 +12124,6 @@ packages: transitivePeerDependencies: - '@swc/core' - '@swc/wasm' - - debug - supports-color dev: false @@ -12148,7 +12147,7 @@ packages: dev: false file:projects/perf-search-documents.tgz: - resolution: {integrity: sha512-ubAC6VxswC9Nb77CZzEKB9vFUDEhCH6AQUtbJK5fYgj2c+4+WlPCbR/1h/oDGPjejbG4F51JMKon8H/G8h+6/w==, tarball: file:projects/perf-search-documents.tgz} + resolution: {integrity: sha512-YWGCIu5Dt3vjmwV8tucySVrHdsVxusnBZ+6YsW002Q8qJS3jtNSKJb+c7HqGlsrGwyK+jq/mJIrrYZPmzm4R5w==, tarball: file:projects/perf-search-documents.tgz} name: '@rush-temp/perf-search-documents' version: 0.0.0 dependencies: @@ -12164,7 +12163,6 @@ packages: transitivePeerDependencies: - '@swc/core' - '@swc/wasm' - - debug - supports-color dev: false @@ -12441,7 +12439,7 @@ packages: dev: false file:projects/quantum-jobs.tgz: - resolution: {integrity: sha512-kWnI7vdbdXE7QP9RCw7lbQFhXASXOZS9zaOb2eW0URnFuVyTt01IG89yJAM96Xo284TqaWxlhrKe1hKIv/g/PA==, tarball: file:projects/quantum-jobs.tgz} + resolution: {integrity: sha512-pHpkdTYfQWJNpiICW6DLijjksztkpgJM2s2qGgIxNw24J6wCCUg/kS6+3OADEaXepBwrI/Dscj8h/U6nYPADXQ==, tarball: file:projects/quantum-jobs.tgz} name: '@rush-temp/quantum-jobs' version: 0.0.0 dependencies: @@ -12499,7 +12497,7 @@ packages: dev: false file:projects/schema-registry-avro.tgz: - resolution: {integrity: sha512-Dj9zXeDcT7X3avSNb4fB2h21lQ/9+MDS/hty9X2ykdoF31dOgP35b8rWh/CbWJKC/ApK0CknW77zGHJctbvtgg==, tarball: file:projects/schema-registry-avro.tgz} + resolution: {integrity: sha512-0IhlcP/proTB1umjOuS1B5smVrFLTEk6Z8ptaWuuSiAcclQCUmTlllUmfXyHsYFoSF7yUI4yEJ6yFs3GZ16PLQ==, tarball: file:projects/schema-registry-avro.tgz} name: '@rush-temp/schema-registry-avro' version: 0.0.0 dependencies: @@ -12552,7 +12550,7 @@ packages: dev: false file:projects/schema-registry.tgz: - resolution: {integrity: sha512-G8eTfYzkcvXZl1dGHdC49aRh7neBVZQIXZOBOZxisYwjmQPTe+qLT0pONNw+IMvlwdObNpea1NJLuwvDWIy2kg==, tarball: file:projects/schema-registry.tgz} + resolution: {integrity: sha512-PZQ+d97+euaD08RBkb1nHFdqEGxA7dl172+qG2nks1pfDhe6itaGZCqXFHVxydy4ipafB35iJtLHtWEXXVP0Rw==, tarball: file:projects/schema-registry.tgz} name: '@rush-temp/schema-registry' version: 0.0.0 dependencies: @@ -12659,7 +12657,7 @@ packages: dev: false file:projects/service-bus.tgz: - resolution: {integrity: sha512-Yohsz2Qh3iYS8sZKfQ5t2CCONUjrA7HRBSYAGxRzDICPCzJ3J3YOGHVp5muZLZlanLsYVDFGkFxz5GmnmuOKPg==, tarball: file:projects/service-bus.tgz} + resolution: {integrity: sha512-O0Fzn9c6IdZdNX8eOqwh+o6KelkxkcBZD9womwBijoPxqd0kAWdtnzV9sq+kbBNDXb7j+WAo3lKOQ6ZyUMuPww==, tarball: file:projects/service-bus.tgz} name: '@rush-temp/service-bus' version: 0.0.0 dependencies: @@ -12802,7 +12800,7 @@ packages: dev: false file:projects/storage-blob.tgz: - resolution: {integrity: sha512-v75w8qnpCN25UOWg+E7MCx+LcmSzMTbAfk5rfmcJRx2WKvG7jNEf4vPyUHsIMBsaRLN/5gPG5JBJo8yrKR8GbA==, tarball: file:projects/storage-blob.tgz} + resolution: {integrity: sha512-b1nHoHla4RKc9OA/lfyeQEddBfNSxy7HpP1YRZuhQw7QFZysNv9WVjdMywiHMaP+bnGHiaHoCOVBJa/Yk2Ilkg==, tarball: file:projects/storage-blob.tgz} name: '@rush-temp/storage-blob' version: 0.0.0 dependencies: @@ -12867,7 +12865,7 @@ packages: dev: false file:projects/storage-file-datalake.tgz: - resolution: {integrity: sha512-3iO0i1XQ+EZ/p/BnhEQdrvS+qfRHNGRNn/PFUQmzGWoHOQl7P09BQSKxlaSQnRzdGmDyzwHHLqYxCr36FDPbYw==, tarball: file:projects/storage-file-datalake.tgz} + resolution: {integrity: sha512-wYS8/iuzrFJZrXdluG51X4VNIDdAJoF/CuD0rWNxwdFPtHPUToHr5Q6Oy5GlcPzEjARxZJymQmxE8ZHmc4EW4A==, tarball: file:projects/storage-file-datalake.tgz} name: '@rush-temp/storage-file-datalake' version: 0.0.0 dependencies: @@ -13049,7 +13047,7 @@ packages: dev: false file:projects/storage-queue.tgz: - resolution: {integrity: sha512-W8Z2982Tt/KCje2JX8gr5hJF4Hwydoc6ukQ/tncUNGNs9rh6uxQjpxX1WpXGiCsYlj8H201HE24erqxl108Akw==, tarball: file:projects/storage-queue.tgz} + resolution: {integrity: sha512-g1EWancq1sqsOP/UZLutMo2pqaIe13Wk0LJ996sJSrDpgGt9GFN0iTeM8JXxV48U41Ze/nPVrXy0yWFQjT16wA==, tarball: file:projects/storage-queue.tgz} name: '@rush-temp/storage-queue' version: 0.0.0 dependencies: @@ -13110,7 +13108,7 @@ packages: dev: false file:projects/synapse-access-control.tgz: - resolution: {integrity: sha512-UNCiaEhH+yE54M4DhU4L+gTLIQIzHaqYqnGk/CGQLpcX6JMQy/iPYVS6iW/Ro3jQBhagJh4Fzvf2GCDscsobGA==, tarball: file:projects/synapse-access-control.tgz} + resolution: {integrity: sha512-7hDd4Kv2MlyB9SVYloNsiDDee0AywQGZyyXb/AYLGWwYUOc1A4PW0321+TBAW4wev0sq/1aSE8SCY6aM37lkEw==, tarball: file:projects/synapse-access-control.tgz} name: '@rush-temp/synapse-access-control' version: 0.0.0 dependencies: @@ -13164,7 +13162,7 @@ packages: dev: false file:projects/synapse-artifacts.tgz: - resolution: {integrity: sha512-pOvRyfKxkUFqnumJiBGQIBzrksSlrmylytkwCC43IiHvAV33E9tPR2OzpisCytvydZFTVf/LOZor3U+5mgz9DA==, tarball: file:projects/synapse-artifacts.tgz} + resolution: {integrity: sha512-o+mWtNf+GrUrEXlUnrAxtM4m3PiY1hVmzxhPxP/MMVZMyoiF7BM2DIb1v86+aZPEulODr+WtB2SrkVgFNllFrw==, tarball: file:projects/synapse-artifacts.tgz} name: '@rush-temp/synapse-artifacts' version: 0.0.0 dependencies: @@ -13218,7 +13216,7 @@ packages: dev: false file:projects/synapse-managed-private-endpoints.tgz: - resolution: {integrity: sha512-Udx0UgQ5KSq1sIJgbjGUCt3CkebS95i3fMHbpCmHm7LI0eTWbWtpxVu6LUJiHz4hLTKCbpHYsHdXDKD7JIHSQw==, tarball: file:projects/synapse-managed-private-endpoints.tgz} + resolution: {integrity: sha512-USO8hE0CzI2ma5geUeXq1mkubxyimm30tBr63uig4HQHQMhK8polvqJZlqTlRjKQDR1gwk752YziM6oYC8VcGQ==, tarball: file:projects/synapse-managed-private-endpoints.tgz} name: '@rush-temp/synapse-managed-private-endpoints' version: 0.0.0 dependencies: @@ -13286,7 +13284,7 @@ packages: dev: false file:projects/synapse-spark.tgz: - resolution: {integrity: sha512-5+Of1VnBg8aV3/cWzwq/waKO9hdDhrfqX5c5QtqiAnBZ2XfJ/401VA8Hcf+SqDwytpfH/5ytMeDIv72pqJNAyA==, tarball: file:projects/synapse-spark.tgz} + resolution: {integrity: sha512-nCxr+kmnz2eg+qvIFTk4d7CSX4V79A3iR5PMq7PXnQ0RN+6r1McGO7j4Gsd+GcGGOv+l0xJDsTUgM10VbdUNgQ==, tarball: file:projects/synapse-spark.tgz} name: '@rush-temp/synapse-spark' version: 0.0.0 dependencies: @@ -13333,7 +13331,7 @@ packages: dev: false file:projects/template.tgz: - resolution: {integrity: sha512-R1EmHfonJO9INyZFiX/CgXQRHWsfffeexFaGukg7yvul4GmNOTd9X5RjdnZB35sUHNa8ErlFVcbBVb4hrZ4XWg==, tarball: file:projects/template.tgz} + resolution: {integrity: sha512-QWjO78lmkZVtS2R7961QlTRm6ktbQeApBVFhE3hCbjyVZ0RDEhWZAQsCeOWNnig7bjKFBw0DH4G5y/x9cKc4GQ==, tarball: file:projects/template.tgz} name: '@rush-temp/template' version: 0.0.0 dependencies: diff --git a/sdk/network/arm-network/CHANGELOG.md b/sdk/network/arm-network/CHANGELOG.md index ba64540eb55a..71debe3e5209 100644 --- a/sdk/network/arm-network/CHANGELOG.md +++ b/sdk/network/arm-network/CHANGELOG.md @@ -1,14 +1,121 @@ -# Release History - -## 26.0.0-beta.2 (Unreleased) +## 26.0.0-beta.2 (2021-11-02) + +**Features** -### Features Added + - Added operation group FirewallPolicyIdpsSignatures + - Added operation group FirewallPolicyIdpsSignaturesFilterValues + - Added operation group FirewallPolicyIdpsSignaturesOverrides + - Added operation group RoutingIntentOperations + - Added operation LoadBalancers.beginListInboundNatRulePortMappings + - Added operation LoadBalancers.beginListInboundNatRulePortMappingsAndWait + - Added Interface BackendAddressInboundNatRulePortMappings + - Added Interface DscpConfigurationCreateOrUpdateOptionalParams + - Added Interface DscpConfigurationDeleteOptionalParams + - Added Interface DscpConfigurationGetOptionalParams + - Added Interface DscpConfigurationListAllNextOptionalParams + - Added Interface DscpConfigurationListAllOptionalParams + - Added Interface DscpConfigurationListNextOptionalParams + - Added Interface DscpConfigurationListOptionalParams + - Added Interface ExclusionManagedRule + - Added Interface ExclusionManagedRuleGroup + - Added Interface ExclusionManagedRuleSet + - Added Interface FilterItems + - Added Interface FirewallPolicyIdpsSignaturesFilterValuesListOptionalParams + - Added Interface FirewallPolicyIdpsSignaturesListOptionalParams + - Added Interface FirewallPolicyIdpsSignaturesOverridesGetOptionalParams + - Added Interface FirewallPolicyIdpsSignaturesOverridesListOptionalParams + - Added Interface FirewallPolicyIdpsSignaturesOverridesPatchOptionalParams + - Added Interface FirewallPolicyIdpsSignaturesOverridesPutOptionalParams + - Added Interface IdpsQueryObject + - Added Interface InboundNatRulePortMapping + - Added Interface InboundSecurityRuleCreateOrUpdateOptionalParams + - Added Interface ListRoutingIntentResult + - Added Interface LoadBalancersListInboundNatRulePortMappingsOptionalParams + - Added Interface NatRulePortMapping + - Added Interface OrderBy + - Added Interface QueryInboundNatRulePortMappingRequest + - Added Interface QueryResults + - Added Interface RoutingIntentCreateOrUpdateOptionalParams + - Added Interface RoutingIntentDeleteOptionalParams + - Added Interface RoutingIntentGetOptionalParams + - Added Interface RoutingIntentListNextOptionalParams + - Added Interface RoutingIntentListOptionalParams + - Added Interface RoutingPolicy + - Added Interface ServiceTagInformationListNextOptionalParams + - Added Interface ServiceTagInformationListOptionalParams + - Added Interface SignatureOverridesFilterValuesQuery + - Added Interface SignatureOverridesFilterValuesResponse + - Added Interface SignaturesOverrides + - Added Interface SignaturesOverridesList + - Added Interface SignaturesOverridesProperties + - Added Interface SingleQueryResult + - Added Interface VirtualNetworkEncryption + - Added Type Alias DscpConfigurationCreateOrUpdateResponse + - Added Type Alias DscpConfigurationGetResponse + - Added Type Alias DscpConfigurationListAllNextResponse + - Added Type Alias DscpConfigurationListAllResponse + - Added Type Alias DscpConfigurationListNextResponse + - Added Type Alias DscpConfigurationListResponse + - Added Type Alias Enum69 + - Added Type Alias Enum70 + - Added Type Alias Enum71 + - Added Type Alias FirewallPolicyIdpsSignaturesFilterValuesListResponse + - Added Type Alias FirewallPolicyIdpsSignaturesListResponse + - Added Type Alias FirewallPolicyIdpsSignaturesOverridesGetResponse + - Added Type Alias FirewallPolicyIdpsSignaturesOverridesListResponse + - Added Type Alias FirewallPolicyIdpsSignaturesOverridesPatchResponse + - Added Type Alias FirewallPolicyIdpsSignaturesOverridesPutResponse + - Added Type Alias InboundSecurityRuleCreateOrUpdateResponse + - Added Type Alias LoadBalancersListInboundNatRulePortMappingsResponse + - Added Type Alias OrderByOrder + - Added Type Alias RoutingIntent + - Added Type Alias RoutingIntentCreateOrUpdateResponse + - Added Type Alias RoutingIntentGetResponse + - Added Type Alias RoutingIntentListNextResponse + - Added Type Alias RoutingIntentListResponse + - Added Type Alias ServiceTagInformationListNextResponse + - Added Type Alias ServiceTagInformationListResponse + - Added Type Alias VirtualNetworkEncryptionEnforcement + - Interface LoadBalancerBackendAddress has a new optional parameter inboundNatRulesPortMapping + - Interface OwaspCrsExclusionEntry has a new optional parameter exclusionManagedRuleSets + - Interface VpnNatRuleMapping has a new optional parameter portRange + - Class NetworkManagementClient has a new parameter firewallPolicyIdpsSignatures + - Class NetworkManagementClient has a new parameter firewallPolicyIdpsSignaturesFilterValues + - Class NetworkManagementClient has a new parameter firewallPolicyIdpsSignaturesOverrides + - Class NetworkManagementClient has a new parameter routingIntentOperations + - Type Alias BackendAddressPool has a new parameter inboundNatRules + - Type Alias NetworkInterface has a new parameter vnetEncryptionSupported + - Type Alias VirtualNetwork has a new parameter encryption + - Type Alias VirtualNetworkGateway has a new parameter disableIPSecReplayProtection + - Type Alias VirtualNetworkPeering has a new parameter remoteVirtualNetworkEncryption + - Added Enum KnownEnum69 + - Added Enum KnownEnum70 + - Added Enum KnownEnum71 + - Added Enum KnownOrderByOrder + - Added Enum KnownVirtualNetworkEncryptionEnforcement + - Enum KnownAzureFirewallSkuTier has a new value Basic + - Enum KnownFirewallPolicySkuTier has a new value Basic + - Enum KnownOwaspCrsExclusionEntryMatchVariable has a new value RequestArgKeys + - Enum KnownOwaspCrsExclusionEntryMatchVariable has a new value RequestArgValues + - Enum KnownOwaspCrsExclusionEntryMatchVariable has a new value RequestCookieKeys + - Enum KnownOwaspCrsExclusionEntryMatchVariable has a new value RequestCookieValues + - Enum KnownOwaspCrsExclusionEntryMatchVariable has a new value RequestHeaderKeys + - Enum KnownOwaspCrsExclusionEntryMatchVariable has a new value RequestHeaderValues -### Breaking Changes +**Breaking Changes** -### Bugs Fixed - -### Other Changes + - Operation DscpConfigurationOperations.beginCreateOrUpdate has a new signature + - Operation DscpConfigurationOperations.beginCreateOrUpdateAndWait has a new signature + - Operation DscpConfigurationOperations.beginDelete has a new signature + - Operation DscpConfigurationOperations.beginDeleteAndWait has a new signature + - Operation DscpConfigurationOperations.get has a new signature + - Operation DscpConfigurationOperations.list has a new signature + - Operation DscpConfigurationOperations.listAll has a new signature + - Operation InboundSecurityRuleOperations.beginCreateOrUpdate has a new signature + - Operation InboundSecurityRuleOperations.beginCreateOrUpdateAndWait has a new signature + - Operation ServiceTagInformationOperations.list has a new signature + +# Release History ## 26.0.0-beta.1 (2021-10-09) diff --git a/sdk/network/arm-network/README.md b/sdk/network/arm-network/README.md index 980eb7b8dee6..7cfe01a63d49 100644 --- a/sdk/network/arm-network/README.md +++ b/sdk/network/arm-network/README.md @@ -33,9 +33,9 @@ npm install @azure/arm-network To create a client object to access the Azure NetworkManagement API, you will need the `endpoint` of your Azure NetworkManagement resource and a `credential`. The Azure NetworkManagement client can use Azure Active Directory credentials to authenticate. You can find the endpoint for your Azure NetworkManagement resource in the [Azure Portal][azure_portal]. -#### Using an Azure Active Directory Credential +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). -You can authenticate with Azure Active Directory using the [Azure Identity library][azure_identity]. To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package: +To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package: ```bash npm install @azure/identity @@ -45,6 +45,7 @@ You will also need to **register a new AAD application and grant access to Azure 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). + ```javascript const { NetworkManagementClient } = require("@azure/arm-network"); const { DefaultAzureCredential } = require("@azure/identity"); diff --git a/sdk/network/arm-network/_meta.json b/sdk/network/arm-network/_meta.json index 08bc5bd2c926..453e1749fcdd 100644 --- a/sdk/network/arm-network/_meta.json +++ b/sdk/network/arm-network/_meta.json @@ -1,7 +1,7 @@ { - "commit": "5959573493896aef20e9b37df09c527fd7f08bbb", + "commit": "ab4df5f2d9c23273442c5b2029a08f2014533dd2", "readme": "specification/network/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 --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/network/resource-manager/readme.md --use=@autorest/typescript@6.0.0-beta.12", + "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=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/network/resource-manager/readme.md --use=@autorest/typescript@6.0.0-beta.13", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "use": "@autorest/typescript@6.0.0-beta.12" + "use": "@autorest/typescript@6.0.0-beta.13" } \ No newline at end of file diff --git a/sdk/network/arm-network/api-extractor.json b/sdk/network/arm-network/api-extractor.json index ae508f06bf46..fb18609746bc 100644 --- a/sdk/network/arm-network/api-extractor.json +++ b/sdk/network/arm-network/api-extractor.json @@ -1,6 +1,6 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "./dist-esm/index.d.ts", + "mainEntryPointFilePath": "./dist-esm/src/index.d.ts", "docModel": { "enabled": true }, "apiReport": { "enabled": true, "reportFolder": "./review" }, "dtsRollup": { diff --git a/sdk/network/arm-network/package.json b/sdk/network/arm-network/package.json index 11703e6c8493..6484c58ec767 100644 --- a/sdk/network/arm-network/package.json +++ b/sdk/network/arm-network/package.json @@ -4,9 +4,7 @@ "author": "Microsoft Corporation", "description": "A generated SDK for NetworkManagementClient.", "version": "26.0.0-beta.2", - "engines": { - "node": ">=12.0.0" - }, + "engines": { "node": ">=12.0.0" }, "dependencies": { "@azure/core-lro": "^2.2.0", "@azure/abort-controller": "^1.0.0", @@ -16,19 +14,13 @@ "@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/index.js", - "module": "./dist-esm/index.js", + "module": "./dist-esm/src/index.js", "types": "./types/arm-network.d.ts", "devDependencies": { - "@microsoft/api-extractor": "^7.18.11", + "@microsoft/api-extractor": "7.7.11", "@rollup/plugin-commonjs": "11.0.2", "@rollup/plugin-json": "^4.0.0", "@rollup/plugin-multi-entry": "^3.0.0", @@ -37,16 +29,18 @@ "rollup": "^1.16.3", "rollup-plugin-sourcemaps": "^0.4.2", "typescript": "~4.2.0", - "uglify-js": "^3.4.9" + "uglify-js": "^3.4.9", + "@azure/identity": "2.0.0-beta.6", + "@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/network/arm-network", "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", @@ -81,16 +75,16 @@ "check-format": "echo skipped", "execute:samples": "echo skipped", "format": "echo skipped", - "test": "echo skipped", + "test": "npm run integration-test", "prebuild": "echo skipped", "test:node": "echo skipped", "test:browser": "echo skipped", - "unit-test": "echo skipped", - "unit-test:node": "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", "integration-test:browser": "echo skipped", - "integration-test:node": "echo skipped", - "integration-test": "echo skipped", "docs": "echo skipped" }, "sideEffects": false, diff --git a/sdk/network/arm-network/recordings/node/my_test/recording_ipgroups_begindeleteandwait_test.js b/sdk/network/arm-network/recordings/node/my_test/recording_ipgroups_begindeleteandwait_test.js new file mode 100644 index 000000000000..e3225ab610f9 --- /dev/null +++ b/sdk/network/arm-network/recordings/node/my_test/recording_ipgroups_begindeleteandwait_test.js @@ -0,0 +1,175 @@ +let nock = require('nock'); + +module.exports.hash = "3cc9d847398277b869a7de91937d3ace"; + +module.exports.testInfo = {"uniqueName":{},"newDate":{}} + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '35148c58-1bf3-42ce-a6dd-66d123932300', + 'x-ms-ests-server', + '2.1.12171.15 - KRSLR1 ProdSlices', + 'Set-Cookie', + 'fpc=AqN3ZiiyKJ1Lsy0-WEKrIBc; expires=Thu, 02-Dec-2021 06:36:09 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrTgg-3YHNwUHBsTcrl2dfsbRz1jUD9xOfsDJFDtAuhs6so1Rs40XKlgBO07Rk0uU0Rlj6kLCvnreOR_VlPc8DXEyn0GYIcpbqVtzozRFZCMuRHXpBy6trfYT5f7K3MduAIbKXosgMmyZ7r90Yppmbcb2ff4LxD4c4A6FZOPWw32UgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Tue, 02 Nov 2021 06:36:08 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '95165a8d-fad7-423b-8e92-c14342062300', + 'x-ms-ests-server', + '2.1.12171.15 - KRSLR1 ProdSlices', + 'Set-Cookie', + 'fpc=Av0x31wOrUZOlIb8cCiBQAA; expires=Thu, 02-Dec-2021 06:36:09 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrPCsLWvEr66nZH3weazOSA9Wm2-aQrOH4jcnEf1n7RJDNXPbEcCL9aGyuXdYEj9IhNtEsjyJ7SnwRYcl1EktP6Nh8Llwdktq8iNoFxrHTBXy78ODiPh8S_GEP83B6giH-4YcehDK4o7let5LTq92hcS25Eecx6f8TVgYj7esapdYgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Tue, 02 Nov 2021 06:36:08 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.2&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=57547074-68d4-4235-8e75-6b94073e6586&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22CP1%22%5D%7D%7D%7D") + .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ + 'Cache-Control', + 'no-store, no-cache', + 'Pragma', + 'no-cache', + 'Content-Type', + 'application/json; charset=utf-8', + 'Expires', + '-1', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '7c341d3b-9675-4cf7-a730-8bf27e6a0100', + 'x-ms-ests-server', + '2.1.12171.15 - SEASLR2 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', + 'Set-Cookie', + 'fpc=Ah2ayQbweaVIvOgK-jqZDeoWPr5BAQAAAFjTEtkOAAAA; expires=Thu, 02-Dec-2021 06:36:09 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Tue, 02 Nov 2021 06:36:09 GMT', + 'Content-Length', + '1351' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .delete('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Network/ipGroups/virtualnetworkzzz') + .query(true) + .reply(200, "", [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Expires', + '-1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-deletes', + '14999', + 'x-ms-request-id', + 'c117ee9e-07a3-49eb-9d5c-ae6f1eeea354', + 'x-ms-correlation-request-id', + 'c117ee9e-07a3-49eb-9d5c-ae6f1eeea354', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211102T063612Z:c117ee9e-07a3-49eb-9d5c-ae6f1eeea354', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Tue, 02 Nov 2021 06:36:12 GMT', + 'Content-Length', + '0' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Network/ipGroups') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bdefff92ff0742ea40440c000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Content-Type', + 'application/json; charset=utf-8', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11990', + 'x-ms-request-id', + 'f062c33d-7953-40b0-b708-0945f4a4cf3f', + 'x-ms-correlation-request-id', + 'f062c33d-7953-40b0-b708-0945f4a4cf3f', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211102T063612Z:f062c33d-7953-40b0-b708-0945f4a4cf3f', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Tue, 02 Nov 2021 06:36:12 GMT', + 'Content-Length', + '133' +]); diff --git a/sdk/network/arm-network/recordings/node/my_test/recording_ipgroups_create_test.js b/sdk/network/arm-network/recordings/node/my_test/recording_ipgroups_create_test.js new file mode 100644 index 000000000000..01be9cd36257 --- /dev/null +++ b/sdk/network/arm-network/recordings/node/my_test/recording_ipgroups_create_test.js @@ -0,0 +1,183 @@ +let nock = require('nock'); + +module.exports.hash = "9b718a07f8906082e03f6e0a0f617885"; + +module.exports.testInfo = {"uniqueName":{},"newDate":{}} + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'e60621a1-144f-4eab-b75c-1a6dcd232000', + 'x-ms-ests-server', + '2.1.12171.15 - SEASLR1 ProdSlices', + 'Set-Cookie', + 'fpc=ArrkTBYxMOxCoBzi2GDaVm0; expires=Thu, 02-Dec-2021 06:35:49 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrCi5YzDN4wuZgKF6VkIszk_FizxAptv3q4O4V8RWwySYaF4x3JHKtrriMV2CZpQadP11wlfdC53lGgU9u7vn7uWPgWbm7dM4o9g1H0C1ADzWk2_-AuSTYR123SgSo0utpXOi_0WP0p8t5GUml1cqhZTkIjlB5sFNlyfsNLjgvGoYgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Tue, 02 Nov 2021 06:35:48 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'e60621a1-144f-4eab-b75c-1a6dd0232000', + 'x-ms-ests-server', + '2.1.12171.15 - SEASLR1 ProdSlices', + 'Set-Cookie', + 'fpc=AvOtI71bOFVFiva99Bbif2Y; expires=Thu, 02-Dec-2021 06:35:49 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrBGTui3cwGx0ofjYqa2oH7JCguxSJ2RCnXitkI2kpWXqYPGdI2PXLtciw-gVexHRom0-PUo6NsX8o6sJdNrSAmareNdBX59dLquSbqWGsJ8hG3Qm2yuFx7n9iHQqAyZaCzU1XWXdrF-aicg-I-V7ULZU2XdzxKZl2qa6VfKf18pcgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Tue, 02 Nov 2021 06:35:49 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.2&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=84dd5739-1bfa-4ec3-af65-d31ac77d2d82&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22CP1%22%5D%7D%7D%7D") + .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ + 'Cache-Control', + 'no-store, no-cache', + 'Pragma', + 'no-cache', + 'Content-Type', + 'application/json; charset=utf-8', + 'Expires', + '-1', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'ca3a62ba-c5cb-4298-8f87-a7df48162100', + 'x-ms-ests-server', + '2.1.12171.15 - SEASLR1 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', + 'Set-Cookie', + 'fpc=AitQ7uCXrtFMgZXcbhqiKJ4WPr5BAQAAAEXTEtkOAAAA; expires=Thu, 02-Dec-2021 06:35:49 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Tue, 02 Nov 2021 06:35:49 GMT', + 'Content-Length', + '1351' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .put('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Network/ipGroups/virtualnetworkzzz', {"location":"eastus","tags":{"key1":"value1"},"properties":{"ipAddresses":["13.64.39.16/32","40.74.146.80/31","40.74.147.32/28"]}}) + .query(true) + .reply(201, {"properties":{"firewalls":[],"firewallPolicies":[],"ipAddresses":["13.64.39.16/32","40.74.146.80/31","40.74.147.32/28"],"provisioningState":"Updating"},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Network/ipGroups/virtualnetworkzzz","name":"virtualnetworkzzz","type":"Microsoft.Network/IpGroups","etag":"6af0296a-c9cd-4a54-a2ac-9c4cb113d269","location":"eastus","tags":{"key1":"value1"}}, [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Content-Length', + '555', + 'Content-Type', + 'application/json; charset=utf-8', + 'Expires', + '-1', + 'Retry-After', + '10', + 'x-ms-request-id', + 'b50749d9-f763-4f0e-932c-e0b4727d44a5', + 'x-ms-correlation-request-id', + '8bf0eff2-3790-4e28-8a7c-8718ab23b4ae', + 'Azure-AsyncOperation', + 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Network/locations/eastus/nfvOperations/b50749d9-f763-4f0e-932c-e0b4727d44a5?api-version=2021-05-01', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-writes', + '1197', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211102T063556Z:8bf0eff2-3790-4e28-8a7c-8718ab23b4ae', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Tue, 02 Nov 2021 06:35:55 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.Network/locations/eastus/nfvOperations/b50749d9-f763-4f0e-932c-e0b4727d44a5') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef16f9ca4e9474d9bb5ebe6a347e947afd7d3699ecff2d947bf71f24b","fe1f4f9490471d000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json; charset=utf-8', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-request-id', + '80bcd895-966b-4d59-9cc0-19b0bca40902', + 'x-ms-correlation-request-id', + 'e4753458-0434-4bc8-9873-a9f72bcd7a93', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11997', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211102T063556Z:e4753458-0434-4bc8-9873-a9f72bcd7a93', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Tue, 02 Nov 2021 06:35:56 GMT' +]); diff --git a/sdk/network/arm-network/recordings/node/my_test/recording_ipgroups_get_test.js b/sdk/network/arm-network/recordings/node/my_test/recording_ipgroups_get_test.js new file mode 100644 index 000000000000..dc52830b9bcb --- /dev/null +++ b/sdk/network/arm-network/recordings/node/my_test/recording_ipgroups_get_test.js @@ -0,0 +1,149 @@ +let nock = require('nock'); + +module.exports.hash = "2053bc3f22a51933dcfd4617cdb6a95e"; + +module.exports.testInfo = {"uniqueName":{},"newDate":{}} + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '35148c58-1bf3-42ce-a6dd-66d1d9922300', + 'x-ms-ests-server', + '2.1.12171.15 - KRSLR1 ProdSlices', + 'Set-Cookie', + 'fpc=Arn6IrKHhKlDn9CtleApQv4; expires=Thu, 02-Dec-2021 06:36:00 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr9dGaq4tb5UwonlQvpQxQGQI2vxQ6Jy839MS5O0vsPUBndNOeknrNmZXnL7KfBUUS6H0RkuPZsqYTgzbNS8zid5_epS4TywzCbslTzg44ezo88ghTcEI7yosquA2rOw4dUzZwfWFzF0em7Um7OqbF9zeBhRDzs0qyQj-n-aO_8p8gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Tue, 02 Nov 2021 06:36:00 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '95165a8d-fad7-423b-8e92-c143ff052300', + 'x-ms-ests-server', + '2.1.12171.15 - KRSLR1 ProdSlices', + 'Set-Cookie', + 'fpc=AsmoYUeHcNFBmni8dcqUeLM; expires=Thu, 02-Dec-2021 06:36:01 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrYjBbKfkgNJnnAeAV55jz0xMm62pv_bf6o2kuuO1jFeAbuoGUBskfCVnn6kuBemsNJBXPFoPrkBLGhGWteNSQC6ftN3JZSrJxNCP4ngcLtkOth78t0dysg6AkQXxbHZDp1hr7kO6VoocJl-kmSDcktM5XwYGrngWMeHTgNybeXa4gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Tue, 02 Nov 2021 06:36:00 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.2&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=5adc15df-9ae9-4f04-9351-da70ad4f240d&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22CP1%22%5D%7D%7D%7D") + .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ + 'Cache-Control', + 'no-store, no-cache', + 'Pragma', + 'no-cache', + 'Content-Type', + 'application/json; charset=utf-8', + 'Expires', + '-1', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'e60621a1-144f-4eab-b75c-1a6d42242000', + 'x-ms-ests-server', + '2.1.12171.15 - SEASLR1 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', + 'Set-Cookie', + 'fpc=AshSZI9bOvVBvNbuqddnkb4WPr5BAQAAAFDTEtkOAAAA; expires=Thu, 02-Dec-2021 06:36:01 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Tue, 02 Nov 2021 06:36:01 GMT', + 'Content-Length', + '1351' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Network/ipGroups/virtualnetworkzzz') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef16f9ca4e947abba5ae5755be4cd478f52fe883e3c2feafc2a2b4b7cf6bdef8f3a9fbeacca622a2fb82f8bd5f16c56e74d239fcba7f4f9eebdf1a7fbe37b0fc7bb9fdebdb7f79136a72ff677c60ff6c7bbfb9f8e0f76eededb8d7cf3607c6fefeedec147f285ed8930be2c9aa25a16cb8bd76dd6e6d4df47afd7d3699ecff219b7fe25dcf6a36286afee36eb4933ad8b554bef34771fee9d3fbc3f3b38dfbe37fdf4c1f6feeedefef6c3dde983ed83e9f9ce83e96c72beb7bf7b970652adeb69fe795dad57cdddc5f54f376ddeb477b9ef595e3777bf28a675d554e7edf845de5e55f5dbbbc54a5b5f1675bbcecaa57cfe831ffc40c6f6d1325b30ae43dfb7d72bfebe0ffa4c416bc3bccd2ed0f0d3ec7c67efe1a7d9f6f4e174b6bd9fdddfdfcef6b2e9f6c3e9fe74b2bb7b6fb6f7e9437da5aca619c68fd7f2ac69d7061681c28499997f9b5fefd29f1f5d66e53adf1562fec6c92f","f97f006dc0ea5f2c020000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json; charset=utf-8', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'ETag', + '"6af0296a-c9cd-4a54-a2ac-9c4cb113d269"', + 'Vary', + 'Accept-Encoding', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11994', + 'x-ms-request-id', + '48081207-cb78-4bbe-a52b-59e21f0f4a20', + 'x-ms-correlation-request-id', + '48081207-cb78-4bbe-a52b-59e21f0f4a20', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211102T063601Z:48081207-cb78-4bbe-a52b-59e21f0f4a20', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Tue, 02 Nov 2021 06:36:01 GMT' +]); diff --git a/sdk/network/arm-network/recordings/node/my_test/recording_ipgroups_list_test.js b/sdk/network/arm-network/recordings/node/my_test/recording_ipgroups_list_test.js new file mode 100644 index 000000000000..4cee0860ad4c --- /dev/null +++ b/sdk/network/arm-network/recordings/node/my_test/recording_ipgroups_list_test.js @@ -0,0 +1,147 @@ +let nock = require('nock'); + +module.exports.hash = "f2e12d49d61c8131b50ed5a2fbea5d9e"; + +module.exports.testInfo = {"uniqueName":{},"newDate":{}} + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '35148c58-1bf3-42ce-a6dd-66d1f5922300', + 'x-ms-ests-server', + '2.1.12171.15 - KRSLR1 ProdSlices', + 'Set-Cookie', + 'fpc=AiUxYUtoVDZAqtIbmShqSwk; expires=Thu, 02-Dec-2021 06:36:04 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrGS9zZxf9aK8mayCSShZJWuz9e9NWZbl5EEQxRMH5PnbRi4kIW6TF5HURiae1uHFpxCyr1gJQfg9PLhT3F36sFg1g6nN3Qu1Lif-jIZ3-Xl-3hNT_Jjiw1CRwGObnCyUOnVJ1_UeT6dsHjdiXkutfgFN8SjJ3lgE4w9RW5kjmYhYgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Tue, 02 Nov 2021 06:36:03 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '95165a8d-fad7-423b-8e92-c1431c062300', + 'x-ms-ests-server', + '2.1.12171.15 - KRSLR1 ProdSlices', + 'Set-Cookie', + 'fpc=ApHXqfz38QhDhdGcyMOVcLg; expires=Thu, 02-Dec-2021 06:36:04 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrbNhok7tRMT9854Tg8jOj8ABrnZsnU4ALxVHbtHRW3anPmIBCkj6Jp5xu8fRLQrB6OyWzBJojZgCP_nzwxYIISCwDpEDxgkbkQQ-KBH-8GoSaJ5Q5l0XT4LVJdPpuv4FM_C1_F3KCiRMTJPRq98_SJrd4_GenRUxxfrazVvt_YtsgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Tue, 02 Nov 2021 06:36:03 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.2&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=44022ae4-aba1-493e-9b20-520b5ab00251&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22CP1%22%5D%7D%7D%7D") + .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ + 'Cache-Control', + 'no-store, no-cache', + 'Pragma', + 'no-cache', + 'Content-Type', + 'application/json; charset=utf-8', + 'Expires', + '-1', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '95165a8d-fad7-423b-8e92-c14320062300', + 'x-ms-ests-server', + '2.1.12171.15 - KRSLR1 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', + 'Set-Cookie', + 'fpc=AsxJDfF6ZIFEg14B7MiZ8DIWPr5BAQAAAFTTEtkOAAAA; expires=Thu, 02-Dec-2021 06:36:04 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Tue, 02 Nov 2021 06:36:04 GMT', + 'Content-Length', + '1351' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Network/ipGroups') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef16f9ca4e9479759b9ce3f7a947e0f7fa5297f88e7a3555dadf2ba2df286beb51fd317e7459d5f656589cfbff7fd51e49b9755594ce5c5b041b13a9ecdeabc69e43bf70d7db77b6ffce9fef8dec3f1eea777efed7de4bd465feeef8c1fec8f77f73f1d1fecdcbdb73bf0ed83f1bdbdbb7b071fb92f83de694497455354cb6279f1bacd5a0cfba3d7ebe934cf67f9ccbef54bec3b1f153334b9dbac27cdb42e562dbddbdc7db877fef0feece07cfbdef4d307dbfbbb7bfbdb0f77a70fb60fa6e73b0fa6b3c9f9defeee5d1a64b5aea7f9e775b55e357717d73fddb479d3de651c6679dddcfda298d655539db7e317797b55d56fef162b6d7d59d4ed3a2b97f2f90f7ef00337de8f96d982f1ded4a6bd5e719b7e1767da85d7386fb30b34fe343bdfd97bf869b63d7d389d6def67f7f7b7b3bd6cbafd70ba3f9deceede9bed7dfad07badaca619e88157f3ac69d73e4c028909f6b9e66d7ebd4b1f09bfed3a62cb2ffce3fbbf71f24b","fe1f1bb05f1295020000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json; charset=utf-8', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11991', + 'x-ms-request-id', + 'd23eb292-fb52-4725-9af6-221d67f9a2f8', + 'x-ms-correlation-request-id', + 'd23eb292-fb52-4725-9af6-221d67f9a2f8', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211102T063604Z:d23eb292-fb52-4725-9af6-221d67f9a2f8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Tue, 02 Nov 2021 06:36:04 GMT' +]); diff --git a/sdk/network/arm-network/recordings/node/my_test/recording_subnets_begindeleteandwait_test.js b/sdk/network/arm-network/recordings/node/my_test/recording_subnets_begindeleteandwait_test.js new file mode 100644 index 000000000000..45b5194daa44 --- /dev/null +++ b/sdk/network/arm-network/recordings/node/my_test/recording_subnets_begindeleteandwait_test.js @@ -0,0 +1,231 @@ +let nock = require('nock'); + +module.exports.hash = "c2778b21157e6285493206b84b637ba3"; + +module.exports.testInfo = {"uniqueName":{},"newDate":{}} + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'ca3a62ba-c5cb-4298-8f87-a7df1d172100', + 'x-ms-ests-server', + '2.1.12171.15 - SEASLR1 ProdSlices', + 'Set-Cookie', + 'fpc=Auk-Kg0fQ8lLlhJLKmJt7uM; expires=Thu, 02-Dec-2021 06:36:13 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr3c_p61zCvFOxeyl4OZsnDdqKtuoHjYdA1NL3Vu2pZqKUlsOd32hKxHc_b4MMg3mLxknB4wgitWhzY2Ved81jn-0SPRyYASW3xs3z6uDDY6Cn7cQiiCAcXRHxzq3-Et3P-MfoD5cq-6_BZltzgCRD-ijo_uF361gYkjlrzZ9KDiQgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Tue, 02 Nov 2021 06:36:12 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '16e703d7-6fbf-4e85-84ae-5ef089102000', + 'x-ms-ests-server', + '2.1.12171.15 - KRSLR2 ProdSlices', + 'Set-Cookie', + 'fpc=Av5OAvf70pNCijT590tFuB8; expires=Thu, 02-Dec-2021 06:36:13 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrKmMhs_Qrha6kG9-kaM-XpVw9ExfOzJmEuOrILk4OiLMTAb2NPDIFJCaIek7lqjTdryIXyLCK0oHM_8UVCokVCFPSbUXIT07ufy-DNIWrFqPPRwbOCipiSVRwWW31hMAjHLCTpstGjwwlTfcgRKmBlEtJOekVsleJdcVyVaQ-yVIgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Tue, 02 Nov 2021 06:36:13 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.2&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=24f32ff4-5e53-4657-9ba8-8a05453aa5e8&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22CP1%22%5D%7D%7D%7D") + .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ + 'Cache-Control', + 'no-store, no-cache', + 'Pragma', + 'no-cache', + 'Content-Type', + 'application/json; charset=utf-8', + 'Expires', + '-1', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'ca3a62ba-c5cb-4298-8f87-a7df20172100', + 'x-ms-ests-server', + '2.1.12171.15 - SEASLR1 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', + 'Set-Cookie', + 'fpc=AqhO1Ua3RbxPugUV0le8Bm4WPr5BAQAAAF3TEtkOAAAA; expires=Thu, 02-Dec-2021 06:36:13 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Tue, 02 Nov 2021 06:36:13 GMT', + 'Content-Length', + '1351' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .delete('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Network/virtualNetworks/virtualnetworkzzz/subnets/subnetzzz') + .query(true) + .reply(202, "", [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Expires', + '-1', + 'Location', + 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Network/locations/eastus/operationResults/a2332068-7b56-4894-bd61-dcbb819dab5e?api-version=2021-05-01', + 'Retry-After', + '10', + 'x-ms-request-id', + 'a2332068-7b56-4894-bd61-dcbb819dab5e', + 'Azure-AsyncOperation', + 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Network/locations/eastus/operations/a2332068-7b56-4894-bd61-dcbb819dab5e?api-version=2021-05-01', + 'x-ms-correlation-request-id', + '29eec3f1-8613-4726-a923-e7afc93baa8e', + 'x-ms-arm-service-request-id', + 'c540a755-b7f4-4b58-9b51-7684f6792235', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-deletes', + '14998', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211102T063614Z:29eec3f1-8613-4726-a923-e7afc93baa8e', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Tue, 02 Nov 2021 06:36:13 GMT', + 'Content-Length', + '0' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.Network/locations/eastus/operations/a2332068-7b56-4894-bd61-dcbb819dab5e') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef16f9ca4e9474d9bb5ebe6a347e947afd7d3699ecff2d947bf71f24b","fe1f4f9490471d000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json; charset=utf-8', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-request-id', + 'cec10c92-8adc-4142-8611-c22128aa5fd1', + 'x-ms-correlation-request-id', + '6152e9cf-945a-409e-9c53-d537445736c3', + 'x-ms-arm-service-request-id', + '55f900ec-907f-48a6-b637-c295c3c6cf9b', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11989', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211102T063614Z:6152e9cf-945a-409e-9c53-d537445736c3', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Tue, 02 Nov 2021 06:36:13 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Network/virtualNetworks/virtualnetworkzzz/subnets') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef16f9ca4e9479759b9ce3f7a947eeffbbf71f24b","fe1f5bd2319513000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json; charset=utf-8', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-request-id', + '1aa553e4-271c-4673-a26a-ff215fdebbd7', + 'x-ms-correlation-request-id', + '4fdf2192-3a5f-4169-a65d-e759eb624310', + 'x-ms-arm-service-request-id', + '58e84815-751d-4347-b8d7-1e91eeac71a1', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11988', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211102T063614Z:4fdf2192-3a5f-4169-a65d-e759eb624310', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Tue, 02 Nov 2021 06:36:14 GMT' +]); diff --git a/sdk/network/arm-network/recordings/node/my_test/recording_subnets_create_test.js b/sdk/network/arm-network/recordings/node/my_test/recording_subnets_create_test.js new file mode 100644 index 000000000000..e450b8494a9b --- /dev/null +++ b/sdk/network/arm-network/recordings/node/my_test/recording_subnets_create_test.js @@ -0,0 +1,191 @@ +let nock = require('nock'); + +module.exports.hash = "5fdd6ace173d180542e99b73a8988085"; + +module.exports.testInfo = {"uniqueName":{},"newDate":{}} + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '7c341d3b-9675-4cf7-a730-8bf2a7690100', + 'x-ms-ests-server', + '2.1.12171.15 - SEASLR2 ProdSlices', + 'Set-Cookie', + 'fpc=AkrXHbrx9p1CigjxnDmathY; expires=Thu, 02-Dec-2021 06:35:45 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrHezRh5qkPUwJtNxbZVH-hRa81HytcO_XB8FKA2EysPbX4FOI2wismik-jPBxG1-HpuSWVfbGFWyuAOGgRWZ9aZqfpS6b1bfsuzb0i5DokxUN37DsKTBADwMkymklChWkd5l5sJjajuV8bWdEhAlPkZZ3kMHpN2hhirm-56LNg5MgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Tue, 02 Nov 2021 06:35:45 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'ca3a62ba-c5cb-4298-8f87-a7df1c162100', + 'x-ms-ests-server', + '2.1.12171.15 - SEASLR1 ProdSlices', + 'Set-Cookie', + 'fpc=Arow_NgdcXNOhQuIqtRFoEo; expires=Thu, 02-Dec-2021 06:35:45 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrR-X4QCwloSj-l7lX4e9sqB80vlpNaImPzwUp8B_Ck0TPz17D3FhhSwTnxsDE2hJuh0bFeEJ9z9zCZvAXSdznQEpsP-HKKPXQkkaQnr30ySN3ToYRDGDhPlniSqcYa-GnYY9lYZyfbOKP1As1iw3zzKzEjZL90IfjR2c7pV2szwUgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Tue, 02 Nov 2021 06:35:45 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.2&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=b34adb14-27a1-4c36-849f-65ca8178a192&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22CP1%22%5D%7D%7D%7D") + .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ + 'Cache-Control', + 'no-store, no-cache', + 'Pragma', + 'no-cache', + 'Content-Type', + 'application/json; charset=utf-8', + 'Expires', + '-1', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'e1d52355-3b41-4b32-9463-4c3fdd441e00', + 'x-ms-ests-server', + '2.1.12171.15 - KRSLR2 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', + 'Set-Cookie', + 'fpc=AoLjlGaanxVInI7P5Z0g5nsWPr5BAQAAAEHTEtkOAAAA; expires=Thu, 02-Dec-2021 06:35:45 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Tue, 02 Nov 2021 06:35:45 GMT', + 'Content-Length', + '1351' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .put('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Network/virtualNetworks/virtualnetworkzzz/subnets/subnetzzz', {"properties":{"addressPrefix":"10.0.0.0/24"}}) + .query(true) + .reply(201, {"name":"subnetzzz","id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Network/virtualNetworks/virtualnetworkzzz/subnets/subnetzzz","etag":"W/\"4356ed8d-b5b9-4d62-9f32-47b6e838ebd5\"","properties":{"provisioningState":"Updating","addressPrefix":"10.0.0.0/24","delegations":[],"privateEndpointNetworkPolicies":"Enabled","privateLinkServiceNetworkPolicies":"Enabled"},"type":"Microsoft.Network/virtualNetworks/subnets"}, [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Content-Length', + '534', + 'Content-Type', + 'application/json; charset=utf-8', + 'Expires', + '-1', + 'Retry-After', + '3', + 'x-ms-request-id', + 'e6d3890f-57bb-4edf-877c-a627aa039681', + 'Azure-AsyncOperation', + 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Network/locations/eastus/operations/e6d3890f-57bb-4edf-877c-a627aa039681?api-version=2021-05-01', + 'x-ms-correlation-request-id', + 'b2f9ff41-5c14-4975-8f5e-49448876d0b8', + 'x-ms-arm-service-request-id', + 'b87c55e0-0b7d-4314-bea7-a2da3ca0daf3', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-writes', + '1198', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211102T063546Z:b2f9ff41-5c14-4975-8f5e-49448876d0b8', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Tue, 02 Nov 2021 06:35:46 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.Network/locations/eastus/operations/e6d3890f-57bb-4edf-877c-a627aa039681') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef16f9ca4e9474d9bb5ebe6a347e947afd7d3699ecff2d947bf71f24b","fe1f4f9490471d000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json; charset=utf-8', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-request-id', + 'e5217c36-085b-4200-a347-942debf01763', + 'x-ms-correlation-request-id', + '8d0a007a-4747-40b0-9917-46670442c231', + 'x-ms-arm-service-request-id', + '1f2fe8be-8623-4bdb-963b-882e50d5fa9e', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11998', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211102T063546Z:8d0a007a-4747-40b0-9917-46670442c231', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Tue, 02 Nov 2021 06:35:46 GMT' +]); diff --git a/sdk/network/arm-network/recordings/node/my_test/recording_subnets_get_test.js b/sdk/network/arm-network/recordings/node/my_test/recording_subnets_get_test.js new file mode 100644 index 000000000000..41137c453fe0 --- /dev/null +++ b/sdk/network/arm-network/recordings/node/my_test/recording_subnets_get_test.js @@ -0,0 +1,153 @@ +let nock = require('nock'); + +module.exports.hash = "f047f82e2b356c332fae49a5b68dee05"; + +module.exports.testInfo = {"uniqueName":{},"newDate":{}} + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'e1d52355-3b41-4b32-9463-4c3f42451e00', + 'x-ms-ests-server', + '2.1.12171.15 - KRSLR2 ProdSlices', + 'Set-Cookie', + 'fpc=AjLCnoH6jx5MrvB2SCXnCXA; expires=Thu, 02-Dec-2021 06:35:59 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrVnJuDGt2wVSLi3heRQz8pUvKVwuctwEdQl0z2jwZKn1C0qRqiFwFpX1aQXCqYkHaFUkIFHufIXlJwwx5S_iDNAOuYExkQSzQpyLtSeGcqfGGZywLJ8yr2MnXKRhoCFmhtP6-DyoAZJ0ScWu6baMxgKlU_J7yoaQ5g2kTtxPdHKMgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Tue, 02 Nov 2021 06:35:59 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '95165a8d-fad7-423b-8e92-c143f3052300', + 'x-ms-ests-server', + '2.1.12171.15 - KRSLR1 ProdSlices', + 'Set-Cookie', + 'fpc=AnIGm_08DWNKoxk0Prz3HRg; expires=Thu, 02-Dec-2021 06:36:00 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr-6bxtTjxks8VBhTd9OlX7r3ca1NF5GNQk9ErwS8-WMRaCjKh9sr5v72jAvRezcD4g_eOm1Lhl0CDwjYPu4pUsZGpMnDd1b6oEvLWz21f11IEaiJ4UfugsXdxCkPG07n4IfqEXP8HWziFAKXywOwFiwTUGWC5nU2H4npPGb4bBjMgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Tue, 02 Nov 2021 06:35:59 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.2&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=8492d3f2-952d-4740-a209-ccbc405738ca&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22CP1%22%5D%7D%7D%7D") + .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ + 'Cache-Control', + 'no-store, no-cache', + 'Pragma', + 'no-cache', + 'Content-Type', + 'application/json; charset=utf-8', + 'Expires', + '-1', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '35148c58-1bf3-42ce-a6dd-66d1d5922300', + 'x-ms-ests-server', + '2.1.12171.15 - KRSLR1 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', + 'Set-Cookie', + 'fpc=AlJ6J9VDEw1CkznssX9EWUwWPr5BAQAAAE_TEtkOAAAA; expires=Thu, 02-Dec-2021 06:36:00 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Tue, 02 Nov 2021 06:36:00 GMT', + 'Content-Length', + '1351' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Network/virtualNetworks/virtualnetworkzzz/subnets/subnetzzz') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef16f9ca4e947cb6c917ff428fda8594f9679fb831ffce0a3117f5eccf0e95dfab899d6c5aa2daa6573f7e1def9c3fbb383f3ed7bd34f1f6cefefeeed6f3fdc9d3ed83e989eef3c98ce26e77bfbbb77ebbca9d6f534ffbcaed6abe6eee2faa79b366fdabbabbaba2c6679dddcfda298d655539db7e317797b55d56fef5e1675bbce4afdb3317f1346f89bb0ba4b88d05f8dfea44f14cfbccd2e80e977effebe1f3d98cc1ee4b3f3ddedd9a793f3edfd839d7bdbd9c37cba7d6f676f3acdf7f67677ce777edf8ff445426795d76d9137f43ad3423ebc2c1a1a6bb1bc78dd662d93e6f59adece67f94cdea466d96c46a36c5ed6f979f10e4d7677c6fcdfddbd7ddb689697f945c684a326dffbbef97c55179704f974395b55c5b2d531bfacca622ac87c74bacc26a5d79dbef1bc58be7d9dd797c534dff012def925fce647edf58a077033bd85aa0dbdfc4b","fe1fd69f2a2817020000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json; charset=utf-8', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'ETag', + 'W/"7bd7edf1-d6bf-4803-a9ec-302cce2210f0"', + 'Vary', + 'Accept-Encoding', + 'x-ms-request-id', + 'f7fb4071-fac5-4642-bfd1-378b2e906291', + 'x-ms-correlation-request-id', + '1eed1f9c-5363-42aa-84dd-d32ccc1872d5', + 'x-ms-arm-service-request-id', + '21e53d0c-6fb4-41d6-b185-e87e7c700588', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11995', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211102T063600Z:1eed1f9c-5363-42aa-84dd-d32ccc1872d5', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Tue, 02 Nov 2021 06:36:00 GMT' +]); diff --git a/sdk/network/arm-network/recordings/node/my_test/recording_subnets_list_test.js b/sdk/network/arm-network/recordings/node/my_test/recording_subnets_list_test.js new file mode 100644 index 000000000000..46bb715ed0fb --- /dev/null +++ b/sdk/network/arm-network/recordings/node/my_test/recording_subnets_list_test.js @@ -0,0 +1,151 @@ +let nock = require('nock'); + +module.exports.hash = "4195050580ae5446c247f2f52b7c0452"; + +module.exports.testInfo = {"uniqueName":{},"newDate":{}} + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '9b6453e2-2646-4a34-ae4f-538306bb1f00', + 'x-ms-ests-server', + '2.1.12171.15 - SEASLR1 ProdSlices', + 'Set-Cookie', + 'fpc=Atx8BinT9IxItLfi9hTkk24; expires=Thu, 02-Dec-2021 06:36:02 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrFrnbhyCyYCeLWrBma2c7xJowbVlCyt9D0MdN7mc6HIv46GX9Toa8UeXHju1rwJUopD8z8HXeyik9bNVyI66neX2Z5qT0Q2tCKwPoqCmbFmasxkaXPn9RaFe9PjHqzAGIKehdso0w3gPzInYHwjWUoKQzL2Q5aGhjSAsb0uLbCRIgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Tue, 02 Nov 2021 06:36:02 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '7c341d3b-9675-4cf7-a730-8bf2486a0100', + 'x-ms-ests-server', + '2.1.12171.15 - SEASLR2 ProdSlices', + 'Set-Cookie', + 'fpc=AvcRhTgr8-hMsuYdhlCs4WY; expires=Thu, 02-Dec-2021 06:36:03 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevruVDc7QNEozhyFhEGpI49OypSFYG4pdybqi-gjj75zDXr7L7a0R82iRswmG-O7Fi5P6PxHvbK3rTVB9Z5mrZXvfWwKDyd_rdJ6mZEvediLAlkQhFw161ZH-egwDlxGDAC7a5C3vRnn60RVHhCr7M4ZPA7obR54YGLO3mtINs5sLogAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Tue, 02 Nov 2021 06:36:03 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.2&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=8ca944b3-c292-4f28-ab54-1e237c20237c&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22CP1%22%5D%7D%7D%7D") + .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ + 'Cache-Control', + 'no-store, no-cache', + 'Pragma', + 'no-cache', + 'Content-Type', + 'application/json; charset=utf-8', + 'Expires', + '-1', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'e1d52355-3b41-4b32-9463-4c3f5c451e00', + 'x-ms-ests-server', + '2.1.12171.15 - KRSLR2 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', + 'Set-Cookie', + 'fpc=Agmrhljq4RdJkRqlOPzxrqoWPr5BAQAAAFLTEtkOAAAA; expires=Thu, 02-Dec-2021 06:36:03 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Tue, 02 Nov 2021 06:36:03 GMT', + 'Content-Length', + '1351' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Network/virtualNetworks/virtualnetworkzzz/subnets') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef16f9ca4e9479759b9ce3f7a947e0f7fa5297f88e7a365b6c0e71f35ebc9326f7ff0831f7c34b2df15337c7397be6aa675b16a8b6ad9dc7db877fef0feece07cfbdef4d307dbfbbb7bfbdb0f77a70fb60fa6e73b0fa6b3c9f9defeeedd3a6faa753dcd3fafabf5aab9bbb8fee9a6cd9bf6eeaaae2e8b595e3777bf28a675d554e7edf845de5e55f5dbbb9745ddaeb352ff6cccdf8415fe26ccee1222f457a33fe9130fd7bccd2e80ed77effebe1f3d98cc1ee4b3f3ddedd9a793f3edfd839d7bdbd9c37cba7d6f676f3acdf7f67677ce777edf8fbc9709ad555eb745de10084b1bf9e2b26868dcc5f2e2759bb54caad76b8292cff29983404db3d98c46ddbcacf3f3e21d9aedee8cf9bfbb7bfb41c3595ee6171913939a7deffbfe77abbab8a45e4e97b355552c5ba5c5cbaa2ca682dc47a7cb6c5276bad6b79e17cbb7aff3fab298e61b5e34effd120be1a3f67ac503bb794e84f28d02f925f8f1fddf38f925","ff0f704086e964020000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json; charset=utf-8', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-request-id', + '1e493aa1-e07f-4976-8839-daf7d7f9dcba', + 'x-ms-correlation-request-id', + 'ad278eff-dfb0-4f1d-a2fe-fc048511f9c5', + 'x-ms-arm-service-request-id', + 'f980a0d8-22aa-4f36-9073-4b85da6ba619', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11992', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211102T063603Z:ad278eff-dfb0-4f1d-a2fe-fc048511f9c5', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Tue, 02 Nov 2021 06:36:03 GMT' +]); diff --git a/sdk/network/arm-network/recordings/node/my_test/recording_virtualnetworks_begindeleteandwait_test.js b/sdk/network/arm-network/recordings/node/my_test/recording_virtualnetworks_begindeleteandwait_test.js new file mode 100644 index 000000000000..545702740abc --- /dev/null +++ b/sdk/network/arm-network/recordings/node/my_test/recording_virtualnetworks_begindeleteandwait_test.js @@ -0,0 +1,233 @@ +let nock = require('nock'); + +module.exports.hash = "0ecea02079d60847709292b01fcdf095"; + +module.exports.testInfo = {"uniqueName":{},"newDate":{}} + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '4212c40b-2185-4860-9f88-847504392200', + 'x-ms-ests-server', + '2.1.12171.15 - SEASLR2 ProdSlices', + 'Set-Cookie', + 'fpc=AvjfZg4TiepModQCMPRy1uw; expires=Thu, 02-Dec-2021 06:36:15 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrN-J2x_xnPBfkfPY5Vt1rjnN9xTvBcFaoCMprF-F6queFqdq0pBAhDhT9BZUi8eMs7pJAVGf9XKKwatslS3aObrasSbMXKhyJGd4pmdtJrd3rymae-6ZI7MUyuqrB98UBqU5q2IqDYFqK5EJvOZSB7EMCL1vDY4s8fm9h2M3IYv4gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Tue, 02 Nov 2021 06:36:14 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'da72c021-5610-4913-b51e-bdcf2d3c2000', + 'x-ms-ests-server', + '2.1.12171.15 - KRSLR2 ProdSlices', + 'Set-Cookie', + 'fpc=Aieeq-y1oY9Lnxq2TL8ivaU; expires=Thu, 02-Dec-2021 06:36:15 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrzFUiwWMKDMp3MekOPGuPtN3ZMw5ammiqhoAr9YTGx5upLM9DkUFvVhjiWZG9ms7oBNPGresuSNLJhkdJuYt6QMtTBbbKw_tNufUt52BpN1TI6prP_DDe8qpdk2WiajI_jzcOCc3iHudiKYelPdeI2gevSCvdUSD1-2Wye12zDWogAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Tue, 02 Nov 2021 06:36:14 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.2&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=5f452d2f-ea69-4767-81ca-0b1922469786&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22CP1%22%5D%7D%7D%7D") + .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ + 'Cache-Control', + 'no-store, no-cache', + 'Pragma', + 'no-cache', + 'Content-Type', + 'application/json; charset=utf-8', + 'Expires', + '-1', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'da72c021-5610-4913-b51e-bdcf303c2000', + 'x-ms-ests-server', + '2.1.12171.15 - KRSLR2 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', + 'Set-Cookie', + 'fpc=Av2SHG4U6T1HogXwTr3pzgwWPr5BAQAAAF_TEtkOAAAA; expires=Thu, 02-Dec-2021 06:36:15 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Tue, 02 Nov 2021 06:36:15 GMT', + 'Content-Length', + '1351' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .delete('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Network/virtualNetworks/virtualnetworkzzz') + .query(true) + .reply(202, "", [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Expires', + '-1', + 'Location', + 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Network/locations/eastus/operationResults/1e7d15a3-34e3-4c5c-9ae5-0ce8cb748611?api-version=2021-05-01', + 'Retry-After', + '10', + 'x-ms-request-id', + '1e7d15a3-34e3-4c5c-9ae5-0ce8cb748611', + 'Azure-AsyncOperation', + 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Network/locations/eastus/operations/1e7d15a3-34e3-4c5c-9ae5-0ce8cb748611?api-version=2021-05-01', + 'x-ms-correlation-request-id', + '2598bb0d-c95c-4ab2-bdde-7998735c8d8f', + 'Azure-AsyncNotification', + 'Enabled', + 'x-ms-arm-service-request-id', + '83d9c9c2-ad5f-43d0-b666-081e4dc8f2bf', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-deletes', + '14997', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211102T063616Z:2598bb0d-c95c-4ab2-bdde-7998735c8d8f', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Tue, 02 Nov 2021 06:36:15 GMT', + 'Content-Length', + '0' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.Network/locations/eastus/operations/1e7d15a3-34e3-4c5c-9ae5-0ce8cb748611') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef16f9ca4e9474d9bb5ebe6a347e947afd7d3699ecff2d947bf71f24b","fe1f4f9490471d000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json; charset=utf-8', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-request-id', + 'fe1e8862-2705-4356-af18-8ead479fba63', + 'x-ms-correlation-request-id', + '17e2a534-4843-419f-8e81-8308f6567a70', + 'x-ms-arm-service-request-id', + 'a6f4bbec-9cfe-4b4e-8df6-7726f40a4ca5', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11987', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211102T063616Z:17e2a534-4843-419f-8e81-8308f6567a70', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Tue, 02 Nov 2021 06:36:16 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Network/virtualNetworks') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef16f9ca4e9479759b9ce3f7a947eeffbbf71f24b","fe1f5bd2319513000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json; charset=utf-8', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-request-id', + 'ad0dbf32-0196-4ea3-b1a0-1683e4d7fa81', + 'x-ms-correlation-request-id', + '4f31d3cd-856f-464d-b999-3767e74bdd48', + 'x-ms-arm-service-request-id', + 'ad5b8cf8-4767-4b52-aa78-11b20fce1c9e', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11986', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211102T063617Z:4f31d3cd-856f-464d-b999-3767e74bdd48', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Tue, 02 Nov 2021 06:36:16 GMT' +]); diff --git a/sdk/network/arm-network/recordings/node/my_test/recording_virtualnetworks_create_test.js b/sdk/network/arm-network/recordings/node/my_test/recording_virtualnetworks_create_test.js new file mode 100644 index 000000000000..ca5625dcaa47 --- /dev/null +++ b/sdk/network/arm-network/recordings/node/my_test/recording_virtualnetworks_create_test.js @@ -0,0 +1,193 @@ +let nock = require('nock'); + +module.exports.hash = "44bbd95c5d9a09c384087f37da822530"; + +module.exports.testInfo = {"uniqueName":{},"newDate":{}} + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '4212c40b-2185-4860-9f88-8475cd372200', + 'x-ms-ests-server', + '2.1.12171.15 - SEASLR2 ProdSlices', + 'Set-Cookie', + 'fpc=AjXVmfRZfEdGsMgcqLqFREg; expires=Thu, 02-Dec-2021 06:35:34 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr5wjJrZy1Emn9UC07bWZhG3ODaJYzmIEinE3iJkQXa4ayzPNYgKsIkd7pjf5tuSLV1CpFMoor3e8FafDFrBI5lrPitGoCS8Zs82FveMnTpoojZthBsGNBNfqsUIPzlqb7kEq-mI4LK0FKzJuV8Y7oScm_UutV-wVBrawDDt45AjsgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Tue, 02 Nov 2021 06:35:34 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '95165a8d-fad7-423b-8e92-c143f8042300', + 'x-ms-ests-server', + '2.1.12171.15 - KRSLR1 ProdSlices', + 'Set-Cookie', + 'fpc=AqwRBqEmXZxDp4l_iPo0E1k; expires=Thu, 02-Dec-2021 06:35:34 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrPbF7UEq-WWAs0cw6TJtcd4VZNYZmm8oKRYvM4g6VTdLl5O6Ep0VCvzzvooqVxTJCs0CqCl07WxgHfqtCSUa32QivoO3HAuqrHcthNCCbnarPfeW2u-aydLQmthuOk1t2g_w2kglehiiNgAgpZYAzLGGhb08SE7n3YDrPiWVz4xggAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Tue, 02 Nov 2021 06:35:34 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.2&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=8a45e13a-3f19-472e-a5d5-06aad62f8fb2&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22CP1%22%5D%7D%7D%7D") + .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ + 'Cache-Control', + 'no-store, no-cache', + 'Pragma', + 'no-cache', + 'Content-Type', + 'application/json; charset=utf-8', + 'Expires', + '-1', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '95165a8d-fad7-423b-8e92-c143fb042300', + 'x-ms-ests-server', + '2.1.12171.15 - KRSLR1 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', + 'Set-Cookie', + 'fpc=AvqUIuWBHoFGpeXF6HMLsHwWPr5BAQAAADbTEtkOAAAA; expires=Thu, 02-Dec-2021 06:35:35 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Tue, 02 Nov 2021 06:35:34 GMT', + 'Content-Length', + '1351' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .put('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Network/virtualNetworks/virtualnetworkzzz', {"location":"eastus","properties":{"addressSpace":{"addressPrefixes":["10.0.0.0/16"]}}}) + .query(true) + .reply(201, {"name":"virtualnetworkzzz","id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Network/virtualNetworks/virtualnetworkzzz","etag":"W/\"b8700557-38d2-4aa4-8e9e-cbf41fc49ca1\"","type":"Microsoft.Network/virtualNetworks","location":"eastus","properties":{"provisioningState":"Updating","resourceGuid":"a5e127fb-797a-4663-a104-5af1cf8ff99d","addressSpace":{"addressPrefixes":["10.0.0.0/16"]},"subnets":[],"virtualNetworkPeerings":[],"enableDdosProtection":false}}, [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Content-Length', + '620', + 'Content-Type', + 'application/json; charset=utf-8', + 'Expires', + '-1', + 'Retry-After', + '3', + 'x-ms-request-id', + 'bc604646-7598-4a42-a26a-38d07cab72cc', + 'Azure-AsyncOperation', + 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Network/locations/eastus/operations/bc604646-7598-4a42-a26a-38d07cab72cc?api-version=2021-05-01', + 'x-ms-correlation-request-id', + '5c660e40-c9aa-4249-b1b7-a090d41e07ed', + 'Azure-AsyncNotification', + 'Enabled', + 'x-ms-arm-service-request-id', + '38c446e9-a6aa-4574-96a5-ea6b6289c820', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-writes', + '1199', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211102T063542Z:5c660e40-c9aa-4249-b1b7-a090d41e07ed', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Tue, 02 Nov 2021 06:35:42 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.Network/locations/eastus/operations/bc604646-7598-4a42-a26a-38d07cab72cc') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef16f9ca4e9474d9bb5ebe6a347e947afd7d3699ecff2d947bf71f24b","fe1f4f9490471d000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json; charset=utf-8', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-request-id', + 'dc7d21cc-4110-4235-84ec-0e16fe0b0c7f', + 'x-ms-correlation-request-id', + 'f6dc4404-b0a0-43ec-af85-3530cf48155a', + 'x-ms-arm-service-request-id', + 'e3f72423-9c8c-4419-a9af-f434823e26b5', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11999', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211102T063543Z:f6dc4404-b0a0-43ec-af85-3530cf48155a', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Tue, 02 Nov 2021 06:35:42 GMT' +]); diff --git a/sdk/network/arm-network/recordings/node/my_test/recording_virtualnetworks_get_test.js b/sdk/network/arm-network/recordings/node/my_test/recording_virtualnetworks_get_test.js new file mode 100644 index 000000000000..21420fe46968 --- /dev/null +++ b/sdk/network/arm-network/recordings/node/my_test/recording_virtualnetworks_get_test.js @@ -0,0 +1,153 @@ +let nock = require('nock'); + +module.exports.hash = "c949a802b1ef34ee1123cf022964eeee"; + +module.exports.testInfo = {"uniqueName":{},"newDate":{}} + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'e1d52355-3b41-4b32-9463-4c3f39451e00', + 'x-ms-ests-server', + '2.1.12171.15 - KRSLR2 ProdSlices', + 'Set-Cookie', + 'fpc=AkkjX3wDs81PoFxl3XdFE5I; expires=Thu, 02-Dec-2021 06:35:58 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrFJRNILoWkERLWMHRCvPZtvuz7vRb3L32hP45n7I73v8N1flhnCFMdY2e9R277a6Mu1HsbtnGsvbqHr5EE-mIu9-mBSdZ8VUv2S0oGRrBOtp2_Hb6RW2bPuZuAvzdkDkpJkv3ZQsq7JwOptAv1RnBHoFTvw0gPBTlBTtqjBpXzI8gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Tue, 02 Nov 2021 06:35:58 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'da72c021-5610-4913-b51e-bdcf9c3b2000', + 'x-ms-ests-server', + '2.1.12171.15 - KRSLR2 ProdSlices', + 'Set-Cookie', + 'fpc=Amneho2sPyVOuAu8nbG-ieI; expires=Thu, 02-Dec-2021 06:35:59 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevryZ9Ww0NZyxlGziJBomBB4AnJggBgP4cCN-Pvj0JuO2S93jBxZbsxv1LQVvqoSeskIoAWR_uuYH-bto6U5pHvDsCdFtEOgPX0Q4ewitKn83JiGbqlJpyRB9gbLy8m3HHvwoFEYorolbrCFh_lhNpNasxelLPFkjONPfp0ya-LKiQgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Tue, 02 Nov 2021 06:35:58 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.2&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=5449f48c-1a68-4eb9-8fb4-102183ee61c1&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22CP1%22%5D%7D%7D%7D") + .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ + 'Cache-Control', + 'no-store, no-cache', + 'Pragma', + 'no-cache', + 'Content-Type', + 'application/json; charset=utf-8', + 'Expires', + '-1', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'da72c021-5610-4913-b51e-bdcfa13b2000', + 'x-ms-ests-server', + '2.1.12171.15 - KRSLR2 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', + 'Set-Cookie', + 'fpc=Av6OjOHG0IdJnZiJwDEshNYWPr5BAQAAAE7TEtkOAAAA; expires=Thu, 02-Dec-2021 06:35:59 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Tue, 02 Nov 2021 06:35:59 GMT', + 'Content-Length', + '1351' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Network/virtualNetworks/virtualnetworkzzz') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef16f9ca4e947cb6c917ff428fde8b2a8db75562ef3f6aaaadffee0073ff868c4df17337c7bb7594f9a695dacdaa25a36771fee9d3fbc3f3b38dfbe37fdf4c1f6feeedefef6c3dde983ed83e9f9ce83e96c72beb7bf7bb7ce9b6a5d4ff3cfeb6abd6aee2eae7fba69f3a6bdbbaaabcb6296d7cddd2f8a695d35d5793b7e21ddde552cf4cfc6fcddc32a6fb30be0f5ddbbbfef470f26b307f9ec7c777bf6e9e47c7bff60e7de76f6309f6edfdbd99b4ef3bdbddd9df39ddff7237db1bd5ef1706fec5adb97d534c398f14e9e35edda7c41a358e5755be40d7dc5a4940f2f8b869a17cb8bd76dd67257afd784463ecb67f22635b394590b75b3fbf9eede83f3c9f683870fb2edfd4f3fa511eceeec6fdfcfce77a7e707e7e70f1fba97b3d98cde6f5eafb229c06bd7ee8b97757e5ebc63b4be67bea36f7777c6fcdfdddd4f3f321f7f5f7ef92506344d32513a78d382a7af0dab48333b19f2fcbf8d51ee1222f457a33fe99300dbafcb40f260a27bb32f0fbeba050fc813ce191ada69dadbef349de5657ec1bc883ebff7fdf0db555d5c525fa7cbd9aa2a96add2e56555165341f2a3d36536297b08e87bcf8be5dbd7797d594cf30dafba370dcbe0b9bd4ce95c3416d02f915fcc588c12d2f62ff3bc262202053bdc8f72c6e5e9ac22a2556d3e0541a8c1795636399a10c8","5ff2ff0058f53310da040000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json; charset=utf-8', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'ETag', + 'W/"7bd7edf1-d6bf-4803-a9ec-302cce2210f0"', + 'Vary', + 'Accept-Encoding', + 'x-ms-request-id', + '04107583-e2cf-45b8-832a-417431c8cefc', + 'x-ms-correlation-request-id', + '6a598cdc-602d-4f8e-8eff-efa24985c933', + 'x-ms-arm-service-request-id', + 'a36dc09f-58d4-4f93-aa4f-476d89b7efb1', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11996', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211102T063559Z:6a598cdc-602d-4f8e-8eff-efa24985c933', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Tue, 02 Nov 2021 06:35:59 GMT' +]); diff --git a/sdk/network/arm-network/recordings/node/my_test/recording_virtualnetworks_list_test.js b/sdk/network/arm-network/recordings/node/my_test/recording_virtualnetworks_list_test.js new file mode 100644 index 000000000000..ae16cf4fc7e5 --- /dev/null +++ b/sdk/network/arm-network/recordings/node/my_test/recording_virtualnetworks_list_test.js @@ -0,0 +1,151 @@ +let nock = require('nock'); + +module.exports.hash = "0f6f7355e76b4c0bd98f21a6e15d7fb5"; + +module.exports.testInfo = {"uniqueName":{},"newDate":{}} + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '35148c58-1bf3-42ce-a6dd-66d1e4922300', + 'x-ms-ests-server', + '2.1.12171.15 - KRSLR1 ProdSlices', + 'Set-Cookie', + 'fpc=Ai2dsgrHOrRKsHvQjo9VAQY; expires=Thu, 02-Dec-2021 06:36:01 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrJutMDWogU3YzfocxmqB01hWFaQLLzAMMJeex04q__689zD0zuWh9eyhMMi4aSxu9ensMb9DoL5x405q3YFuztw2FFDIdAdFEgwGyzBa-7XFsale0i4kFtXviAqLS5lFA32wLh-bAPAaN14ze5wl6VShGTrn-gm3dxLzaDdDqK-AgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Tue, 02 Nov 2021 06:36:01 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'e1d52355-3b41-4b32-9463-4c3f50451e00', + 'x-ms-ests-server', + '2.1.12171.15 - KRSLR2 ProdSlices', + 'Set-Cookie', + 'fpc=AjAc10HYaSBJvXHPZxy38IE; expires=Thu, 02-Dec-2021 06:36:02 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevravqQbv-g1UBwsxLeps5CQYZwztBOu6GpVKFtoPU2lY46ynOIspX6KnNkC6rTD-Gcfx13f5YFB_xwJiqnk1-ZFFFTwf6k6eZpWSj8QwkvwPRWSmuipu2C_x2gc-En_zNhJDnoW_XtBIXHPNZ8Fbjm5ZoQ9dGmNM34ljWmH5U7ZxwgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Tue, 02 Nov 2021 06:36:01 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.2&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=0de0ac92-8900-4fde-aad5-f5b8c0b57eed&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22CP1%22%5D%7D%7D%7D") + .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ + 'Cache-Control', + 'no-store, no-cache', + 'Pragma', + 'no-cache', + 'Content-Type', + 'application/json; charset=utf-8', + 'Expires', + '-1', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'e60621a1-144f-4eab-b75c-1a6d4e242000', + 'x-ms-ests-server', + '2.1.12171.15 - SEASLR1 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', + 'Set-Cookie', + 'fpc=Av_lYSYM0apFi4-H_je5MnMWPr5BAQAAAFHTEtkOAAAA; expires=Thu, 02-Dec-2021 06:36:02 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Tue, 02 Nov 2021 06:36:02 GMT', + 'Content-Length', + '1351' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Network/virtualNetworks') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef16f9ca4e9479759b9ce3f7a947e0f7fa5297f88e7a365b6c0e71f5d1675bbceca65de5e55f5db1ffce0071f8d6c9b628616779bf5a499d6c5aa2daa6573f7e1def9c3fbb383f3ed7bd34f1f6cefefeeed6f3fdc9d3ed83e989eef3c98ce26e77bfbbb77ebbca9d6f534ffbcaed6abe6eee2faa79b366fdabbabbaba2c6679dddcfda298d655539db7e317d2f55dc544ff6cccdf51ccf236bb006edfbdfbfb7ef460327b90cfce77b7679f4eceb7f70f76ee6d670ff3e9f6bd9dbde934dfdbdbdd39dff97d3ff25e6eaf573cf41b51f0de29ab6986f1e3bd3c6bdab5ff258d6a95d76d9137f4b525b17c715934f45ab1bc78dd662d77fb7a4d68e5b37ce62050534bb1b5503dbb9fefee3d389f6c3f78f820dbdefff4531ad5eecefef6fdec7c777a7e707efef06108209bcd0846f37a954dd18d8786fbf2659d9f17ef184d6508f37cb4bb33e6ffeeee7efa91ffd5f7dd1fbfc4ef8e988266a60729e8969a193693e6c124caf3ff3626bb4b88d05f8dfea44f7a187f08f3c903c688728c3cf8fa967c234f38bf686ca7736f3fd27c9697f905f333faffdef7fb2d56757149fd9e2e67abaa58b64aaf9755594c05e98f4e97d9a48c22a3ef3e2f966f5fe7f56531cd37bc1ebeedb3189edbcbaace571300fc25ee0f7f8c46e9e9bb2ff3bc264203ad80141fe58ce3d3594584adda7c0a8251a3f3ac6c72d34cbbe01f242b","bfe4ff012e22adba77050000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json; charset=utf-8', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-request-id', + '5c355ad3-971f-4b4f-930a-01244b4f47e2', + 'x-ms-correlation-request-id', + 'fbdc3520-98dd-4853-8bb2-e3a0b089219e', + 'x-ms-arm-service-request-id', + 'e8481b80-d031-453c-b772-6767d7e8d758', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11993', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211102T063602Z:fbdc3520-98dd-4853-8bb2-e3a0b089219e', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Tue, 02 Nov 2021 06:36:02 GMT' +]); diff --git a/sdk/network/arm-network/recordings/node/my_test/recording_virtualnetworks_updatetags_test.js b/sdk/network/arm-network/recordings/node/my_test/recording_virtualnetworks_updatetags_test.js new file mode 100644 index 000000000000..d7e35d4d356d --- /dev/null +++ b/sdk/network/arm-network/recordings/node/my_test/recording_virtualnetworks_updatetags_test.js @@ -0,0 +1,153 @@ +let nock = require('nock'); + +module.exports.hash = "ccda8012da16b9a68cf6918badd27dea"; + +module.exports.testInfo = {"uniqueName":{},"newDate":{}} + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '9b6453e2-2646-4a34-ae4f-538318bb1f00', + 'x-ms-ests-server', + '2.1.12171.15 - SEASLR1 ProdSlices', + 'Set-Cookie', + 'fpc=AqIZp66gOLhJqawE9eBZ_bI; expires=Thu, 02-Dec-2021 06:36:05 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr1PWe_6YsDG1HBwY0nfTPxkr1r9MvbG5HBn6B9M-K71d6E0BWjXoFDyBlw11eaBmWsa-11lg0SEXkXMIRuMdRfSA0ivH9XtC29KiicIBnAytbGmWpeDNw73MPZPkXcKTSD5TyGbu0ztVH-y-en1UGqLUiyd-Ln8Z8Cz-tSTve1lEgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Tue, 02 Nov 2021 06:36:04 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'c0265dfa-9ba1-4056-88f9-b49371ad2100', + 'x-ms-ests-server', + '2.1.12171.15 - SEASLR2 ProdSlices', + 'Set-Cookie', + 'fpc=AiCkOHiz2wtJhtmyhXezMlw; expires=Thu, 02-Dec-2021 06:36:05 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrLA4yoiIdx9tGK1TZP67RFh1klCxUYh17lrbwW0QbjXmghldTRxjlfCjSMM1C_emVQ24dx6o_1f8aAckn6JCn-0AwEGoMr-PJ_QAa2VtZNzFnO3tXUypLd0Ch3zWgZ8gywm37yxw9Ff2dsbG7FBtwTJvJujpJYku62x53U0Cs8P8gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Tue, 02 Nov 2021 06:36:05 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.2&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=88a65814-dfd7-4203-8af2-6fa38a1818af&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22CP1%22%5D%7D%7D%7D") + .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ + 'Cache-Control', + 'no-store, no-cache', + 'Pragma', + 'no-cache', + 'Content-Type', + 'application/json; charset=utf-8', + 'Expires', + '-1', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '95165a8d-fad7-423b-8e92-c14329062300', + 'x-ms-ests-server', + '2.1.12171.15 - KRSLR1 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', + 'Set-Cookie', + 'fpc=AhpidNzZZqFBgj4hQHEqReMWPr5BAQAAAFXTEtkOAAAA; expires=Thu, 02-Dec-2021 06:36:05 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Tue, 02 Nov 2021 06:36:05 GMT', + 'Content-Length', + '1351' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .patch('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Network/virtualNetworks/virtualnetworkzzz', {"tags":{"tag1":"value1","tag2":"value2"}}) + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef16f9ca4e947cb6c917ff428fde8b2a8db75562ef3f6aaaadffee0073ff868c4df17337c7bb7594f9a695dacdaa25a36771fee9d3fbc3f3b38dfbe37fdf4c1f6feeedefef6c3dde983ed83e9f9ce83e96c72beb7bf7bb7ce9b6a5d4ff3cfeb6abd6aee2eae7fba69f3a6bdbbaaabcb6296d7cddd2f8a695d35d5793b7e21ddde552cf4cfc6fcddc32a6fb30be0f5ddbbbfef47e7bbd3fdc9fef47c7b6f3f236426bbbbdbd9fe83d9767630399f66070f67e7f9bddff7237db1bd5ef1706fec5adb97d534c398f14e9e35edda7c410834f4211351fedca53f3fbaccca75be2b6de4e33dfbf1de47f8f497f0771f11155679dd16b90f853ebc2c1aeaae585ebc6eb396517dbd9e4ef37c96cf2c544bd9b5cc4e763fdfdd7b703ed97ef0f041b6bdffe9a7f7b6b3dd9dfdedfb19d1e6fce0fcfce143f772369bd1fbcdeb55360578edda7df1b2cecf8b778cd6f7cc77f4edeece98ffbbbbfb290f03cff7e5171911b52126a1990adeb4e0e96bc36ad2cc4ea63cff6f63b4bb8408fdd5e84ffa24c0f6eb32a03c98e8deeccb83af6ec103f284738686769af6f63b4d6779995f302fa3cfef7d3ffc76551797d4d7e972b6aa8a65ab74795995c55490fce874994dca1e02fadef362f9f6755e5f16d37cc3abee4dc332786e2f933a178d05f44be4173316a3c4b4fdcb3caf898840c10ef7a39c71793aab8868559b4f41106a709e954d8e2604f297","fc3fb033fba01a050000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json; charset=utf-8', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-request-id', + '29db0728-2037-46a9-a492-3e7cfe64aa72', + 'x-ms-correlation-request-id', + '7da76628-efe7-4161-bb4b-04266e9b5894', + 'Azure-AsyncNotification', + 'Enabled', + 'x-ms-arm-service-request-id', + 'ea730502-c1ce-45e2-a3f5-79c1cec3a36b', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-writes', + '1196', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211102T063608Z:7da76628-efe7-4161-bb4b-04266e9b5894', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Tue, 02 Nov 2021 06:36:08 GMT' +]); diff --git a/sdk/network/arm-network/review/arm-network.api.md b/sdk/network/arm-network/review/arm-network.api.md index 32c1145a8617..064ebe406c64 100644 --- a/sdk/network/arm-network/review/arm-network.api.md +++ b/sdk/network/arm-network/review/arm-network.api.md @@ -1513,6 +1513,11 @@ export interface AzureWebCategoryListResult { value?: AzureWebCategory[]; } +// @public +export interface BackendAddressInboundNatRulePortMappings { + inboundNatRulePortMappings?: InboundNatRulePortMapping[]; +} + // @public export type BackendAddressPool = SubResource & { name?: string; @@ -1525,6 +1530,7 @@ export type BackendAddressPool = SubResource & { readonly loadBalancingRules?: SubResource[]; readonly outboundRule?: SubResource; readonly outboundRules?: SubResource[]; + readonly inboundNatRules?: SubResource[]; readonly provisioningState?: ProvisioningState; }; @@ -2215,8 +2221,8 @@ export type CustomIpPrefix = Resource & { cidr?: string; signedMessage?: string; authorizationMessage?: string; - customIpPrefixParent?: CustomIpPrefix; - readonly childCustomIpPrefixes?: CustomIpPrefix[]; + customIpPrefixParent?: SubResource; + readonly childCustomIpPrefixes?: SubResource[]; commissionedState?: CommissionedState; readonly publicIpPrefixes?: SubResource[]; readonly resourceGuid?: string; @@ -2551,71 +2557,71 @@ export type DscpConfiguration = Resource & { }; // @public -export interface DscpConfigurationListResult { - readonly nextLink?: string; - value?: DscpConfiguration[]; +export interface DscpConfigurationCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface DscpConfigurationOperations { - beginCreateOrUpdate(resourceGroupName: string, dscpConfigurationName: string, parameters: DscpConfiguration, options?: DscpConfigurationOperationsCreateOrUpdateOptionalParams): Promise, DscpConfigurationOperationsCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, dscpConfigurationName: string, parameters: DscpConfiguration, options?: DscpConfigurationOperationsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, dscpConfigurationName: string, options?: DscpConfigurationOperationsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, dscpConfigurationName: string, options?: DscpConfigurationOperationsDeleteOptionalParams): Promise; - get(resourceGroupName: string, dscpConfigurationName: string, options?: DscpConfigurationOperationsGetOptionalParams): Promise; - list(resourceGroupName: string, options?: DscpConfigurationOperationsListOptionalParams): PagedAsyncIterableIterator; - listAll(options?: DscpConfigurationOperationsListAllOptionalParams): PagedAsyncIterableIterator; -} +export type DscpConfigurationCreateOrUpdateResponse = DscpConfiguration; // @public -export interface DscpConfigurationOperationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +export interface DscpConfigurationDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export type DscpConfigurationOperationsCreateOrUpdateResponse = DscpConfiguration; +export interface DscpConfigurationGetOptionalParams extends coreClient.OperationOptions { +} // @public -export interface DscpConfigurationOperationsDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} +export type DscpConfigurationGetResponse = DscpConfiguration; // @public -export interface DscpConfigurationOperationsGetOptionalParams extends coreClient.OperationOptions { +export interface DscpConfigurationListAllNextOptionalParams extends coreClient.OperationOptions { } // @public -export type DscpConfigurationOperationsGetResponse = DscpConfiguration; +export type DscpConfigurationListAllNextResponse = DscpConfigurationListResult; // @public -export interface DscpConfigurationOperationsListAllNextOptionalParams extends coreClient.OperationOptions { +export interface DscpConfigurationListAllOptionalParams extends coreClient.OperationOptions { } // @public -export type DscpConfigurationOperationsListAllNextResponse = DscpConfigurationListResult; +export type DscpConfigurationListAllResponse = DscpConfigurationListResult; // @public -export interface DscpConfigurationOperationsListAllOptionalParams extends coreClient.OperationOptions { +export interface DscpConfigurationListNextOptionalParams extends coreClient.OperationOptions { } // @public -export type DscpConfigurationOperationsListAllResponse = DscpConfigurationListResult; +export type DscpConfigurationListNextResponse = DscpConfigurationListResult; // @public -export interface DscpConfigurationOperationsListNextOptionalParams extends coreClient.OperationOptions { +export interface DscpConfigurationListOptionalParams extends coreClient.OperationOptions { } // @public -export type DscpConfigurationOperationsListNextResponse = DscpConfigurationListResult; +export type DscpConfigurationListResponse = DscpConfigurationListResult; // @public -export interface DscpConfigurationOperationsListOptionalParams extends coreClient.OperationOptions { +export interface DscpConfigurationListResult { + readonly nextLink?: string; + value?: DscpConfiguration[]; } // @public -export type DscpConfigurationOperationsListResponse = DscpConfigurationListResult; +export interface DscpConfigurationOperations { + beginCreateOrUpdate(resourceGroupName: string, dscpConfigurationName: string, parameters: DscpConfiguration, options?: DscpConfigurationCreateOrUpdateOptionalParams): Promise, DscpConfigurationCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, dscpConfigurationName: string, parameters: DscpConfiguration, options?: DscpConfigurationCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, dscpConfigurationName: string, options?: DscpConfigurationDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, dscpConfigurationName: string, options?: DscpConfigurationDeleteOptionalParams): Promise; + get(resourceGroupName: string, dscpConfigurationName: string, options?: DscpConfigurationGetOptionalParams): Promise; + list(resourceGroupName: string, options?: DscpConfigurationListOptionalParams): PagedAsyncIterableIterator; + listAll(options?: DscpConfigurationListAllOptionalParams): PagedAsyncIterableIterator; +} // @public export interface EffectiveNetworkSecurityGroup { @@ -2704,6 +2710,15 @@ export interface EndpointServicesListResult { // @public export type EndpointType = string; +// @public +export type Enum69 = number; + +// @public +export type Enum70 = number; + +// @public +export type Enum71 = number; + // @public export interface ErrorDetails { code?: string; @@ -2736,6 +2751,24 @@ export interface EvaluatedNetworkSecurityGroup { // @public export type EvaluationState = string; +// @public +export interface ExclusionManagedRule { + ruleId: string; +} + +// @public +export interface ExclusionManagedRuleGroup { + ruleGroupName: string; + rules?: ExclusionManagedRule[]; +} + +// @public +export interface ExclusionManagedRuleSet { + ruleGroups?: ExclusionManagedRuleGroup[]; + ruleSetType: string; + ruleSetVersion: string; +} + // @public export interface ExplicitProxySettings { enableExplicitProxy?: boolean; @@ -3804,6 +3837,12 @@ export interface ExtendedLocation { // @public export type ExtendedLocationTypes = string; +// @public +export interface FilterItems { + field?: string; + values?: string[]; +} + // @public export interface FirewallPolicies { beginCreateOrUpdate(resourceGroupName: string, firewallPolicyName: string, parameters: FirewallPolicy, options?: FirewallPoliciesCreateOrUpdateOptionalParams): Promise, FirewallPoliciesCreateOrUpdateResponse>>; @@ -3908,6 +3947,66 @@ export interface FirewallPolicyFilterRuleCollectionAction { // @public export type FirewallPolicyFilterRuleCollectionActionType = string; +// @public +export interface FirewallPolicyIdpsSignatures { + list(resourceGroupName: string, firewallPolicyName: string, parameters: IdpsQueryObject, options?: FirewallPolicyIdpsSignaturesListOptionalParams): Promise; +} + +// @public +export interface FirewallPolicyIdpsSignaturesFilterValues { + list(resourceGroupName: string, firewallPolicyName: string, parameters: SignatureOverridesFilterValuesQuery, options?: FirewallPolicyIdpsSignaturesFilterValuesListOptionalParams): Promise; +} + +// @public +export interface FirewallPolicyIdpsSignaturesFilterValuesListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type FirewallPolicyIdpsSignaturesFilterValuesListResponse = SignatureOverridesFilterValuesResponse; + +// @public +export interface FirewallPolicyIdpsSignaturesListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type FirewallPolicyIdpsSignaturesListResponse = QueryResults; + +// @public +export interface FirewallPolicyIdpsSignaturesOverrides { + get(resourceGroupName: string, firewallPolicyName: string, options?: FirewallPolicyIdpsSignaturesOverridesGetOptionalParams): Promise; + list(resourceGroupName: string, firewallPolicyName: string, options?: FirewallPolicyIdpsSignaturesOverridesListOptionalParams): Promise; + patch(resourceGroupName: string, firewallPolicyName: string, parameters: SignaturesOverrides, options?: FirewallPolicyIdpsSignaturesOverridesPatchOptionalParams): Promise; + put(resourceGroupName: string, firewallPolicyName: string, parameters: SignaturesOverrides, options?: FirewallPolicyIdpsSignaturesOverridesPutOptionalParams): Promise; +} + +// @public +export interface FirewallPolicyIdpsSignaturesOverridesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type FirewallPolicyIdpsSignaturesOverridesGetResponse = SignaturesOverrides; + +// @public +export interface FirewallPolicyIdpsSignaturesOverridesListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type FirewallPolicyIdpsSignaturesOverridesListResponse = SignaturesOverridesList; + +// @public +export interface FirewallPolicyIdpsSignaturesOverridesPatchOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type FirewallPolicyIdpsSignaturesOverridesPatchResponse = SignaturesOverrides; + +// @public +export interface FirewallPolicyIdpsSignaturesOverridesPutOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type FirewallPolicyIdpsSignaturesOverridesPutResponse = SignaturesOverrides; + // @public export interface FirewallPolicyInsights { isEnabled?: boolean; @@ -4464,6 +4563,15 @@ export type HubVirtualNetworkConnectionsListResponse = ListHubVirtualNetworkConn // @public export type HubVirtualNetworkConnectionStatus = string; +// @public +export interface IdpsQueryObject { + filters?: FilterItems[]; + orderBy?: OrderBy; + resultsPerPage?: number; + search?: string; + skip?: number; +} + // @public export type IkeEncryption = string; @@ -4511,6 +4619,14 @@ export interface InboundNatRuleListResult { value?: InboundNatRule[]; } +// @public +export interface InboundNatRulePortMapping { + readonly backendPort?: number; + readonly frontendPort?: number; + readonly inboundNatRuleName?: string; + readonly protocol?: TransportProtocol; +} + // @public export interface InboundNatRules { beginCreateOrUpdate(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, inboundNatRuleParameters: InboundNatRule, options?: InboundNatRulesCreateOrUpdateOptionalParams): Promise, InboundNatRulesCreateOrUpdateResponse>>; @@ -4568,19 +4684,19 @@ export type InboundSecurityRule = SubResource & { }; // @public -export interface InboundSecurityRuleOperations { - beginCreateOrUpdate(resourceGroupName: string, networkVirtualApplianceName: string, ruleCollectionName: string, parameters: InboundSecurityRule, options?: InboundSecurityRuleOperationsCreateOrUpdateOptionalParams): Promise, InboundSecurityRuleOperationsCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, networkVirtualApplianceName: string, ruleCollectionName: string, parameters: InboundSecurityRule, options?: InboundSecurityRuleOperationsCreateOrUpdateOptionalParams): Promise; -} - -// @public -export interface InboundSecurityRuleOperationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +export interface InboundSecurityRuleCreateOrUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export type InboundSecurityRuleOperationsCreateOrUpdateResponse = InboundSecurityRule; +export type InboundSecurityRuleCreateOrUpdateResponse = InboundSecurityRule; + +// @public +export interface InboundSecurityRuleOperations { + beginCreateOrUpdate(resourceGroupName: string, networkVirtualApplianceName: string, ruleCollectionName: string, parameters: InboundSecurityRule, options?: InboundSecurityRuleCreateOrUpdateOptionalParams): Promise, InboundSecurityRuleCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, networkVirtualApplianceName: string, ruleCollectionName: string, parameters: InboundSecurityRule, options?: InboundSecurityRuleCreateOrUpdateOptionalParams): Promise; +} // @public export interface InboundSecurityRules { @@ -5143,6 +5259,8 @@ export enum KnownAzureFirewallSkuName { // @public export enum KnownAzureFirewallSkuTier { + // (undocumented) + Basic = "Basic", // (undocumented) Premium = "Premium", // (undocumented) @@ -5413,6 +5531,36 @@ export enum KnownEndpointType { MMAWorkspaceNetwork = "MMAWorkspaceNetwork" } +// @public +export enum KnownEnum69 { + // (undocumented) + One = 1, + // (undocumented) + Two = 2, + // (undocumented) + Zero = 0 +} + +// @public +export enum KnownEnum70 { + // (undocumented) + One = 1, + // (undocumented) + Three = 3, + // (undocumented) + Two = 2 +} + +// @public +export enum KnownEnum71 { + // (undocumented) + One = 1, + // (undocumented) + Two = 2, + // (undocumented) + Zero = 0 +} + // @public export enum KnownEvaluationState { // (undocumented) @@ -5607,6 +5755,8 @@ export enum KnownFirewallPolicyRuleType { // @public export enum KnownFirewallPolicySkuTier { + // (undocumented) + Basic = "Basic", // (undocumented) Premium = "Premium", // (undocumented) @@ -5921,6 +6071,14 @@ export enum KnownOfficeTrafficCategory { OptimizeAndAllow = "OptimizeAndAllow" } +// @public +export enum KnownOrderByOrder { + // (undocumented) + Ascending = "Ascending", + // (undocumented) + Descending = "Descending" +} + // @public export enum KnownOrigin { // (undocumented) @@ -5939,12 +6097,24 @@ export enum KnownOutputType { // @public export enum KnownOwaspCrsExclusionEntryMatchVariable { + // (undocumented) + RequestArgKeys = "RequestArgKeys", // (undocumented) RequestArgNames = "RequestArgNames", // (undocumented) + RequestArgValues = "RequestArgValues", + // (undocumented) + RequestCookieKeys = "RequestCookieKeys", + // (undocumented) RequestCookieNames = "RequestCookieNames", // (undocumented) - RequestHeaderNames = "RequestHeaderNames" + RequestCookieValues = "RequestCookieValues", + // (undocumented) + RequestHeaderKeys = "RequestHeaderKeys", + // (undocumented) + RequestHeaderNames = "RequestHeaderNames", + // (undocumented) + RequestHeaderValues = "RequestHeaderValues" } // @public @@ -6297,6 +6467,14 @@ export enum KnownVerbosityLevel { Normal = "Normal" } +// @public +export enum KnownVirtualNetworkEncryptionEnforcement { + // (undocumented) + AllowUnencrypted = "AllowUnencrypted", + // (undocumented) + DropUnencrypted = "DropUnencrypted" +} + // @public export enum KnownVirtualNetworkGatewayConnectionMode { // (undocumented) @@ -6685,6 +6863,12 @@ export interface ListP2SVpnGatewaysResult { value?: P2SVpnGateway[]; } +// @public +export interface ListRoutingIntentResult { + nextLink?: string; + value?: RoutingIntent[]; +} + // @public export interface ListVirtualHubBgpConnectionResults { nextLink?: string; @@ -6781,6 +6965,7 @@ export type LoadBalancer = Resource & { // @public export interface LoadBalancerBackendAddress { + readonly inboundNatRulesPortMapping?: NatRulePortMapping[]; ipAddress?: string; loadBalancerFrontendIPConfiguration?: SubResource; name?: string; @@ -7007,6 +7192,8 @@ export interface LoadBalancers { beginCreateOrUpdateAndWait(resourceGroupName: string, loadBalancerName: string, parameters: LoadBalancer, options?: LoadBalancersCreateOrUpdateOptionalParams): Promise; beginDelete(resourceGroupName: string, loadBalancerName: string, options?: LoadBalancersDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, loadBalancerName: string, options?: LoadBalancersDeleteOptionalParams): Promise; + beginListInboundNatRulePortMappings(groupName: string, loadBalancerName: string, backendPoolName: string, parameters: QueryInboundNatRulePortMappingRequest, options?: LoadBalancersListInboundNatRulePortMappingsOptionalParams): Promise, LoadBalancersListInboundNatRulePortMappingsResponse>>; + beginListInboundNatRulePortMappingsAndWait(groupName: string, loadBalancerName: string, backendPoolName: string, parameters: QueryInboundNatRulePortMappingRequest, options?: LoadBalancersListInboundNatRulePortMappingsOptionalParams): Promise; beginSwapPublicIpAddresses(location: string, parameters: LoadBalancerVipSwapRequest, options?: LoadBalancersSwapPublicIpAddressesOptionalParams): Promise, void>>; beginSwapPublicIpAddressesAndWait(location: string, parameters: LoadBalancerVipSwapRequest, options?: LoadBalancersSwapPublicIpAddressesOptionalParams): Promise; get(resourceGroupName: string, loadBalancerName: string, options?: LoadBalancersGetOptionalParams): Promise; @@ -7064,6 +7251,15 @@ export interface LoadBalancersListAllOptionalParams extends coreClient.Operation // @public export type LoadBalancersListAllResponse = LoadBalancerListResult; +// @public +export interface LoadBalancersListInboundNatRulePortMappingsOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type LoadBalancersListInboundNatRulePortMappingsResponse = BackendAddressInboundNatRulePortMappings; + // @public export interface LoadBalancersListNextOptionalParams extends coreClient.OperationOptions { } @@ -7390,6 +7586,13 @@ export type NatRule = FirewallPolicyRule & { translatedFqdn?: string; }; +// @public +export interface NatRulePortMapping { + backendPort?: number; + frontendPort?: number; + inboundNatRuleName?: string; +} + // @public export interface NatRules { beginCreateOrUpdate(resourceGroupName: string, gatewayName: string, natRuleName: string, natRuleParameters: VpnGatewayNatRule, options?: NatRulesCreateOrUpdateOptionalParams): Promise, NatRulesCreateOrUpdateResponse>>; @@ -7486,6 +7689,7 @@ export type NetworkInterface = Resource & { dnsSettings?: NetworkInterfaceDnsSettings; readonly macAddress?: string; readonly primary?: boolean; + readonly vnetEncryptionSupported?: boolean; enableAcceleratedNetworking?: boolean; enableIPForwarding?: boolean; readonly hostedWorkloads?: string[]; @@ -7943,6 +8147,12 @@ export class NetworkManagementClient extends NetworkManagementClientContext { // (undocumented) firewallPolicies: FirewallPolicies; // (undocumented) + firewallPolicyIdpsSignatures: FirewallPolicyIdpsSignatures; + // (undocumented) + firewallPolicyIdpsSignaturesFilterValues: FirewallPolicyIdpsSignaturesFilterValues; + // (undocumented) + firewallPolicyIdpsSignaturesOverrides: FirewallPolicyIdpsSignaturesOverrides; + // (undocumented) firewallPolicyRuleCollectionGroups: FirewallPolicyRuleCollectionGroups; // (undocumented) flowLogs: FlowLogs; @@ -8025,6 +8235,8 @@ export class NetworkManagementClient extends NetworkManagementClientContext { // (undocumented) routeTables: RouteTables; // (undocumented) + routingIntentOperations: RoutingIntentOperations; + // (undocumented) securityPartnerProviders: SecurityPartnerProviders; // (undocumented) securityRules: SecurityRules; @@ -8801,6 +9013,15 @@ export interface OperationsListOptionalParams extends coreClient.OperationOption // @public export type OperationsListResponse = OperationListResult; +// @public +export interface OrderBy { + field?: string; + order?: OrderByOrder; +} + +// @public +export type OrderByOrder = string; + // @public export type Origin = string; @@ -8823,6 +9044,7 @@ export type OutputType = string; // @public export interface OwaspCrsExclusionEntry { + exclusionManagedRuleSets?: ExclusionManagedRuleSet[]; matchVariable: OwaspCrsExclusionEntryMatchVariable; selector: string; selectorMatchOperator: OwaspCrsExclusionEntrySelectorMatchOperator; @@ -10022,6 +10244,18 @@ export interface QosPortRange { start?: number; } +// @public +export interface QueryInboundNatRulePortMappingRequest { + ipAddress?: string; + ipConfiguration?: SubResource; +} + +// @public +export interface QueryResults { + matchingRecordsCount?: number; + signatures?: SingleQueryResult[]; +} + // @public export interface QueryTroubleshootingParameters { targetResourceId: string; @@ -10413,6 +10647,68 @@ export interface RoutingConfiguration { vnetRoutes?: VnetRoute; } +// @public +export type RoutingIntent = SubResource & { + name?: string; + readonly etag?: string; + readonly type?: string; + routingPolicies?: RoutingPolicy[]; + readonly provisioningState?: ProvisioningState; +}; + +// @public +export interface RoutingIntentCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type RoutingIntentCreateOrUpdateResponse = RoutingIntent; + +// @public +export interface RoutingIntentDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface RoutingIntentGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type RoutingIntentGetResponse = RoutingIntent; + +// @public +export interface RoutingIntentListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type RoutingIntentListNextResponse = ListRoutingIntentResult; + +// @public +export interface RoutingIntentListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type RoutingIntentListResponse = ListRoutingIntentResult; + +// @public +export interface RoutingIntentOperations { + beginCreateOrUpdate(resourceGroupName: string, virtualHubName: string, routingIntentName: string, routingIntentParameters: RoutingIntent, options?: RoutingIntentCreateOrUpdateOptionalParams): Promise, RoutingIntentCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, virtualHubName: string, routingIntentName: string, routingIntentParameters: RoutingIntent, options?: RoutingIntentCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, virtualHubName: string, routingIntentName: string, options?: RoutingIntentDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, virtualHubName: string, routingIntentName: string, options?: RoutingIntentDeleteOptionalParams): Promise; + get(resourceGroupName: string, virtualHubName: string, routingIntentName: string, options?: RoutingIntentGetOptionalParams): Promise; + list(resourceGroupName: string, virtualHubName: string, options?: RoutingIntentListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface RoutingPolicy { + destinations: string[]; + name: string; + nextHop: string; +} + // @public export type RoutingState = string; @@ -10814,33 +11110,33 @@ export interface ServiceTagInformation { } // @public -export interface ServiceTagInformationListResult { - readonly nextLink?: string; - value?: ServiceTagInformation[]; +export interface ServiceTagInformationListNextOptionalParams extends coreClient.OperationOptions { + noAddressPrefixes?: boolean; + tagName?: string; } // @public -export interface ServiceTagInformationOperations { - list(location: string, options?: ServiceTagInformationOperationsListOptionalParams): PagedAsyncIterableIterator; -} +export type ServiceTagInformationListNextResponse = ServiceTagInformationListResult; // @public -export interface ServiceTagInformationOperationsListNextOptionalParams extends coreClient.OperationOptions { +export interface ServiceTagInformationListOptionalParams extends coreClient.OperationOptions { noAddressPrefixes?: boolean; tagName?: string; } // @public -export type ServiceTagInformationOperationsListNextResponse = ServiceTagInformationListResult; +export type ServiceTagInformationListResponse = ServiceTagInformationListResult; // @public -export interface ServiceTagInformationOperationsListOptionalParams extends coreClient.OperationOptions { - noAddressPrefixes?: boolean; - tagName?: string; +export interface ServiceTagInformationListResult { + readonly nextLink?: string; + value?: ServiceTagInformation[]; } // @public -export type ServiceTagInformationOperationsListResponse = ServiceTagInformationListResult; +export interface ServiceTagInformationOperations { + list(location: string, options?: ServiceTagInformationListOptionalParams): PagedAsyncIterableIterator; +} // @public export interface ServiceTagInformationPropertiesFormat { @@ -10882,6 +11178,51 @@ export interface SessionIds { // @public export type Severity = string; +// @public +export interface SignatureOverridesFilterValuesQuery { + filterName?: string; +} + +// @public +export interface SignatureOverridesFilterValuesResponse { + filterValues?: string[]; +} + +// @public +export interface SignaturesOverrides { + id?: string; + name?: string; + properties?: SignaturesOverridesProperties; + type?: string; +} + +// @public +export interface SignaturesOverridesList { + value?: SignaturesOverrides[]; +} + +// @public +export interface SignaturesOverridesProperties { + signatures?: { + [propertyName: string]: string; + }; +} + +// @public (undocumented) +export interface SingleQueryResult { + description?: string; + destinationPorts?: string[]; + direction?: Enum71; + group?: string; + inheritedFromParentPolicy?: boolean; + lastUpdated?: string; + mode?: Enum69; + protocol?: string; + severity?: Enum70; + signatureId?: number; + sourcePorts?: string[]; +} + // @public export interface Sku { name?: BastionHostSkuName; @@ -11602,6 +11943,7 @@ export type VirtualNetwork = Resource & { enableVmProtection?: boolean; ddosProtectionPlan?: SubResource; bgpCommunities?: VirtualNetworkBgpCommunities; + encryption?: VirtualNetworkEncryption; ipAllocations?: SubResource[]; }; @@ -11616,6 +11958,15 @@ export interface VirtualNetworkConnectionGatewayReference { id: string; } +// @public +export interface VirtualNetworkEncryption { + enabled: boolean; + enforcement?: VirtualNetworkEncryptionEnforcement; +} + +// @public +export type VirtualNetworkEncryptionEnforcement = string; + // @public export type VirtualNetworkGateway = Resource & { extendedLocation?: ExtendedLocation; @@ -11627,6 +11978,7 @@ export type VirtualNetworkGateway = Resource & { enableBgp?: boolean; enablePrivateIpAddress?: boolean; active?: boolean; + disableIPSecReplayProtection?: boolean; gatewayDefaultSite?: SubResource; sku?: VirtualNetworkGatewaySku; vpnClientConfiguration?: VpnClientConfiguration; @@ -12226,6 +12578,7 @@ export type VirtualNetworkPeering = SubResource & { remoteAddressSpace?: AddressSpace; remoteVirtualNetworkAddressSpace?: AddressSpace; remoteBgpCommunities?: VirtualNetworkBgpCommunities; + readonly remoteVirtualNetworkEncryption?: VirtualNetworkEncryption; peeringState?: VirtualNetworkPeeringState; peeringSyncLevel?: VirtualNetworkPeeringLevel; readonly provisioningState?: ProvisioningState; @@ -13174,6 +13527,7 @@ export interface VpnLinkProviderProperties { // @public export interface VpnNatRuleMapping { addressSpace?: string; + portRange?: string; } // @public diff --git a/sdk/network/arm-network/src/models/index.ts b/sdk/network/arm-network/src/models/index.ts index b1cd0a1af7af..f715e100cf8a 100644 --- a/sdk/network/arm-network/src/models/index.ts +++ b/sdk/network/arm-network/src/models/index.ts @@ -291,6 +291,21 @@ export interface LoadBalancerBackendAddress { readonly networkInterfaceIPConfiguration?: SubResource; /** Reference to the frontend ip address configuration defined in regional loadbalancer. */ loadBalancerFrontendIPConfiguration?: SubResource; + /** + * Collection of inbound NAT rule port mappings. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly inboundNatRulesPortMapping?: NatRulePortMapping[]; +} + +/** Individual port mappings for inbound NAT rule created for backend pool. */ +export interface NatRulePortMapping { + /** Name of inbound NAT rule. */ + inboundNatRuleName?: string; + /** Frontend port. */ + frontendPort?: number; + /** Backend port. */ + backendPort?: number; } /** PrivateLinkConnection properties for the network interface. */ @@ -1649,6 +1664,105 @@ export interface FirewallPolicyRuleCollectionGroupListResult { nextLink?: string; } +/** Will describe the query to run against the IDPS signatures DB */ +export interface IdpsQueryObject { + /** Contain all filters names and values */ + filters?: FilterItems[]; + /** Search term in all columns */ + search?: string; + /** Column to sort response by */ + orderBy?: OrderBy; + /** The number of the results to return in each page */ + resultsPerPage?: number; + /** The number of records matching the filter to skip */ + skip?: number; +} + +/** Will contain the filter name and values to operate on */ +export interface FilterItems { + /** The name of the field we would like to filter */ + field?: string; + /** List of values to filter the current field by */ + values?: string[]; +} + +/** Describes a column to sort */ +export interface OrderBy { + /** Describes the actual column name to sort by */ + field?: string; + /** Describes if results should be in ascending/descending order */ + order?: OrderByOrder; +} + +/** Query result */ +export interface QueryResults { + /** Number of total records matching the query. */ + matchingRecordsCount?: number; + /** Array containing the results of the query */ + signatures?: SingleQueryResult[]; +} + +export interface SingleQueryResult { + /** The ID of the signature */ + signatureId?: number; + /** The current mode enforced, 0 - Disabled, 1 - Alert, 2 -Deny */ + mode?: Enum69; + /** Describes the severity of signature: 1 - Low, 2 - Medium, 3 - High */ + severity?: Enum70; + /** Describes in which direction signature is being enforced: 0 - Inbound, 1 - OutBound, 2 - Bidirectional */ + direction?: Enum71; + /** Describes the groups the signature belongs to */ + group?: string; + /** Describes what is the signature enforces */ + description?: string; + /** Describes the protocol the signatures is being enforced in */ + protocol?: string; + /** Describes the list of source ports related to this signature */ + sourcePorts?: string[]; + /** Describes the list of destination ports related to this signature */ + destinationPorts?: string[]; + /** Describes the last updated time of the signature (provided from 3rd party vendor) */ + lastUpdated?: string; + /** Describes if this override is inherited from base policy or not */ + inheritedFromParentPolicy?: boolean; +} + +/** Contains all specific policy signatures overrides for the IDPS */ +export interface SignaturesOverrides { + /** Contains the name of the resource (default) */ + name?: string; + /** Will contain the resource id of the signature override resource */ + id?: string; + /** Will contain the type of the resource: Microsoft.Network/firewallPolicies/intrusionDetectionSignaturesOverrides */ + type?: string; + /** Will contain the properties of the resource (the actual signature overrides) */ + properties?: SignaturesOverridesProperties; +} + +/** Will contain the properties of the resource (the actual signature overrides) */ +export interface SignaturesOverridesProperties { + /** Dictionary of */ + signatures?: { [propertyName: string]: string }; +} + +/** Describes the filter values possibles for a given column */ +export interface SignatureOverridesFilterValuesQuery { + /** Describes the name of the column which values will be returned */ + filterName?: string; +} + +/** Describes the list of all possible values for a specific filter value */ +export interface SignatureOverridesFilterValuesResponse { + /** Describes the possible values */ + filterValues?: string[]; +} + +/** Describes an object containing an array with a single item */ +export interface SignaturesOverridesList { + /** Describes a list consisting exactly one item describing the policy's signature override status */ + value?: SignaturesOverrides[]; +} + /** Response for the ListIpAllocations API service call. */ export interface IpAllocationListResult { /** A list of IpAllocation resources. */ @@ -1708,7 +1822,7 @@ export interface LoadBalancerFrontendIPConfigurationListResult { /** Response for ListInboundNatRule API service call. */ export interface InboundNatRuleListResult { - /** A list of inbound nat rules in a load balancer. */ + /** A list of inbound NAT rules in a load balancer. */ value?: InboundNatRule[]; /** * The URL to get the next set of results. @@ -1764,6 +1878,44 @@ export interface LoadBalancerVipSwapRequestFrontendIPConfiguration { publicIPAddress?: SubResource; } +/** The request for a QueryInboundNatRulePortMapping API. Either IpConfiguration or IpAddress should be set */ +export interface QueryInboundNatRulePortMappingRequest { + /** NetworkInterfaceIPConfiguration set in load balancer backend address. */ + ipConfiguration?: SubResource; + /** IP address set in load balancer backend address. */ + ipAddress?: string; +} + +/** The response for a QueryInboundNatRulePortMapping API. */ +export interface BackendAddressInboundNatRulePortMappings { + /** Collection of inbound NAT rule port mappings. */ + inboundNatRulePortMappings?: InboundNatRulePortMapping[]; +} + +/** Individual port mappings for inbound NAT rule created for backend pool. */ +export interface InboundNatRulePortMapping { + /** + * Name of inbound NAT rule. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly inboundNatRuleName?: string; + /** + * The reference to the transport protocol used by the inbound NAT rule. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly protocol?: TransportProtocol; + /** + * Frontend port. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly frontendPort?: number; + /** + * Backend port. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly backendPort?: number; +} + /** Response for ListNatGateways API service call. */ export interface NatGatewayListResult { /** A list of Nat Gateways that exists in a resource group. */ @@ -3615,6 +3767,14 @@ export interface VirtualNetworkBgpCommunities { readonly regionalCommunity?: string; } +/** Indicates if encryption is enabled on virtual network and if VM without encryption is allowed in encrypted VNet. */ +export interface VirtualNetworkEncryption { + /** Indicates if encryption is enabled on the virtual network. */ + enabled: boolean; + /** If the encrypted VNet allows VM that does not support encryption */ + enforcement?: VirtualNetworkEncryptionEnforcement; +} + /** Response for the ListVirtualNetworks API service call. */ export interface VirtualNetworkListResult { /** A list of VirtualNetwork resources in a resource group. */ @@ -3852,6 +4012,8 @@ export interface IPConfigurationBgpPeeringAddress { export interface VpnNatRuleMapping { /** Address space for Vpn NatRule mapping. */ addressSpace?: string; + /** Port range for Vpn NatRule mapping. */ + portRange?: string; } /** Response for the ListVirtualNetworkGateways API service call. */ @@ -4701,6 +4863,24 @@ export interface EffectiveRoutesParameters { virtualWanResourceType?: string; } +/** The routing policy object used in a RoutingIntent resource. */ +export interface RoutingPolicy { + /** The unique name for the routing policy. */ + name: string; + /** List of all destinations which this routing policy is applicable to (for example: Internet, PrivateTraffic). */ + destinations: string[]; + /** The next hop resource id on which this routing policy is applicable to. */ + nextHop: string; +} + +/** List of the routing intent result and a URL nextLink to get the next set of results. */ +export interface ListRoutingIntentResult { + /** List of RoutingIntent resource. */ + value?: RoutingIntent[]; + /** URL to get the next set of operation list results if there are any. */ + nextLink?: string; +} + /** Result of the request to list WebApplicationFirewallPolicies. It contains a list of WebApplicationFirewallPolicy objects and a URL link to get the next set of results. */ export interface WebApplicationFirewallPolicyListResult { /** @@ -4786,6 +4966,32 @@ export interface OwaspCrsExclusionEntry { selectorMatchOperator: OwaspCrsExclusionEntrySelectorMatchOperator; /** When matchVariable is a collection, operator used to specify which elements in the collection this exclusion applies to. */ selector: string; + /** The managed rule sets that are associated with the exclusion. */ + exclusionManagedRuleSets?: ExclusionManagedRuleSet[]; +} + +/** Defines a managed rule set for Exclusions. */ +export interface ExclusionManagedRuleSet { + /** Defines the rule set type to use. */ + ruleSetType: string; + /** Defines the version of the rule set to use. */ + ruleSetVersion: string; + /** Defines the rule groups to apply to the rule set. */ + ruleGroups?: ExclusionManagedRuleGroup[]; +} + +/** Defines a managed rule group to use for exclusion. */ +export interface ExclusionManagedRuleGroup { + /** The managed rule group for exclusion. */ + ruleGroupName: string; + /** List of rules that will be excluded. If none specified, all rules in the group will be excluded. */ + rules?: ExclusionManagedRule[]; +} + +/** Defines a managed rule to use for exclusion. */ +export interface ExclusionManagedRule { + /** Identifier for the managed rule. */ + ruleId: string; } /** Defines a managed rule set. */ @@ -5018,6 +5224,11 @@ export type NetworkInterface = Resource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly primary?: boolean; + /** + * Whether the virtual machine this nic is attached to supports encryption. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly vnetEncryptionSupported?: boolean; /** If the network interface is accelerated networking enabled. */ enableAcceleratedNetworking?: boolean; /** Indicates whether IP forwarding is enabled on this network interface. */ @@ -5538,12 +5749,12 @@ export type CustomIpPrefix = Resource & { /** Authorization message for WAN validation. */ authorizationMessage?: string; /** The Parent CustomIpPrefix for IPv6 /64 CustomIpPrefix. */ - customIpPrefixParent?: CustomIpPrefix; + customIpPrefixParent?: SubResource; /** * The list of all Children for IPv6 /48 CustomIpPrefix. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly childCustomIpPrefixes?: CustomIpPrefix[]; + readonly childCustomIpPrefixes?: SubResource[]; /** The commissioned state of the Custom IP Prefix. */ commissionedState?: CommissionedState; /** @@ -5948,7 +6159,7 @@ export type LoadBalancer = Resource & { probes?: Probe[]; /** Collection of inbound NAT Rules used by a load balancer. Defining inbound NAT rules on your load balancer is mutually exclusive with defining an inbound NAT pool. Inbound NAT pools are referenced from virtual machine scale sets. NICs that are associated with individual virtual machines cannot reference an Inbound NAT pool. They have to reference individual inbound NAT rules. */ inboundNatRules?: InboundNatRule[]; - /** Defines an external port range for inbound NAT to a single backend port on NICs associated with a load balancer. Inbound NAT rules are created automatically for each NIC associated with the Load Balancer using an external port from this range. Defining an Inbound NAT pool on your Load Balancer is mutually exclusive with defining inbound Nat rules. Inbound NAT pools are referenced from virtual machine scale sets. NICs that are associated with individual virtual machines cannot reference an inbound NAT pool. They have to reference individual inbound NAT rules. */ + /** Defines an external port range for inbound NAT to a single backend port on NICs associated with a load balancer. Inbound NAT rules are created automatically for each NIC associated with the Load Balancer using an external port from this range. Defining an Inbound NAT pool on your Load Balancer is mutually exclusive with defining inbound NAT rules. Inbound NAT pools are referenced from virtual machine scale sets. NICs that are associated with individual virtual machines cannot reference an inbound NAT pool. They have to reference individual inbound NAT rules. */ inboundNatPools?: InboundNatPool[]; /** The outbound rules. */ outboundRules?: OutboundRule[]; @@ -6219,6 +6430,8 @@ export type VirtualNetwork = Resource & { ddosProtectionPlan?: SubResource; /** Bgp Communities sent over ExpressRoute with each route corresponding to a prefix in this VNET. */ bgpCommunities?: VirtualNetworkBgpCommunities; + /** Indicates if encryption is enabled on virtual network and if VM without encryption is allowed in encrypted VNet. */ + encryption?: VirtualNetworkEncryption; /** Array of IpAllocation which reference this VNET. */ ipAllocations?: SubResource[]; }; @@ -6255,6 +6468,8 @@ export type VirtualNetworkGateway = Resource & { enablePrivateIpAddress?: boolean; /** ActiveActive flag. */ active?: boolean; + /** disableIPSecReplayProtection flag. */ + disableIPSecReplayProtection?: boolean; /** The reference to the LocalNetworkGateway resource which represents local network site having default routes. Assign Null value in case of removing existing default site setting. */ gatewayDefaultSite?: SubResource; /** The reference to the VirtualNetworkGatewaySku resource which represents the SKU selected for Virtual network gateway. */ @@ -7538,6 +7753,11 @@ export type BackendAddressPool = SubResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly outboundRules?: SubResource[]; + /** + * An array of references to inbound NAT rules that use this backend address pool. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly inboundNatRules?: SubResource[]; /** * The provisioning state of the backend address pool resource. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -8860,6 +9080,11 @@ export type VirtualNetworkPeering = SubResource & { remoteVirtualNetworkAddressSpace?: AddressSpace; /** The reference to the remote virtual network's Bgp Communities. */ remoteBgpCommunities?: VirtualNetworkBgpCommunities; + /** + * The reference to the remote virtual network's encryption + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly remoteVirtualNetworkEncryption?: VirtualNetworkEncryption; /** The status of the virtual network peering. */ peeringState?: VirtualNetworkPeeringState; /** The peering sync status of the virtual network peering. */ @@ -9383,6 +9608,29 @@ export type HubRouteTable = SubResource & { readonly provisioningState?: ProvisioningState; }; +/** The routing intent child resource of a Virtual hub. */ +export type RoutingIntent = SubResource & { + /** The name of the resource that is unique within a resource group. This name can be used to access the resource. */ + name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly etag?: string; + /** + * Resource type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** List of routing policies. */ + routingPolicies?: RoutingPolicy[]; + /** + * The provisioning state of the RoutingIntent resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; +}; + /** Route Filter Rule Resource. */ export type PatchRouteFilterRule = SubResource & { /** @@ -10386,7 +10634,8 @@ export type AzureFirewallSkuName = string; /** Known values of {@link AzureFirewallSkuTier} that the service accepts. */ export enum KnownAzureFirewallSkuTier { Standard = "Standard", - Premium = "Premium" + Premium = "Premium", + Basic = "Basic" } /** @@ -10395,7 +10644,8 @@ export enum KnownAzureFirewallSkuTier { * this enum contains the known values that the service supports. * ### Known values supported by the service * **Standard** \ - * **Premium** + * **Premium** \ + * **Basic** */ export type AzureFirewallSkuTier = string; @@ -10808,7 +11058,8 @@ export type FirewallPolicyIntrusionDetectionProtocol = string; /** Known values of {@link FirewallPolicySkuTier} that the service accepts. */ export enum KnownFirewallPolicySkuTier { Standard = "Standard", - Premium = "Premium" + Premium = "Premium", + Basic = "Basic" } /** @@ -10817,7 +11068,8 @@ export enum KnownFirewallPolicySkuTier { * this enum contains the known values that the service supports. * ### Known values supported by the service * **Standard** \ - * **Premium** + * **Premium** \ + * **Basic** */ export type FirewallPolicySkuTier = string; @@ -10837,6 +11089,76 @@ export enum KnownFirewallPolicyRuleCollectionType { */ export type FirewallPolicyRuleCollectionType = string; +/** Known values of {@link OrderByOrder} that the service accepts. */ +export enum KnownOrderByOrder { + Ascending = "Ascending", + Descending = "Descending" +} + +/** + * Defines values for OrderByOrder. \ + * {@link KnownOrderByOrder} can be used interchangeably with OrderByOrder, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Ascending** \ + * **Descending** + */ +export type OrderByOrder = string; + +/** Known values of {@link Enum69} that the service accepts. */ +export enum KnownEnum69 { + Zero = 0, + One = 1, + Two = 2 +} + +/** + * Defines values for Enum69. \ + * {@link KnownEnum69} can be used interchangeably with Enum69, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **0** \ + * **1** \ + * **2** + */ +export type Enum69 = number; + +/** Known values of {@link Enum70} that the service accepts. */ +export enum KnownEnum70 { + One = 1, + Two = 2, + Three = 3 +} + +/** + * Defines values for Enum70. \ + * {@link KnownEnum70} can be used interchangeably with Enum70, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **1** \ + * **2** \ + * **3** + */ +export type Enum70 = number; + +/** Known values of {@link Enum71} that the service accepts. */ +export enum KnownEnum71 { + Zero = 0, + One = 1, + Two = 2 +} + +/** + * Defines values for Enum71. \ + * {@link KnownEnum71} can be used interchangeably with Enum71, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **0** \ + * **1** \ + * **2** + */ +export type Enum71 = number; + /** Known values of {@link IpAllocationType} that the service accepts. */ export enum KnownIpAllocationType { Undefined = "Undefined", @@ -11619,6 +11941,22 @@ export enum KnownUsageUnit { */ export type UsageUnit = string; +/** Known values of {@link VirtualNetworkEncryptionEnforcement} that the service accepts. */ +export enum KnownVirtualNetworkEncryptionEnforcement { + DropUnencrypted = "DropUnencrypted", + AllowUnencrypted = "AllowUnencrypted" +} + +/** + * Defines values for VirtualNetworkEncryptionEnforcement. \ + * {@link KnownVirtualNetworkEncryptionEnforcement} can be used interchangeably with VirtualNetworkEncryptionEnforcement, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **DropUnencrypted** \ + * **AllowUnencrypted** + */ +export type VirtualNetworkEncryptionEnforcement = string; + /** Known values of {@link VirtualNetworkPeeringState} that the service accepts. */ export enum KnownVirtualNetworkPeeringState { Initiated = "Initiated", @@ -12501,7 +12839,13 @@ export type WebApplicationFirewallPolicyResourceState = string; export enum KnownOwaspCrsExclusionEntryMatchVariable { RequestHeaderNames = "RequestHeaderNames", RequestCookieNames = "RequestCookieNames", - RequestArgNames = "RequestArgNames" + RequestArgNames = "RequestArgNames", + RequestHeaderKeys = "RequestHeaderKeys", + RequestHeaderValues = "RequestHeaderValues", + RequestCookieKeys = "RequestCookieKeys", + RequestCookieValues = "RequestCookieValues", + RequestArgKeys = "RequestArgKeys", + RequestArgValues = "RequestArgValues" } /** @@ -12511,7 +12855,13 @@ export enum KnownOwaspCrsExclusionEntryMatchVariable { * ### Known values supported by the service * **RequestHeaderNames** \ * **RequestCookieNames** \ - * **RequestArgNames** + * **RequestArgNames** \ + * **RequestHeaderKeys** \ + * **RequestHeaderValues** \ + * **RequestCookieKeys** \ + * **RequestCookieValues** \ + * **RequestArgKeys** \ + * **RequestArgValues** */ export type OwaspCrsExclusionEntryMatchVariable = string; @@ -13826,7 +14176,7 @@ export interface DdosProtectionPlansListByResourceGroupNextOptionalParams export type DdosProtectionPlansListByResourceGroupNextResponse = DdosProtectionPlanListResult; /** Optional parameters. */ -export interface DscpConfigurationOperationsCreateOrUpdateOptionalParams +export interface DscpConfigurationCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13835,10 +14185,10 @@ export interface DscpConfigurationOperationsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type DscpConfigurationOperationsCreateOrUpdateResponse = DscpConfiguration; +export type DscpConfigurationCreateOrUpdateResponse = DscpConfiguration; /** Optional parameters. */ -export interface DscpConfigurationOperationsDeleteOptionalParams +export interface DscpConfigurationDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13847,39 +14197,39 @@ export interface DscpConfigurationOperationsDeleteOptionalParams } /** Optional parameters. */ -export interface DscpConfigurationOperationsGetOptionalParams +export interface DscpConfigurationGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DscpConfigurationOperationsGetResponse = DscpConfiguration; +export type DscpConfigurationGetResponse = DscpConfiguration; /** Optional parameters. */ -export interface DscpConfigurationOperationsListOptionalParams +export interface DscpConfigurationListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type DscpConfigurationOperationsListResponse = DscpConfigurationListResult; +export type DscpConfigurationListResponse = DscpConfigurationListResult; /** Optional parameters. */ -export interface DscpConfigurationOperationsListAllOptionalParams +export interface DscpConfigurationListAllOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAll operation. */ -export type DscpConfigurationOperationsListAllResponse = DscpConfigurationListResult; +export type DscpConfigurationListAllResponse = DscpConfigurationListResult; /** Optional parameters. */ -export interface DscpConfigurationOperationsListNextOptionalParams +export interface DscpConfigurationListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type DscpConfigurationOperationsListNextResponse = DscpConfigurationListResult; +export type DscpConfigurationListNextResponse = DscpConfigurationListResult; /** Optional parameters. */ -export interface DscpConfigurationOperationsListAllNextOptionalParams +export interface DscpConfigurationListAllNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAllNext operation. */ -export type DscpConfigurationOperationsListAllNextResponse = DscpConfigurationListResult; +export type DscpConfigurationListAllNextResponse = DscpConfigurationListResult; /** Optional parameters. */ export interface AvailableEndpointServicesListOptionalParams @@ -14514,6 +14864,48 @@ export interface FirewallPolicyRuleCollectionGroupsListNextOptionalParams /** Contains response data for the listNext operation. */ export type FirewallPolicyRuleCollectionGroupsListNextResponse = FirewallPolicyRuleCollectionGroupListResult; +/** Optional parameters. */ +export interface FirewallPolicyIdpsSignaturesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type FirewallPolicyIdpsSignaturesListResponse = QueryResults; + +/** Optional parameters. */ +export interface FirewallPolicyIdpsSignaturesOverridesPatchOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the patch operation. */ +export type FirewallPolicyIdpsSignaturesOverridesPatchResponse = SignaturesOverrides; + +/** Optional parameters. */ +export interface FirewallPolicyIdpsSignaturesOverridesPutOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the put operation. */ +export type FirewallPolicyIdpsSignaturesOverridesPutResponse = SignaturesOverrides; + +/** Optional parameters. */ +export interface FirewallPolicyIdpsSignaturesOverridesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type FirewallPolicyIdpsSignaturesOverridesGetResponse = SignaturesOverrides; + +/** Optional parameters. */ +export interface FirewallPolicyIdpsSignaturesOverridesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type FirewallPolicyIdpsSignaturesOverridesListResponse = SignaturesOverridesList; + +/** Optional parameters. */ +export interface FirewallPolicyIdpsSignaturesFilterValuesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type FirewallPolicyIdpsSignaturesFilterValuesListResponse = SignatureOverridesFilterValuesResponse; + /** Optional parameters. */ export interface IpAllocationsDeleteOptionalParams extends coreClient.OperationOptions { @@ -14706,6 +15098,18 @@ export interface LoadBalancersSwapPublicIpAddressesOptionalParams resumeFrom?: string; } +/** Optional parameters. */ +export interface LoadBalancersListInboundNatRulePortMappingsOptionalParams + 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 listInboundNatRulePortMappings operation. */ +export type LoadBalancersListInboundNatRulePortMappingsResponse = BackendAddressInboundNatRulePortMappings; + /** Optional parameters. */ export interface LoadBalancersListAllNextOptionalParams extends coreClient.OperationOptions {} @@ -15368,7 +15772,7 @@ export interface VirtualApplianceSkusListNextOptionalParams export type VirtualApplianceSkusListNextResponse = NetworkVirtualApplianceSkuListResult; /** Optional parameters. */ -export interface InboundSecurityRuleOperationsCreateOrUpdateOptionalParams +export interface InboundSecurityRuleCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15377,7 +15781,7 @@ export interface InboundSecurityRuleOperationsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type InboundSecurityRuleOperationsCreateOrUpdateResponse = InboundSecurityRule; +export type InboundSecurityRuleCreateOrUpdateResponse = InboundSecurityRule; /** Optional parameters. */ export interface NetworkWatchersCreateOrUpdateOptionalParams @@ -16508,7 +16912,7 @@ export interface ServiceTagsListOptionalParams export type ServiceTagsListResponse = ServiceTagsListResult; /** Optional parameters. */ -export interface ServiceTagInformationOperationsListOptionalParams +export interface ServiceTagInformationListOptionalParams extends coreClient.OperationOptions { /** Do not return address prefixes for the tag(s). */ noAddressPrefixes?: boolean; @@ -16517,10 +16921,10 @@ export interface ServiceTagInformationOperationsListOptionalParams } /** Contains response data for the list operation. */ -export type ServiceTagInformationOperationsListResponse = ServiceTagInformationListResult; +export type ServiceTagInformationListResponse = ServiceTagInformationListResult; /** Optional parameters. */ -export interface ServiceTagInformationOperationsListNextOptionalParams +export interface ServiceTagInformationListNextOptionalParams extends coreClient.OperationOptions { /** Do not return address prefixes for the tag(s). */ noAddressPrefixes?: boolean; @@ -16529,7 +16933,7 @@ export interface ServiceTagInformationOperationsListNextOptionalParams } /** Contains response data for the listNext operation. */ -export type ServiceTagInformationOperationsListNextResponse = ServiceTagInformationListResult; +export type ServiceTagInformationListNextResponse = ServiceTagInformationListResult; /** Optional parameters. */ export interface UsagesListOptionalParams extends coreClient.OperationOptions {} @@ -18448,6 +18852,48 @@ export interface HubRouteTablesListNextOptionalParams /** Contains response data for the listNext operation. */ export type HubRouteTablesListNextResponse = ListHubRouteTablesResult; +/** Optional parameters. */ +export interface RoutingIntentCreateOrUpdateOptionalParams + 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 createOrUpdate operation. */ +export type RoutingIntentCreateOrUpdateResponse = RoutingIntent; + +/** Optional parameters. */ +export interface RoutingIntentGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type RoutingIntentGetResponse = RoutingIntent; + +/** Optional parameters. */ +export interface RoutingIntentDeleteOptionalParams + 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; +} + +/** Optional parameters. */ +export interface RoutingIntentListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type RoutingIntentListResponse = ListRoutingIntentResult; + +/** Optional parameters. */ +export interface RoutingIntentListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type RoutingIntentListNextResponse = ListRoutingIntentResult; + /** Optional parameters. */ export interface WebApplicationFirewallPoliciesListOptionalParams extends coreClient.OperationOptions {} diff --git a/sdk/network/arm-network/src/models/mappers.ts b/sdk/network/arm-network/src/models/mappers.ts index 5cfbf3c2562e..c9e23ac5b32c 100644 --- a/sdk/network/arm-network/src/models/mappers.ts +++ b/sdk/network/arm-network/src/models/mappers.ts @@ -737,6 +737,46 @@ export const LoadBalancerBackendAddress: coreClient.CompositeMapper = { name: "Composite", className: "SubResource" } + }, + inboundNatRulesPortMapping: { + serializedName: "properties.inboundNatRulesPortMapping", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NatRulePortMapping" + } + } + } + } + } + } +}; + +export const NatRulePortMapping: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NatRulePortMapping", + modelProperties: { + inboundNatRuleName: { + serializedName: "inboundNatRuleName", + type: { + name: "String" + } + }, + frontendPort: { + serializedName: "frontendPort", + type: { + name: "Number" + } + }, + backendPort: { + serializedName: "backendPort", + type: { + name: "Number" + } } } } @@ -4643,6 +4683,321 @@ export const FirewallPolicyRuleCollectionGroupListResult: coreClient.CompositeMa } }; +export const IdpsQueryObject: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IdpsQueryObject", + modelProperties: { + filters: { + serializedName: "filters", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FilterItems" + } + } + } + }, + search: { + serializedName: "search", + type: { + name: "String" + } + }, + orderBy: { + serializedName: "orderBy", + type: { + name: "Composite", + className: "OrderBy" + } + }, + resultsPerPage: { + constraints: { + InclusiveMaximum: 1000, + InclusiveMinimum: 1 + }, + serializedName: "resultsPerPage", + type: { + name: "Number" + } + }, + skip: { + serializedName: "skip", + type: { + name: "Number" + } + } + } + } +}; + +export const FilterItems: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FilterItems", + modelProperties: { + field: { + serializedName: "field", + type: { + name: "String" + } + }, + values: { + serializedName: "values", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const OrderBy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OrderBy", + modelProperties: { + field: { + serializedName: "field", + type: { + name: "String" + } + }, + order: { + serializedName: "order", + type: { + name: "String" + } + } + } + } +}; + +export const QueryResults: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "QueryResults", + modelProperties: { + matchingRecordsCount: { + serializedName: "matchingRecordsCount", + type: { + name: "Number" + } + }, + signatures: { + serializedName: "signatures", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SingleQueryResult" + } + } + } + } + } + } +}; + +export const SingleQueryResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SingleQueryResult", + modelProperties: { + signatureId: { + serializedName: "signatureId", + type: { + name: "Number" + } + }, + mode: { + serializedName: "mode", + type: { + name: "Number" + } + }, + severity: { + serializedName: "severity", + type: { + name: "Number" + } + }, + direction: { + serializedName: "direction", + type: { + name: "Number" + } + }, + group: { + serializedName: "group", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + protocol: { + serializedName: "protocol", + type: { + name: "String" + } + }, + sourcePorts: { + serializedName: "sourcePorts", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + destinationPorts: { + serializedName: "destinationPorts", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + lastUpdated: { + serializedName: "lastUpdated", + type: { + name: "String" + } + }, + inheritedFromParentPolicy: { + serializedName: "inheritedFromParentPolicy", + type: { + name: "Boolean" + } + } + } + } +}; + +export const SignaturesOverrides: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SignaturesOverrides", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + id: { + serializedName: "id", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "SignaturesOverridesProperties" + } + } + } + } +}; + +export const SignaturesOverridesProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SignaturesOverridesProperties", + modelProperties: { + signatures: { + serializedName: "signatures", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const SignatureOverridesFilterValuesQuery: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SignatureOverridesFilterValuesQuery", + modelProperties: { + filterName: { + serializedName: "filterName", + type: { + name: "String" + } + } + } + } +}; + +export const SignatureOverridesFilterValuesResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SignatureOverridesFilterValuesResponse", + modelProperties: { + filterValues: { + serializedName: "filterValues", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const SignaturesOverridesList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SignaturesOverridesList", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SignaturesOverrides" + } + } + } + } + } + } +}; + export const IpAllocationListResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -4946,11 +5301,91 @@ export const LoadBalancerVipSwapRequestFrontendIPConfiguration: coreClient.Compo name: "String" } }, - publicIPAddress: { - serializedName: "properties.publicIPAddress", + publicIPAddress: { + serializedName: "properties.publicIPAddress", + type: { + name: "Composite", + className: "SubResource" + } + } + } + } +}; + +export const QueryInboundNatRulePortMappingRequest: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "QueryInboundNatRulePortMappingRequest", + modelProperties: { + ipConfiguration: { + serializedName: "ipConfiguration", + type: { + name: "Composite", + className: "SubResource" + } + }, + ipAddress: { + serializedName: "ipAddress", + type: { + name: "String" + } + } + } + } +}; + +export const BackendAddressInboundNatRulePortMappings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BackendAddressInboundNatRulePortMappings", + modelProperties: { + inboundNatRulePortMappings: { + serializedName: "inboundNatRulePortMappings", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InboundNatRulePortMapping" + } + } + } + } + } + } +}; + +export const InboundNatRulePortMapping: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InboundNatRulePortMapping", + modelProperties: { + inboundNatRuleName: { + serializedName: "inboundNatRuleName", + readOnly: true, + type: { + name: "String" + } + }, + protocol: { + serializedName: "protocol", + readOnly: true, type: { - name: "Composite", - className: "SubResource" + name: "String" + } + }, + frontendPort: { + serializedName: "frontendPort", + readOnly: true, + type: { + name: "Number" + } + }, + backendPort: { + serializedName: "backendPort", + readOnly: true, + type: { + name: "Number" } } } @@ -10225,6 +10660,28 @@ export const VirtualNetworkBgpCommunities: coreClient.CompositeMapper = { } }; +export const VirtualNetworkEncryption: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualNetworkEncryption", + modelProperties: { + enabled: { + serializedName: "enabled", + required: true, + type: { + name: "Boolean" + } + }, + enforcement: { + serializedName: "enforcement", + type: { + name: "String" + } + } + } + } +}; + export const VirtualNetworkListResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -10893,6 +11350,12 @@ export const VpnNatRuleMapping: coreClient.CompositeMapper = { type: { name: "String" } + }, + portRange: { + serializedName: "portRange", + type: { + name: "String" + } } } } @@ -13135,6 +13598,68 @@ export const EffectiveRoutesParameters: coreClient.CompositeMapper = { } }; +export const RoutingPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RoutingPolicy", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String" + } + }, + destinations: { + serializedName: "destinations", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + nextHop: { + serializedName: "nextHop", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ListRoutingIntentResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListRoutingIntentResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RoutingIntent" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const WebApplicationFirewallPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -13407,6 +13932,97 @@ export const OwaspCrsExclusionEntry: coreClient.CompositeMapper = { type: { name: "String" } + }, + exclusionManagedRuleSets: { + serializedName: "exclusionManagedRuleSets", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExclusionManagedRuleSet" + } + } + } + } + } + } +}; + +export const ExclusionManagedRuleSet: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExclusionManagedRuleSet", + modelProperties: { + ruleSetType: { + serializedName: "ruleSetType", + required: true, + type: { + name: "String" + } + }, + ruleSetVersion: { + serializedName: "ruleSetVersion", + required: true, + type: { + name: "String" + } + }, + ruleGroups: { + serializedName: "ruleGroups", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExclusionManagedRuleGroup" + } + } + } + } + } + } +}; + +export const ExclusionManagedRuleGroup: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExclusionManagedRuleGroup", + modelProperties: { + ruleGroupName: { + serializedName: "ruleGroupName", + required: true, + type: { + name: "String" + } + }, + rules: { + serializedName: "rules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExclusionManagedRule" + } + } + } + } + } + } +}; + +export const ExclusionManagedRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExclusionManagedRule", + modelProperties: { + ruleId: { + serializedName: "ruleId", + required: true, + type: { + name: "String" + } } } } @@ -14047,6 +14663,13 @@ export const NetworkInterface: coreClient.CompositeMapper = { name: "Boolean" } }, + vnetEncryptionSupported: { + serializedName: "properties.vnetEncryptionSupported", + readOnly: true, + type: { + name: "Boolean" + } + }, enableAcceleratedNetworking: { serializedName: "properties.enableAcceleratedNetworking", type: { @@ -15518,7 +16141,7 @@ export const CustomIpPrefix: coreClient.CompositeMapper = { serializedName: "properties.customIpPrefixParent", type: { name: "Composite", - className: "CustomIpPrefix" + className: "SubResource" } }, childCustomIpPrefixes: { @@ -15529,7 +16152,7 @@ export const CustomIpPrefix: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CustomIpPrefix" + className: "SubResource" } } } @@ -17198,6 +17821,13 @@ export const VirtualNetwork: coreClient.CompositeMapper = { className: "VirtualNetworkBgpCommunities" } }, + encryption: { + serializedName: "properties.encryption", + type: { + name: "Composite", + className: "VirtualNetworkEncryption" + } + }, ipAllocations: { serializedName: "properties.ipAllocations", type: { @@ -17299,6 +17929,12 @@ export const VirtualNetworkGateway: coreClient.CompositeMapper = { name: "Boolean" } }, + disableIPSecReplayProtection: { + serializedName: "properties.disableIPSecReplayProtection", + type: { + name: "Boolean" + } + }, gatewayDefaultSite: { serializedName: "properties.gatewayDefaultSite", type: { @@ -20448,6 +21084,19 @@ export const BackendAddressPool: coreClient.CompositeMapper = { } } }, + inboundNatRules: { + serializedName: "properties.inboundNatRules", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, @@ -23589,6 +24238,13 @@ export const VirtualNetworkPeering: coreClient.CompositeMapper = { className: "VirtualNetworkBgpCommunities" } }, + remoteVirtualNetworkEncryption: { + serializedName: "properties.remoteVirtualNetworkEncryption", + type: { + name: "Composite", + className: "VirtualNetworkEncryption" + } + }, peeringState: { serializedName: "properties.peeringState", type: { @@ -24829,6 +25485,55 @@ export const HubRouteTable: coreClient.CompositeMapper = { } }; +export const RoutingIntent: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RoutingIntent", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + routingPolicies: { + serializedName: "properties.routingPolicies", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RoutingPolicy" + } + } + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + export const PatchRouteFilterRule: coreClient.CompositeMapper = { type: { name: "Composite", diff --git a/sdk/network/arm-network/src/models/parameters.ts b/sdk/network/arm-network/src/models/parameters.ts index 404d51435fd6..4f81f563b0d9 100644 --- a/sdk/network/arm-network/src/models/parameters.ts +++ b/sdk/network/arm-network/src/models/parameters.ts @@ -38,10 +38,14 @@ import { GenerateExpressRoutePortsLOARequest as GenerateExpressRoutePortsLOARequestMapper, FirewallPolicy as FirewallPolicyMapper, FirewallPolicyRuleCollectionGroup as FirewallPolicyRuleCollectionGroupMapper, + IdpsQueryObject as IdpsQueryObjectMapper, + SignaturesOverrides as SignaturesOverridesMapper, + SignatureOverridesFilterValuesQuery as SignatureOverridesFilterValuesQueryMapper, IpAllocation as IpAllocationMapper, IpGroup as IpGroupMapper, LoadBalancer as LoadBalancerMapper, LoadBalancerVipSwapRequest as LoadBalancerVipSwapRequestMapper, + QueryInboundNatRulePortMappingRequest as QueryInboundNatRulePortMappingRequestMapper, BackendAddressPool as BackendAddressPoolMapper, InboundNatRule as InboundNatRuleMapper, NatGateway as NatGatewayMapper, @@ -124,6 +128,7 @@ import { BgpConnection as BgpConnectionMapper, HubIpConfiguration as HubIpConfigurationMapper, HubRouteTable as HubRouteTableMapper, + RoutingIntent as RoutingIntentMapper, WebApplicationFirewallPolicy as WebApplicationFirewallPolicyMapper } from "../models/mappers"; @@ -176,7 +181,7 @@ export const applicationGatewayName: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2021-03-01", + defaultValue: "2021-05-01", isConstant: true, serializedName: "api-version", type: { @@ -722,6 +727,21 @@ export const parameters16: OperationParameter = { mapper: FirewallPolicyRuleCollectionGroupMapper }; +export const parameters17: OperationParameter = { + parameterPath: "parameters", + mapper: IdpsQueryObjectMapper +}; + +export const parameters18: OperationParameter = { + parameterPath: "parameters", + mapper: SignaturesOverridesMapper +}; + +export const parameters19: OperationParameter = { + parameterPath: "parameters", + mapper: SignatureOverridesFilterValuesQueryMapper +}; + export const ipAllocationName: OperationURLParameter = { parameterPath: "ipAllocationName", mapper: { @@ -733,7 +753,7 @@ export const ipAllocationName: OperationURLParameter = { } }; -export const parameters17: OperationParameter = { +export const parameters20: OperationParameter = { parameterPath: "parameters", mapper: IpAllocationMapper }; @@ -749,7 +769,7 @@ export const ipGroupsName: OperationURLParameter = { } }; -export const parameters18: OperationParameter = { +export const parameters21: OperationParameter = { parameterPath: "parameters", mapper: IpGroupMapper }; @@ -765,16 +785,43 @@ export const loadBalancerName: OperationURLParameter = { } }; -export const parameters19: OperationParameter = { +export const parameters22: OperationParameter = { parameterPath: "parameters", mapper: LoadBalancerMapper }; -export const parameters20: OperationParameter = { +export const parameters23: OperationParameter = { parameterPath: "parameters", mapper: LoadBalancerVipSwapRequestMapper }; +export const parameters24: OperationParameter = { + parameterPath: "parameters", + mapper: QueryInboundNatRulePortMappingRequestMapper +}; + +export const groupName: OperationURLParameter = { + parameterPath: "groupName", + mapper: { + serializedName: "groupName", + required: true, + type: { + name: "String" + } + } +}; + +export const backendPoolName: OperationURLParameter = { + parameterPath: "backendPoolName", + mapper: { + serializedName: "backendPoolName", + required: true, + type: { + name: "String" + } + } +}; + export const backendAddressPoolName: OperationURLParameter = { parameterPath: "backendAddressPoolName", mapper: { @@ -786,7 +833,7 @@ export const backendAddressPoolName: OperationURLParameter = { } }; -export const parameters21: OperationParameter = { +export const parameters25: OperationParameter = { parameterPath: "parameters", mapper: BackendAddressPoolMapper }; @@ -862,7 +909,7 @@ export const natGatewayName: OperationURLParameter = { } }; -export const parameters22: OperationParameter = { +export const parameters26: OperationParameter = { parameterPath: "parameters", mapper: NatGatewayMapper }; @@ -894,7 +941,7 @@ export const networkProfileName: OperationURLParameter = { } }; -export const parameters23: OperationParameter = { +export const parameters27: OperationParameter = { parameterPath: "parameters", mapper: NetworkProfileMapper }; @@ -910,7 +957,7 @@ export const networkSecurityGroupName: OperationURLParameter = { } }; -export const parameters24: OperationParameter = { +export const parameters28: OperationParameter = { parameterPath: "parameters", mapper: NetworkSecurityGroupMapper }; @@ -953,7 +1000,7 @@ export const networkVirtualApplianceName: OperationURLParameter = { } }; -export const parameters25: OperationParameter = { +export const parameters29: OperationParameter = { parameterPath: "parameters", mapper: NetworkVirtualApplianceMapper }; @@ -969,7 +1016,7 @@ export const siteName: OperationURLParameter = { } }; -export const parameters26: OperationParameter = { +export const parameters30: OperationParameter = { parameterPath: "parameters", mapper: VirtualApplianceSiteMapper }; @@ -985,7 +1032,7 @@ export const skuName: OperationURLParameter = { } }; -export const parameters27: OperationParameter = { +export const parameters31: OperationParameter = { parameterPath: "parameters", mapper: InboundSecurityRuleMapper }; @@ -1001,7 +1048,7 @@ export const ruleCollectionName: OperationURLParameter = { } }; -export const parameters28: OperationParameter = { +export const parameters32: OperationParameter = { parameterPath: "parameters", mapper: NetworkWatcherMapper }; @@ -1017,67 +1064,67 @@ export const networkWatcherName: OperationURLParameter = { } }; -export const parameters29: OperationParameter = { +export const parameters33: OperationParameter = { parameterPath: "parameters", mapper: TopologyParametersMapper }; -export const parameters30: OperationParameter = { +export const parameters34: OperationParameter = { parameterPath: "parameters", mapper: VerificationIPFlowParametersMapper }; -export const parameters31: OperationParameter = { +export const parameters35: OperationParameter = { parameterPath: "parameters", mapper: NextHopParametersMapper }; -export const parameters32: OperationParameter = { +export const parameters36: OperationParameter = { parameterPath: "parameters", mapper: SecurityGroupViewParametersMapper }; -export const parameters33: OperationParameter = { +export const parameters37: OperationParameter = { parameterPath: "parameters", mapper: TroubleshootingParametersMapper }; -export const parameters34: OperationParameter = { +export const parameters38: OperationParameter = { parameterPath: "parameters", mapper: QueryTroubleshootingParametersMapper }; -export const parameters35: OperationParameter = { +export const parameters39: OperationParameter = { parameterPath: "parameters", mapper: FlowLogInformationMapper }; -export const parameters36: OperationParameter = { +export const parameters40: OperationParameter = { parameterPath: "parameters", mapper: FlowLogStatusParametersMapper }; -export const parameters37: OperationParameter = { +export const parameters41: OperationParameter = { parameterPath: "parameters", mapper: ConnectivityParametersMapper }; -export const parameters38: OperationParameter = { +export const parameters42: OperationParameter = { parameterPath: "parameters", mapper: AzureReachabilityReportParametersMapper }; -export const parameters39: OperationParameter = { +export const parameters43: OperationParameter = { parameterPath: "parameters", mapper: AvailableProvidersListParametersMapper }; -export const parameters40: OperationParameter = { +export const parameters44: OperationParameter = { parameterPath: "parameters", mapper: NetworkConfigurationDiagnosticParametersMapper }; -export const parameters41: OperationParameter = { +export const parameters45: OperationParameter = { parameterPath: "parameters", mapper: PacketCaptureMapper }; @@ -1093,7 +1140,7 @@ export const packetCaptureName: OperationURLParameter = { } }; -export const parameters42: OperationParameter = { +export const parameters46: OperationParameter = { parameterPath: "parameters", mapper: ConnectionMonitorMapper }; @@ -1119,7 +1166,7 @@ export const migrate: OperationQueryParameter = { } }; -export const parameters43: OperationParameter = { +export const parameters47: OperationParameter = { parameterPath: "parameters", mapper: FlowLogMapper }; @@ -1146,7 +1193,7 @@ export const privateEndpointName: OperationURLParameter = { } }; -export const parameters44: OperationParameter = { +export const parameters48: OperationParameter = { parameterPath: "parameters", mapper: PrivateEndpointMapper }; @@ -1162,7 +1209,7 @@ export const privateDnsZoneGroupName: OperationURLParameter = { } }; -export const parameters45: OperationParameter = { +export const parameters49: OperationParameter = { parameterPath: "parameters", mapper: PrivateDnsZoneGroupMapper }; @@ -1178,7 +1225,7 @@ export const serviceName: OperationURLParameter = { } }; -export const parameters46: OperationParameter = { +export const parameters50: OperationParameter = { parameterPath: "parameters", mapper: PrivateLinkServiceMapper }; @@ -1194,12 +1241,12 @@ export const peConnectionName: OperationURLParameter = { } }; -export const parameters47: OperationParameter = { +export const parameters51: OperationParameter = { parameterPath: "parameters", mapper: PrivateEndpointConnectionMapper }; -export const parameters48: OperationParameter = { +export const parameters52: OperationParameter = { parameterPath: "parameters", mapper: CheckPrivateLinkServiceVisibilityRequestMapper }; @@ -1215,7 +1262,7 @@ export const publicIpPrefixName: OperationURLParameter = { } }; -export const parameters49: OperationParameter = { +export const parameters53: OperationParameter = { parameterPath: "parameters", mapper: PublicIPPrefixMapper }; @@ -1263,7 +1310,7 @@ export const routeTableName: OperationURLParameter = { } }; -export const parameters50: OperationParameter = { +export const parameters54: OperationParameter = { parameterPath: "parameters", mapper: RouteTableMapper }; @@ -1295,7 +1342,7 @@ export const securityPartnerProviderName: OperationURLParameter = { } }; -export const parameters51: OperationParameter = { +export const parameters55: OperationParameter = { parameterPath: "parameters", mapper: SecurityPartnerProviderMapper }; @@ -1311,7 +1358,7 @@ export const serviceEndpointPolicyName: OperationURLParameter = { } }; -export const parameters52: OperationParameter = { +export const parameters56: OperationParameter = { parameterPath: "parameters", mapper: ServiceEndpointPolicyMapper }; @@ -1377,7 +1424,7 @@ export const virtualNetworkName: OperationURLParameter = { } }; -export const parameters53: OperationParameter = { +export const parameters57: OperationParameter = { parameterPath: "parameters", mapper: VirtualNetworkMapper }; @@ -1445,7 +1492,7 @@ export const syncRemoteAddressSpace: OperationQueryParameter = { } }; -export const parameters54: OperationParameter = { +export const parameters58: OperationParameter = { parameterPath: "parameters", mapper: VirtualNetworkGatewayMapper }; @@ -1471,7 +1518,7 @@ export const gatewayVip: OperationQueryParameter = { } }; -export const parameters55: OperationParameter = { +export const parameters59: OperationParameter = { parameterPath: "parameters", mapper: VpnClientParametersMapper }; @@ -1502,7 +1549,7 @@ export const vpnclientIpsecParams: OperationParameter = { mapper: VpnClientIPsecParametersMapper }; -export const parameters56: OperationParameter = { +export const parameters60: OperationParameter = { parameterPath: "parameters", mapper: VpnDeviceScriptParametersMapper }; @@ -1518,12 +1565,12 @@ export const virtualNetworkGatewayConnectionName: OperationURLParameter = { } }; -export const parameters57: OperationParameter = { +export const parameters61: OperationParameter = { parameterPath: ["options", "parameters"], mapper: VpnPacketCaptureStartParametersMapper }; -export const parameters58: OperationParameter = { +export const parameters62: OperationParameter = { parameterPath: "parameters", mapper: VpnPacketCaptureStopParametersMapper }; @@ -1533,22 +1580,22 @@ export const request1: OperationParameter = { mapper: P2SVpnConnectionRequestMapper }; -export const parameters59: OperationParameter = { +export const parameters63: OperationParameter = { parameterPath: "parameters", mapper: VirtualNetworkGatewayConnectionMapper }; -export const parameters60: OperationParameter = { +export const parameters64: OperationParameter = { parameterPath: "parameters", mapper: ConnectionSharedKeyMapper }; -export const parameters61: OperationParameter = { +export const parameters65: OperationParameter = { parameterPath: "parameters", mapper: ConnectionResetSharedKeyMapper }; -export const parameters62: OperationParameter = { +export const parameters66: OperationParameter = { parameterPath: "parameters", mapper: LocalNetworkGatewayMapper }; @@ -1594,7 +1641,7 @@ export const tapName: OperationURLParameter = { } }; -export const parameters63: OperationParameter = { +export const parameters67: OperationParameter = { parameterPath: "parameters", mapper: VirtualNetworkTapMapper }; @@ -1615,12 +1662,12 @@ export const virtualRouterName: OperationURLParameter = { } }; -export const parameters64: OperationParameter = { +export const parameters68: OperationParameter = { parameterPath: "parameters", mapper: VirtualRouterMapper }; -export const parameters65: OperationParameter = { +export const parameters69: OperationParameter = { parameterPath: "parameters", mapper: VirtualRouterPeeringMapper }; @@ -1756,12 +1803,12 @@ export const vpnGatewayParameters1: OperationParameter = { mapper: TagsObjectMapper }; -export const parameters66: OperationParameter = { +export const parameters70: OperationParameter = { parameterPath: ["options", "parameters"], mapper: VpnGatewayPacketCaptureStartParametersMapper }; -export const parameters67: OperationParameter = { +export const parameters71: OperationParameter = { parameterPath: ["options", "parameters"], mapper: VpnGatewayPacketCaptureStopParametersMapper }; @@ -1782,7 +1829,7 @@ export const vpnConnectionParameters: OperationParameter = { mapper: VpnConnectionMapper }; -export const parameters68: OperationParameter = { +export const parameters72: OperationParameter = { parameterPath: ["options", "parameters"], mapper: VpnConnectionPacketCaptureStartParametersMapper }; @@ -1798,7 +1845,7 @@ export const vpnConnectionName: OperationURLParameter = { } }; -export const parameters69: OperationParameter = { +export const parameters73: OperationParameter = { parameterPath: ["options", "parameters"], mapper: VpnConnectionPacketCaptureStopParametersMapper }; @@ -1818,7 +1865,7 @@ export const p2SVpnGatewayParameters1: OperationParameter = { mapper: TagsObjectMapper }; -export const parameters70: OperationParameter = { +export const parameters74: OperationParameter = { parameterPath: "parameters", mapper: P2SVpnProfileParametersMapper }; @@ -1870,7 +1917,7 @@ export const putExpressRouteConnectionParameters: OperationParameter = { mapper: ExpressRouteConnectionMapper }; -export const parameters71: OperationParameter = { +export const parameters75: OperationParameter = { parameterPath: "parameters", mapper: BgpConnectionMapper }; @@ -1897,7 +1944,7 @@ export const ipConfigName: OperationURLParameter = { } }; -export const parameters72: OperationParameter = { +export const parameters76: OperationParameter = { parameterPath: "parameters", mapper: HubIpConfigurationMapper }; @@ -1907,6 +1954,22 @@ export const routeTableParameters: OperationParameter = { mapper: HubRouteTableMapper }; +export const routingIntentParameters: OperationParameter = { + parameterPath: "routingIntentParameters", + mapper: RoutingIntentMapper +}; + +export const routingIntentName: OperationURLParameter = { + parameterPath: "routingIntentName", + mapper: { + serializedName: "routingIntentName", + required: true, + type: { + name: "String" + } + } +}; + export const policyName: OperationURLParameter = { parameterPath: "policyName", mapper: { @@ -1921,7 +1984,7 @@ export const policyName: OperationURLParameter = { } }; -export const parameters73: OperationParameter = { +export const parameters77: OperationParameter = { parameterPath: "parameters", mapper: WebApplicationFirewallPolicyMapper }; diff --git a/sdk/network/arm-network/src/networkManagementClient.ts b/sdk/network/arm-network/src/networkManagementClient.ts index 4400e95bb106..ce6cf1e36785 100644 --- a/sdk/network/arm-network/src/networkManagementClient.ts +++ b/sdk/network/arm-network/src/networkManagementClient.ts @@ -8,7 +8,6 @@ import * as coreClient from "@azure/core-client"; import * as coreAuth from "@azure/core-auth"; -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; import { LroImpl } from "./lroImpl"; @@ -44,6 +43,9 @@ import { ExpressRouteLinksImpl, FirewallPoliciesImpl, FirewallPolicyRuleCollectionGroupsImpl, + FirewallPolicyIdpsSignaturesImpl, + FirewallPolicyIdpsSignaturesOverridesImpl, + FirewallPolicyIdpsSignaturesFilterValuesImpl, IpAllocationsImpl, IpGroupsImpl, LoadBalancersImpl, @@ -120,6 +122,7 @@ import { VirtualHubBgpConnectionsImpl, VirtualHubIpConfigurationImpl, HubRouteTablesImpl, + RoutingIntentOperationsImpl, WebApplicationFirewallPoliciesImpl } from "./operations"; import { @@ -154,6 +157,9 @@ import { ExpressRouteLinks, FirewallPolicies, FirewallPolicyRuleCollectionGroups, + FirewallPolicyIdpsSignatures, + FirewallPolicyIdpsSignaturesOverrides, + FirewallPolicyIdpsSignaturesFilterValues, IpAllocations, IpGroups, LoadBalancers, @@ -230,6 +236,7 @@ import { VirtualHubBgpConnections, VirtualHubIpConfiguration, HubRouteTables, + RoutingIntentOperations, WebApplicationFirewallPolicies } from "./operationsInterfaces"; import * as Parameters from "./models/parameters"; @@ -338,6 +345,15 @@ export class NetworkManagementClient extends NetworkManagementClientContext { this.firewallPolicyRuleCollectionGroups = new FirewallPolicyRuleCollectionGroupsImpl( this ); + this.firewallPolicyIdpsSignatures = new FirewallPolicyIdpsSignaturesImpl( + this + ); + this.firewallPolicyIdpsSignaturesOverrides = new FirewallPolicyIdpsSignaturesOverridesImpl( + this + ); + this.firewallPolicyIdpsSignaturesFilterValues = new FirewallPolicyIdpsSignaturesFilterValuesImpl( + this + ); this.ipAllocations = new IpAllocationsImpl(this); this.ipGroups = new IpGroupsImpl(this); this.loadBalancers = new LoadBalancersImpl(this); @@ -444,6 +460,7 @@ export class NetworkManagementClient extends NetworkManagementClientContext { this.virtualHubBgpConnections = new VirtualHubBgpConnectionsImpl(this); this.virtualHubIpConfiguration = new VirtualHubIpConfigurationImpl(this); this.hubRouteTables = new HubRouteTablesImpl(this); + this.routingIntentOperations = new RoutingIntentOperationsImpl(this); this.webApplicationFirewallPolicies = new WebApplicationFirewallPoliciesImpl( this ); @@ -1274,6 +1291,9 @@ export class NetworkManagementClient extends NetworkManagementClientContext { expressRouteLinks: ExpressRouteLinks; firewallPolicies: FirewallPolicies; firewallPolicyRuleCollectionGroups: FirewallPolicyRuleCollectionGroups; + firewallPolicyIdpsSignatures: FirewallPolicyIdpsSignatures; + firewallPolicyIdpsSignaturesOverrides: FirewallPolicyIdpsSignaturesOverrides; + firewallPolicyIdpsSignaturesFilterValues: FirewallPolicyIdpsSignaturesFilterValues; ipAllocations: IpAllocations; ipGroups: IpGroups; loadBalancers: LoadBalancers; @@ -1350,6 +1370,7 @@ export class NetworkManagementClient extends NetworkManagementClientContext { virtualHubBgpConnections: VirtualHubBgpConnections; virtualHubIpConfiguration: VirtualHubIpConfiguration; hubRouteTables: HubRouteTables; + routingIntentOperations: RoutingIntentOperations; webApplicationFirewallPolicies: WebApplicationFirewallPolicies; } // Operation Specifications diff --git a/sdk/network/arm-network/src/networkManagementClientContext.ts b/sdk/network/arm-network/src/networkManagementClientContext.ts index 219ce7411fa1..9b8668eff1bf 100644 --- a/sdk/network/arm-network/src/networkManagementClientContext.ts +++ b/sdk/network/arm-network/src/networkManagementClientContext.ts @@ -42,7 +42,7 @@ export class NetworkManagementClientContext extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-network/26.0.0-beta.1`; + const packageDetails = `azsdk-js-arm-network/26.0.0-beta.2`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` diff --git a/sdk/network/arm-network/src/operations/applicationGatewayPrivateEndpointConnections.ts b/sdk/network/arm-network/src/operations/applicationGatewayPrivateEndpointConnections.ts index 4b1a54cc2684..16343664f2ee 100644 --- a/sdk/network/arm-network/src/operations/applicationGatewayPrivateEndpointConnections.ts +++ b/sdk/network/arm-network/src/operations/applicationGatewayPrivateEndpointConnections.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ApplicationGatewayPrivateEndpointConnections } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/applicationGatewayPrivateLinkResources.ts b/sdk/network/arm-network/src/operations/applicationGatewayPrivateLinkResources.ts index 2c9ba7348309..c01313324c1a 100644 --- a/sdk/network/arm-network/src/operations/applicationGatewayPrivateLinkResources.ts +++ b/sdk/network/arm-network/src/operations/applicationGatewayPrivateLinkResources.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ApplicationGatewayPrivateLinkResources } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/applicationGateways.ts b/sdk/network/arm-network/src/operations/applicationGateways.ts index 54dfb40b3ad9..c04ca34c2a82 100644 --- a/sdk/network/arm-network/src/operations/applicationGateways.ts +++ b/sdk/network/arm-network/src/operations/applicationGateways.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ApplicationGateways } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/applicationSecurityGroups.ts b/sdk/network/arm-network/src/operations/applicationSecurityGroups.ts index 5ea8d4f56c1c..215c892acfa7 100644 --- a/sdk/network/arm-network/src/operations/applicationSecurityGroups.ts +++ b/sdk/network/arm-network/src/operations/applicationSecurityGroups.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ApplicationSecurityGroups } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/availableDelegations.ts b/sdk/network/arm-network/src/operations/availableDelegations.ts index 26e2b1e3fb09..f3960c95563a 100644 --- a/sdk/network/arm-network/src/operations/availableDelegations.ts +++ b/sdk/network/arm-network/src/operations/availableDelegations.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { AvailableDelegations } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/availableEndpointServices.ts b/sdk/network/arm-network/src/operations/availableEndpointServices.ts index 6f4aece6c782..d3d2fa7a8b71 100644 --- a/sdk/network/arm-network/src/operations/availableEndpointServices.ts +++ b/sdk/network/arm-network/src/operations/availableEndpointServices.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { AvailableEndpointServices } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/availablePrivateEndpointTypes.ts b/sdk/network/arm-network/src/operations/availablePrivateEndpointTypes.ts index 721a6afd526b..e81b7f26dcf5 100644 --- a/sdk/network/arm-network/src/operations/availablePrivateEndpointTypes.ts +++ b/sdk/network/arm-network/src/operations/availablePrivateEndpointTypes.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { AvailablePrivateEndpointTypes } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/availableResourceGroupDelegations.ts b/sdk/network/arm-network/src/operations/availableResourceGroupDelegations.ts index 1ab287fdf583..54b38cc37b36 100644 --- a/sdk/network/arm-network/src/operations/availableResourceGroupDelegations.ts +++ b/sdk/network/arm-network/src/operations/availableResourceGroupDelegations.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { AvailableResourceGroupDelegations } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/availableServiceAliases.ts b/sdk/network/arm-network/src/operations/availableServiceAliases.ts index b0fdf6dc088c..a2f569689725 100644 --- a/sdk/network/arm-network/src/operations/availableServiceAliases.ts +++ b/sdk/network/arm-network/src/operations/availableServiceAliases.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { AvailableServiceAliases } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/azureFirewallFqdnTags.ts b/sdk/network/arm-network/src/operations/azureFirewallFqdnTags.ts index c4bc25819bff..51fc5b7fe7d5 100644 --- a/sdk/network/arm-network/src/operations/azureFirewallFqdnTags.ts +++ b/sdk/network/arm-network/src/operations/azureFirewallFqdnTags.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { AzureFirewallFqdnTags } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/azureFirewalls.ts b/sdk/network/arm-network/src/operations/azureFirewalls.ts index cfbdd3aca006..df6dead273db 100644 --- a/sdk/network/arm-network/src/operations/azureFirewalls.ts +++ b/sdk/network/arm-network/src/operations/azureFirewalls.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { AzureFirewalls } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/bastionHosts.ts b/sdk/network/arm-network/src/operations/bastionHosts.ts index 5284a64d5569..87186e9501f1 100644 --- a/sdk/network/arm-network/src/operations/bastionHosts.ts +++ b/sdk/network/arm-network/src/operations/bastionHosts.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { BastionHosts } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/bgpServiceCommunities.ts b/sdk/network/arm-network/src/operations/bgpServiceCommunities.ts index 9f585a19c673..677e157d19cf 100644 --- a/sdk/network/arm-network/src/operations/bgpServiceCommunities.ts +++ b/sdk/network/arm-network/src/operations/bgpServiceCommunities.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { BgpServiceCommunities } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/connectionMonitors.ts b/sdk/network/arm-network/src/operations/connectionMonitors.ts index d5857ae552b1..cc95e1e090db 100644 --- a/sdk/network/arm-network/src/operations/connectionMonitors.ts +++ b/sdk/network/arm-network/src/operations/connectionMonitors.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ConnectionMonitors } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; @@ -645,7 +644,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters42, + requestBody: Parameters.parameters46, queryParameters: [Parameters.apiVersion, Parameters.migrate], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/customIPPrefixes.ts b/sdk/network/arm-network/src/operations/customIPPrefixes.ts index c040ebff9e4b..3f84e03a65bc 100644 --- a/sdk/network/arm-network/src/operations/customIPPrefixes.ts +++ b/sdk/network/arm-network/src/operations/customIPPrefixes.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { CustomIPPrefixes } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/ddosProtectionPlans.ts b/sdk/network/arm-network/src/operations/ddosProtectionPlans.ts index d1f17ea5281b..b981dce9b53a 100644 --- a/sdk/network/arm-network/src/operations/ddosProtectionPlans.ts +++ b/sdk/network/arm-network/src/operations/ddosProtectionPlans.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { DdosProtectionPlans } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/defaultSecurityRules.ts b/sdk/network/arm-network/src/operations/defaultSecurityRules.ts index 2e2522fe06c0..8d05b09da7cc 100644 --- a/sdk/network/arm-network/src/operations/defaultSecurityRules.ts +++ b/sdk/network/arm-network/src/operations/defaultSecurityRules.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { DefaultSecurityRules } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/dscpConfigurationOperations.ts b/sdk/network/arm-network/src/operations/dscpConfigurationOperations.ts index 3482144f7ca5..415ecb88f472 100644 --- a/sdk/network/arm-network/src/operations/dscpConfigurationOperations.ts +++ b/sdk/network/arm-network/src/operations/dscpConfigurationOperations.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { DscpConfigurationOperations } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; @@ -17,19 +16,19 @@ import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; import { LroImpl } from "../lroImpl"; import { DscpConfiguration, - DscpConfigurationOperationsListNextOptionalParams, - DscpConfigurationOperationsListOptionalParams, - DscpConfigurationOperationsListAllNextOptionalParams, - DscpConfigurationOperationsListAllOptionalParams, - DscpConfigurationOperationsCreateOrUpdateOptionalParams, - DscpConfigurationOperationsCreateOrUpdateResponse, - DscpConfigurationOperationsDeleteOptionalParams, - DscpConfigurationOperationsGetOptionalParams, - DscpConfigurationOperationsGetResponse, - DscpConfigurationOperationsListResponse, - DscpConfigurationOperationsListAllResponse, - DscpConfigurationOperationsListNextResponse, - DscpConfigurationOperationsListAllNextResponse + DscpConfigurationListNextOptionalParams, + DscpConfigurationListOptionalParams, + DscpConfigurationListAllNextOptionalParams, + DscpConfigurationListAllOptionalParams, + DscpConfigurationCreateOrUpdateOptionalParams, + DscpConfigurationCreateOrUpdateResponse, + DscpConfigurationDeleteOptionalParams, + DscpConfigurationGetOptionalParams, + DscpConfigurationGetResponse, + DscpConfigurationListResponse, + DscpConfigurationListAllResponse, + DscpConfigurationListNextResponse, + DscpConfigurationListAllNextResponse } from "../models"; /// @@ -53,7 +52,7 @@ export class DscpConfigurationOperationsImpl */ public list( resourceGroupName: string, - options?: DscpConfigurationOperationsListOptionalParams + options?: DscpConfigurationListOptionalParams ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, options); return { @@ -71,7 +70,7 @@ export class DscpConfigurationOperationsImpl private async *listPagingPage( resourceGroupName: string, - options?: DscpConfigurationOperationsListOptionalParams + options?: DscpConfigurationListOptionalParams ): AsyncIterableIterator { let result = await this._list(resourceGroupName, options); yield result.value || []; @@ -89,7 +88,7 @@ export class DscpConfigurationOperationsImpl private async *listPagingAll( resourceGroupName: string, - options?: DscpConfigurationOperationsListOptionalParams + options?: DscpConfigurationListOptionalParams ): AsyncIterableIterator { for await (const page of this.listPagingPage(resourceGroupName, options)) { yield* page; @@ -101,7 +100,7 @@ export class DscpConfigurationOperationsImpl * @param options The options parameters. */ public listAll( - options?: DscpConfigurationOperationsListAllOptionalParams + options?: DscpConfigurationListAllOptionalParams ): PagedAsyncIterableIterator { const iter = this.listAllPagingAll(options); return { @@ -118,7 +117,7 @@ export class DscpConfigurationOperationsImpl } private async *listAllPagingPage( - options?: DscpConfigurationOperationsListAllOptionalParams + options?: DscpConfigurationListAllOptionalParams ): AsyncIterableIterator { let result = await this._listAll(options); yield result.value || []; @@ -131,7 +130,7 @@ export class DscpConfigurationOperationsImpl } private async *listAllPagingAll( - options?: DscpConfigurationOperationsListAllOptionalParams + options?: DscpConfigurationListAllOptionalParams ): AsyncIterableIterator { for await (const page of this.listAllPagingPage(options)) { yield* page; @@ -149,17 +148,17 @@ export class DscpConfigurationOperationsImpl resourceGroupName: string, dscpConfigurationName: string, parameters: DscpConfiguration, - options?: DscpConfigurationOperationsCreateOrUpdateOptionalParams + options?: DscpConfigurationCreateOrUpdateOptionalParams ): Promise< PollerLike< - PollOperationState, - DscpConfigurationOperationsCreateOrUpdateResponse + PollOperationState, + DscpConfigurationCreateOrUpdateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperation = async ( @@ -218,8 +217,8 @@ export class DscpConfigurationOperationsImpl resourceGroupName: string, dscpConfigurationName: string, parameters: DscpConfiguration, - options?: DscpConfigurationOperationsCreateOrUpdateOptionalParams - ): Promise { + options?: DscpConfigurationCreateOrUpdateOptionalParams + ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, dscpConfigurationName, @@ -238,7 +237,7 @@ export class DscpConfigurationOperationsImpl async beginDelete( resourceGroupName: string, dscpConfigurationName: string, - options?: DscpConfigurationOperationsDeleteOptionalParams + options?: DscpConfigurationDeleteOptionalParams ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, @@ -300,7 +299,7 @@ export class DscpConfigurationOperationsImpl async beginDeleteAndWait( resourceGroupName: string, dscpConfigurationName: string, - options?: DscpConfigurationOperationsDeleteOptionalParams + options?: DscpConfigurationDeleteOptionalParams ): Promise { const poller = await this.beginDelete( resourceGroupName, @@ -319,8 +318,8 @@ export class DscpConfigurationOperationsImpl get( resourceGroupName: string, dscpConfigurationName: string, - options?: DscpConfigurationOperationsGetOptionalParams - ): Promise { + options?: DscpConfigurationGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, dscpConfigurationName, options }, getOperationSpec @@ -334,8 +333,8 @@ export class DscpConfigurationOperationsImpl */ private _list( resourceGroupName: string, - options?: DscpConfigurationOperationsListOptionalParams - ): Promise { + options?: DscpConfigurationListOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, listOperationSpec @@ -347,8 +346,8 @@ export class DscpConfigurationOperationsImpl * @param options The options parameters. */ private _listAll( - options?: DscpConfigurationOperationsListAllOptionalParams - ): Promise { + options?: DscpConfigurationListAllOptionalParams + ): Promise { return this.client.sendOperationRequest({ options }, listAllOperationSpec); } @@ -361,8 +360,8 @@ export class DscpConfigurationOperationsImpl private _listNext( resourceGroupName: string, nextLink: string, - options?: DscpConfigurationOperationsListNextOptionalParams - ): Promise { + options?: DscpConfigurationListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, listNextOperationSpec @@ -376,8 +375,8 @@ export class DscpConfigurationOperationsImpl */ private _listAllNext( nextLink: string, - options?: DscpConfigurationOperationsListAllNextOptionalParams - ): Promise { + options?: DscpConfigurationListAllNextOptionalParams + ): Promise { return this.client.sendOperationRequest( { nextLink, options }, listAllNextOperationSpec diff --git a/sdk/network/arm-network/src/operations/expressRouteCircuitAuthorizations.ts b/sdk/network/arm-network/src/operations/expressRouteCircuitAuthorizations.ts index d54389f6a598..ffb05417e599 100644 --- a/sdk/network/arm-network/src/operations/expressRouteCircuitAuthorizations.ts +++ b/sdk/network/arm-network/src/operations/expressRouteCircuitAuthorizations.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ExpressRouteCircuitAuthorizations } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/expressRouteCircuitConnections.ts b/sdk/network/arm-network/src/operations/expressRouteCircuitConnections.ts index 6f1b6ea96628..2b424f2a6c11 100644 --- a/sdk/network/arm-network/src/operations/expressRouteCircuitConnections.ts +++ b/sdk/network/arm-network/src/operations/expressRouteCircuitConnections.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ExpressRouteCircuitConnections } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/expressRouteCircuitPeerings.ts b/sdk/network/arm-network/src/operations/expressRouteCircuitPeerings.ts index 7bf5c72097e6..476cd39af06e 100644 --- a/sdk/network/arm-network/src/operations/expressRouteCircuitPeerings.ts +++ b/sdk/network/arm-network/src/operations/expressRouteCircuitPeerings.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ExpressRouteCircuitPeerings } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/expressRouteCircuits.ts b/sdk/network/arm-network/src/operations/expressRouteCircuits.ts index 990601d0039d..91008dc697b7 100644 --- a/sdk/network/arm-network/src/operations/expressRouteCircuits.ts +++ b/sdk/network/arm-network/src/operations/expressRouteCircuits.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ExpressRouteCircuits } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/expressRouteCrossConnectionPeerings.ts b/sdk/network/arm-network/src/operations/expressRouteCrossConnectionPeerings.ts index 87601fb06e98..534f7db92c79 100644 --- a/sdk/network/arm-network/src/operations/expressRouteCrossConnectionPeerings.ts +++ b/sdk/network/arm-network/src/operations/expressRouteCrossConnectionPeerings.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ExpressRouteCrossConnectionPeerings } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/expressRouteCrossConnections.ts b/sdk/network/arm-network/src/operations/expressRouteCrossConnections.ts index bd2f639cfbcb..40a1954a6ba6 100644 --- a/sdk/network/arm-network/src/operations/expressRouteCrossConnections.ts +++ b/sdk/network/arm-network/src/operations/expressRouteCrossConnections.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ExpressRouteCrossConnections } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/expressRouteLinks.ts b/sdk/network/arm-network/src/operations/expressRouteLinks.ts index 9f20178be5f7..088a8479e91a 100644 --- a/sdk/network/arm-network/src/operations/expressRouteLinks.ts +++ b/sdk/network/arm-network/src/operations/expressRouteLinks.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ExpressRouteLinks } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/expressRoutePorts.ts b/sdk/network/arm-network/src/operations/expressRoutePorts.ts index 650db0e68195..83260000b985 100644 --- a/sdk/network/arm-network/src/operations/expressRoutePorts.ts +++ b/sdk/network/arm-network/src/operations/expressRoutePorts.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ExpressRoutePorts } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/expressRoutePortsLocations.ts b/sdk/network/arm-network/src/operations/expressRoutePortsLocations.ts index 779bd893e537..a7b55a5519b2 100644 --- a/sdk/network/arm-network/src/operations/expressRoutePortsLocations.ts +++ b/sdk/network/arm-network/src/operations/expressRoutePortsLocations.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ExpressRoutePortsLocations } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/expressRouteServiceProviders.ts b/sdk/network/arm-network/src/operations/expressRouteServiceProviders.ts index ec22e853cd8f..7979c3b75414 100644 --- a/sdk/network/arm-network/src/operations/expressRouteServiceProviders.ts +++ b/sdk/network/arm-network/src/operations/expressRouteServiceProviders.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ExpressRouteServiceProviders } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/firewallPolicies.ts b/sdk/network/arm-network/src/operations/firewallPolicies.ts index 2111e206ee83..bf4c5fe1732b 100644 --- a/sdk/network/arm-network/src/operations/firewallPolicies.ts +++ b/sdk/network/arm-network/src/operations/firewallPolicies.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { FirewallPolicies } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/firewallPolicyIdpsSignatures.ts b/sdk/network/arm-network/src/operations/firewallPolicyIdpsSignatures.ts new file mode 100644 index 000000000000..defdbe827c8f --- /dev/null +++ b/sdk/network/arm-network/src/operations/firewallPolicyIdpsSignatures.ts @@ -0,0 +1,77 @@ +/* + * 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 { FirewallPolicyIdpsSignatures } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClientContext } from "../networkManagementClientContext"; +import { + IdpsQueryObject, + FirewallPolicyIdpsSignaturesListOptionalParams, + FirewallPolicyIdpsSignaturesListResponse +} from "../models"; + +/** Class containing FirewallPolicyIdpsSignatures operations. */ +export class FirewallPolicyIdpsSignaturesImpl + implements FirewallPolicyIdpsSignatures { + private readonly client: NetworkManagementClientContext; + + /** + * Initialize a new instance of the class FirewallPolicyIdpsSignatures class. + * @param client Reference to the service client + */ + constructor(client: NetworkManagementClientContext) { + this.client = client; + } + + /** + * Retrieves the current status of IDPS signatures for the relevant policy + * @param resourceGroupName The name of the resource group. + * @param firewallPolicyName The name of the Firewall Policy. + * @param parameters Will describe the query to run against the IDPS signatures DB + * @param options The options parameters. + */ + list( + resourceGroupName: string, + firewallPolicyName: string, + parameters: IdpsQueryObject, + options?: FirewallPolicyIdpsSignaturesListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, firewallPolicyName, parameters, options }, + listOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/listIdpsSignatures", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.QueryResults + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.parameters17, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.firewallPolicyName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; diff --git a/sdk/network/arm-network/src/operations/firewallPolicyIdpsSignaturesFilterValues.ts b/sdk/network/arm-network/src/operations/firewallPolicyIdpsSignaturesFilterValues.ts new file mode 100644 index 000000000000..ba06e087f3b6 --- /dev/null +++ b/sdk/network/arm-network/src/operations/firewallPolicyIdpsSignaturesFilterValues.ts @@ -0,0 +1,77 @@ +/* + * 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 { FirewallPolicyIdpsSignaturesFilterValues } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClientContext } from "../networkManagementClientContext"; +import { + SignatureOverridesFilterValuesQuery, + FirewallPolicyIdpsSignaturesFilterValuesListOptionalParams, + FirewallPolicyIdpsSignaturesFilterValuesListResponse +} from "../models"; + +/** Class containing FirewallPolicyIdpsSignaturesFilterValues operations. */ +export class FirewallPolicyIdpsSignaturesFilterValuesImpl + implements FirewallPolicyIdpsSignaturesFilterValues { + private readonly client: NetworkManagementClientContext; + + /** + * Initialize a new instance of the class FirewallPolicyIdpsSignaturesFilterValues class. + * @param client Reference to the service client + */ + constructor(client: NetworkManagementClientContext) { + this.client = client; + } + + /** + * Retrieves the current filter values for the signatures overrides + * @param resourceGroupName The name of the resource group. + * @param firewallPolicyName The name of the Firewall Policy. + * @param parameters Describes the filter values possibles for a given column + * @param options The options parameters. + */ + list( + resourceGroupName: string, + firewallPolicyName: string, + parameters: SignatureOverridesFilterValuesQuery, + options?: FirewallPolicyIdpsSignaturesFilterValuesListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, firewallPolicyName, parameters, options }, + listOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/listIdpsFilterOptions", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.SignatureOverridesFilterValuesResponse + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.parameters19, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.firewallPolicyName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; diff --git a/sdk/network/arm-network/src/operations/firewallPolicyIdpsSignaturesOverrides.ts b/sdk/network/arm-network/src/operations/firewallPolicyIdpsSignaturesOverrides.ts new file mode 100644 index 000000000000..263f669c67cd --- /dev/null +++ b/sdk/network/arm-network/src/operations/firewallPolicyIdpsSignaturesOverrides.ts @@ -0,0 +1,201 @@ +/* + * 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 { FirewallPolicyIdpsSignaturesOverrides } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClientContext } from "../networkManagementClientContext"; +import { + SignaturesOverrides, + FirewallPolicyIdpsSignaturesOverridesPatchOptionalParams, + FirewallPolicyIdpsSignaturesOverridesPatchResponse, + FirewallPolicyIdpsSignaturesOverridesPutOptionalParams, + FirewallPolicyIdpsSignaturesOverridesPutResponse, + FirewallPolicyIdpsSignaturesOverridesGetOptionalParams, + FirewallPolicyIdpsSignaturesOverridesGetResponse, + FirewallPolicyIdpsSignaturesOverridesListOptionalParams, + FirewallPolicyIdpsSignaturesOverridesListResponse +} from "../models"; + +/** Class containing FirewallPolicyIdpsSignaturesOverrides operations. */ +export class FirewallPolicyIdpsSignaturesOverridesImpl + implements FirewallPolicyIdpsSignaturesOverrides { + private readonly client: NetworkManagementClientContext; + + /** + * Initialize a new instance of the class FirewallPolicyIdpsSignaturesOverrides class. + * @param client Reference to the service client + */ + constructor(client: NetworkManagementClientContext) { + this.client = client; + } + + /** + * Will update the status of policy's signature overrides for IDPS + * @param resourceGroupName The name of the resource group. + * @param firewallPolicyName The name of the Firewall Policy. + * @param parameters Will contain all properties of the object to put + * @param options The options parameters. + */ + patch( + resourceGroupName: string, + firewallPolicyName: string, + parameters: SignaturesOverrides, + options?: FirewallPolicyIdpsSignaturesOverridesPatchOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, firewallPolicyName, parameters, options }, + patchOperationSpec + ); + } + + /** + * Will override/create a new signature overrides for the policy's IDPS + * @param resourceGroupName The name of the resource group. + * @param firewallPolicyName The name of the Firewall Policy. + * @param parameters Will contain all properties of the object to put + * @param options The options parameters. + */ + put( + resourceGroupName: string, + firewallPolicyName: string, + parameters: SignaturesOverrides, + options?: FirewallPolicyIdpsSignaturesOverridesPutOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, firewallPolicyName, parameters, options }, + putOperationSpec + ); + } + + /** + * Returns all signatures overrides for a specific policy. + * @param resourceGroupName The name of the resource group. + * @param firewallPolicyName The name of the Firewall Policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + firewallPolicyName: string, + options?: FirewallPolicyIdpsSignaturesOverridesGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, firewallPolicyName, options }, + getOperationSpec + ); + } + + /** + * Returns all signatures overrides objects for a specific policy as a list containing a single value. + * @param resourceGroupName The name of the resource group. + * @param firewallPolicyName The name of the Firewall Policy. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + firewallPolicyName: string, + options?: FirewallPolicyIdpsSignaturesOverridesListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, firewallPolicyName, options }, + listOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const patchOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/signatureOverrides/default", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.SignaturesOverrides + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.parameters18, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.firewallPolicyName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const putOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/signatureOverrides/default", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.SignaturesOverrides + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.parameters18, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.firewallPolicyName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/signatureOverrides/default", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SignaturesOverrides + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.firewallPolicyName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/signatureOverrides", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SignaturesOverridesList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.firewallPolicyName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/network/arm-network/src/operations/firewallPolicyRuleCollectionGroups.ts b/sdk/network/arm-network/src/operations/firewallPolicyRuleCollectionGroups.ts index 415b391ac705..6fe2b65568a7 100644 --- a/sdk/network/arm-network/src/operations/firewallPolicyRuleCollectionGroups.ts +++ b/sdk/network/arm-network/src/operations/firewallPolicyRuleCollectionGroups.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { FirewallPolicyRuleCollectionGroups } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/flowLogs.ts b/sdk/network/arm-network/src/operations/flowLogs.ts index 5326ce2e3a5c..e3339f9a0c66 100644 --- a/sdk/network/arm-network/src/operations/flowLogs.ts +++ b/sdk/network/arm-network/src/operations/flowLogs.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { FlowLogs } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; @@ -409,7 +408,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters43, + requestBody: Parameters.parameters47, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/hubRouteTables.ts b/sdk/network/arm-network/src/operations/hubRouteTables.ts index 79324944db9f..0a2d10948c0d 100644 --- a/sdk/network/arm-network/src/operations/hubRouteTables.ts +++ b/sdk/network/arm-network/src/operations/hubRouteTables.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { HubRouteTables } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/hubVirtualNetworkConnections.ts b/sdk/network/arm-network/src/operations/hubVirtualNetworkConnections.ts index fa2dcd9b9422..250e2a4369e5 100644 --- a/sdk/network/arm-network/src/operations/hubVirtualNetworkConnections.ts +++ b/sdk/network/arm-network/src/operations/hubVirtualNetworkConnections.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { HubVirtualNetworkConnections } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/inboundNatRules.ts b/sdk/network/arm-network/src/operations/inboundNatRules.ts index 62ff88d4da86..efaf49ec87c5 100644 --- a/sdk/network/arm-network/src/operations/inboundNatRules.ts +++ b/sdk/network/arm-network/src/operations/inboundNatRules.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { InboundNatRules } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; @@ -42,7 +41,7 @@ export class InboundNatRulesImpl implements InboundNatRules { } /** - * Gets all the inbound nat rules in a load balancer. + * Gets all the inbound NAT rules in a load balancer. * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param options The options parameters. @@ -109,7 +108,7 @@ export class InboundNatRulesImpl implements InboundNatRules { } /** - * Gets all the inbound nat rules in a load balancer. + * Gets all the inbound NAT rules in a load balancer. * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param options The options parameters. @@ -126,10 +125,10 @@ export class InboundNatRulesImpl implements InboundNatRules { } /** - * Deletes the specified load balancer inbound nat rule. + * Deletes the specified load balancer inbound NAT rule. * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. - * @param inboundNatRuleName The name of the inbound nat rule. + * @param inboundNatRuleName The name of the inbound NAT rule. * @param options The options parameters. */ async beginDelete( @@ -190,10 +189,10 @@ export class InboundNatRulesImpl implements InboundNatRules { } /** - * Deletes the specified load balancer inbound nat rule. + * Deletes the specified load balancer inbound NAT rule. * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. - * @param inboundNatRuleName The name of the inbound nat rule. + * @param inboundNatRuleName The name of the inbound NAT rule. * @param options The options parameters. */ async beginDeleteAndWait( @@ -212,10 +211,10 @@ export class InboundNatRulesImpl implements InboundNatRules { } /** - * Gets the specified load balancer inbound nat rule. + * Gets the specified load balancer inbound NAT rule. * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. - * @param inboundNatRuleName The name of the inbound nat rule. + * @param inboundNatRuleName The name of the inbound NAT rule. * @param options The options parameters. */ get( @@ -231,11 +230,11 @@ export class InboundNatRulesImpl implements InboundNatRules { } /** - * Creates or updates a load balancer inbound nat rule. + * Creates or updates a load balancer inbound NAT rule. * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. - * @param inboundNatRuleName The name of the inbound nat rule. - * @param inboundNatRuleParameters Parameters supplied to the create or update inbound nat rule + * @param inboundNatRuleName The name of the inbound NAT rule. + * @param inboundNatRuleParameters Parameters supplied to the create or update inbound NAT rule * operation. * @param options The options parameters. */ @@ -309,11 +308,11 @@ export class InboundNatRulesImpl implements InboundNatRules { } /** - * Creates or updates a load balancer inbound nat rule. + * Creates or updates a load balancer inbound NAT rule. * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. - * @param inboundNatRuleName The name of the inbound nat rule. - * @param inboundNatRuleParameters Parameters supplied to the create or update inbound nat rule + * @param inboundNatRuleName The name of the inbound NAT rule. + * @param inboundNatRuleParameters Parameters supplied to the create or update inbound NAT rule * operation. * @param options The options parameters. */ diff --git a/sdk/network/arm-network/src/operations/inboundSecurityRuleOperations.ts b/sdk/network/arm-network/src/operations/inboundSecurityRuleOperations.ts index bc2c2316408e..66daa8571c1d 100644 --- a/sdk/network/arm-network/src/operations/inboundSecurityRuleOperations.ts +++ b/sdk/network/arm-network/src/operations/inboundSecurityRuleOperations.ts @@ -15,8 +15,8 @@ import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; import { LroImpl } from "../lroImpl"; import { InboundSecurityRule, - InboundSecurityRuleOperationsCreateOrUpdateOptionalParams, - InboundSecurityRuleOperationsCreateOrUpdateResponse + InboundSecurityRuleCreateOrUpdateOptionalParams, + InboundSecurityRuleCreateOrUpdateResponse } from "../models"; /** Class containing InboundSecurityRuleOperations operations. */ @@ -46,17 +46,17 @@ export class InboundSecurityRuleOperationsImpl networkVirtualApplianceName: string, ruleCollectionName: string, parameters: InboundSecurityRule, - options?: InboundSecurityRuleOperationsCreateOrUpdateOptionalParams + options?: InboundSecurityRuleCreateOrUpdateOptionalParams ): Promise< PollerLike< - PollOperationState, - InboundSecurityRuleOperationsCreateOrUpdateResponse + PollOperationState, + InboundSecurityRuleCreateOrUpdateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperation = async ( @@ -124,8 +124,8 @@ export class InboundSecurityRuleOperationsImpl networkVirtualApplianceName: string, ruleCollectionName: string, parameters: InboundSecurityRule, - options?: InboundSecurityRuleOperationsCreateOrUpdateOptionalParams - ): Promise { + options?: InboundSecurityRuleCreateOrUpdateOptionalParams + ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, networkVirtualApplianceName, @@ -160,7 +160,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters27, + requestBody: Parameters.parameters31, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/index.ts b/sdk/network/arm-network/src/operations/index.ts index 605df06c1268..19e1496111f9 100644 --- a/sdk/network/arm-network/src/operations/index.ts +++ b/sdk/network/arm-network/src/operations/index.ts @@ -37,6 +37,9 @@ export * from "./expressRoutePorts"; export * from "./expressRouteLinks"; export * from "./firewallPolicies"; export * from "./firewallPolicyRuleCollectionGroups"; +export * from "./firewallPolicyIdpsSignatures"; +export * from "./firewallPolicyIdpsSignaturesOverrides"; +export * from "./firewallPolicyIdpsSignaturesFilterValues"; export * from "./ipAllocations"; export * from "./ipGroups"; export * from "./loadBalancers"; @@ -113,4 +116,5 @@ export * from "./virtualHubBgpConnection"; export * from "./virtualHubBgpConnections"; export * from "./virtualHubIpConfiguration"; export * from "./hubRouteTables"; +export * from "./routingIntentOperations"; export * from "./webApplicationFirewallPolicies"; diff --git a/sdk/network/arm-network/src/operations/ipAllocations.ts b/sdk/network/arm-network/src/operations/ipAllocations.ts index 693a2e75588c..2ac419104deb 100644 --- a/sdk/network/arm-network/src/operations/ipAllocations.ts +++ b/sdk/network/arm-network/src/operations/ipAllocations.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { IpAllocations } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; @@ -477,7 +476,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters17, + requestBody: Parameters.parameters20, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/ipGroups.ts b/sdk/network/arm-network/src/operations/ipGroups.ts index 451c25c4f69d..aca79d795a78 100644 --- a/sdk/network/arm-network/src/operations/ipGroups.ts +++ b/sdk/network/arm-network/src/operations/ipGroups.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { IpGroups } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; @@ -454,7 +453,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters18, + requestBody: Parameters.parameters21, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/loadBalancerBackendAddressPools.ts b/sdk/network/arm-network/src/operations/loadBalancerBackendAddressPools.ts index eb0301752308..1baaaab6fac6 100644 --- a/sdk/network/arm-network/src/operations/loadBalancerBackendAddressPools.ts +++ b/sdk/network/arm-network/src/operations/loadBalancerBackendAddressPools.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { LoadBalancerBackendAddressPools } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; @@ -423,7 +422,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters21, + requestBody: Parameters.parameters25, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/loadBalancerFrontendIPConfigurations.ts b/sdk/network/arm-network/src/operations/loadBalancerFrontendIPConfigurations.ts index 7266b51643a3..da5c31cbeedf 100644 --- a/sdk/network/arm-network/src/operations/loadBalancerFrontendIPConfigurations.ts +++ b/sdk/network/arm-network/src/operations/loadBalancerFrontendIPConfigurations.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { LoadBalancerFrontendIPConfigurations } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/loadBalancerLoadBalancingRules.ts b/sdk/network/arm-network/src/operations/loadBalancerLoadBalancingRules.ts index 7f5b85462b9d..f9a0011d0d22 100644 --- a/sdk/network/arm-network/src/operations/loadBalancerLoadBalancingRules.ts +++ b/sdk/network/arm-network/src/operations/loadBalancerLoadBalancingRules.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { LoadBalancerLoadBalancingRules } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/loadBalancerNetworkInterfaces.ts b/sdk/network/arm-network/src/operations/loadBalancerNetworkInterfaces.ts index 7e8c05e3880e..bb760cce3eac 100644 --- a/sdk/network/arm-network/src/operations/loadBalancerNetworkInterfaces.ts +++ b/sdk/network/arm-network/src/operations/loadBalancerNetworkInterfaces.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { LoadBalancerNetworkInterfaces } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/loadBalancerOutboundRules.ts b/sdk/network/arm-network/src/operations/loadBalancerOutboundRules.ts index 3309736bc98f..6686c5af5a51 100644 --- a/sdk/network/arm-network/src/operations/loadBalancerOutboundRules.ts +++ b/sdk/network/arm-network/src/operations/loadBalancerOutboundRules.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { LoadBalancerOutboundRules } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/loadBalancerProbes.ts b/sdk/network/arm-network/src/operations/loadBalancerProbes.ts index 37b1c7f85e99..33af30e0d941 100644 --- a/sdk/network/arm-network/src/operations/loadBalancerProbes.ts +++ b/sdk/network/arm-network/src/operations/loadBalancerProbes.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { LoadBalancerProbes } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/loadBalancers.ts b/sdk/network/arm-network/src/operations/loadBalancers.ts index f6210aa1a43f..d68e62c3b59e 100644 --- a/sdk/network/arm-network/src/operations/loadBalancers.ts +++ b/sdk/network/arm-network/src/operations/loadBalancers.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { LoadBalancers } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; @@ -33,6 +32,9 @@ import { LoadBalancersListResponse, LoadBalancerVipSwapRequest, LoadBalancersSwapPublicIpAddressesOptionalParams, + QueryInboundNatRulePortMappingRequest, + LoadBalancersListInboundNatRulePortMappingsOptionalParams, + LoadBalancersListInboundNatRulePortMappingsResponse, LoadBalancersListAllNextResponse, LoadBalancersListNextResponse } from "../models"; @@ -456,6 +458,102 @@ export class LoadBalancersImpl implements LoadBalancers { return poller.pollUntilDone(); } + /** + * List of inbound NAT rule port mappings. + * @param groupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param backendPoolName The name of the load balancer backend address pool. + * @param parameters Query inbound NAT rule port mapping request. + * @param options The options parameters. + */ + async beginListInboundNatRulePortMappings( + groupName: string, + loadBalancerName: string, + backendPoolName: string, + parameters: QueryInboundNatRulePortMappingRequest, + options?: LoadBalancersListInboundNatRulePortMappingsOptionalParams + ): Promise< + PollerLike< + PollOperationState, + LoadBalancersListInboundNatRulePortMappingsResponse + > + > { + 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, + { groupName, loadBalancerName, backendPoolName, parameters, options }, + listInboundNatRulePortMappingsOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); + } + + /** + * List of inbound NAT rule port mappings. + * @param groupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param backendPoolName The name of the load balancer backend address pool. + * @param parameters Query inbound NAT rule port mapping request. + * @param options The options parameters. + */ + async beginListInboundNatRulePortMappingsAndWait( + groupName: string, + loadBalancerName: string, + backendPoolName: string, + parameters: QueryInboundNatRulePortMappingRequest, + options?: LoadBalancersListInboundNatRulePortMappingsOptionalParams + ): Promise { + const poller = await this.beginListInboundNatRulePortMappings( + groupName, + loadBalancerName, + backendPoolName, + parameters, + options + ); + return poller.pollUntilDone(); + } + /** * ListAllNext * @param nextLink The nextLink from the previous successful call to the ListAll method. @@ -557,7 +655,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters19, + requestBody: Parameters.parameters22, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -644,7 +742,7 @@ const swapPublicIpAddressesOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters20, + requestBody: Parameters.parameters23, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -655,6 +753,40 @@ const swapPublicIpAddressesOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; +const listInboundNatRulePortMappingsOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendPoolName}/queryInboundNatRulePortMapping", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.BackendAddressInboundNatRulePortMappings + }, + 201: { + bodyMapper: Mappers.BackendAddressInboundNatRulePortMappings + }, + 202: { + bodyMapper: Mappers.BackendAddressInboundNatRulePortMappings + }, + 204: { + bodyMapper: Mappers.BackendAddressInboundNatRulePortMappings + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.parameters24, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.loadBalancerName, + Parameters.groupName, + Parameters.backendPoolName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; const listAllNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", diff --git a/sdk/network/arm-network/src/operations/localNetworkGateways.ts b/sdk/network/arm-network/src/operations/localNetworkGateways.ts index 7e7945d0b4ef..acf20f378209 100644 --- a/sdk/network/arm-network/src/operations/localNetworkGateways.ts +++ b/sdk/network/arm-network/src/operations/localNetworkGateways.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { LocalNetworkGateways } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; @@ -358,7 +357,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters62, + requestBody: Parameters.parameters66, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/natGateways.ts b/sdk/network/arm-network/src/operations/natGateways.ts index 48e63299da34..b0828a278a5c 100644 --- a/sdk/network/arm-network/src/operations/natGateways.ts +++ b/sdk/network/arm-network/src/operations/natGateways.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { NatGateways } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; @@ -474,7 +473,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters22, + requestBody: Parameters.parameters26, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/natRules.ts b/sdk/network/arm-network/src/operations/natRules.ts index 7225558be9cb..439976350e35 100644 --- a/sdk/network/arm-network/src/operations/natRules.ts +++ b/sdk/network/arm-network/src/operations/natRules.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { NatRules } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/networkInterfaceIPConfigurations.ts b/sdk/network/arm-network/src/operations/networkInterfaceIPConfigurations.ts index 257d45af3b7e..d256d3a91622 100644 --- a/sdk/network/arm-network/src/operations/networkInterfaceIPConfigurations.ts +++ b/sdk/network/arm-network/src/operations/networkInterfaceIPConfigurations.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { NetworkInterfaceIPConfigurations } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/networkInterfaceLoadBalancers.ts b/sdk/network/arm-network/src/operations/networkInterfaceLoadBalancers.ts index 9dd62690cc3d..b007a47cbcfd 100644 --- a/sdk/network/arm-network/src/operations/networkInterfaceLoadBalancers.ts +++ b/sdk/network/arm-network/src/operations/networkInterfaceLoadBalancers.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { NetworkInterfaceLoadBalancers } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/networkInterfaceTapConfigurations.ts b/sdk/network/arm-network/src/operations/networkInterfaceTapConfigurations.ts index 58347d834828..11b8050e1329 100644 --- a/sdk/network/arm-network/src/operations/networkInterfaceTapConfigurations.ts +++ b/sdk/network/arm-network/src/operations/networkInterfaceTapConfigurations.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { NetworkInterfaceTapConfigurations } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/networkInterfaces.ts b/sdk/network/arm-network/src/operations/networkInterfaces.ts index a61d73792abe..029245060d1d 100644 --- a/sdk/network/arm-network/src/operations/networkInterfaces.ts +++ b/sdk/network/arm-network/src/operations/networkInterfaces.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { NetworkInterfaces } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/networkProfiles.ts b/sdk/network/arm-network/src/operations/networkProfiles.ts index 12a48c6520b0..151900ddc716 100644 --- a/sdk/network/arm-network/src/operations/networkProfiles.ts +++ b/sdk/network/arm-network/src/operations/networkProfiles.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { NetworkProfiles } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; @@ -396,7 +395,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters23, + requestBody: Parameters.parameters27, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/networkSecurityGroups.ts b/sdk/network/arm-network/src/operations/networkSecurityGroups.ts index 50488d3285b6..2d713f067544 100644 --- a/sdk/network/arm-network/src/operations/networkSecurityGroups.ts +++ b/sdk/network/arm-network/src/operations/networkSecurityGroups.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { NetworkSecurityGroups } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; @@ -474,7 +473,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters24, + requestBody: Parameters.parameters28, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/networkVirtualAppliances.ts b/sdk/network/arm-network/src/operations/networkVirtualAppliances.ts index 329729d63080..266a867884cb 100644 --- a/sdk/network/arm-network/src/operations/networkVirtualAppliances.ts +++ b/sdk/network/arm-network/src/operations/networkVirtualAppliances.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { NetworkVirtualAppliances } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; @@ -501,7 +500,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters25, + requestBody: Parameters.parameters29, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/networkWatchers.ts b/sdk/network/arm-network/src/operations/networkWatchers.ts index db53f1d48a09..1d611070d413 100644 --- a/sdk/network/arm-network/src/operations/networkWatchers.ts +++ b/sdk/network/arm-network/src/operations/networkWatchers.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { NetworkWatchers } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; @@ -1373,7 +1372,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters28, + requestBody: Parameters.parameters32, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1504,7 +1503,7 @@ const getTopologyOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters29, + requestBody: Parameters.parameters33, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1537,7 +1536,7 @@ const verifyIPFlowOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters30, + requestBody: Parameters.parameters34, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1570,7 +1569,7 @@ const getNextHopOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters31, + requestBody: Parameters.parameters35, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1603,7 +1602,7 @@ const getVMSecurityRulesOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters32, + requestBody: Parameters.parameters36, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1636,7 +1635,7 @@ const getTroubleshootingOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters33, + requestBody: Parameters.parameters37, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1669,7 +1668,7 @@ const getTroubleshootingResultOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters34, + requestBody: Parameters.parameters38, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1702,7 +1701,7 @@ const setFlowLogConfigurationOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters35, + requestBody: Parameters.parameters39, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1735,7 +1734,7 @@ const getFlowLogStatusOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters36, + requestBody: Parameters.parameters40, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1768,7 +1767,7 @@ const checkConnectivityOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters37, + requestBody: Parameters.parameters41, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1801,7 +1800,7 @@ const getAzureReachabilityReportOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters38, + requestBody: Parameters.parameters42, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1834,7 +1833,7 @@ const listAvailableProvidersOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters39, + requestBody: Parameters.parameters43, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1867,7 +1866,7 @@ const getNetworkConfigurationDiagnosticOperationSpec: coreClient.OperationSpec = bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters40, + requestBody: Parameters.parameters44, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/operations.ts b/sdk/network/arm-network/src/operations/operations.ts index b91dc78f1a68..3df8cd4e9cdd 100644 --- a/sdk/network/arm-network/src/operations/operations.ts +++ b/sdk/network/arm-network/src/operations/operations.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { Operations } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/p2SVpnGateways.ts b/sdk/network/arm-network/src/operations/p2SVpnGateways.ts index d2c4bd62abda..be879dc77e28 100644 --- a/sdk/network/arm-network/src/operations/p2SVpnGateways.ts +++ b/sdk/network/arm-network/src/operations/p2SVpnGateways.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { P2SVpnGateways } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; @@ -1144,7 +1143,7 @@ const generateVpnProfileOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters70, + requestBody: Parameters.parameters74, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/packetCaptures.ts b/sdk/network/arm-network/src/operations/packetCaptures.ts index 0b71cd51c03a..952b7c6af1ac 100644 --- a/sdk/network/arm-network/src/operations/packetCaptures.ts +++ b/sdk/network/arm-network/src/operations/packetCaptures.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PacketCaptures } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; @@ -528,7 +527,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters41, + requestBody: Parameters.parameters45, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/peerExpressRouteCircuitConnections.ts b/sdk/network/arm-network/src/operations/peerExpressRouteCircuitConnections.ts index 7942a522b8db..befa2d483edd 100644 --- a/sdk/network/arm-network/src/operations/peerExpressRouteCircuitConnections.ts +++ b/sdk/network/arm-network/src/operations/peerExpressRouteCircuitConnections.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PeerExpressRouteCircuitConnections } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/privateDnsZoneGroups.ts b/sdk/network/arm-network/src/operations/privateDnsZoneGroups.ts index e60e0c7cac09..f0969d20f109 100644 --- a/sdk/network/arm-network/src/operations/privateDnsZoneGroups.ts +++ b/sdk/network/arm-network/src/operations/privateDnsZoneGroups.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PrivateDnsZoneGroups } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; @@ -436,7 +435,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters45, + requestBody: Parameters.parameters49, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/privateEndpoints.ts b/sdk/network/arm-network/src/operations/privateEndpoints.ts index 4eaf0f763545..0ffc4b1580ef 100644 --- a/sdk/network/arm-network/src/operations/privateEndpoints.ts +++ b/sdk/network/arm-network/src/operations/privateEndpoints.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PrivateEndpoints } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; @@ -455,7 +454,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters44, + requestBody: Parameters.parameters48, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/privateLinkServices.ts b/sdk/network/arm-network/src/operations/privateLinkServices.ts index af5d66d1357b..11fd520540b1 100644 --- a/sdk/network/arm-network/src/operations/privateLinkServices.ts +++ b/sdk/network/arm-network/src/operations/privateLinkServices.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PrivateLinkServices } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; @@ -1110,7 +1109,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters46, + requestBody: Parameters.parameters50, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1195,7 +1194,7 @@ const updatePrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters47, + requestBody: Parameters.parameters51, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1275,7 +1274,7 @@ const checkPrivateLinkServiceVisibilityOperationSpec: coreClient.OperationSpec = bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters48, + requestBody: Parameters.parameters52, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1307,7 +1306,7 @@ const checkPrivateLinkServiceVisibilityByResourceGroupOperationSpec: coreClient. bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters48, + requestBody: Parameters.parameters52, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/publicIPAddresses.ts b/sdk/network/arm-network/src/operations/publicIPAddresses.ts index 5e487876505c..fcb65d38ee94 100644 --- a/sdk/network/arm-network/src/operations/publicIPAddresses.ts +++ b/sdk/network/arm-network/src/operations/publicIPAddresses.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PublicIPAddresses } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/publicIPPrefixes.ts b/sdk/network/arm-network/src/operations/publicIPPrefixes.ts index 32188222d1da..5cf940163f29 100644 --- a/sdk/network/arm-network/src/operations/publicIPPrefixes.ts +++ b/sdk/network/arm-network/src/operations/publicIPPrefixes.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PublicIPPrefixes } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; @@ -474,7 +473,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters49, + requestBody: Parameters.parameters53, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/routeFilterRules.ts b/sdk/network/arm-network/src/operations/routeFilterRules.ts index 18d7f68c8512..6717802b6ec4 100644 --- a/sdk/network/arm-network/src/operations/routeFilterRules.ts +++ b/sdk/network/arm-network/src/operations/routeFilterRules.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { RouteFilterRules } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/routeFilters.ts b/sdk/network/arm-network/src/operations/routeFilters.ts index 9eb9868c9972..4fc2f202c1db 100644 --- a/sdk/network/arm-network/src/operations/routeFilters.ts +++ b/sdk/network/arm-network/src/operations/routeFilters.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { RouteFilters } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/routeTables.ts b/sdk/network/arm-network/src/operations/routeTables.ts index cdcfda5a9097..41b2e8a7141b 100644 --- a/sdk/network/arm-network/src/operations/routeTables.ts +++ b/sdk/network/arm-network/src/operations/routeTables.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { RouteTables } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; @@ -474,7 +473,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters50, + requestBody: Parameters.parameters54, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/routes.ts b/sdk/network/arm-network/src/operations/routes.ts index 96bf9116c902..086af846813b 100644 --- a/sdk/network/arm-network/src/operations/routes.ts +++ b/sdk/network/arm-network/src/operations/routes.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { Routes } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/routingIntentOperations.ts b/sdk/network/arm-network/src/operations/routingIntentOperations.ts new file mode 100644 index 000000000000..97ea9b708085 --- /dev/null +++ b/sdk/network/arm-network/src/operations/routingIntentOperations.ts @@ -0,0 +1,472 @@ +/* + * 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 { RoutingIntentOperations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClientContext } from "../networkManagementClientContext"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + RoutingIntent, + RoutingIntentListNextOptionalParams, + RoutingIntentListOptionalParams, + RoutingIntentCreateOrUpdateOptionalParams, + RoutingIntentCreateOrUpdateResponse, + RoutingIntentGetOptionalParams, + RoutingIntentGetResponse, + RoutingIntentDeleteOptionalParams, + RoutingIntentListResponse, + RoutingIntentListNextResponse +} from "../models"; + +/// +/** Class containing RoutingIntentOperations operations. */ +export class RoutingIntentOperationsImpl implements RoutingIntentOperations { + private readonly client: NetworkManagementClientContext; + + /** + * Initialize a new instance of the class RoutingIntentOperations class. + * @param client Reference to the service client + */ + constructor(client: NetworkManagementClientContext) { + this.client = client; + } + + /** + * Retrieves the details of all RoutingIntent child resources of the VirtualHub. + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + virtualHubName: string, + options?: RoutingIntentListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, virtualHubName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, virtualHubName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + virtualHubName: string, + options?: RoutingIntentListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, virtualHubName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + virtualHubName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + virtualHubName: string, + options?: RoutingIntentListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + virtualHubName, + options + )) { + yield* page; + } + } + + /** + * Creates a RoutingIntent resource if it doesn't exist else updates the existing RoutingIntent. + * @param resourceGroupName The resource group name of the RoutingIntent. + * @param virtualHubName The name of the VirtualHub. + * @param routingIntentName The name of the per VirtualHub singleton Routing Intent resource. + * @param routingIntentParameters Parameters supplied to create or update RoutingIntent. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + virtualHubName: string, + routingIntentName: string, + routingIntentParameters: RoutingIntent, + options?: RoutingIntentCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + RoutingIntentCreateOrUpdateResponse + > + > { + 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, + virtualHubName, + routingIntentName, + routingIntentParameters, + options + }, + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" + }); + } + + /** + * Creates a RoutingIntent resource if it doesn't exist else updates the existing RoutingIntent. + * @param resourceGroupName The resource group name of the RoutingIntent. + * @param virtualHubName The name of the VirtualHub. + * @param routingIntentName The name of the per VirtualHub singleton Routing Intent resource. + * @param routingIntentParameters Parameters supplied to create or update RoutingIntent. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + virtualHubName: string, + routingIntentName: string, + routingIntentParameters: RoutingIntent, + options?: RoutingIntentCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + virtualHubName, + routingIntentName, + routingIntentParameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Retrieves the details of a RoutingIntent. + * @param resourceGroupName The resource group name of the RoutingIntent. + * @param virtualHubName The name of the VirtualHub. + * @param routingIntentName The name of the RoutingIntent. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + virtualHubName: string, + routingIntentName: string, + options?: RoutingIntentGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, virtualHubName, routingIntentName, options }, + getOperationSpec + ); + } + + /** + * Deletes a RoutingIntent. + * @param resourceGroupName The resource group name of the RoutingIntent. + * @param virtualHubName The name of the VirtualHub. + * @param routingIntentName The name of the RoutingIntent. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + virtualHubName: string, + routingIntentName: string, + options?: RoutingIntentDeleteOptionalParams + ): Promise, void>> { + 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, virtualHubName, routingIntentName, options }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); + } + + /** + * Deletes a RoutingIntent. + * @param resourceGroupName The resource group name of the RoutingIntent. + * @param virtualHubName The name of the VirtualHub. + * @param routingIntentName The name of the RoutingIntent. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + virtualHubName: string, + routingIntentName: string, + options?: RoutingIntentDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + virtualHubName, + routingIntentName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Retrieves the details of all RoutingIntent child resources of the VirtualHub. + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + virtualHubName: string, + options?: RoutingIntentListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, virtualHubName, options }, + listOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + virtualHubName: string, + nextLink: string, + options?: RoutingIntentListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, virtualHubName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routingIntent/{routingIntentName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.RoutingIntent + }, + 201: { + bodyMapper: Mappers.RoutingIntent + }, + 202: { + bodyMapper: Mappers.RoutingIntent + }, + 204: { + bodyMapper: Mappers.RoutingIntent + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.routingIntentParameters, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.virtualHubName, + Parameters.routingIntentName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routingIntent/{routingIntentName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.RoutingIntent + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.virtualHubName, + Parameters.routingIntentName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routingIntent/{routingIntentName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.virtualHubName, + Parameters.routingIntentName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routingIntent", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ListRoutingIntentResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.virtualHubName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ListRoutingIntentResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.virtualHubName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/network/arm-network/src/operations/securityPartnerProviders.ts b/sdk/network/arm-network/src/operations/securityPartnerProviders.ts index a0cefaa590e3..97238d144cbd 100644 --- a/sdk/network/arm-network/src/operations/securityPartnerProviders.ts +++ b/sdk/network/arm-network/src/operations/securityPartnerProviders.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SecurityPartnerProviders } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; @@ -477,7 +476,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters51, + requestBody: Parameters.parameters55, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/securityRules.ts b/sdk/network/arm-network/src/operations/securityRules.ts index 7f0e9abecd07..7026093115c8 100644 --- a/sdk/network/arm-network/src/operations/securityRules.ts +++ b/sdk/network/arm-network/src/operations/securityRules.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SecurityRules } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/serviceEndpointPolicies.ts b/sdk/network/arm-network/src/operations/serviceEndpointPolicies.ts index be26ad88dbd3..6b9c4f674b5e 100644 --- a/sdk/network/arm-network/src/operations/serviceEndpointPolicies.ts +++ b/sdk/network/arm-network/src/operations/serviceEndpointPolicies.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ServiceEndpointPolicies } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; @@ -477,7 +476,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters52, + requestBody: Parameters.parameters56, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/serviceEndpointPolicyDefinitions.ts b/sdk/network/arm-network/src/operations/serviceEndpointPolicyDefinitions.ts index 510754223220..547a4b6b50e7 100644 --- a/sdk/network/arm-network/src/operations/serviceEndpointPolicyDefinitions.ts +++ b/sdk/network/arm-network/src/operations/serviceEndpointPolicyDefinitions.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ServiceEndpointPolicyDefinitions } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/serviceTagInformationOperations.ts b/sdk/network/arm-network/src/operations/serviceTagInformationOperations.ts index 48f22313601a..10c0c4ade421 100644 --- a/sdk/network/arm-network/src/operations/serviceTagInformationOperations.ts +++ b/sdk/network/arm-network/src/operations/serviceTagInformationOperations.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ServiceTagInformationOperations } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; @@ -15,10 +14,10 @@ import * as Parameters from "../models/parameters"; import { NetworkManagementClientContext } from "../networkManagementClientContext"; import { ServiceTagInformation, - ServiceTagInformationOperationsListNextOptionalParams, - ServiceTagInformationOperationsListOptionalParams, - ServiceTagInformationOperationsListResponse, - ServiceTagInformationOperationsListNextResponse + ServiceTagInformationListNextOptionalParams, + ServiceTagInformationListOptionalParams, + ServiceTagInformationListResponse, + ServiceTagInformationListNextResponse } from "../models"; /// @@ -44,7 +43,7 @@ export class ServiceTagInformationOperationsImpl */ public list( location: string, - options?: ServiceTagInformationOperationsListOptionalParams + options?: ServiceTagInformationListOptionalParams ): PagedAsyncIterableIterator { const iter = this.listPagingAll(location, options); return { @@ -62,7 +61,7 @@ export class ServiceTagInformationOperationsImpl private async *listPagingPage( location: string, - options?: ServiceTagInformationOperationsListOptionalParams + options?: ServiceTagInformationListOptionalParams ): AsyncIterableIterator { let result = await this._list(location, options); yield result.value || []; @@ -76,7 +75,7 @@ export class ServiceTagInformationOperationsImpl private async *listPagingAll( location: string, - options?: ServiceTagInformationOperationsListOptionalParams + options?: ServiceTagInformationListOptionalParams ): AsyncIterableIterator { for await (const page of this.listPagingPage(location, options)) { yield* page; @@ -92,8 +91,8 @@ export class ServiceTagInformationOperationsImpl */ private _list( location: string, - options?: ServiceTagInformationOperationsListOptionalParams - ): Promise { + options?: ServiceTagInformationListOptionalParams + ): Promise { return this.client.sendOperationRequest( { location, options }, listOperationSpec @@ -111,8 +110,8 @@ export class ServiceTagInformationOperationsImpl private _listNext( location: string, nextLink: string, - options?: ServiceTagInformationOperationsListNextOptionalParams - ): Promise { + options?: ServiceTagInformationListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( { location, nextLink, options }, listNextOperationSpec diff --git a/sdk/network/arm-network/src/operations/subnets.ts b/sdk/network/arm-network/src/operations/subnets.ts index 8359701204df..06cece506e42 100644 --- a/sdk/network/arm-network/src/operations/subnets.ts +++ b/sdk/network/arm-network/src/operations/subnets.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { Subnets } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/usages.ts b/sdk/network/arm-network/src/operations/usages.ts index bbaca3165f4e..879e0ec6d9a6 100644 --- a/sdk/network/arm-network/src/operations/usages.ts +++ b/sdk/network/arm-network/src/operations/usages.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { Usages } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/virtualApplianceSites.ts b/sdk/network/arm-network/src/operations/virtualApplianceSites.ts index 8c859d37b9da..0a19b368382f 100644 --- a/sdk/network/arm-network/src/operations/virtualApplianceSites.ts +++ b/sdk/network/arm-network/src/operations/virtualApplianceSites.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { VirtualApplianceSites } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; @@ -428,7 +427,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters26, + requestBody: Parameters.parameters30, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/virtualApplianceSkus.ts b/sdk/network/arm-network/src/operations/virtualApplianceSkus.ts index c47babcae926..579f26555306 100644 --- a/sdk/network/arm-network/src/operations/virtualApplianceSkus.ts +++ b/sdk/network/arm-network/src/operations/virtualApplianceSkus.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { VirtualApplianceSkus } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/virtualHubBgpConnection.ts b/sdk/network/arm-network/src/operations/virtualHubBgpConnection.ts index 28cec28f70ff..9224f90f5e77 100644 --- a/sdk/network/arm-network/src/operations/virtualHubBgpConnection.ts +++ b/sdk/network/arm-network/src/operations/virtualHubBgpConnection.ts @@ -290,7 +290,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters71, + requestBody: Parameters.parameters75, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/virtualHubBgpConnections.ts b/sdk/network/arm-network/src/operations/virtualHubBgpConnections.ts index a92cc7aa41a0..29a02ffc84cd 100644 --- a/sdk/network/arm-network/src/operations/virtualHubBgpConnections.ts +++ b/sdk/network/arm-network/src/operations/virtualHubBgpConnections.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { VirtualHubBgpConnections } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/virtualHubIpConfiguration.ts b/sdk/network/arm-network/src/operations/virtualHubIpConfiguration.ts index 05fb8833d4ca..1e58202afa46 100644 --- a/sdk/network/arm-network/src/operations/virtualHubIpConfiguration.ts +++ b/sdk/network/arm-network/src/operations/virtualHubIpConfiguration.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { VirtualHubIpConfiguration } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; @@ -387,7 +386,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters72, + requestBody: Parameters.parameters76, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/virtualHubRouteTableV2S.ts b/sdk/network/arm-network/src/operations/virtualHubRouteTableV2S.ts index d3cbff74e3b3..7bb0ca494c77 100644 --- a/sdk/network/arm-network/src/operations/virtualHubRouteTableV2S.ts +++ b/sdk/network/arm-network/src/operations/virtualHubRouteTableV2S.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { VirtualHubRouteTableV2S } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/virtualHubs.ts b/sdk/network/arm-network/src/operations/virtualHubs.ts index 8c644de2cc79..2a95ee2b1122 100644 --- a/sdk/network/arm-network/src/operations/virtualHubs.ts +++ b/sdk/network/arm-network/src/operations/virtualHubs.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { VirtualHubs } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/virtualNetworkGatewayConnections.ts b/sdk/network/arm-network/src/operations/virtualNetworkGatewayConnections.ts index 599d23697746..f43f6a83c537 100644 --- a/sdk/network/arm-network/src/operations/virtualNetworkGatewayConnections.ts +++ b/sdk/network/arm-network/src/operations/virtualNetworkGatewayConnections.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { VirtualNetworkGatewayConnections } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; @@ -1046,7 +1045,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters59, + requestBody: Parameters.parameters63, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1157,7 +1156,7 @@ const setSharedKeyOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters60, + requestBody: Parameters.parameters64, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1233,7 +1232,7 @@ const resetSharedKeyOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters61, + requestBody: Parameters.parameters65, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1266,7 +1265,7 @@ const startPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters57, + requestBody: Parameters.parameters61, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1299,7 +1298,7 @@ const stopPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters58, + requestBody: Parameters.parameters62, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/virtualNetworkGatewayNatRules.ts b/sdk/network/arm-network/src/operations/virtualNetworkGatewayNatRules.ts index 56124c12b01a..508e10822d48 100644 --- a/sdk/network/arm-network/src/operations/virtualNetworkGatewayNatRules.ts +++ b/sdk/network/arm-network/src/operations/virtualNetworkGatewayNatRules.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { VirtualNetworkGatewayNatRules } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/virtualNetworkGateways.ts b/sdk/network/arm-network/src/operations/virtualNetworkGateways.ts index 9363ea1ff0cc..8f2d75fde12f 100644 --- a/sdk/network/arm-network/src/operations/virtualNetworkGateways.ts +++ b/sdk/network/arm-network/src/operations/virtualNetworkGateways.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { VirtualNetworkGateways } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; @@ -1882,7 +1881,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters54, + requestBody: Parameters.parameters58, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2090,7 +2089,7 @@ const generatevpnclientpackageOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters55, + requestBody: Parameters.parameters59, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2123,7 +2122,7 @@ const generateVpnProfileOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters55, + requestBody: Parameters.parameters59, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2357,7 +2356,7 @@ const vpnDeviceConfigurationScriptOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters56, + requestBody: Parameters.parameters60, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2390,7 +2389,7 @@ const startPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters57, + requestBody: Parameters.parameters61, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2423,7 +2422,7 @@ const stopPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters58, + requestBody: Parameters.parameters62, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/virtualNetworkPeerings.ts b/sdk/network/arm-network/src/operations/virtualNetworkPeerings.ts index 6048fb557e36..ba69ed77025c 100644 --- a/sdk/network/arm-network/src/operations/virtualNetworkPeerings.ts +++ b/sdk/network/arm-network/src/operations/virtualNetworkPeerings.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { VirtualNetworkPeerings } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/virtualNetworkTaps.ts b/sdk/network/arm-network/src/operations/virtualNetworkTaps.ts index 497663b46b92..e4601cb9c8f1 100644 --- a/sdk/network/arm-network/src/operations/virtualNetworkTaps.ts +++ b/sdk/network/arm-network/src/operations/virtualNetworkTaps.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { VirtualNetworkTaps } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; @@ -473,7 +472,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters63, + requestBody: Parameters.parameters67, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/virtualNetworks.ts b/sdk/network/arm-network/src/operations/virtualNetworks.ts index 86092dcd129e..f0f5f0de4be4 100644 --- a/sdk/network/arm-network/src/operations/virtualNetworks.ts +++ b/sdk/network/arm-network/src/operations/virtualNetworks.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { VirtualNetworks } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; @@ -607,7 +606,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters53, + requestBody: Parameters.parameters57, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/virtualRouterPeerings.ts b/sdk/network/arm-network/src/operations/virtualRouterPeerings.ts index c15d003885a9..32a23eadf839 100644 --- a/sdk/network/arm-network/src/operations/virtualRouterPeerings.ts +++ b/sdk/network/arm-network/src/operations/virtualRouterPeerings.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { VirtualRouterPeerings } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; @@ -426,7 +425,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters65, + requestBody: Parameters.parameters69, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/virtualRouters.ts b/sdk/network/arm-network/src/operations/virtualRouters.ts index 359e111afbd9..9e4213ded4a4 100644 --- a/sdk/network/arm-network/src/operations/virtualRouters.ts +++ b/sdk/network/arm-network/src/operations/virtualRouters.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { VirtualRouters } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; @@ -455,7 +454,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters64, + requestBody: Parameters.parameters68, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/virtualWans.ts b/sdk/network/arm-network/src/operations/virtualWans.ts index 40d0c04c016a..3890a3a02d0f 100644 --- a/sdk/network/arm-network/src/operations/virtualWans.ts +++ b/sdk/network/arm-network/src/operations/virtualWans.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { VirtualWans } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/vpnConnections.ts b/sdk/network/arm-network/src/operations/vpnConnections.ts index 4d400d2e1d24..aec7366418d5 100644 --- a/sdk/network/arm-network/src/operations/vpnConnections.ts +++ b/sdk/network/arm-network/src/operations/vpnConnections.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { VpnConnections } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; @@ -648,7 +647,7 @@ const startPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters68, + requestBody: Parameters.parameters72, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -682,7 +681,7 @@ const stopPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters69, + requestBody: Parameters.parameters73, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/vpnGateways.ts b/sdk/network/arm-network/src/operations/vpnGateways.ts index 3a3fbd3b0540..41678a72aca5 100644 --- a/sdk/network/arm-network/src/operations/vpnGateways.ts +++ b/sdk/network/arm-network/src/operations/vpnGateways.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { VpnGateways } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; @@ -910,7 +909,7 @@ const startPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters66, + requestBody: Parameters.parameters70, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -943,7 +942,7 @@ const stopPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters67, + requestBody: Parameters.parameters71, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/vpnLinkConnections.ts b/sdk/network/arm-network/src/operations/vpnLinkConnections.ts index d605e30ae813..5a68f4804734 100644 --- a/sdk/network/arm-network/src/operations/vpnLinkConnections.ts +++ b/sdk/network/arm-network/src/operations/vpnLinkConnections.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { VpnLinkConnections } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/vpnServerConfigurations.ts b/sdk/network/arm-network/src/operations/vpnServerConfigurations.ts index 9d6e3f4e314b..aee278024149 100644 --- a/sdk/network/arm-network/src/operations/vpnServerConfigurations.ts +++ b/sdk/network/arm-network/src/operations/vpnServerConfigurations.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { VpnServerConfigurations } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/vpnSiteLinks.ts b/sdk/network/arm-network/src/operations/vpnSiteLinks.ts index f965a13e0eb0..b441e63369d2 100644 --- a/sdk/network/arm-network/src/operations/vpnSiteLinks.ts +++ b/sdk/network/arm-network/src/operations/vpnSiteLinks.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { VpnSiteLinks } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/vpnSites.ts b/sdk/network/arm-network/src/operations/vpnSites.ts index 475e7df1136f..c0ea9e84e1c6 100644 --- a/sdk/network/arm-network/src/operations/vpnSites.ts +++ b/sdk/network/arm-network/src/operations/vpnSites.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { VpnSites } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operations/webApplicationFirewallPolicies.ts b/sdk/network/arm-network/src/operations/webApplicationFirewallPolicies.ts index e88fee9547e5..b81147fd70d7 100644 --- a/sdk/network/arm-network/src/operations/webApplicationFirewallPolicies.ts +++ b/sdk/network/arm-network/src/operations/webApplicationFirewallPolicies.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { WebApplicationFirewallPolicies } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; @@ -390,7 +389,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters73, + requestBody: Parameters.parameters77, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/webCategories.ts b/sdk/network/arm-network/src/operations/webCategories.ts index 92ef530e0c65..eebffd8b9767 100644 --- a/sdk/network/arm-network/src/operations/webCategories.ts +++ b/sdk/network/arm-network/src/operations/webCategories.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { WebCategories } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/network/arm-network/src/operationsInterfaces/applicationGatewayPrivateEndpointConnections.ts b/sdk/network/arm-network/src/operationsInterfaces/applicationGatewayPrivateEndpointConnections.ts index 16bd1fc06bf0..db738b927166 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/applicationGatewayPrivateEndpointConnections.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/applicationGatewayPrivateEndpointConnections.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/applicationGatewayPrivateLinkResources.ts b/sdk/network/arm-network/src/operationsInterfaces/applicationGatewayPrivateLinkResources.ts index 73059c08ea29..b62c04ca4b9a 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/applicationGatewayPrivateLinkResources.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/applicationGatewayPrivateLinkResources.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ApplicationGatewayPrivateLinkResource, diff --git a/sdk/network/arm-network/src/operationsInterfaces/applicationGateways.ts b/sdk/network/arm-network/src/operationsInterfaces/applicationGateways.ts index d7901b3b1f40..f4f9c6c6ca22 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/applicationGateways.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/applicationGateways.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/applicationSecurityGroups.ts b/sdk/network/arm-network/src/operationsInterfaces/applicationSecurityGroups.ts index 2043d063f57c..0d981f7e00d6 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/applicationSecurityGroups.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/applicationSecurityGroups.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/availableDelegations.ts b/sdk/network/arm-network/src/operationsInterfaces/availableDelegations.ts index 3dc1bf6c54a7..d9a3e3123cc6 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/availableDelegations.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/availableDelegations.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { AvailableDelegation, diff --git a/sdk/network/arm-network/src/operationsInterfaces/availableEndpointServices.ts b/sdk/network/arm-network/src/operationsInterfaces/availableEndpointServices.ts index ff9a64571db0..d5e7020c0abc 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/availableEndpointServices.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/availableEndpointServices.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { EndpointServiceResult, diff --git a/sdk/network/arm-network/src/operationsInterfaces/availablePrivateEndpointTypes.ts b/sdk/network/arm-network/src/operationsInterfaces/availablePrivateEndpointTypes.ts index 9994a0562d29..00b93e54631a 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/availablePrivateEndpointTypes.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/availablePrivateEndpointTypes.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { AvailablePrivateEndpointType, diff --git a/sdk/network/arm-network/src/operationsInterfaces/availableResourceGroupDelegations.ts b/sdk/network/arm-network/src/operationsInterfaces/availableResourceGroupDelegations.ts index 5c635ac13226..4666ffd815e8 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/availableResourceGroupDelegations.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/availableResourceGroupDelegations.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { AvailableDelegation, diff --git a/sdk/network/arm-network/src/operationsInterfaces/availableServiceAliases.ts b/sdk/network/arm-network/src/operationsInterfaces/availableServiceAliases.ts index 628fb5731786..d17bc5f0cbce 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/availableServiceAliases.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/availableServiceAliases.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { AvailableServiceAlias, diff --git a/sdk/network/arm-network/src/operationsInterfaces/azureFirewallFqdnTags.ts b/sdk/network/arm-network/src/operationsInterfaces/azureFirewallFqdnTags.ts index b5f992355a9f..0b5017733563 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/azureFirewallFqdnTags.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/azureFirewallFqdnTags.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { AzureFirewallFqdnTag, diff --git a/sdk/network/arm-network/src/operationsInterfaces/azureFirewalls.ts b/sdk/network/arm-network/src/operationsInterfaces/azureFirewalls.ts index 18b3d4930022..d63bd2959aad 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/azureFirewalls.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/azureFirewalls.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/bastionHosts.ts b/sdk/network/arm-network/src/operationsInterfaces/bastionHosts.ts index 7fde139370c6..01201d8da2fb 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/bastionHosts.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/bastionHosts.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/bgpServiceCommunities.ts b/sdk/network/arm-network/src/operationsInterfaces/bgpServiceCommunities.ts index 422736435d0d..dbb9025db5e5 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/bgpServiceCommunities.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/bgpServiceCommunities.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { BgpServiceCommunity, diff --git a/sdk/network/arm-network/src/operationsInterfaces/connectionMonitors.ts b/sdk/network/arm-network/src/operationsInterfaces/connectionMonitors.ts index e77c8189407f..b42d16d6d3f8 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/connectionMonitors.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/connectionMonitors.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/customIPPrefixes.ts b/sdk/network/arm-network/src/operationsInterfaces/customIPPrefixes.ts index b9588d9d67dd..3d8848ccf455 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/customIPPrefixes.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/customIPPrefixes.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/ddosProtectionPlans.ts b/sdk/network/arm-network/src/operationsInterfaces/ddosProtectionPlans.ts index 429225bc99d6..3836814116a0 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/ddosProtectionPlans.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/ddosProtectionPlans.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/defaultSecurityRules.ts b/sdk/network/arm-network/src/operationsInterfaces/defaultSecurityRules.ts index f96c82497405..0a716a40c9bf 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/defaultSecurityRules.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/defaultSecurityRules.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SecurityRule, diff --git a/sdk/network/arm-network/src/operationsInterfaces/dscpConfigurationOperations.ts b/sdk/network/arm-network/src/operationsInterfaces/dscpConfigurationOperations.ts index 3532df7cbfe5..e64716406e18 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/dscpConfigurationOperations.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/dscpConfigurationOperations.ts @@ -6,18 +6,17 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { DscpConfiguration, - DscpConfigurationOperationsListOptionalParams, - DscpConfigurationOperationsListAllOptionalParams, - DscpConfigurationOperationsCreateOrUpdateOptionalParams, - DscpConfigurationOperationsCreateOrUpdateResponse, - DscpConfigurationOperationsDeleteOptionalParams, - DscpConfigurationOperationsGetOptionalParams, - DscpConfigurationOperationsGetResponse + DscpConfigurationListOptionalParams, + DscpConfigurationListAllOptionalParams, + DscpConfigurationCreateOrUpdateOptionalParams, + DscpConfigurationCreateOrUpdateResponse, + DscpConfigurationDeleteOptionalParams, + DscpConfigurationGetOptionalParams, + DscpConfigurationGetResponse } from "../models"; /// @@ -30,14 +29,14 @@ export interface DscpConfigurationOperations { */ list( resourceGroupName: string, - options?: DscpConfigurationOperationsListOptionalParams + options?: DscpConfigurationListOptionalParams ): PagedAsyncIterableIterator; /** * Gets all dscp configurations in a subscription. * @param options The options parameters. */ listAll( - options?: DscpConfigurationOperationsListAllOptionalParams + options?: DscpConfigurationListAllOptionalParams ): PagedAsyncIterableIterator; /** * Creates or updates a DSCP Configuration. @@ -50,11 +49,11 @@ export interface DscpConfigurationOperations { resourceGroupName: string, dscpConfigurationName: string, parameters: DscpConfiguration, - options?: DscpConfigurationOperationsCreateOrUpdateOptionalParams + options?: DscpConfigurationCreateOrUpdateOptionalParams ): Promise< PollerLike< - PollOperationState, - DscpConfigurationOperationsCreateOrUpdateResponse + PollOperationState, + DscpConfigurationCreateOrUpdateResponse > >; /** @@ -68,8 +67,8 @@ export interface DscpConfigurationOperations { resourceGroupName: string, dscpConfigurationName: string, parameters: DscpConfiguration, - options?: DscpConfigurationOperationsCreateOrUpdateOptionalParams - ): Promise; + options?: DscpConfigurationCreateOrUpdateOptionalParams + ): Promise; /** * Deletes a DSCP Configuration. * @param resourceGroupName The name of the resource group. @@ -79,7 +78,7 @@ export interface DscpConfigurationOperations { beginDelete( resourceGroupName: string, dscpConfigurationName: string, - options?: DscpConfigurationOperationsDeleteOptionalParams + options?: DscpConfigurationDeleteOptionalParams ): Promise, void>>; /** * Deletes a DSCP Configuration. @@ -90,7 +89,7 @@ export interface DscpConfigurationOperations { beginDeleteAndWait( resourceGroupName: string, dscpConfigurationName: string, - options?: DscpConfigurationOperationsDeleteOptionalParams + options?: DscpConfigurationDeleteOptionalParams ): Promise; /** * Gets a DSCP Configuration. @@ -101,6 +100,6 @@ export interface DscpConfigurationOperations { get( resourceGroupName: string, dscpConfigurationName: string, - options?: DscpConfigurationOperationsGetOptionalParams - ): Promise; + options?: DscpConfigurationGetOptionalParams + ): Promise; } diff --git a/sdk/network/arm-network/src/operationsInterfaces/expressRouteCircuitAuthorizations.ts b/sdk/network/arm-network/src/operationsInterfaces/expressRouteCircuitAuthorizations.ts index 43d7ed6fb46f..ae01deab8cc1 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/expressRouteCircuitAuthorizations.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/expressRouteCircuitAuthorizations.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/expressRouteCircuitConnections.ts b/sdk/network/arm-network/src/operationsInterfaces/expressRouteCircuitConnections.ts index 0df06ffd9781..3f21467d825e 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/expressRouteCircuitConnections.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/expressRouteCircuitConnections.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/expressRouteCircuitPeerings.ts b/sdk/network/arm-network/src/operationsInterfaces/expressRouteCircuitPeerings.ts index 7740416791d6..44b1d8f122a1 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/expressRouteCircuitPeerings.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/expressRouteCircuitPeerings.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/expressRouteCircuits.ts b/sdk/network/arm-network/src/operationsInterfaces/expressRouteCircuits.ts index 3eba400665b7..e7fb932a487f 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/expressRouteCircuits.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/expressRouteCircuits.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/expressRouteCrossConnectionPeerings.ts b/sdk/network/arm-network/src/operationsInterfaces/expressRouteCrossConnectionPeerings.ts index b4f10ad6801f..2593cdea1346 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/expressRouteCrossConnectionPeerings.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/expressRouteCrossConnectionPeerings.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/expressRouteCrossConnections.ts b/sdk/network/arm-network/src/operationsInterfaces/expressRouteCrossConnections.ts index 950aa7056f6d..c3f3caee17fb 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/expressRouteCrossConnections.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/expressRouteCrossConnections.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/expressRouteLinks.ts b/sdk/network/arm-network/src/operationsInterfaces/expressRouteLinks.ts index 4f4a47992734..6a82484d8a43 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/expressRouteLinks.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/expressRouteLinks.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ExpressRouteLink, diff --git a/sdk/network/arm-network/src/operationsInterfaces/expressRoutePorts.ts b/sdk/network/arm-network/src/operationsInterfaces/expressRoutePorts.ts index ded2a62bf951..560efc722332 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/expressRoutePorts.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/expressRoutePorts.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/expressRoutePortsLocations.ts b/sdk/network/arm-network/src/operationsInterfaces/expressRoutePortsLocations.ts index 3691928ebcb2..b0bc4470067b 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/expressRoutePortsLocations.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/expressRoutePortsLocations.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ExpressRoutePortsLocation, diff --git a/sdk/network/arm-network/src/operationsInterfaces/expressRouteServiceProviders.ts b/sdk/network/arm-network/src/operationsInterfaces/expressRouteServiceProviders.ts index f6532b85fd87..304a978d723d 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/expressRouteServiceProviders.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/expressRouteServiceProviders.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ExpressRouteServiceProvider, diff --git a/sdk/network/arm-network/src/operationsInterfaces/firewallPolicies.ts b/sdk/network/arm-network/src/operationsInterfaces/firewallPolicies.ts index 3838940f3bc2..0037e047356e 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/firewallPolicies.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/firewallPolicies.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/firewallPolicyIdpsSignatures.ts b/sdk/network/arm-network/src/operationsInterfaces/firewallPolicyIdpsSignatures.ts new file mode 100644 index 000000000000..8e60911f7696 --- /dev/null +++ b/sdk/network/arm-network/src/operationsInterfaces/firewallPolicyIdpsSignatures.ts @@ -0,0 +1,30 @@ +/* + * 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 { + IdpsQueryObject, + FirewallPolicyIdpsSignaturesListOptionalParams, + FirewallPolicyIdpsSignaturesListResponse +} from "../models"; + +/** Interface representing a FirewallPolicyIdpsSignatures. */ +export interface FirewallPolicyIdpsSignatures { + /** + * Retrieves the current status of IDPS signatures for the relevant policy + * @param resourceGroupName The name of the resource group. + * @param firewallPolicyName The name of the Firewall Policy. + * @param parameters Will describe the query to run against the IDPS signatures DB + * @param options The options parameters. + */ + list( + resourceGroupName: string, + firewallPolicyName: string, + parameters: IdpsQueryObject, + options?: FirewallPolicyIdpsSignaturesListOptionalParams + ): Promise; +} diff --git a/sdk/network/arm-network/src/operationsInterfaces/firewallPolicyIdpsSignaturesFilterValues.ts b/sdk/network/arm-network/src/operationsInterfaces/firewallPolicyIdpsSignaturesFilterValues.ts new file mode 100644 index 000000000000..e92b2ba20f56 --- /dev/null +++ b/sdk/network/arm-network/src/operationsInterfaces/firewallPolicyIdpsSignaturesFilterValues.ts @@ -0,0 +1,30 @@ +/* + * 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 { + SignatureOverridesFilterValuesQuery, + FirewallPolicyIdpsSignaturesFilterValuesListOptionalParams, + FirewallPolicyIdpsSignaturesFilterValuesListResponse +} from "../models"; + +/** Interface representing a FirewallPolicyIdpsSignaturesFilterValues. */ +export interface FirewallPolicyIdpsSignaturesFilterValues { + /** + * Retrieves the current filter values for the signatures overrides + * @param resourceGroupName The name of the resource group. + * @param firewallPolicyName The name of the Firewall Policy. + * @param parameters Describes the filter values possibles for a given column + * @param options The options parameters. + */ + list( + resourceGroupName: string, + firewallPolicyName: string, + parameters: SignatureOverridesFilterValuesQuery, + options?: FirewallPolicyIdpsSignaturesFilterValuesListOptionalParams + ): Promise; +} diff --git a/sdk/network/arm-network/src/operationsInterfaces/firewallPolicyIdpsSignaturesOverrides.ts b/sdk/network/arm-network/src/operationsInterfaces/firewallPolicyIdpsSignaturesOverrides.ts new file mode 100644 index 000000000000..af8431128a6c --- /dev/null +++ b/sdk/network/arm-network/src/operationsInterfaces/firewallPolicyIdpsSignaturesOverrides.ts @@ -0,0 +1,71 @@ +/* + * 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 { + SignaturesOverrides, + FirewallPolicyIdpsSignaturesOverridesPatchOptionalParams, + FirewallPolicyIdpsSignaturesOverridesPatchResponse, + FirewallPolicyIdpsSignaturesOverridesPutOptionalParams, + FirewallPolicyIdpsSignaturesOverridesPutResponse, + FirewallPolicyIdpsSignaturesOverridesGetOptionalParams, + FirewallPolicyIdpsSignaturesOverridesGetResponse, + FirewallPolicyIdpsSignaturesOverridesListOptionalParams, + FirewallPolicyIdpsSignaturesOverridesListResponse +} from "../models"; + +/** Interface representing a FirewallPolicyIdpsSignaturesOverrides. */ +export interface FirewallPolicyIdpsSignaturesOverrides { + /** + * Will update the status of policy's signature overrides for IDPS + * @param resourceGroupName The name of the resource group. + * @param firewallPolicyName The name of the Firewall Policy. + * @param parameters Will contain all properties of the object to put + * @param options The options parameters. + */ + patch( + resourceGroupName: string, + firewallPolicyName: string, + parameters: SignaturesOverrides, + options?: FirewallPolicyIdpsSignaturesOverridesPatchOptionalParams + ): Promise; + /** + * Will override/create a new signature overrides for the policy's IDPS + * @param resourceGroupName The name of the resource group. + * @param firewallPolicyName The name of the Firewall Policy. + * @param parameters Will contain all properties of the object to put + * @param options The options parameters. + */ + put( + resourceGroupName: string, + firewallPolicyName: string, + parameters: SignaturesOverrides, + options?: FirewallPolicyIdpsSignaturesOverridesPutOptionalParams + ): Promise; + /** + * Returns all signatures overrides for a specific policy. + * @param resourceGroupName The name of the resource group. + * @param firewallPolicyName The name of the Firewall Policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + firewallPolicyName: string, + options?: FirewallPolicyIdpsSignaturesOverridesGetOptionalParams + ): Promise; + /** + * Returns all signatures overrides objects for a specific policy as a list containing a single value. + * @param resourceGroupName The name of the resource group. + * @param firewallPolicyName The name of the Firewall Policy. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + firewallPolicyName: string, + options?: FirewallPolicyIdpsSignaturesOverridesListOptionalParams + ): Promise; +} diff --git a/sdk/network/arm-network/src/operationsInterfaces/firewallPolicyRuleCollectionGroups.ts b/sdk/network/arm-network/src/operationsInterfaces/firewallPolicyRuleCollectionGroups.ts index f98c32984480..c4860144314a 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/firewallPolicyRuleCollectionGroups.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/firewallPolicyRuleCollectionGroups.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/flowLogs.ts b/sdk/network/arm-network/src/operationsInterfaces/flowLogs.ts index d373f98640ce..48875a3431c0 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/flowLogs.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/flowLogs.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/hubRouteTables.ts b/sdk/network/arm-network/src/operationsInterfaces/hubRouteTables.ts index 6c7bdf56d461..17eab7b26d68 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/hubRouteTables.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/hubRouteTables.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/hubVirtualNetworkConnections.ts b/sdk/network/arm-network/src/operationsInterfaces/hubVirtualNetworkConnections.ts index 92e03a854587..59de4fc3bbd5 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/hubVirtualNetworkConnections.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/hubVirtualNetworkConnections.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/inboundNatRules.ts b/sdk/network/arm-network/src/operationsInterfaces/inboundNatRules.ts index f5f0711c3b8e..b8b885be32a5 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/inboundNatRules.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/inboundNatRules.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { @@ -23,7 +22,7 @@ import { /** Interface representing a InboundNatRules. */ export interface InboundNatRules { /** - * Gets all the inbound nat rules in a load balancer. + * Gets all the inbound NAT rules in a load balancer. * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param options The options parameters. @@ -34,10 +33,10 @@ export interface InboundNatRules { options?: InboundNatRulesListOptionalParams ): PagedAsyncIterableIterator; /** - * Deletes the specified load balancer inbound nat rule. + * Deletes the specified load balancer inbound NAT rule. * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. - * @param inboundNatRuleName The name of the inbound nat rule. + * @param inboundNatRuleName The name of the inbound NAT rule. * @param options The options parameters. */ beginDelete( @@ -47,10 +46,10 @@ export interface InboundNatRules { options?: InboundNatRulesDeleteOptionalParams ): Promise, void>>; /** - * Deletes the specified load balancer inbound nat rule. + * Deletes the specified load balancer inbound NAT rule. * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. - * @param inboundNatRuleName The name of the inbound nat rule. + * @param inboundNatRuleName The name of the inbound NAT rule. * @param options The options parameters. */ beginDeleteAndWait( @@ -60,10 +59,10 @@ export interface InboundNatRules { options?: InboundNatRulesDeleteOptionalParams ): Promise; /** - * Gets the specified load balancer inbound nat rule. + * Gets the specified load balancer inbound NAT rule. * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. - * @param inboundNatRuleName The name of the inbound nat rule. + * @param inboundNatRuleName The name of the inbound NAT rule. * @param options The options parameters. */ get( @@ -73,11 +72,11 @@ export interface InboundNatRules { options?: InboundNatRulesGetOptionalParams ): Promise; /** - * Creates or updates a load balancer inbound nat rule. + * Creates or updates a load balancer inbound NAT rule. * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. - * @param inboundNatRuleName The name of the inbound nat rule. - * @param inboundNatRuleParameters Parameters supplied to the create or update inbound nat rule + * @param inboundNatRuleName The name of the inbound NAT rule. + * @param inboundNatRuleParameters Parameters supplied to the create or update inbound NAT rule * operation. * @param options The options parameters. */ @@ -94,11 +93,11 @@ export interface InboundNatRules { > >; /** - * Creates or updates a load balancer inbound nat rule. + * Creates or updates a load balancer inbound NAT rule. * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. - * @param inboundNatRuleName The name of the inbound nat rule. - * @param inboundNatRuleParameters Parameters supplied to the create or update inbound nat rule + * @param inboundNatRuleName The name of the inbound NAT rule. + * @param inboundNatRuleParameters Parameters supplied to the create or update inbound NAT rule * operation. * @param options The options parameters. */ diff --git a/sdk/network/arm-network/src/operationsInterfaces/inboundSecurityRuleOperations.ts b/sdk/network/arm-network/src/operationsInterfaces/inboundSecurityRuleOperations.ts index 98658b284688..546d4baea75a 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/inboundSecurityRuleOperations.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/inboundSecurityRuleOperations.ts @@ -9,8 +9,8 @@ import { PollerLike, PollOperationState } from "@azure/core-lro"; import { InboundSecurityRule, - InboundSecurityRuleOperationsCreateOrUpdateOptionalParams, - InboundSecurityRuleOperationsCreateOrUpdateResponse + InboundSecurityRuleCreateOrUpdateOptionalParams, + InboundSecurityRuleCreateOrUpdateResponse } from "../models"; /** Interface representing a InboundSecurityRuleOperations. */ @@ -29,11 +29,11 @@ export interface InboundSecurityRuleOperations { networkVirtualApplianceName: string, ruleCollectionName: string, parameters: InboundSecurityRule, - options?: InboundSecurityRuleOperationsCreateOrUpdateOptionalParams + options?: InboundSecurityRuleCreateOrUpdateOptionalParams ): Promise< PollerLike< - PollOperationState, - InboundSecurityRuleOperationsCreateOrUpdateResponse + PollOperationState, + InboundSecurityRuleCreateOrUpdateResponse > >; /** @@ -50,6 +50,6 @@ export interface InboundSecurityRuleOperations { networkVirtualApplianceName: string, ruleCollectionName: string, parameters: InboundSecurityRule, - options?: InboundSecurityRuleOperationsCreateOrUpdateOptionalParams - ): Promise; + options?: InboundSecurityRuleCreateOrUpdateOptionalParams + ): Promise; } diff --git a/sdk/network/arm-network/src/operationsInterfaces/index.ts b/sdk/network/arm-network/src/operationsInterfaces/index.ts index 605df06c1268..19e1496111f9 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/index.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/index.ts @@ -37,6 +37,9 @@ export * from "./expressRoutePorts"; export * from "./expressRouteLinks"; export * from "./firewallPolicies"; export * from "./firewallPolicyRuleCollectionGroups"; +export * from "./firewallPolicyIdpsSignatures"; +export * from "./firewallPolicyIdpsSignaturesOverrides"; +export * from "./firewallPolicyIdpsSignaturesFilterValues"; export * from "./ipAllocations"; export * from "./ipGroups"; export * from "./loadBalancers"; @@ -113,4 +116,5 @@ export * from "./virtualHubBgpConnection"; export * from "./virtualHubBgpConnections"; export * from "./virtualHubIpConfiguration"; export * from "./hubRouteTables"; +export * from "./routingIntentOperations"; export * from "./webApplicationFirewallPolicies"; diff --git a/sdk/network/arm-network/src/operationsInterfaces/ipAllocations.ts b/sdk/network/arm-network/src/operationsInterfaces/ipAllocations.ts index 750a4d0a1db6..280ec877a438 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/ipAllocations.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/ipAllocations.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/ipGroups.ts b/sdk/network/arm-network/src/operationsInterfaces/ipGroups.ts index bd885c3afa24..80f53ed751ca 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/ipGroups.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/ipGroups.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/loadBalancerBackendAddressPools.ts b/sdk/network/arm-network/src/operationsInterfaces/loadBalancerBackendAddressPools.ts index f4013dde73e2..954b0643146d 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/loadBalancerBackendAddressPools.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/loadBalancerBackendAddressPools.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/loadBalancerFrontendIPConfigurations.ts b/sdk/network/arm-network/src/operationsInterfaces/loadBalancerFrontendIPConfigurations.ts index 6bfe8e6dfa60..4b78ebae95f7 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/loadBalancerFrontendIPConfigurations.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/loadBalancerFrontendIPConfigurations.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { FrontendIPConfiguration, diff --git a/sdk/network/arm-network/src/operationsInterfaces/loadBalancerLoadBalancingRules.ts b/sdk/network/arm-network/src/operationsInterfaces/loadBalancerLoadBalancingRules.ts index 90693d0faf49..c88c26b52d5e 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/loadBalancerLoadBalancingRules.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/loadBalancerLoadBalancingRules.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { LoadBalancingRule, diff --git a/sdk/network/arm-network/src/operationsInterfaces/loadBalancerNetworkInterfaces.ts b/sdk/network/arm-network/src/operationsInterfaces/loadBalancerNetworkInterfaces.ts index 10bce9a1c93a..7a5921b874b5 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/loadBalancerNetworkInterfaces.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/loadBalancerNetworkInterfaces.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { NetworkInterface, diff --git a/sdk/network/arm-network/src/operationsInterfaces/loadBalancerOutboundRules.ts b/sdk/network/arm-network/src/operationsInterfaces/loadBalancerOutboundRules.ts index beb9d90a6403..013189046022 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/loadBalancerOutboundRules.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/loadBalancerOutboundRules.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { OutboundRule, diff --git a/sdk/network/arm-network/src/operationsInterfaces/loadBalancerProbes.ts b/sdk/network/arm-network/src/operationsInterfaces/loadBalancerProbes.ts index 7460323ce98c..13d7f8ddf397 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/loadBalancerProbes.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/loadBalancerProbes.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { Probe, diff --git a/sdk/network/arm-network/src/operationsInterfaces/loadBalancers.ts b/sdk/network/arm-network/src/operationsInterfaces/loadBalancers.ts index 4b6bbdd3a9cc..fe6b2fa6e056 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/loadBalancers.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/loadBalancers.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { @@ -22,7 +21,10 @@ import { LoadBalancersUpdateTagsOptionalParams, LoadBalancersUpdateTagsResponse, LoadBalancerVipSwapRequest, - LoadBalancersSwapPublicIpAddressesOptionalParams + LoadBalancersSwapPublicIpAddressesOptionalParams, + QueryInboundNatRulePortMappingRequest, + LoadBalancersListInboundNatRulePortMappingsOptionalParams, + LoadBalancersListInboundNatRulePortMappingsResponse } from "../models"; /// @@ -143,4 +145,39 @@ export interface LoadBalancers { parameters: LoadBalancerVipSwapRequest, options?: LoadBalancersSwapPublicIpAddressesOptionalParams ): Promise; + /** + * List of inbound NAT rule port mappings. + * @param groupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param backendPoolName The name of the load balancer backend address pool. + * @param parameters Query inbound NAT rule port mapping request. + * @param options The options parameters. + */ + beginListInboundNatRulePortMappings( + groupName: string, + loadBalancerName: string, + backendPoolName: string, + parameters: QueryInboundNatRulePortMappingRequest, + options?: LoadBalancersListInboundNatRulePortMappingsOptionalParams + ): Promise< + PollerLike< + PollOperationState, + LoadBalancersListInboundNatRulePortMappingsResponse + > + >; + /** + * List of inbound NAT rule port mappings. + * @param groupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param backendPoolName The name of the load balancer backend address pool. + * @param parameters Query inbound NAT rule port mapping request. + * @param options The options parameters. + */ + beginListInboundNatRulePortMappingsAndWait( + groupName: string, + loadBalancerName: string, + backendPoolName: string, + parameters: QueryInboundNatRulePortMappingRequest, + options?: LoadBalancersListInboundNatRulePortMappingsOptionalParams + ): Promise; } diff --git a/sdk/network/arm-network/src/operationsInterfaces/localNetworkGateways.ts b/sdk/network/arm-network/src/operationsInterfaces/localNetworkGateways.ts index a67d5ac3c9f5..b2e32a99e275 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/localNetworkGateways.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/localNetworkGateways.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/natGateways.ts b/sdk/network/arm-network/src/operationsInterfaces/natGateways.ts index 04ddc7c46447..8a8323946dfe 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/natGateways.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/natGateways.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/natRules.ts b/sdk/network/arm-network/src/operationsInterfaces/natRules.ts index 771986f25f9d..f1732812e97a 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/natRules.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/natRules.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/networkInterfaceIPConfigurations.ts b/sdk/network/arm-network/src/operationsInterfaces/networkInterfaceIPConfigurations.ts index 961c44fcb8fb..39d70d2b8da0 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/networkInterfaceIPConfigurations.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/networkInterfaceIPConfigurations.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { NetworkInterfaceIPConfiguration, diff --git a/sdk/network/arm-network/src/operationsInterfaces/networkInterfaceLoadBalancers.ts b/sdk/network/arm-network/src/operationsInterfaces/networkInterfaceLoadBalancers.ts index bae3bf51590f..c76e56b33b34 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/networkInterfaceLoadBalancers.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/networkInterfaceLoadBalancers.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { LoadBalancer, diff --git a/sdk/network/arm-network/src/operationsInterfaces/networkInterfaceTapConfigurations.ts b/sdk/network/arm-network/src/operationsInterfaces/networkInterfaceTapConfigurations.ts index 482ec8cc9020..7c882f9b7755 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/networkInterfaceTapConfigurations.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/networkInterfaceTapConfigurations.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/networkInterfaces.ts b/sdk/network/arm-network/src/operationsInterfaces/networkInterfaces.ts index ea52a7aee1a7..ce1767f33cc7 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/networkInterfaces.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/networkInterfaces.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/networkProfiles.ts b/sdk/network/arm-network/src/operationsInterfaces/networkProfiles.ts index eb5b99ddf5e4..da80a0c53e9a 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/networkProfiles.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/networkProfiles.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/networkSecurityGroups.ts b/sdk/network/arm-network/src/operationsInterfaces/networkSecurityGroups.ts index 4a0b8410fa08..6b01036ceae1 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/networkSecurityGroups.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/networkSecurityGroups.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/networkVirtualAppliances.ts b/sdk/network/arm-network/src/operationsInterfaces/networkVirtualAppliances.ts index 33c7fdaff97e..c3ab3958327a 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/networkVirtualAppliances.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/networkVirtualAppliances.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/networkWatchers.ts b/sdk/network/arm-network/src/operationsInterfaces/networkWatchers.ts index b041556dc9d8..16dc342339a7 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/networkWatchers.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/networkWatchers.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/operations.ts b/sdk/network/arm-network/src/operationsInterfaces/operations.ts index ff81a63b5473..87e5cfb81b3e 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/operations.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/operations.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { Operation, OperationsListOptionalParams } from "../models"; diff --git a/sdk/network/arm-network/src/operationsInterfaces/p2SVpnGateways.ts b/sdk/network/arm-network/src/operationsInterfaces/p2SVpnGateways.ts index e825553c2600..8cc26a16a1d9 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/p2SVpnGateways.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/p2SVpnGateways.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/packetCaptures.ts b/sdk/network/arm-network/src/operationsInterfaces/packetCaptures.ts index db2e22d9c95c..efe82f54fdf9 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/packetCaptures.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/packetCaptures.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/peerExpressRouteCircuitConnections.ts b/sdk/network/arm-network/src/operationsInterfaces/peerExpressRouteCircuitConnections.ts index d5ea30ab7cde..007b3ade2978 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/peerExpressRouteCircuitConnections.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/peerExpressRouteCircuitConnections.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PeerExpressRouteCircuitConnection, diff --git a/sdk/network/arm-network/src/operationsInterfaces/privateDnsZoneGroups.ts b/sdk/network/arm-network/src/operationsInterfaces/privateDnsZoneGroups.ts index e6793ba1f71a..acf376b2da1e 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/privateDnsZoneGroups.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/privateDnsZoneGroups.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/privateEndpoints.ts b/sdk/network/arm-network/src/operationsInterfaces/privateEndpoints.ts index 6b01d08f7b1e..9752b15a3ac0 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/privateEndpoints.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/privateEndpoints.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/privateLinkServices.ts b/sdk/network/arm-network/src/operationsInterfaces/privateLinkServices.ts index 0e5d9cda7234..197497215b52 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/privateLinkServices.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/privateLinkServices.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/publicIPAddresses.ts b/sdk/network/arm-network/src/operationsInterfaces/publicIPAddresses.ts index 856a3bd16917..37a00d07a04b 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/publicIPAddresses.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/publicIPAddresses.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/publicIPPrefixes.ts b/sdk/network/arm-network/src/operationsInterfaces/publicIPPrefixes.ts index d3c0c666acd9..1b079f5d109f 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/publicIPPrefixes.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/publicIPPrefixes.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/routeFilterRules.ts b/sdk/network/arm-network/src/operationsInterfaces/routeFilterRules.ts index e26e2308a2d0..ac4f39d1b73a 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/routeFilterRules.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/routeFilterRules.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/routeFilters.ts b/sdk/network/arm-network/src/operationsInterfaces/routeFilters.ts index 32e7e9983581..2e51d7eedac7 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/routeFilters.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/routeFilters.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/routeTables.ts b/sdk/network/arm-network/src/operationsInterfaces/routeTables.ts index 45b8b6f21874..91b63608b9d0 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/routeTables.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/routeTables.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/routes.ts b/sdk/network/arm-network/src/operationsInterfaces/routes.ts index 9bcb49a3ad6d..bffcd80f6f3e 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/routes.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/routes.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/routingIntentOperations.ts b/sdk/network/arm-network/src/operationsInterfaces/routingIntentOperations.ts new file mode 100644 index 000000000000..560384c3becf --- /dev/null +++ b/sdk/network/arm-network/src/operationsInterfaces/routingIntentOperations.ts @@ -0,0 +1,109 @@ +/* + * 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 { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + RoutingIntent, + RoutingIntentListOptionalParams, + RoutingIntentCreateOrUpdateOptionalParams, + RoutingIntentCreateOrUpdateResponse, + RoutingIntentGetOptionalParams, + RoutingIntentGetResponse, + RoutingIntentDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a RoutingIntentOperations. */ +export interface RoutingIntentOperations { + /** + * Retrieves the details of all RoutingIntent child resources of the VirtualHub. + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + virtualHubName: string, + options?: RoutingIntentListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Creates a RoutingIntent resource if it doesn't exist else updates the existing RoutingIntent. + * @param resourceGroupName The resource group name of the RoutingIntent. + * @param virtualHubName The name of the VirtualHub. + * @param routingIntentName The name of the per VirtualHub singleton Routing Intent resource. + * @param routingIntentParameters Parameters supplied to create or update RoutingIntent. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + virtualHubName: string, + routingIntentName: string, + routingIntentParameters: RoutingIntent, + options?: RoutingIntentCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + RoutingIntentCreateOrUpdateResponse + > + >; + /** + * Creates a RoutingIntent resource if it doesn't exist else updates the existing RoutingIntent. + * @param resourceGroupName The resource group name of the RoutingIntent. + * @param virtualHubName The name of the VirtualHub. + * @param routingIntentName The name of the per VirtualHub singleton Routing Intent resource. + * @param routingIntentParameters Parameters supplied to create or update RoutingIntent. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + virtualHubName: string, + routingIntentName: string, + routingIntentParameters: RoutingIntent, + options?: RoutingIntentCreateOrUpdateOptionalParams + ): Promise; + /** + * Retrieves the details of a RoutingIntent. + * @param resourceGroupName The resource group name of the RoutingIntent. + * @param virtualHubName The name of the VirtualHub. + * @param routingIntentName The name of the RoutingIntent. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + virtualHubName: string, + routingIntentName: string, + options?: RoutingIntentGetOptionalParams + ): Promise; + /** + * Deletes a RoutingIntent. + * @param resourceGroupName The resource group name of the RoutingIntent. + * @param virtualHubName The name of the VirtualHub. + * @param routingIntentName The name of the RoutingIntent. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + virtualHubName: string, + routingIntentName: string, + options?: RoutingIntentDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes a RoutingIntent. + * @param resourceGroupName The resource group name of the RoutingIntent. + * @param virtualHubName The name of the VirtualHub. + * @param routingIntentName The name of the RoutingIntent. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + virtualHubName: string, + routingIntentName: string, + options?: RoutingIntentDeleteOptionalParams + ): Promise; +} diff --git a/sdk/network/arm-network/src/operationsInterfaces/securityPartnerProviders.ts b/sdk/network/arm-network/src/operationsInterfaces/securityPartnerProviders.ts index b5266f577515..83eb3ccd2048 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/securityPartnerProviders.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/securityPartnerProviders.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/securityRules.ts b/sdk/network/arm-network/src/operationsInterfaces/securityRules.ts index 6ffbfee8c618..611d90521b74 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/securityRules.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/securityRules.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/serviceEndpointPolicies.ts b/sdk/network/arm-network/src/operationsInterfaces/serviceEndpointPolicies.ts index e3a9eca007d8..d90054daf9d3 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/serviceEndpointPolicies.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/serviceEndpointPolicies.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/serviceEndpointPolicyDefinitions.ts b/sdk/network/arm-network/src/operationsInterfaces/serviceEndpointPolicyDefinitions.ts index 9c144efeba4c..22dab4d0e78d 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/serviceEndpointPolicyDefinitions.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/serviceEndpointPolicyDefinitions.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/serviceTagInformationOperations.ts b/sdk/network/arm-network/src/operationsInterfaces/serviceTagInformationOperations.ts index d3bc6ada5085..832ee3d84311 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/serviceTagInformationOperations.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/serviceTagInformationOperations.ts @@ -6,11 +6,10 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ServiceTagInformation, - ServiceTagInformationOperationsListOptionalParams + ServiceTagInformationListOptionalParams } from "../models"; /// @@ -25,6 +24,6 @@ export interface ServiceTagInformationOperations { */ list( location: string, - options?: ServiceTagInformationOperationsListOptionalParams + options?: ServiceTagInformationListOptionalParams ): PagedAsyncIterableIterator; } diff --git a/sdk/network/arm-network/src/operationsInterfaces/subnets.ts b/sdk/network/arm-network/src/operationsInterfaces/subnets.ts index b0572e024aaa..be1c26af42ba 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/subnets.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/subnets.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/usages.ts b/sdk/network/arm-network/src/operationsInterfaces/usages.ts index 7f28769b4127..c1faa6c146ae 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/usages.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/usages.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { Usage, UsagesListOptionalParams } from "../models"; diff --git a/sdk/network/arm-network/src/operationsInterfaces/virtualApplianceSites.ts b/sdk/network/arm-network/src/operationsInterfaces/virtualApplianceSites.ts index 41efd6c76825..746a1617ef39 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/virtualApplianceSites.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/virtualApplianceSites.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/virtualApplianceSkus.ts b/sdk/network/arm-network/src/operationsInterfaces/virtualApplianceSkus.ts index e7dba660c36a..574b949d5315 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/virtualApplianceSkus.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/virtualApplianceSkus.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { NetworkVirtualApplianceSku, diff --git a/sdk/network/arm-network/src/operationsInterfaces/virtualHubBgpConnections.ts b/sdk/network/arm-network/src/operationsInterfaces/virtualHubBgpConnections.ts index 70b712017bc2..031b41141adc 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/virtualHubBgpConnections.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/virtualHubBgpConnections.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/virtualHubIpConfiguration.ts b/sdk/network/arm-network/src/operationsInterfaces/virtualHubIpConfiguration.ts index e050033e19ea..26f6931f8894 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/virtualHubIpConfiguration.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/virtualHubIpConfiguration.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/virtualHubRouteTableV2S.ts b/sdk/network/arm-network/src/operationsInterfaces/virtualHubRouteTableV2S.ts index da0b821b251e..5f2f20e14be8 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/virtualHubRouteTableV2S.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/virtualHubRouteTableV2S.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/virtualHubs.ts b/sdk/network/arm-network/src/operationsInterfaces/virtualHubs.ts index ef4c4ef6f642..80066bafc83f 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/virtualHubs.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/virtualHubs.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/virtualNetworkGatewayConnections.ts b/sdk/network/arm-network/src/operationsInterfaces/virtualNetworkGatewayConnections.ts index b386eac17058..0796cb1d17cf 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/virtualNetworkGatewayConnections.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/virtualNetworkGatewayConnections.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/virtualNetworkGatewayNatRules.ts b/sdk/network/arm-network/src/operationsInterfaces/virtualNetworkGatewayNatRules.ts index 6f4fa408a2ce..3bf0aa2e544c 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/virtualNetworkGatewayNatRules.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/virtualNetworkGatewayNatRules.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/virtualNetworkGateways.ts b/sdk/network/arm-network/src/operationsInterfaces/virtualNetworkGateways.ts index c0b8e5beb45b..43edbd5c8f92 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/virtualNetworkGateways.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/virtualNetworkGateways.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/virtualNetworkPeerings.ts b/sdk/network/arm-network/src/operationsInterfaces/virtualNetworkPeerings.ts index 17f1fab6845c..46ba876b4f99 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/virtualNetworkPeerings.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/virtualNetworkPeerings.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/virtualNetworkTaps.ts b/sdk/network/arm-network/src/operationsInterfaces/virtualNetworkTaps.ts index 2491f8b4da9d..71fc0f2706f5 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/virtualNetworkTaps.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/virtualNetworkTaps.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/virtualNetworks.ts b/sdk/network/arm-network/src/operationsInterfaces/virtualNetworks.ts index 1d61b3a153af..5e2b3d021204 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/virtualNetworks.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/virtualNetworks.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/virtualRouterPeerings.ts b/sdk/network/arm-network/src/operationsInterfaces/virtualRouterPeerings.ts index 6e6909361c0b..731d3f749893 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/virtualRouterPeerings.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/virtualRouterPeerings.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/virtualRouters.ts b/sdk/network/arm-network/src/operationsInterfaces/virtualRouters.ts index f9c9801fc72e..9a8821ed69e3 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/virtualRouters.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/virtualRouters.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/virtualWans.ts b/sdk/network/arm-network/src/operationsInterfaces/virtualWans.ts index dea2293aad6b..714b2c5f24a2 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/virtualWans.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/virtualWans.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/vpnConnections.ts b/sdk/network/arm-network/src/operationsInterfaces/vpnConnections.ts index 29d2a202a88f..50406ed3837a 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/vpnConnections.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/vpnConnections.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/vpnGateways.ts b/sdk/network/arm-network/src/operationsInterfaces/vpnGateways.ts index 4d6a3cba1a6b..fbd5095bd55a 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/vpnGateways.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/vpnGateways.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/vpnLinkConnections.ts b/sdk/network/arm-network/src/operationsInterfaces/vpnLinkConnections.ts index b263ceba7ca6..983d09e12e7d 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/vpnLinkConnections.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/vpnLinkConnections.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/vpnServerConfigurations.ts b/sdk/network/arm-network/src/operationsInterfaces/vpnServerConfigurations.ts index e7819e4d16ec..0b1ebb0dc994 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/vpnServerConfigurations.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/vpnServerConfigurations.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/vpnSiteLinks.ts b/sdk/network/arm-network/src/operationsInterfaces/vpnSiteLinks.ts index 332cf349a528..f6752ccdb1f9 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/vpnSiteLinks.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/vpnSiteLinks.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { VpnSiteLink, diff --git a/sdk/network/arm-network/src/operationsInterfaces/vpnSites.ts b/sdk/network/arm-network/src/operationsInterfaces/vpnSites.ts index 01d9000cbc73..ecb701fb4cea 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/vpnSites.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/vpnSites.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/webApplicationFirewallPolicies.ts b/sdk/network/arm-network/src/operationsInterfaces/webApplicationFirewallPolicies.ts index a090e6a21481..9023104a65b6 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/webApplicationFirewallPolicies.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/webApplicationFirewallPolicies.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/network/arm-network/src/operationsInterfaces/webCategories.ts b/sdk/network/arm-network/src/operationsInterfaces/webCategories.ts index d0a3b3014a01..78bb330f32f1 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/webCategories.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/webCategories.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { AzureWebCategory, diff --git a/sdk/network/arm-network/test/network_examples.ts b/sdk/network/arm-network/test/network_examples.ts new file mode 100644 index 000000000000..c1ce9dad1871 --- /dev/null +++ b/sdk/network/arm-network/test/network_examples.ts @@ -0,0 +1,159 @@ +/* + * 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 { + env, + record, + RecorderEnvironmentSetup, + Recorder +} from "@azure-tools/test-recorder"; +import * as assert from "assert"; +import { ClientSecretCredential } from "@azure/identity"; +import { NetworkManagementClient } from "../src/networkManagementClient"; + +const recorderEnvSetup: RecorderEnvironmentSetup = { + replaceableVariables: { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" + }, + customizationsOnRecordings: [ + (recording: any): any => + recording.replace( + /"access_token":"[^"]*"/g, + `"access_token":"access_token"` + ) + ], + queryParametersToSkip: [] +}; + +describe("My test", () => { + let recorder: Recorder; + let subscriptionId: string; + let client: NetworkManagementClient; + let location: string; + let resourceGroupName: string; + let virtualNetworkName: string; + let subnetName: string; + let ipGroupName: string; + beforeEach(async function() { + recorder = record(this, recorderEnvSetup); + subscriptionId = env.SUBSCRIPTION_ID; + // This is an example of how the environment variables are used + const credential = new ClientSecretCredential( + env.AZURE_TENANT_ID, + env.AZURE_CLIENT_ID, + env.AZURE_CLIENT_SECRET + ); + client = new NetworkManagementClient(credential, subscriptionId); + location = "eastus"; + resourceGroupName = "myjstest"; + virtualNetworkName = "virtualnetworkzzz"; + subnetName = "subnetzzz"; + ipGroupName = "ipgroupyyy"; + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("virtualNetworks create test", async function() { + const res = await client.virtualNetworks.beginCreateOrUpdateAndWait(resourceGroupName,virtualNetworkName,{ + addressSpace: { + addressPrefixes: ["10.0.0.0/16"], + }, + location: "eastus", + }) + }); + + it("subnets create test", async function() { + const res = await client.subnets.beginCreateOrUpdateAndWait(resourceGroupName,virtualNetworkName,subnetName,{addressPrefix: "10.0.0.0/24"}); + }); + + it("ipGroups create test", async function() { + const res = await client.ipGroups.beginCreateOrUpdateAndWait(resourceGroupName,virtualNetworkName,{ + tags: { + key1: "value1", + }, + location: "eastus", + ipAddresses: ["13.64.39.16/32", "40.74.146.80/31", "40.74.147.32/28"], + }); + }); + + it("virtualNetworks get test", async function() { + const res = await client.virtualNetworks.get(resourceGroupName,virtualNetworkName); + assert.equal(res.name,virtualNetworkName); + }); + + it("subnets get test", async function() { + const res = await client.subnets.get(resourceGroupName,virtualNetworkName,subnetName); + assert.equal(res.name,subnetName); + }); + + it("ipGroups get test", async function() { + const res = await client.ipGroups.get(resourceGroupName,virtualNetworkName); + assert.equal(res.type,"Microsoft.Network/IpGroups"); + }); + + it("virtualNetworks list test", async function() { + const resArray = new Array(); + for await (let item of client.virtualNetworks.list(resourceGroupName)){ + resArray.push(item); + }; + assert.equal(resArray.length,1); + }); + + it("subnets list test", async function() { + const resArray = new Array(); + for await (let item of client.subnets.list(resourceGroupName,virtualNetworkName)){ + resArray.push(item); + }; + assert.equal(resArray.length,1); + }); + + it("ipGroups list test", async function() { + const resArray = new Array(); + for await (let item of client.ipGroups.listByResourceGroup(resourceGroupName)){ + resArray.push(item); + }; + assert.equal(resArray.length,1); + }); + + it("virtualNetworks updatetags test", async function() { + const res = await client.virtualNetworks.updateTags(resourceGroupName,virtualNetworkName,{tags: {tag1: "value1",tag2: "value2"}}); + assert.equal(res.name,virtualNetworkName); + }); + + it("ipGroups beginDeleteAndWait test", async function() { + const res = await client.ipGroups.beginDeleteAndWait(resourceGroupName,virtualNetworkName); + const resArray = new Array(); + for await (let item of client.ipGroups.listByResourceGroup(resourceGroupName)){ + resArray.push(item); + }; + assert.equal(resArray.length,0); + }); + + it("subnets beginDeleteAndWait test", async function() { + const res = await client.subnets.beginDeleteAndWait(resourceGroupName,virtualNetworkName,subnetName); + const resArray = new Array(); + for await (let item of client.subnets.list(resourceGroupName,virtualNetworkName)){ + resArray.push(item); + }; + assert.equal(resArray.length,0); + }); + + it("virtualNetworks beginDeleteAndWait test", async function() { + const res = await client.virtualNetworks.beginDeleteAndWait(resourceGroupName,virtualNetworkName); + const resArray = new Array(); + for await (let item of client.virtualNetworks.list(resourceGroupName)){ + resArray.push(item); + }; + assert.equal(resArray.length,0); + }); +}); diff --git a/sdk/network/arm-network/tsconfig.json b/sdk/network/arm-network/tsconfig.json index 603440b3a359..6e3251194117 100644 --- a/sdk/network/arm-network/tsconfig.json +++ b/sdk/network/arm-network/tsconfig.json @@ -14,6 +14,6 @@ "outDir": "./dist-esm", "importHelpers": true }, - "include": ["./src/**/*.ts"], + "include": ["./src/**/*.ts", "./test/**/*.ts"], "exclude": ["node_modules"] }