diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 26178afa3b79..50a936d9b62e 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -2264,7 +2264,7 @@ packages: resolution: {integrity: sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==} dependencies: '@types/connect': 3.4.35 - '@types/node': 14.18.33 + '@types/node': 18.11.9 dev: false /@types/chai-as-promised/7.1.5: @@ -2286,7 +2286,7 @@ packages: /@types/connect/3.4.35: resolution: {integrity: sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==} dependencies: - '@types/node': 14.18.33 + '@types/node': 18.11.9 dev: false /@types/cookie/0.4.1: @@ -2321,7 +2321,7 @@ packages: /@types/express-serve-static-core/4.17.31: resolution: {integrity: sha512-DxMhY+NAsTwMMFHBTtJFNp5qiHKJ7TeqOo23zVEM9alT1Ml27Q3xcTH0xwxn7Q0BbMcVEJOs/7aQtUWupUQN3Q==} dependencies: - '@types/node': 14.18.33 + '@types/node': 18.11.9 '@types/qs': 6.9.7 '@types/range-parser': 1.2.4 dev: false @@ -2338,20 +2338,20 @@ packages: /@types/fs-extra/8.1.2: resolution: {integrity: sha512-SvSrYXfWSc7R4eqnOzbQF4TZmfpNSM9FrSWLU3EUnWBuyZqNBOrv1B1JA3byUDPUl9z4Ab3jeZG2eDdySlgNMg==} dependencies: - '@types/node': 14.18.33 + '@types/node': 18.11.9 dev: false /@types/fs-extra/9.0.13: resolution: {integrity: sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==} dependencies: - '@types/node': 14.18.33 + '@types/node': 18.11.9 dev: false /@types/glob/7.2.0: resolution: {integrity: sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==} dependencies: '@types/minimatch': 5.1.2 - '@types/node': 14.18.33 + '@types/node': 18.11.9 dev: false /@types/inquirer/8.2.4: @@ -2363,7 +2363,7 @@ packages: /@types/is-buffer/2.0.0: resolution: {integrity: sha512-0f7N/e3BAz32qDYvgB4d2cqv1DqUwvGxHkXsrucICn8la1Vb6Yl6Eg8mPScGwUiqHJeE7diXlzaK+QMA9m4Gxw==} dependencies: - '@types/node': 14.18.33 + '@types/node': 18.11.9 dev: false /@types/json-schema/7.0.11: @@ -2377,13 +2377,13 @@ packages: /@types/jsonwebtoken/8.5.9: resolution: {integrity: sha512-272FMnFGzAVMGtu9tkr29hRL6bZj4Zs1KZNeHLnKqAvp06tAIcarTMwOh8/8bz4FmKRcMxZhZNeUAQsNLoiPhg==} dependencies: - '@types/node': 14.18.33 + '@types/node': 18.11.9 dev: false /@types/jws/3.2.4: resolution: {integrity: sha512-aqtH4dPw1wUjFZaeMD1ak/pf8iXlu/odFe+trJrvw0g1sTh93i+SCykg0Ek8C6B7rVK3oBORbfZAsKO7P10etg==} dependencies: - '@types/node': 14.18.33 + '@types/node': 18.11.9 dev: false /@types/md5/2.3.2: @@ -2419,13 +2419,13 @@ packages: /@types/mock-fs/4.13.1: resolution: {integrity: sha512-m6nFAJ3lBSnqbvDZioawRvpLXSaPyn52Srf7OfzjubYbYX8MTUdIgDxQl0wEapm4m/pNYSd9TXocpQ0TvZFlYA==} dependencies: - '@types/node': 14.18.33 + '@types/node': 18.11.9 dev: false /@types/mock-require/2.0.1: resolution: {integrity: sha512-O7U5DVGboY/Crueb5/huUCIRjKtRVRaLmRDbZJBlDQgJn966z3aiFDN+6AtYviu2ExwMkl34LjT/IiC0OPtKuQ==} dependencies: - '@types/node': 14.18.33 + '@types/node': 18.11.9 dev: false /@types/ms/0.7.31: @@ -2443,7 +2443,7 @@ packages: /@types/node-fetch/2.6.2: resolution: {integrity: sha512-DHqhlq5jeESLy19TYhLakJ07kNumXWjcDdxXsLUMJZ6ue8VZJj4kLPQVE/2mdHh3xZziNF1xppu5lwmS53HR+A==} dependencies: - '@types/node': 14.18.33 + '@types/node': 18.11.9 form-data: 3.0.1 dev: false @@ -2498,7 +2498,7 @@ packages: /@types/resolve/1.17.1: resolution: {integrity: sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==} dependencies: - '@types/node': 14.18.33 + '@types/node': 18.11.9 dev: false /@types/semaphore/1.1.1: @@ -2509,7 +2509,7 @@ packages: resolution: {integrity: sha512-z5xyF6uh8CbjAu9760KDKsH2FcDxZ2tFCsA4HIMWE6IkiYMXfVoa+4f9KX+FN0ZLsaMw1WNG2ETLA6N+/YA+cg==} dependencies: '@types/mime': 3.0.1 - '@types/node': 14.18.33 + '@types/node': 18.11.9 dev: false /@types/sinon/10.0.13: @@ -2531,13 +2531,13 @@ packages: /@types/stoppable/1.1.1: resolution: {integrity: sha512-b8N+fCADRIYYrGZOcmOR8ZNBOqhktWTB/bMUl5LvGtT201QKJZOOH5UsFyI3qtteM6ZAJbJqZoBcLqqxKIwjhw==} dependencies: - '@types/node': 14.18.33 + '@types/node': 18.11.9 dev: false /@types/through/0.0.30: resolution: {integrity: sha512-FvnCJljyxhPM3gkRgWmxmDZyAQSiBQQWLI0A0VFL0K7W1oRUrPJSqNO0NvTnLkBcotdlp3lKvaT0JrnyRDkzOg==} dependencies: - '@types/node': 14.18.33 + '@types/node': 18.11.9 dev: false /@types/tough-cookie/4.0.2: @@ -2551,13 +2551,13 @@ packages: /@types/tunnel/0.0.1: resolution: {integrity: sha512-AOqu6bQu5MSWwYvehMXLukFHnupHrpZ8nvgae5Ggie9UwzDR1CCwoXgSSWNZJuyOlCdfdsWMA5F2LlmvyoTv8A==} dependencies: - '@types/node': 14.18.33 + '@types/node': 18.11.9 dev: false /@types/tunnel/0.0.3: resolution: {integrity: sha512-sOUTGn6h1SfQ+gbgqC364jLFBw2lnFqkgF3q0WovEHRLMrVD1sd5aufqi/aJObLekJO+Aq5z646U4Oxy6shXMA==} dependencies: - '@types/node': 14.18.33 + '@types/node': 18.11.9 dev: false /@types/underscore/1.11.4: @@ -2575,19 +2575,19 @@ packages: /@types/ws/7.4.7: resolution: {integrity: sha512-JQbbmxZTZehdc2iszGKs5oC3NFnjeay7mtAWrdt7qNtAVK0g19muApzAy4bm9byz79xa2ZnO/BOBC2R8RC5Lww==} dependencies: - '@types/node': 14.18.33 + '@types/node': 18.11.9 dev: false /@types/ws/8.5.3: resolution: {integrity: sha512-6YOoWjruKj1uLf3INHH7D3qTXwFfEsg1kf3c0uDdSBJwfa/llkwIjrAGV7j7mVgGNbzTQ3HiHKKDXl6bJPD97w==} dependencies: - '@types/node': 14.18.33 + '@types/node': 18.11.9 dev: false /@types/xml2js/0.4.11: resolution: {integrity: sha512-JdigeAKmCyoJUiQljjr7tQG3if9NkqGUgwEUqBvV0N7LM4HyQk7UXCnusRa1lnvXAEYJ8mw8GtZWioagNztOwA==} dependencies: - '@types/node': 14.18.33 + '@types/node': 18.11.9 dev: false /@types/yargs-parser/21.0.0: @@ -2604,7 +2604,7 @@ packages: resolution: {integrity: sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==} requiresBuild: true dependencies: - '@types/node': 14.18.33 + '@types/node': 18.11.9 dev: false optional: true @@ -2927,7 +2927,7 @@ packages: dev: false /array-flatten/1.1.1: - resolution: {integrity: sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=} + resolution: {integrity: sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==} dev: false /array-includes/3.1.5: @@ -3168,7 +3168,7 @@ packages: dev: false /buffer-equal-constant-time/1.0.1: - resolution: {integrity: sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk=} + resolution: {integrity: sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==} dev: false /buffer-from/1.1.2: @@ -3325,7 +3325,7 @@ packages: dev: false /charenc/0.0.2: - resolution: {integrity: sha1-wKHS86cJLgN3S/qD8UwPxXkKhmc=} + resolution: {integrity: sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA==} dev: false /check-error/1.0.2: @@ -3468,7 +3468,7 @@ packages: dev: false /concat-map/0.0.1: - resolution: {integrity: sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=} + resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} dev: false /concurrently/6.5.1: @@ -3529,7 +3529,7 @@ packages: dev: false /cookie-signature/1.0.6: - resolution: {integrity: sha1-4wOogrNCzD7oylE6eZmXNNqzriw=} + resolution: {integrity: sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==} dev: false /cookie/0.4.2: @@ -3631,7 +3631,7 @@ packages: dev: false /crypt/0.0.2: - resolution: {integrity: sha1-iNf/fsDfuG9xPch7u0LQRNPmxBs=} + resolution: {integrity: sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow==} dev: false /csv-parse/5.3.1: @@ -3673,7 +3673,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: @@ -3894,7 +3894,7 @@ packages: dependencies: semver: 7.3.8 shelljs: 0.8.5 - typescript: 4.6.4 + typescript: 4.8.4 dev: false /ecdsa-sig-formatter/1.0.11: @@ -3904,11 +3904,11 @@ packages: dev: false /edge-launcher/1.2.2: - resolution: {integrity: sha1-60Cq+9Bnpup27/+rBke81VCbN7I=} + resolution: {integrity: sha512-JcD5WBi3BHZXXVSSeEhl6sYO8g5cuynk/hifBzds2Bp4JdzCGLNMHgMCKu5DvrO1yatMgF0goFsxXRGus0yh1g==} dev: false /ee-first/1.1.1: - resolution: {integrity: sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=} + resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} dev: false /electron-to-chromium/1.4.284: @@ -3945,7 +3945,7 @@ packages: dependencies: '@types/cookie': 0.4.1 '@types/cors': 2.8.12 - '@types/node': 14.18.33 + '@types/node': 18.11.9 accepts: 1.3.8 base64id: 2.0.0 cookie: 0.4.2 @@ -4789,7 +4789,7 @@ packages: dev: false /fresh/0.5.2: - resolution: {integrity: sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=} + resolution: {integrity: sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==} engines: {node: '>= 0.6'} dev: false @@ -4929,7 +4929,7 @@ packages: dev: false /github-from-package/0.0.0: - resolution: {integrity: sha1-l/tdlr/eiXMxPyDoKI75oWf6ZM4=} + resolution: {integrity: sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==} dev: false /glob-parent/5.1.2: @@ -4956,7 +4956,7 @@ packages: fs.realpath: 1.0.0 inflight: 1.0.6 inherits: 2.0.4 - minimatch: 3.0.4 + minimatch: 3.1.2 once: 1.4.0 path-is-absolute: 1.0.1 dev: false @@ -6337,7 +6337,7 @@ packages: dev: false /media-typer/0.3.0: - resolution: {integrity: sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=} + resolution: {integrity: sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==} engines: {node: '>= 0.6'} dev: false @@ -6347,7 +6347,7 @@ packages: dev: false /merge-descriptors/1.0.1: - resolution: {integrity: sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=} + resolution: {integrity: sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==} dev: false /merge-source-map/1.1.0: @@ -6764,7 +6764,7 @@ packages: dev: false /noms/0.0.0: - resolution: {integrity: sha1-2o69nzr51nYJGbJ9nNyAkqczKFk=} + resolution: {integrity: sha512-lNDU9VJaOPxUmXcLb+HQFeUgQQPtMI24Gt6hgfuMHRJgMRHMF/qZ4HJD3GDru4sSw9IQl2jPjAYnQrdIeLbwow==} dependencies: inherits: 2.0.4 readable-stream: 1.0.34 @@ -8968,7 +8968,7 @@ packages: dev: false /utils-merge/1.0.1: - resolution: {integrity: sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=} + resolution: {integrity: sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==} engines: {node: '>= 0.4.0'} dev: false @@ -9537,7 +9537,7 @@ packages: dev: false file:projects/ai-anomaly-detector.tgz: - resolution: {integrity: sha512-i4JIRiaWFkmL4mkfnxJ3gMyyJ1U3mIAJQUk1FkdM1Pzb1pI6bAHOWtfKyU7rrxgP1H6qJTRs+7cj9V+S9Zs1Jw==, tarball: file:projects/ai-anomaly-detector.tgz} + resolution: {integrity: sha512-/6kzYFwb+JDgVpvVC9U7n6A29aoGlEXi03+VKtaBY1XnJHtTszge9K5ozfKiebKB+Ovc9mWZ+Uy/mJiSRI/FeQ==, tarball: file:projects/ai-anomaly-detector.tgz} name: '@rush-temp/ai-anomaly-detector' version: 0.0.0 dependencies: @@ -9575,7 +9575,7 @@ packages: prettier: 2.2.1 rimraf: 3.0.2 source-map-support: 0.5.21 - tslib: 2.4.0 + tslib: 2.4.1 typescript: 4.6.4 util: 0.12.5 transitivePeerDependencies: @@ -11672,7 +11672,7 @@ packages: dev: false file:projects/arm-desktopvirtualization.tgz: - resolution: {integrity: sha512-Ry+LkglSI0Sm5tgU8VRFthBgcbjH1WMfxZ0xVykSFyzctPN+Qd9/DhIHbuUNH81rIjfqtCWn4IUt6eqJ7wESKQ==, tarball: file:projects/arm-desktopvirtualization.tgz} + resolution: {integrity: sha512-gy+aJeEZW1eBoV66kuLI1THjmcQah2oGd1r1HpYOWN7u3k8FYBFGRbBlAn5+Cr2EKHPOGKiu6qh2TS7gYfT4nQ==, tarball: file:projects/arm-desktopvirtualization.tgz} name: '@rush-temp/arm-desktopvirtualization' version: 0.0.0 dependencies: @@ -11683,6 +11683,8 @@ packages: '@rollup/plugin-json': 4.1.0_rollup@2.79.1 '@rollup/plugin-multi-entry': 4.1.0_rollup@2.79.1 '@rollup/plugin-node-resolve': 13.3.0_rollup@2.79.1 + '@types/chai': 4.3.3 + chai: 4.3.6 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 7.2.0 @@ -11690,11 +11692,10 @@ packages: rollup: 2.79.1 rollup-plugin-sourcemaps: 0.6.3_rollup@2.79.1 tslib: 2.4.1 - typescript: 4.2.4 + typescript: 4.6.4 uglify-js: 3.17.4 transitivePeerDependencies: - '@types/node' - - encoding - supports-color dev: false @@ -16747,7 +16748,7 @@ packages: dev: false file:projects/dtdl-parser.tgz: - resolution: {integrity: sha512-wVXEKu9rAtSrHgWnzcsjy9QnhaYzuYs+YmIBakleNNTJnUTukDtqihQheH25BOUo9E0RyAxijD3IcnGgcFNVAg==, tarball: file:projects/dtdl-parser.tgz} + resolution: {integrity: sha512-tpIsaZWhGDJnpVqy/VriUYjEM5qzcjiQQGnK0KfuZy5x36FdS9w0p5SVKr3fZWnYpBYRNST/8H6m79K3A5xYJw==, tarball: file:projects/dtdl-parser.tgz} name: '@rush-temp/dtdl-parser' version: 0.0.0 dependencies: @@ -16796,7 +16797,6 @@ packages: transitivePeerDependencies: - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false @@ -18009,7 +18009,7 @@ packages: dev: false file:projects/opentelemetry-instrumentation-azure-sdk.tgz: - resolution: {integrity: sha512-pC37SUjKHvtS+m0y6f1R/g+pySejey17YFMIbWgufLShwwiwsgYhZ7yGuvywCGFPI5QuxhusRRDKxA9QixEG+A==, tarball: file:projects/opentelemetry-instrumentation-azure-sdk.tgz} + resolution: {integrity: sha512-8WauHXj+BNiS+lxAIKIujs/beijWa9jCzSbf4hn3QM2xA4s+vzuH13HUVkTqgymfo6BqoJeR63AVONbUHjDZsQ==, tarball: file:projects/opentelemetry-instrumentation-azure-sdk.tgz} name: '@rush-temp/opentelemetry-instrumentation-azure-sdk' version: 0.0.0 dependencies: @@ -18056,7 +18056,6 @@ packages: transitivePeerDependencies: - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false @@ -19165,7 +19164,7 @@ packages: dev: false file:projects/storage-internal-avro.tgz: - resolution: {integrity: sha512-rwF5IjqUF3hV9LEadGkA4iwl2RH7vfZLtkpno12VSgR9pOYHvAoS2UpN/pQTw6trGREJwCl/DMQ1ZKBizTd4jg==, tarball: file:projects/storage-internal-avro.tgz} + resolution: {integrity: sha512-MSG0qDLqAne9D6jyBLUK0LglDUq88LFCY5X33wbHU+m/+zXDfbLp0zY52uRC6cQQ5ptHYAxUd2tQuNll+TYZXQ==, tarball: file:projects/storage-internal-avro.tgz} name: '@rush-temp/storage-internal-avro' version: 0.0.0 dependencies: @@ -19804,7 +19803,7 @@ packages: dev: false file:projects/web-pubsub-express.tgz: - resolution: {integrity: sha512-+YGTcYFf/U4fQaOAC6aoxra2Z+0ZBNCBLrF8VJhHzHTlPt0eU5YcpxTubvHQGNI149kMQmm8odCnt98KlkHxqA==, tarball: file:projects/web-pubsub-express.tgz} + resolution: {integrity: sha512-soBu6XEZlDPAlgERjyi2SeLIO91jbXmH3/wj3olIw9qscZFoFgh4fBXnd5/hblvz85srBz90mltEJC7hnCyYVg==, tarball: file:projects/web-pubsub-express.tgz} name: '@rush-temp/web-pubsub-express' version: 0.0.0 dependencies: @@ -19848,7 +19847,6 @@ packages: typescript: 4.6.4 transitivePeerDependencies: - bufferutil - - debug - encoding - supports-color - utf-8-validate diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/CHANGELOG.md b/sdk/desktopvirtualization/arm-desktopvirtualization/CHANGELOG.md index d74d40462449..9d8f80e69c8f 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/CHANGELOG.md +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/CHANGELOG.md @@ -1,27 +1,5 @@ # Release History - -## 1.0.0-beta.4 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 1.0.0-beta.3 (2022-04-18) - -**features** - - - bug fix - -## 1.0.0-beta.2 (2021-12-27) -The package of @azure/arm-desktopvirtualization is using our next generation design principles since version 1.0.0-beta.2, which contains breaking changes. - -To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog). - -To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide). +## 1.0.0 (2022-11-04) -To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart). +The package of @azure/arm-desktopvirtualization is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart). diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/README.md b/sdk/desktopvirtualization/arm-desktopvirtualization/README.md index 2a041a8ec1d5..387cf846b7df 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/README.md +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/README.md @@ -6,7 +6,7 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) f [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/desktopvirtualization/arm-desktopvirtualization) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-desktopvirtualization) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-desktopvirtualization?view=azure-node-preview) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-desktopvirtualization) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/_meta.json b/sdk/desktopvirtualization/arm-desktopvirtualization/_meta.json index fc2e2269a42f..c8efd1426f2b 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/_meta.json +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/_meta.json @@ -1,8 +1,8 @@ { - "commit": "c77c6c634dc3644d65d3e35df5d73a9c34d3c956", - "readme": "specification\\desktopvirtualization\\resource-manager\\readme.md", - "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\work\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\desktopvirtualization\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-alpha.19.20220408.1 --generate-sample=true", + "commit": "e5fc975eee5f1897a0deb80584faf8b050cbe2d8", + "readme": "specification/desktopvirtualization/resource-manager/readme.md", + "autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/desktopvirtualization/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.2", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.2.6", - "use": "@autorest/typescript@6.0.0-alpha.19.20220408.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.5.0", + "use": "@autorest/typescript@6.0.0-rc.2" } \ No newline at end of file diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/package.json b/sdk/desktopvirtualization/arm-desktopvirtualization/package.json index ff9e3af3cf71..a6f7ebc335de 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/package.json +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for DesktopVirtualizationAPIClient.", - "version": "1.0.0-beta.4", + "version": "1.0.0", "engines": { "node": ">=14.0.0" }, @@ -34,13 +34,17 @@ "mkdirp": "^1.0.4", "rollup": "^2.66.1", "rollup-plugin-sourcemaps": "^0.6.3", - "typescript": "~4.2.0", + "typescript": "~4.6.0", "uglify-js": "^3.4.9", "rimraf": "^3.0.0", "@azure/identity": "^2.0.1", - "@azure-tools/test-recorder": "^1.0.0", + "@azure-tools/test-recorder": "^2.0.0", + "@azure-tools/test-credential": "^1.0.0", "mocha": "^7.1.1", - "cross-env": "^7.0.2" + "@types/chai": "^4.2.8", + "chai": "^4.2.0", + "cross-env": "^7.0.2", + "@azure/dev-tool": "^1.0.0" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/desktopvirtualization/arm-desktopvirtualization", "repository": { @@ -91,9 +95,8 @@ "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node", "unit-test:browser": "echo skipped", "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js", - "integration-test:browser": "echo skipped", - "docs": "echo skipped" + "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", + "integration-test:browser": "echo skipped" }, "sideEffects": false, "//metadata": { @@ -104,13 +107,5 @@ } ] }, - "autoPublish": true, - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-desktopvirtualization?view=azure-node-preview" - } -} + "autoPublish": true +} \ No newline at end of file diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/review/arm-desktopvirtualization.api.md b/sdk/desktopvirtualization/arm-desktopvirtualization/review/arm-desktopvirtualization.api.md index 942ed98c0af9..10994fa52c2b 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/review/arm-desktopvirtualization.api.md +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/review/arm-desktopvirtualization.api.md @@ -9,36 +9,51 @@ import * as coreClient from '@azure/core-client'; import { PagedAsyncIterableIterator } from '@azure/core-paging'; // @public -export type Application = Resource & { - readonly systemData?: SystemData; - readonly objectId?: string; +export interface AgentUpdatePatchProperties { + maintenanceWindows?: MaintenanceWindowPatchProperties[]; + maintenanceWindowTimeZone?: string; + type?: SessionHostComponentUpdateType; + useSessionHostLocalTime?: boolean; +} + +// @public +export interface AgentUpdateProperties { + maintenanceWindows?: MaintenanceWindowProperties[]; + maintenanceWindowTimeZone?: string; + type?: SessionHostComponentUpdateType; + useSessionHostLocalTime?: boolean; +} + +// @public +export interface Application extends Resource { + applicationType?: RemoteApplicationType; + commandLineArguments?: string; + commandLineSetting: CommandLineSetting; description?: string; - friendlyName?: string; filePath?: string; - msixPackageFamilyName?: string; + friendlyName?: string; + readonly iconContent?: Uint8Array; + readonly iconHash?: string; + iconIndex?: number; + iconPath?: string; msixPackageApplicationId?: string; - applicationType?: RemoteApplicationType; - commandLineSetting: CommandLineSetting; - commandLineArguments?: string; + msixPackageFamilyName?: string; + readonly objectId?: string; showInPortal?: boolean; - iconPath?: string; - iconIndex?: number; - readonly iconHash?: string; - readonly iconContent?: Uint8Array; -}; + readonly systemData?: SystemData; +} // @public -export type ApplicationGroup = ResourceModelWithAllowedPropertySet & { - readonly systemData?: SystemData; - readonly objectId?: string; +export interface ApplicationGroup extends ResourceModelWithAllowedPropertySet { + applicationGroupType: ApplicationGroupType; + readonly cloudPcResource?: boolean; description?: string; friendlyName?: string; hostPoolArmPath: string; + readonly objectId?: string; + readonly systemData?: SystemData; readonly workspaceArmPath?: string; - applicationGroupType: ApplicationGroupType; - migrationRequest?: MigrationRequestProperties; - readonly cloudPcResource?: boolean; -}; +} // @public export interface ApplicationGroupList { @@ -47,13 +62,13 @@ export interface ApplicationGroupList { } // @public -export type ApplicationGroupPatch = Resource & { +export interface ApplicationGroupPatch extends Resource { + description?: string; + friendlyName?: string; tags?: { [propertyName: string]: string; }; - description?: string; - friendlyName?: string; -}; +} // @public export interface ApplicationGroups { @@ -86,6 +101,9 @@ export type ApplicationGroupsGetResponse = ApplicationGroup; // @public export interface ApplicationGroupsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { filter?: string; + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -94,6 +112,9 @@ export type ApplicationGroupsListByResourceGroupNextResponse = ApplicationGroupL // @public export interface ApplicationGroupsListByResourceGroupOptionalParams extends coreClient.OperationOptions { filter?: string; + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -179,6 +200,9 @@ export type ApplicationsGetResponse = Application; // @public export interface ApplicationsListNextOptionalParams extends coreClient.OperationOptions { + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -186,6 +210,9 @@ export type ApplicationsListNextResponse = ApplicationList; // @public export interface ApplicationsListOptionalParams extends coreClient.OperationOptions { + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -220,14 +247,17 @@ export type CommandLineSetting = string; export type CreatedByType = string; // @public -export type Desktop = Resource & { - readonly systemData?: SystemData; - readonly objectId?: string; +export type DayOfWeek = "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday"; + +// @public +export interface Desktop extends Resource { description?: string; friendlyName?: string; - readonly iconHash?: string; readonly iconContent?: Uint8Array; -}; + readonly iconHash?: string; + readonly objectId?: string; + readonly systemData?: SystemData; +} // @public export interface DesktopList { @@ -260,6 +290,9 @@ export type DesktopsGetResponse = Desktop; // @public export interface DesktopsListNextOptionalParams extends coreClient.OperationOptions { + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -267,6 +300,9 @@ export type DesktopsListNextResponse = DesktopList; // @public export interface DesktopsListOptionalParams extends coreClient.OperationOptions { + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -302,9 +338,7 @@ export class DesktopVirtualizationAPIClient extends coreClient.ServiceClient { // (undocumented) operations: Operations; // (undocumented) - privateEndpointConnections: PrivateEndpointConnections; - // (undocumented) - privateLinkResources: PrivateLinkResources; + scalingPlanPooledSchedules: ScalingPlanPooledSchedules; // (undocumented) scalingPlans: ScalingPlans; // (undocumented) @@ -327,21 +361,21 @@ export interface DesktopVirtualizationAPIClientOptionalParams extends coreClient } // @public -export type ExpandMsixImage = Resource & { - packageAlias?: string; +export interface ExpandMsixImage extends Resource { + displayName?: string; imagePath?: string; - packageName?: string; + isActive?: boolean; + isRegularRegistration?: boolean; + lastUpdated?: Date; + packageAlias?: string; + packageApplications?: MsixPackageApplications[]; + packageDependencies?: MsixPackageDependencies[]; packageFamilyName?: string; packageFullName?: string; - displayName?: string; + packageName?: string; packageRelativePath?: string; - isRegularRegistration?: boolean; - isActive?: boolean; - packageDependencies?: MsixPackageDependencies[]; version?: string; - lastUpdated?: Date; - packageApplications?: MsixPackageApplications[]; -}; +} // @public export interface ExpandMsixImageList { @@ -356,31 +390,30 @@ export type HealthCheckName = string; export type HealthCheckResult = string; // @public -export type HostPool = ResourceModelWithAllowedPropertySet & { - readonly systemData?: SystemData; - readonly objectId?: string; - friendlyName?: string; +export interface HostPool extends ResourceModelWithAllowedPropertySet { + agentUpdate?: AgentUpdateProperties; + readonly applicationGroupReferences?: string[]; + readonly cloudPcResource?: boolean; + customRdpProperty?: string; description?: string; + friendlyName?: string; hostPoolType: HostPoolType; - personalDesktopAssignmentType?: PersonalDesktopAssignmentType; - customRdpProperty?: string; - maxSessionLimit?: number; loadBalancerType: LoadBalancerType; - ring?: number; - validationEnvironment?: boolean; + maxSessionLimit?: number; + readonly objectId?: string; + personalDesktopAssignmentType?: PersonalDesktopAssignmentType; + preferredAppGroupType: PreferredAppGroupType; registrationInfo?: RegistrationInfo; - vmTemplate?: string; - readonly applicationGroupReferences?: string[]; + ring?: number; ssoadfsAuthority?: string; ssoClientId?: string; ssoClientSecretKeyVaultPath?: string; ssoSecretType?: SSOSecretType; - preferredAppGroupType: PreferredAppGroupType; startVMOnConnect?: boolean; - migrationRequest?: MigrationRequestProperties; - readonly cloudPcResource?: boolean; - publicNetworkAccess?: PublicNetworkAccess; -}; + readonly systemData?: SystemData; + validationEnvironment?: boolean; + vmTemplate?: string; +} // @public export interface HostPoolList { @@ -389,28 +422,28 @@ export interface HostPoolList { } // @public -export type HostPoolPatch = Resource & { - tags?: { - [propertyName: string]: string; - }; - friendlyName?: string; - description?: string; +export interface HostPoolPatch extends Resource { + agentUpdate?: AgentUpdatePatchProperties; customRdpProperty?: string; + description?: string; + friendlyName?: string; + loadBalancerType?: LoadBalancerType; maxSessionLimit?: number; personalDesktopAssignmentType?: PersonalDesktopAssignmentType; - loadBalancerType?: LoadBalancerType; - ring?: number; - validationEnvironment?: boolean; + preferredAppGroupType?: PreferredAppGroupType; registrationInfo?: RegistrationInfoPatch; - vmTemplate?: string; + ring?: number; ssoadfsAuthority?: string; ssoClientId?: string; ssoClientSecretKeyVaultPath?: string; ssoSecretType?: SSOSecretType; - preferredAppGroupType?: PreferredAppGroupType; startVMOnConnect?: boolean; - publicNetworkAccess?: PublicNetworkAccess; -}; + tags?: { + [propertyName: string]: string; + }; + validationEnvironment?: boolean; + vmTemplate?: string; +} // @public export interface HostPools { @@ -444,6 +477,9 @@ export type HostPoolsGetResponse = HostPool; // @public export interface HostPoolsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -451,6 +487,9 @@ export type HostPoolsListByResourceGroupNextResponse = HostPoolList; // @public export interface HostPoolsListByResourceGroupOptionalParams extends coreClient.OperationOptions { + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -458,6 +497,9 @@ export type HostPoolsListByResourceGroupResponse = HostPoolList; // @public export interface HostPoolsListNextOptionalParams extends coreClient.OperationOptions { + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -465,6 +507,9 @@ export type HostPoolsListNextResponse = HostPoolList; // @public export interface HostPoolsListOptionalParams extends coreClient.OperationOptions { + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -497,39 +542,28 @@ export interface Identity { // @public export enum KnownApplicationGroupType { - // (undocumented) Desktop = "Desktop", - // (undocumented) RemoteApp = "RemoteApp" } // @public export enum KnownApplicationType { - // (undocumented) Desktop = "Desktop", - // (undocumented) RemoteApp = "RemoteApp" } // @public export enum KnownCommandLineSetting { - // (undocumented) Allow = "Allow", - // (undocumented) DoNotAllow = "DoNotAllow", - // (undocumented) Require = "Require" } // @public export enum KnownCreatedByType { - // (undocumented) Application = "Application", - // (undocumented) Key = "Key", - // (undocumented) ManagedIdentity = "ManagedIdentity", - // (undocumented) User = "User" } @@ -565,86 +599,34 @@ export enum KnownHostPoolType { // @public export enum KnownLoadBalancerType { - // (undocumented) BreadthFirst = "BreadthFirst", - // (undocumented) DepthFirst = "DepthFirst", - // (undocumented) Persistent = "Persistent" } -// @public -export enum KnownOperation { - Complete = "Complete", - Hide = "Hide", - Revoke = "Revoke", - Start = "Start", - Unhide = "Unhide" -} - // @public export enum KnownPersonalDesktopAssignmentType { - // (undocumented) Automatic = "Automatic", - // (undocumented) Direct = "Direct" } // @public export enum KnownPreferredAppGroupType { - // (undocumented) Desktop = "Desktop", - // (undocumented) None = "None", - // (undocumented) RailApplications = "RailApplications" } -// @public -export enum KnownPrivateEndpointConnectionProvisioningState { - // (undocumented) - Creating = "Creating", - // (undocumented) - Deleting = "Deleting", - // (undocumented) - Failed = "Failed", - // (undocumented) - Succeeded = "Succeeded" -} - -// @public -export enum KnownPrivateEndpointServiceConnectionStatus { - // (undocumented) - Approved = "Approved", - // (undocumented) - Pending = "Pending", - // (undocumented) - Rejected = "Rejected" -} - -// @public -export enum KnownPublicNetworkAccess { - // (undocumented) - Disabled = "Disabled", - // (undocumented) - Enabled = "Enabled" -} - // @public export enum KnownRegistrationTokenOperation { - // (undocumented) Delete = "Delete", - // (undocumented) None = "None", - // (undocumented) Update = "Update" } // @public export enum KnownRemoteApplicationType { - // (undocumented) InBuilt = "InBuilt", - // (undocumented) MsixApplication = "MsixApplication" } @@ -655,55 +637,42 @@ export enum KnownScalingHostPoolType { // @public export enum KnownScalingScheduleDaysOfWeekItem { - // (undocumented) Friday = "Friday", - // (undocumented) Monday = "Monday", - // (undocumented) Saturday = "Saturday", - // (undocumented) Sunday = "Sunday", - // (undocumented) Thursday = "Thursday", - // (undocumented) Tuesday = "Tuesday", - // (undocumented) Wednesday = "Wednesday" } +// @public +export enum KnownSessionHostComponentUpdateType { + Default = "Default", + Scheduled = "Scheduled" +} + // @public export enum KnownSessionHostLoadBalancingAlgorithm { - // (undocumented) BreadthFirst = "BreadthFirst", - // (undocumented) DepthFirst = "DepthFirst" } // @public export enum KnownSessionState { - // (undocumented) Active = "Active", - // (undocumented) Disconnected = "Disconnected", - // (undocumented) LogOff = "LogOff", - // (undocumented) Pending = "Pending", - // (undocumented) Unknown = "Unknown", - // (undocumented) UserProfileDiskMounted = "UserProfileDiskMounted" } // @public export enum KnownSSOSecretType { - // (undocumented) Certificate = "Certificate", - // (undocumented) CertificateInKeyVault = "CertificateInKeyVault", - // (undocumented) SharedKey = "SharedKey", - // (undocumented) SharedKeyInKeyVault = "SharedKeyInKeyVault" } @@ -725,23 +694,16 @@ export enum KnownStatus { // @public export enum KnownStopHostsWhen { - // (undocumented) ZeroActiveSessions = "ZeroActiveSessions", - // (undocumented) ZeroSessions = "ZeroSessions" } // @public export enum KnownUpdateState { - // (undocumented) Failed = "Failed", - // (undocumented) Initial = "Initial", - // (undocumented) Pending = "Pending", - // (undocumented) Started = "Started", - // (undocumented) Succeeded = "Succeeded" } @@ -756,9 +718,15 @@ export interface LogSpecification { } // @public -export interface MigrationRequestProperties { - migrationPath?: string; - operation?: Operation; +export interface MaintenanceWindowPatchProperties { + dayOfWeek?: DayOfWeek; + hour?: number; +} + +// @public +export interface MaintenanceWindowProperties { + dayOfWeek?: DayOfWeek; + hour?: number; } // @public @@ -786,20 +754,20 @@ export interface MsixImageURI { } // @public -export type MsixPackage = Resource & { - readonly systemData?: SystemData; - imagePath?: string; - packageName?: string; - packageFamilyName?: string; +export interface MsixPackage extends Resource { displayName?: string; - packageRelativePath?: string; - isRegularRegistration?: boolean; + imagePath?: string; isActive?: boolean; - packageDependencies?: MsixPackageDependencies[]; - version?: string; + isRegularRegistration?: boolean; lastUpdated?: Date; packageApplications?: MsixPackageApplications[]; -}; + packageDependencies?: MsixPackageDependencies[]; + packageFamilyName?: string; + packageName?: string; + packageRelativePath?: string; + readonly systemData?: SystemData; + version?: string; +} // @public export interface MsixPackageApplications { @@ -826,11 +794,11 @@ export interface MsixPackageList { } // @public -export type MsixPackagePatch = Resource & { +export interface MsixPackagePatch extends Resource { + displayName?: string; isActive?: boolean; isRegularRegistration?: boolean; - displayName?: string; -}; +} // @public export interface MsixPackages { @@ -861,6 +829,9 @@ export type MsixPackagesGetResponse = MsixPackage; // @public export interface MsixPackagesListNextOptionalParams extends coreClient.OperationOptions { + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -868,6 +839,9 @@ export type MsixPackagesListNextResponse = MsixPackageList; // @public export interface MsixPackagesListOptionalParams extends coreClient.OperationOptions { + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -881,9 +855,6 @@ export interface MsixPackagesUpdateOptionalParams extends coreClient.OperationOp // @public export type MsixPackagesUpdateResponse = MsixPackage; -// @public -export type Operation = string; - // @public export interface OperationProperties { serviceSpecification?: ServiceSpecification; @@ -923,168 +894,6 @@ export interface Plan { // @public export type PreferredAppGroupType = string; -// @public -export interface PrivateEndpoint { - readonly id?: string; -} - -// @public -export type PrivateEndpointConnection = Resource & { - privateEndpoint?: PrivateEndpoint; - privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; - provisioningState?: PrivateEndpointConnectionProvisioningState; -}; - -// @public -export interface PrivateEndpointConnectionListResultWithSystemData { - readonly nextLink?: string; - value?: PrivateEndpointConnectionWithSystemData[]; -} - -// @public -export type PrivateEndpointConnectionProvisioningState = string; - -// @public -export interface PrivateEndpointConnections { - deleteByHostPool(resourceGroupName: string, hostPoolName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteByHostPoolOptionalParams): Promise; - deleteByWorkspace(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteByWorkspaceOptionalParams): Promise; - getByHostPool(resourceGroupName: string, hostPoolName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsGetByHostPoolOptionalParams): Promise; - getByWorkspace(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsGetByWorkspaceOptionalParams): Promise; - listByHostPool(resourceGroupName: string, hostPoolName: string, options?: PrivateEndpointConnectionsListByHostPoolOptionalParams): PagedAsyncIterableIterator; - listByWorkspace(resourceGroupName: string, workspaceName: string, options?: PrivateEndpointConnectionsListByWorkspaceOptionalParams): PagedAsyncIterableIterator; - updateByHostPool(resourceGroupName: string, hostPoolName: string, privateEndpointConnectionName: string, connection: PrivateEndpointConnection, options?: PrivateEndpointConnectionsUpdateByHostPoolOptionalParams): Promise; - updateByWorkspace(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, connection: PrivateEndpointConnection, options?: PrivateEndpointConnectionsUpdateByWorkspaceOptionalParams): Promise; -} - -// @public -export interface PrivateEndpointConnectionsDeleteByHostPoolOptionalParams extends coreClient.OperationOptions { -} - -// @public -export interface PrivateEndpointConnectionsDeleteByWorkspaceOptionalParams extends coreClient.OperationOptions { -} - -// @public -export interface PrivateEndpointConnectionsGetByHostPoolOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type PrivateEndpointConnectionsGetByHostPoolResponse = PrivateEndpointConnectionWithSystemData; - -// @public -export interface PrivateEndpointConnectionsGetByWorkspaceOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type PrivateEndpointConnectionsGetByWorkspaceResponse = PrivateEndpointConnectionWithSystemData; - -// @public -export interface PrivateEndpointConnectionsListByHostPoolNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type PrivateEndpointConnectionsListByHostPoolNextResponse = PrivateEndpointConnectionListResultWithSystemData; - -// @public -export interface PrivateEndpointConnectionsListByHostPoolOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type PrivateEndpointConnectionsListByHostPoolResponse = PrivateEndpointConnectionListResultWithSystemData; - -// @public -export interface PrivateEndpointConnectionsListByWorkspaceNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type PrivateEndpointConnectionsListByWorkspaceNextResponse = PrivateEndpointConnectionListResultWithSystemData; - -// @public -export interface PrivateEndpointConnectionsListByWorkspaceOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type PrivateEndpointConnectionsListByWorkspaceResponse = PrivateEndpointConnectionListResultWithSystemData; - -// @public -export interface PrivateEndpointConnectionsUpdateByHostPoolOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type PrivateEndpointConnectionsUpdateByHostPoolResponse = PrivateEndpointConnectionWithSystemData; - -// @public -export interface PrivateEndpointConnectionsUpdateByWorkspaceOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type PrivateEndpointConnectionsUpdateByWorkspaceResponse = PrivateEndpointConnectionWithSystemData; - -// @public -export type PrivateEndpointConnectionWithSystemData = PrivateEndpointConnection & { - readonly systemData?: SystemData; -}; - -// @public -export type PrivateEndpointServiceConnectionStatus = string; - -// @public -export type PrivateLinkResource = Resource & { - readonly groupId?: string; - readonly requiredMembers?: string[]; - requiredZoneNames?: string[]; -}; - -// @public -export interface PrivateLinkResourceListResult { - readonly nextLink?: string; - value?: PrivateLinkResource[]; -} - -// @public -export interface PrivateLinkResources { - listByHostPool(resourceGroupName: string, hostPoolName: string, options?: PrivateLinkResourcesListByHostPoolOptionalParams): PagedAsyncIterableIterator; - listByWorkspace(resourceGroupName: string, workspaceName: string, options?: PrivateLinkResourcesListByWorkspaceOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface PrivateLinkResourcesListByHostPoolNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type PrivateLinkResourcesListByHostPoolNextResponse = PrivateLinkResourceListResult; - -// @public -export interface PrivateLinkResourcesListByHostPoolOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type PrivateLinkResourcesListByHostPoolResponse = PrivateLinkResourceListResult; - -// @public -export interface PrivateLinkResourcesListByWorkspaceNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type PrivateLinkResourcesListByWorkspaceNextResponse = PrivateLinkResourceListResult; - -// @public -export interface PrivateLinkResourcesListByWorkspaceOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type PrivateLinkResourcesListByWorkspaceResponse = PrivateLinkResourceListResult; - -// @public -export interface PrivateLinkServiceConnectionState { - actionsRequired?: string; - description?: string; - status?: PrivateEndpointServiceConnectionStatus; -} - -// @public -export type PublicNetworkAccess = string; - // @public export interface RegistrationInfo { expirationTime?: Date; @@ -1132,13 +941,16 @@ export interface ResourceModelWithAllowedPropertySet { } // @public (undocumented) -export type ResourceModelWithAllowedPropertySetIdentity = Identity & {}; +export interface ResourceModelWithAllowedPropertySetIdentity extends Identity { +} // @public (undocumented) -export type ResourceModelWithAllowedPropertySetPlan = Plan & {}; +export interface ResourceModelWithAllowedPropertySetPlan extends Plan { +} // @public (undocumented) -export type ResourceModelWithAllowedPropertySetSku = Sku & {}; +export interface ResourceModelWithAllowedPropertySetSku extends Sku { +} // @public export interface ResourceProviderOperation { @@ -1172,17 +984,17 @@ export interface ScalingHostPoolReference { export type ScalingHostPoolType = string; // @public -export type ScalingPlan = ResourceModelWithAllowedPropertySet & { - readonly systemData?: SystemData; - readonly objectId?: string; +export interface ScalingPlan extends ResourceModelWithAllowedPropertySet { description?: string; + exclusionTag?: string; friendlyName?: string; - timeZone?: string; + hostPoolReferences?: ScalingHostPoolReference[]; hostPoolType?: ScalingHostPoolType; - exclusionTag?: string; + readonly objectId?: string; schedules?: ScalingSchedule[]; - hostPoolReferences?: ScalingHostPoolReference[]; -}; + readonly systemData?: SystemData; + timeZone: string; +} // @public export interface ScalingPlanList { @@ -1203,6 +1015,110 @@ export interface ScalingPlanPatch { timeZone?: string; } +// @public +export interface ScalingPlanPooledSchedule extends Resource { + daysOfWeek?: DayOfWeek[]; + offPeakLoadBalancingAlgorithm?: SessionHostLoadBalancingAlgorithm; + offPeakStartTime?: Time; + peakLoadBalancingAlgorithm?: SessionHostLoadBalancingAlgorithm; + peakStartTime?: Time; + rampDownCapacityThresholdPct?: number; + rampDownForceLogoffUsers?: boolean; + rampDownLoadBalancingAlgorithm?: SessionHostLoadBalancingAlgorithm; + rampDownMinimumHostsPct?: number; + rampDownNotificationMessage?: string; + rampDownStartTime?: Time; + rampDownStopHostsWhen?: StopHostsWhen; + rampDownWaitTimeMinutes?: number; + rampUpCapacityThresholdPct?: number; + rampUpLoadBalancingAlgorithm?: SessionHostLoadBalancingAlgorithm; + rampUpMinimumHostsPct?: number; + rampUpStartTime?: Time; + readonly systemData?: SystemData; +} + +// @public +export interface ScalingPlanPooledScheduleList { + readonly nextLink?: string; + value?: ScalingPlanPooledSchedule[]; +} + +// @public +export interface ScalingPlanPooledSchedulePatch extends Resource { + daysOfWeek?: DayOfWeek[]; + offPeakLoadBalancingAlgorithm?: SessionHostLoadBalancingAlgorithm; + offPeakStartTime?: Time; + peakLoadBalancingAlgorithm?: SessionHostLoadBalancingAlgorithm; + peakStartTime?: Time; + rampDownCapacityThresholdPct?: number; + rampDownForceLogoffUsers?: boolean; + rampDownLoadBalancingAlgorithm?: SessionHostLoadBalancingAlgorithm; + rampDownMinimumHostsPct?: number; + rampDownNotificationMessage?: string; + rampDownStartTime?: Time; + rampDownStopHostsWhen?: StopHostsWhen; + rampDownWaitTimeMinutes?: number; + rampUpCapacityThresholdPct?: number; + rampUpLoadBalancingAlgorithm?: SessionHostLoadBalancingAlgorithm; + rampUpMinimumHostsPct?: number; + rampUpStartTime?: Time; +} + +// @public +export interface ScalingPlanPooledSchedules { + create(resourceGroupName: string, scalingPlanName: string, scalingPlanScheduleName: string, scalingPlanSchedule: ScalingPlanPooledSchedule, options?: ScalingPlanPooledSchedulesCreateOptionalParams): Promise; + delete(resourceGroupName: string, scalingPlanName: string, scalingPlanScheduleName: string, options?: ScalingPlanPooledSchedulesDeleteOptionalParams): Promise; + get(resourceGroupName: string, scalingPlanName: string, scalingPlanScheduleName: string, options?: ScalingPlanPooledSchedulesGetOptionalParams): Promise; + list(resourceGroupName: string, scalingPlanName: string, options?: ScalingPlanPooledSchedulesListOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, scalingPlanName: string, scalingPlanScheduleName: string, options?: ScalingPlanPooledSchedulesUpdateOptionalParams): Promise; +} + +// @public +export interface ScalingPlanPooledSchedulesCreateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ScalingPlanPooledSchedulesCreateResponse = ScalingPlanPooledSchedule; + +// @public +export interface ScalingPlanPooledSchedulesDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface ScalingPlanPooledSchedulesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ScalingPlanPooledSchedulesGetResponse = ScalingPlanPooledSchedule; + +// @public +export interface ScalingPlanPooledSchedulesListNextOptionalParams extends coreClient.OperationOptions { + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; +} + +// @public +export type ScalingPlanPooledSchedulesListNextResponse = ScalingPlanPooledScheduleList; + +// @public +export interface ScalingPlanPooledSchedulesListOptionalParams extends coreClient.OperationOptions { + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; +} + +// @public +export type ScalingPlanPooledSchedulesListResponse = ScalingPlanPooledScheduleList; + +// @public +export interface ScalingPlanPooledSchedulesUpdateOptionalParams extends coreClient.OperationOptions { + scalingPlanSchedule?: ScalingPlanPooledSchedulePatch; +} + +// @public +export type ScalingPlanPooledSchedulesUpdateResponse = ScalingPlanPooledSchedule; + // @public export interface ScalingPlans { create(resourceGroupName: string, scalingPlanName: string, scalingPlan: ScalingPlan, options?: ScalingPlansCreateOptionalParams): Promise; @@ -1234,6 +1150,9 @@ export type ScalingPlansGetResponse = ScalingPlan; // @public export interface ScalingPlansListByHostPoolNextOptionalParams extends coreClient.OperationOptions { + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -1241,6 +1160,9 @@ export type ScalingPlansListByHostPoolNextResponse = ScalingPlanList; // @public export interface ScalingPlansListByHostPoolOptionalParams extends coreClient.OperationOptions { + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -1248,6 +1170,9 @@ export type ScalingPlansListByHostPoolResponse = ScalingPlanList; // @public export interface ScalingPlansListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -1255,6 +1180,9 @@ export type ScalingPlansListByResourceGroupNextResponse = ScalingPlanList; // @public export interface ScalingPlansListByResourceGroupOptionalParams extends coreClient.OperationOptions { + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -1262,6 +1190,9 @@ export type ScalingPlansListByResourceGroupResponse = ScalingPlanList; // @public export interface ScalingPlansListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -1269,6 +1200,9 @@ export type ScalingPlansListBySubscriptionNextResponse = ScalingPlanList; // @public export interface ScalingPlansListBySubscriptionOptionalParams extends coreClient.OperationOptions { + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -1319,25 +1253,29 @@ export interface ServiceSpecification { } // @public -export type SessionHost = Resource & { - readonly systemData?: SystemData; - readonly objectId?: string; - lastHeartBeat?: Date; - sessions?: number; +export interface SessionHost extends Resource { agentVersion?: string; allowNewSession?: boolean; - readonly virtualMachineId?: string; - readonly resourceId?: string; assignedUser?: string; + friendlyName?: string; + lastHeartBeat?: Date; + readonly lastUpdateTime?: Date; + readonly objectId?: string; + osVersion?: string; + readonly resourceId?: string; + readonly sessionHostHealthCheckResults?: SessionHostHealthCheckReport[]; + sessions?: number; status?: Status; readonly statusTimestamp?: Date; - osVersion?: string; sxSStackVersion?: string; - updateState?: UpdateState; - readonly lastUpdateTime?: Date; + readonly systemData?: SystemData; updateErrorMessage?: string; - readonly sessionHostHealthCheckResults?: SessionHostHealthCheckReport[]; -}; + updateState?: UpdateState; + readonly virtualMachineId?: string; +} + +// @public +export type SessionHostComponentUpdateType = string; // @public export interface SessionHostHealthCheckFailureDetails { @@ -1363,10 +1301,11 @@ export interface SessionHostList { export type SessionHostLoadBalancingAlgorithm = string; // @public -export type SessionHostPatch = Resource & { +export interface SessionHostPatch extends Resource { allowNewSession?: boolean; assignedUser?: string; -}; + friendlyName?: string; +} // @public export interface SessionHosts { @@ -1390,6 +1329,9 @@ export type SessionHostsGetResponse = SessionHost; // @public export interface SessionHostsListNextOptionalParams extends coreClient.OperationOptions { + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -1397,6 +1339,9 @@ export type SessionHostsListNextResponse = SessionHostList; // @public export interface SessionHostsListOptionalParams extends coreClient.OperationOptions { + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -1430,13 +1375,13 @@ export type SkuTier = "Free" | "Basic" | "Standard" | "Premium"; export type SSOSecretType = string; // @public -export type StartMenuItem = Resource & { +export interface StartMenuItem extends Resource { appAlias?: string; - filePath?: string; commandLineArguments?: string; - iconPath?: string; + filePath?: string; iconIndex?: number; -}; + iconPath?: string; +} // @public export interface StartMenuItemList { @@ -1451,6 +1396,9 @@ export interface StartMenuItems { // @public export interface StartMenuItemsListNextOptionalParams extends coreClient.OperationOptions { + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -1458,6 +1406,9 @@ export type StartMenuItemsListNextResponse = StartMenuItemList; // @public export interface StartMenuItemsListOptionalParams extends coreClient.OperationOptions { + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -1489,15 +1440,15 @@ export interface Time { export type UpdateState = string; // @public -export type UserSession = Resource & { - readonly systemData?: SystemData; - readonly objectId?: string; - userPrincipalName?: string; - applicationType?: ApplicationType; - sessionState?: SessionState; +export interface UserSession extends Resource { activeDirectoryUserName?: string; + applicationType?: ApplicationType; createTime?: Date; -}; + readonly objectId?: string; + sessionState?: SessionState; + readonly systemData?: SystemData; + userPrincipalName?: string; +} // @public export interface UserSessionList { @@ -1534,6 +1485,9 @@ export type UserSessionsGetResponse = UserSession; // @public export interface UserSessionsListByHostPoolNextOptionalParams extends coreClient.OperationOptions { filter?: string; + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -1542,6 +1496,9 @@ export type UserSessionsListByHostPoolNextResponse = UserSessionList; // @public export interface UserSessionsListByHostPoolOptionalParams extends coreClient.OperationOptions { filter?: string; + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -1549,6 +1506,9 @@ export type UserSessionsListByHostPoolResponse = UserSessionList; // @public export interface UserSessionsListNextOptionalParams extends coreClient.OperationOptions { + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -1556,6 +1516,9 @@ export type UserSessionsListNextResponse = UserSessionList; // @public export interface UserSessionsListOptionalParams extends coreClient.OperationOptions { + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -1567,15 +1530,14 @@ export interface UserSessionsSendMessageOptionalParams extends coreClient.Operat } // @public -export type Workspace = ResourceModelWithAllowedPropertySet & { - readonly systemData?: SystemData; - readonly objectId?: string; - description?: string; - friendlyName?: string; +export interface Workspace extends ResourceModelWithAllowedPropertySet { applicationGroupReferences?: string[]; readonly cloudPcResource?: boolean; - publicNetworkAccess?: PublicNetworkAccess; -}; + description?: string; + friendlyName?: string; + readonly objectId?: string; + readonly systemData?: SystemData; +} // @public export interface WorkspaceList { @@ -1588,7 +1550,6 @@ export interface WorkspacePatch { applicationGroupReferences?: string[]; description?: string; friendlyName?: string; - publicNetworkAccess?: PublicNetworkAccess; tags?: { [propertyName: string]: string; }; @@ -1624,6 +1585,9 @@ export type WorkspacesGetResponse = Workspace; // @public export interface WorkspacesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public @@ -1631,6 +1595,9 @@ export type WorkspacesListByResourceGroupNextResponse = WorkspaceList; // @public export interface WorkspacesListByResourceGroupOptionalParams extends coreClient.OperationOptions { + initialSkip?: number; + isDescending?: boolean; + pageSize?: number; } // @public diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/desktopVirtualizationAPIClient.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/desktopVirtualizationAPIClient.ts index efc1786e843d..e256af0b95bc 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/desktopVirtualizationAPIClient.ts +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/desktopVirtualizationAPIClient.ts @@ -8,11 +8,17 @@ import * as coreClient from "@azure/core-client"; import * as coreRestPipeline from "@azure/core-rest-pipeline"; +import { + PipelineRequest, + PipelineResponse, + SendRequest +} from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { OperationsImpl, WorkspacesImpl, ScalingPlansImpl, + ScalingPlanPooledSchedulesImpl, ApplicationGroupsImpl, StartMenuItemsImpl, ApplicationsImpl, @@ -21,14 +27,13 @@ import { UserSessionsImpl, SessionHostsImpl, MsixPackagesImpl, - MsixImagesImpl, - PrivateEndpointConnectionsImpl, - PrivateLinkResourcesImpl + MsixImagesImpl } from "./operations"; import { Operations, Workspaces, ScalingPlans, + ScalingPlanPooledSchedules, ApplicationGroups, StartMenuItems, Applications, @@ -37,9 +42,7 @@ import { UserSessions, SessionHosts, MsixPackages, - MsixImages, - PrivateEndpointConnections, - PrivateLinkResources + MsixImages } from "./operationsInterfaces"; import { DesktopVirtualizationAPIClientOptionalParams } from "./models"; @@ -75,7 +78,7 @@ export class DesktopVirtualizationAPIClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-desktopvirtualization/1.0.0-beta.4`; + const packageDetails = `azsdk-js-arm-desktopvirtualization/1.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -95,37 +98,45 @@ export class DesktopVirtualizationAPIClient extends coreClient.ServiceClient { }; super(optionsWithDefaults); + let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); - const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( + bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName ); - if (!bearerTokenAuthenticationPolicyFound) { - this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName - }); - this.pipeline.addPolicy( - coreRestPipeline.bearerTokenAuthenticationPolicy({ - scopes: `${optionsWithDefaults.baseUri}/.default`, - challengeCallbacks: { - authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) - ); - } + } + if ( + !options || + !options.pipeline || + options.pipeline.getOrderedPolicies().length == 0 || + !bearerTokenAuthenticationPolicyFound + ) { + this.pipeline.removePolicy({ + name: coreRestPipeline.bearerTokenAuthenticationPolicyName + }); + this.pipeline.addPolicy( + coreRestPipeline.bearerTokenAuthenticationPolicy({ + credential: credentials, + scopes: `${optionsWithDefaults.credentialScopes}`, + challengeCallbacks: { + authorizeRequestOnChallenge: + coreClient.authorizeRequestOnClaimChallenge + } + }) + ); } // Parameter assignments this.subscriptionId = subscriptionId; // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2021-09-03-preview"; + this.apiVersion = options.apiVersion || "2022-09-09"; this.operations = new OperationsImpl(this); this.workspaces = new WorkspacesImpl(this); this.scalingPlans = new ScalingPlansImpl(this); + this.scalingPlanPooledSchedules = new ScalingPlanPooledSchedulesImpl(this); this.applicationGroups = new ApplicationGroupsImpl(this); this.startMenuItems = new StartMenuItemsImpl(this); this.applications = new ApplicationsImpl(this); @@ -135,13 +146,41 @@ export class DesktopVirtualizationAPIClient extends coreClient.ServiceClient { this.sessionHosts = new SessionHostsImpl(this); this.msixPackages = new MsixPackagesImpl(this); this.msixImages = new MsixImagesImpl(this); - this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); - this.privateLinkResources = new PrivateLinkResourcesImpl(this); + this.addCustomApiVersionPolicy(options.apiVersion); + } + + /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */ + private addCustomApiVersionPolicy(apiVersion?: string) { + if (!apiVersion) { + return; + } + const apiVersionPolicy = { + name: "CustomApiVersionPolicy", + async sendRequest( + request: PipelineRequest, + next: SendRequest + ): Promise { + const param = request.url.split("?"); + if (param.length > 1) { + const newParams = param[1].split("&").map((item) => { + if (item.indexOf("api-version") > -1) { + return "api-version=" + apiVersion; + } else { + return item; + } + }); + request.url = param[0] + "?" + newParams.join("&"); + } + return next(request); + } + }; + this.pipeline.addPolicy(apiVersionPolicy); } operations: Operations; workspaces: Workspaces; scalingPlans: ScalingPlans; + scalingPlanPooledSchedules: ScalingPlanPooledSchedules; applicationGroups: ApplicationGroups; startMenuItems: StartMenuItems; applications: Applications; @@ -151,6 +190,4 @@ export class DesktopVirtualizationAPIClient extends coreClient.ServiceClient { sessionHosts: SessionHosts; msixPackages: MsixPackages; msixImages: MsixImages; - privateEndpointConnections: PrivateEndpointConnections; - privateLinkResources: PrivateLinkResources; } diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/models/index.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/models/index.ts index ebfab3443ef2..26486dd1c95c 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/models/index.ts +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/models/index.ts @@ -184,8 +184,6 @@ export interface WorkspacePatch { friendlyName?: string; /** List of applicationGroup links. */ applicationGroupReferences?: string[]; - /** Enabled to allow this resource to be access from the public network */ - publicNetworkAccess?: PublicNetworkAccess; } /** List of Workspace definitions. */ @@ -199,9 +197,9 @@ export interface WorkspaceList { readonly nextLink?: string; } -/** Scaling plan schedule. */ +/** A ScalingPlanPooledSchedule. */ export interface ScalingSchedule { - /** Name of the scaling schedule. */ + /** Name of the ScalingPlanPooledSchedule. */ name?: string; /** Set of days of the week on which this schedule is active. */ daysOfWeek?: ScalingScheduleDaysOfWeekItem[]; @@ -284,14 +282,6 @@ export interface ScalingPlanList { readonly nextLink?: string; } -/** Properties for arm migration. */ -export interface MigrationRequestProperties { - /** The type of operation for migration. */ - operation?: Operation; - /** The path to the legacy object to migrate. */ - migrationPath?: string; -} - /** Common fields that are returned in the response for all Azure Resource Manager resources */ export interface Resource { /** @@ -311,6 +301,17 @@ export interface Resource { readonly type?: string; } +/** List of ScalingPlanPooledSchedule definitions. */ +export interface ScalingPlanPooledScheduleList { + /** List of ScalingPlanPooledSchedule definitions. */ + value?: ScalingPlanPooledSchedule[]; + /** + * Link to the next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + /** List of ApplicationGroup definitions. */ export interface ApplicationGroupList { /** List of ApplicationGroup definitions. */ @@ -403,6 +404,26 @@ export interface RegistrationInfo { registrationTokenOperation?: RegistrationTokenOperation; } +/** The session host configuration for updating agent, monitoring agent, and stack component. */ +export interface AgentUpdateProperties { + /** The type of maintenance for session host components. */ + type?: SessionHostComponentUpdateType; + /** Whether to use localTime of the virtual machine. */ + useSessionHostLocalTime?: boolean; + /** Time zone for maintenance as defined in https://docs.microsoft.com/en-us/dotnet/api/system.timezoneinfo.findsystemtimezonebyid?view=net-5.0. Must be set if useLocalTime is true. */ + maintenanceWindowTimeZone?: string; + /** List of maintenance windows. Maintenance windows are 2 hours long. */ + maintenanceWindows?: MaintenanceWindowProperties[]; +} + +/** Maintenance window starting hour and day of week. */ +export interface MaintenanceWindowProperties { + /** The update start hour of the day. (0 - 23) */ + hour?: number; + /** Day of the week. */ + dayOfWeek?: DayOfWeek; +} + /** Represents a RegistrationInfo definition. */ export interface RegistrationInfoPatch { /** Expiration time of registration token. */ @@ -411,6 +432,26 @@ export interface RegistrationInfoPatch { registrationTokenOperation?: RegistrationTokenOperation; } +/** The session host configuration for updating agent, monitoring agent, and stack component. */ +export interface AgentUpdatePatchProperties { + /** The type of maintenance for session host components. */ + type?: SessionHostComponentUpdateType; + /** Whether to use localTime of the virtual machine. */ + useSessionHostLocalTime?: boolean; + /** Time zone for maintenance as defined in https://docs.microsoft.com/en-us/dotnet/api/system.timezoneinfo.findsystemtimezonebyid?view=net-5.0. Must be set if useLocalTime is true. */ + maintenanceWindowTimeZone?: string; + /** List of maintenance windows. Maintenance windows are 2 hours long. */ + maintenanceWindows?: MaintenanceWindowPatchProperties[]; +} + +/** Maintenance window starting hour and day of week. */ +export interface MaintenanceWindowPatchProperties { + /** The update start hour of the day. (0 - 23) */ + hour?: number; + /** Day of the week. */ + dayOfWeek?: DayOfWeek; +} + /** List of HostPool definitions. */ export interface HostPoolList { /** List of HostPool definitions. */ @@ -546,49 +587,8 @@ export interface SendMessage { messageBody?: string; } -/** List of private endpoint connection associated with the specified storage account */ -export interface PrivateEndpointConnectionListResultWithSystemData { - /** Array of private endpoint connections */ - value?: PrivateEndpointConnectionWithSystemData[]; - /** - * Link to the next page of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - -/** The Private Endpoint resource. */ -export interface PrivateEndpoint { - /** - * The ARM identifier for Private Endpoint - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; -} - -/** A collection of information about the state of the connection between service consumer and provider. */ -export interface PrivateLinkServiceConnectionState { - /** Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */ - status?: PrivateEndpointServiceConnectionStatus; - /** The reason for approval/rejection of the connection. */ - description?: string; - /** A message indicating if changes on the service provider require any updates on the consumer. */ - actionsRequired?: string; -} - -/** A list of private link resources */ -export interface PrivateLinkResourceListResult { - /** Array of private link resources */ - value?: PrivateLinkResource[]; - /** - * Link to the next page of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - /** Represents a Workspace definition. */ -export type Workspace = ResourceModelWithAllowedPropertySet & { +export interface Workspace extends ResourceModelWithAllowedPropertySet { /** * Metadata pertaining to creation and last modification of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -610,12 +610,10 @@ export type Workspace = ResourceModelWithAllowedPropertySet & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly cloudPcResource?: boolean; - /** Enabled allows this resource to be accessed from both public and private networks, Disabled allows this resource to only be accessed via private endpoints */ - publicNetworkAccess?: PublicNetworkAccess; -}; +} /** Represents a scaling plan definition. */ -export type ScalingPlan = ResourceModelWithAllowedPropertySet & { +export interface ScalingPlan extends ResourceModelWithAllowedPropertySet { /** * Metadata pertaining to creation and last modification of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -631,19 +629,19 @@ export type ScalingPlan = ResourceModelWithAllowedPropertySet & { /** User friendly name of scaling plan. */ friendlyName?: string; /** Timezone of the scaling plan. */ - timeZone?: string; + timeZone: string; /** HostPool type for desktop. */ hostPoolType?: ScalingHostPoolType; /** Exclusion tag for scaling plan. */ exclusionTag?: string; - /** List of ScalingSchedule definitions. */ + /** List of ScalingPlanPooledSchedule definitions. */ schedules?: ScalingSchedule[]; /** List of ScalingHostPoolReference definitions. */ hostPoolReferences?: ScalingHostPoolReference[]; -}; +} /** Represents a ApplicationGroup definition. */ -export type ApplicationGroup = ResourceModelWithAllowedPropertySet & { +export interface ApplicationGroup extends ResourceModelWithAllowedPropertySet { /** * Metadata pertaining to creation and last modification of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -667,17 +665,15 @@ export type ApplicationGroup = ResourceModelWithAllowedPropertySet & { readonly workspaceArmPath?: string; /** Resource Type of ApplicationGroup. */ applicationGroupType: ApplicationGroupType; - /** The registration info of HostPool. */ - migrationRequest?: MigrationRequestProperties; /** * Is cloud pc resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly cloudPcResource?: boolean; -}; +} /** Represents a HostPool definition. */ -export type HostPool = ResourceModelWithAllowedPropertySet & { +export interface HostPool extends ResourceModelWithAllowedPropertySet { /** * Metadata pertaining to creation and last modification of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -727,35 +723,114 @@ export type HostPool = ResourceModelWithAllowedPropertySet & { preferredAppGroupType: PreferredAppGroupType; /** The flag to turn on/off StartVMOnConnect feature. */ startVMOnConnect?: boolean; - /** The registration info of HostPool. */ - migrationRequest?: MigrationRequestProperties; /** * Is cloud pc resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly cloudPcResource?: boolean; - /** Enabled allows this resource to be accessed from both public and private networks, Disabled allows this resource to only be accessed via private endpoints */ - publicNetworkAccess?: PublicNetworkAccess; -}; + /** The session host configuration for updating agent, monitoring agent, and stack component. */ + agentUpdate?: AgentUpdateProperties; +} + +export interface ResourceModelWithAllowedPropertySetIdentity extends Identity {} -export type ResourceModelWithAllowedPropertySetIdentity = Identity & {}; +export interface ResourceModelWithAllowedPropertySetSku extends Sku {} -export type ResourceModelWithAllowedPropertySetSku = Sku & {}; +export interface ResourceModelWithAllowedPropertySetPlan extends Plan {} -export type ResourceModelWithAllowedPropertySetPlan = Plan & {}; +/** Represents a ScalingPlanPooledSchedule definition. */ +export interface ScalingPlanPooledSchedule extends Resource { + /** + * Metadata pertaining to creation and last modification of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** Set of days of the week on which this schedule is active. */ + daysOfWeek?: DayOfWeek[]; + /** Starting time for ramp up period. */ + rampUpStartTime?: Time; + /** Load balancing algorithm for ramp up period. */ + rampUpLoadBalancingAlgorithm?: SessionHostLoadBalancingAlgorithm; + /** Minimum host percentage for ramp up period. */ + rampUpMinimumHostsPct?: number; + /** Capacity threshold for ramp up period. */ + rampUpCapacityThresholdPct?: number; + /** Starting time for peak period. */ + peakStartTime?: Time; + /** Load balancing algorithm for peak period. */ + peakLoadBalancingAlgorithm?: SessionHostLoadBalancingAlgorithm; + /** Starting time for ramp down period. */ + rampDownStartTime?: Time; + /** Load balancing algorithm for ramp down period. */ + rampDownLoadBalancingAlgorithm?: SessionHostLoadBalancingAlgorithm; + /** Minimum host percentage for ramp down period. */ + rampDownMinimumHostsPct?: number; + /** Capacity threshold for ramp down period. */ + rampDownCapacityThresholdPct?: number; + /** Should users be logged off forcefully from hosts. */ + rampDownForceLogoffUsers?: boolean; + /** Specifies when to stop hosts during ramp down period. */ + rampDownStopHostsWhen?: StopHostsWhen; + /** Number of minutes to wait to stop hosts during ramp down period. */ + rampDownWaitTimeMinutes?: number; + /** Notification message for users during ramp down period. */ + rampDownNotificationMessage?: string; + /** Starting time for off-peak period. */ + offPeakStartTime?: Time; + /** Load balancing algorithm for off-peak period. */ + offPeakLoadBalancingAlgorithm?: SessionHostLoadBalancingAlgorithm; +} + +/** ScalingPlanPooledSchedule properties that can be patched. */ +export interface ScalingPlanPooledSchedulePatch extends Resource { + /** Set of days of the week on which this schedule is active. */ + daysOfWeek?: DayOfWeek[]; + /** Starting time for ramp up period. */ + rampUpStartTime?: Time; + /** Load balancing algorithm for ramp up period. */ + rampUpLoadBalancingAlgorithm?: SessionHostLoadBalancingAlgorithm; + /** Minimum host percentage for ramp up period. */ + rampUpMinimumHostsPct?: number; + /** Capacity threshold for ramp up period. */ + rampUpCapacityThresholdPct?: number; + /** Starting time for peak period. */ + peakStartTime?: Time; + /** Load balancing algorithm for peak period. */ + peakLoadBalancingAlgorithm?: SessionHostLoadBalancingAlgorithm; + /** Starting time for ramp down period. */ + rampDownStartTime?: Time; + /** Load balancing algorithm for ramp down period. */ + rampDownLoadBalancingAlgorithm?: SessionHostLoadBalancingAlgorithm; + /** Minimum host percentage for ramp down period. */ + rampDownMinimumHostsPct?: number; + /** Capacity threshold for ramp down period. */ + rampDownCapacityThresholdPct?: number; + /** Should users be logged off forcefully from hosts. */ + rampDownForceLogoffUsers?: boolean; + /** Specifies when to stop hosts during ramp down period. */ + rampDownStopHostsWhen?: StopHostsWhen; + /** Number of minutes to wait to stop hosts during ramp down period. */ + rampDownWaitTimeMinutes?: number; + /** Notification message for users during ramp down period. */ + rampDownNotificationMessage?: string; + /** Starting time for off-peak period. */ + offPeakStartTime?: Time; + /** Load balancing algorithm for off-peak period. */ + offPeakLoadBalancingAlgorithm?: SessionHostLoadBalancingAlgorithm; +} /** ApplicationGroup properties that can be patched. */ -export type ApplicationGroupPatch = Resource & { +export interface ApplicationGroupPatch extends Resource { /** tags to be updated */ tags?: { [propertyName: string]: string }; /** Description of ApplicationGroup. */ description?: string; /** Friendly name of ApplicationGroup. */ friendlyName?: string; -}; +} /** Represents a StartMenuItem definition. */ -export type StartMenuItem = Resource & { +export interface StartMenuItem extends Resource { /** Alias of StartMenuItem. */ appAlias?: string; /** Path to the file of StartMenuItem. */ @@ -766,10 +841,10 @@ export type StartMenuItem = Resource & { iconPath?: string; /** Index of the icon. */ iconIndex?: number; -}; +} /** Schema for Application properties. */ -export type Application = Resource & { +export interface Application extends Resource { /** * Metadata pertaining to creation and last modification of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -812,10 +887,10 @@ export type Application = Resource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly iconContent?: Uint8Array; -}; +} /** Schema for Desktop properties. */ -export type Desktop = Resource & { +export interface Desktop extends Resource { /** * Metadata pertaining to creation and last modification of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -840,10 +915,10 @@ export type Desktop = Resource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly iconContent?: Uint8Array; -}; +} /** HostPool properties that can be patched. */ -export type HostPoolPatch = Resource & { +export interface HostPoolPatch extends Resource { /** tags to be updated */ tags?: { [propertyName: string]: string }; /** Friendly name of HostPool. */ @@ -878,12 +953,12 @@ export type HostPoolPatch = Resource & { preferredAppGroupType?: PreferredAppGroupType; /** The flag to turn on/off StartVMOnConnect feature. */ startVMOnConnect?: boolean; - /** Enabled to allow this resource to be access from the public network */ - publicNetworkAccess?: PublicNetworkAccess; -}; + /** The session host configuration for updating agent, monitoring agent, and stack component. */ + agentUpdate?: AgentUpdatePatchProperties; +} /** Represents a UserSession definition. */ -export type UserSession = Resource & { +export interface UserSession extends Resource { /** * Metadata pertaining to creation and last modification of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -904,10 +979,10 @@ export type UserSession = Resource & { activeDirectoryUserName?: string; /** The timestamp of the user session create. */ createTime?: Date; -}; +} /** Represents a SessionHost definition. */ -export type SessionHost = Resource & { +export interface SessionHost extends Resource { /** * Metadata pertaining to creation and last modification of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -938,6 +1013,8 @@ export type SessionHost = Resource & { readonly resourceId?: string; /** User assigned to SessionHost. */ assignedUser?: string; + /** Friendly name of SessionHost */ + friendlyName?: string; /** Status for a SessionHost. */ status?: Status; /** @@ -963,18 +1040,20 @@ export type SessionHost = Resource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly sessionHostHealthCheckResults?: SessionHostHealthCheckReport[]; -}; +} /** SessionHost properties that can be patched. */ -export type SessionHostPatch = Resource & { +export interface SessionHostPatch extends Resource { /** Allow a new session. */ allowNewSession?: boolean; /** User assigned to SessionHost. */ assignedUser?: string; -}; + /** Friendly name of SessionHost */ + friendlyName?: string; +} /** Schema for MSIX Package properties. */ -export type MsixPackage = Resource & { +export interface MsixPackage extends Resource { /** * Metadata pertaining to creation and last modification of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1002,20 +1081,20 @@ export type MsixPackage = Resource & { lastUpdated?: Date; /** List of package applications. */ packageApplications?: MsixPackageApplications[]; -}; +} /** MSIX Package properties that can be patched. */ -export type MsixPackagePatch = Resource & { +export interface MsixPackagePatch extends Resource { /** Set a version of the package to be active across hostpool. */ isActive?: boolean; /** Set Registration mode. Regular or Delayed. */ isRegularRegistration?: boolean; /** Display name for MSIX Package. */ displayName?: string; -}; +} /** Represents the definition of contents retrieved after expanding the MSIX Image. */ -export type ExpandMsixImage = Resource & { +export interface ExpandMsixImage extends Resource { /** Alias of MSIX Package. */ packageAlias?: string; /** VHD/CIM image path on Network Share. */ @@ -1042,48 +1121,17 @@ export type ExpandMsixImage = Resource & { lastUpdated?: Date; /** List of package applications. */ packageApplications?: MsixPackageApplications[]; -}; - -/** The Private Endpoint Connection resource. */ -export type PrivateEndpointConnection = Resource & { - /** The resource of private end point. */ - privateEndpoint?: PrivateEndpoint; - /** A collection of information about the state of the connection between service consumer and provider. */ - privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; - /** The provisioning state of the private endpoint connection resource. */ - provisioningState?: PrivateEndpointConnectionProvisioningState; -}; - -/** A private link resource */ -export type PrivateLinkResource = Resource & { - /** - * The private link resource group id. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly groupId?: string; - /** - * The private link resource required member names. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly requiredMembers?: string[]; - /** The private link resource Private link DNS zone name. */ - requiredZoneNames?: string[]; -}; - -/** The Private Endpoint Connection resource. */ -export type PrivateEndpointConnectionWithSystemData = PrivateEndpointConnection & { - /** - * Metadata pertaining to creation and last modification of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; -}; +} /** Known values of {@link CreatedByType} that the service accepts. */ export enum KnownCreatedByType { + /** User */ User = "User", + /** Application */ Application = "Application", + /** ManagedIdentity */ ManagedIdentity = "ManagedIdentity", + /** Key */ Key = "Key" } @@ -1099,22 +1147,6 @@ export enum KnownCreatedByType { */ export type CreatedByType = string; -/** Known values of {@link PublicNetworkAccess} that the service accepts. */ -export enum KnownPublicNetworkAccess { - Enabled = "Enabled", - Disabled = "Disabled" -} - -/** - * Defines values for PublicNetworkAccess. \ - * {@link KnownPublicNetworkAccess} can be used interchangeably with PublicNetworkAccess, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Enabled** \ - * **Disabled** - */ -export type PublicNetworkAccess = string; - /** Known values of {@link ScalingHostPoolType} that the service accepts. */ export enum KnownScalingHostPoolType { /** Users get a new (random) SessionHost every time it connects to the HostPool. */ @@ -1132,12 +1164,19 @@ export type ScalingHostPoolType = string; /** Known values of {@link ScalingScheduleDaysOfWeekItem} that the service accepts. */ export enum KnownScalingScheduleDaysOfWeekItem { + /** Sunday */ Sunday = "Sunday", + /** Monday */ Monday = "Monday", + /** Tuesday */ Tuesday = "Tuesday", + /** Wednesday */ Wednesday = "Wednesday", + /** Thursday */ Thursday = "Thursday", + /** Friday */ Friday = "Friday", + /** Saturday */ Saturday = "Saturday" } @@ -1158,7 +1197,9 @@ export type ScalingScheduleDaysOfWeekItem = string; /** Known values of {@link SessionHostLoadBalancingAlgorithm} that the service accepts. */ export enum KnownSessionHostLoadBalancingAlgorithm { + /** BreadthFirst */ BreadthFirst = "BreadthFirst", + /** DepthFirst */ DepthFirst = "DepthFirst" } @@ -1174,7 +1215,9 @@ export type SessionHostLoadBalancingAlgorithm = string; /** Known values of {@link StopHostsWhen} that the service accepts. */ export enum KnownStopHostsWhen { + /** ZeroSessions */ ZeroSessions = "ZeroSessions", + /** ZeroActiveSessions */ ZeroActiveSessions = "ZeroActiveSessions" } @@ -1190,7 +1233,9 @@ export type StopHostsWhen = string; /** Known values of {@link ApplicationGroupType} that the service accepts. */ export enum KnownApplicationGroupType { + /** RemoteApp */ RemoteApp = "RemoteApp", + /** Desktop */ Desktop = "Desktop" } @@ -1204,36 +1249,11 @@ export enum KnownApplicationGroupType { */ export type ApplicationGroupType = string; -/** Known values of {@link Operation} that the service accepts. */ -export enum KnownOperation { - /** Start the migration. */ - Start = "Start", - /** Revoke the migration. */ - Revoke = "Revoke", - /** Complete the migration. */ - Complete = "Complete", - /** Hide the hostpool. */ - Hide = "Hide", - /** Unhide the hostpool. */ - Unhide = "Unhide" -} - -/** - * Defines values for Operation. \ - * {@link KnownOperation} can be used interchangeably with Operation, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Start**: Start the migration. \ - * **Revoke**: Revoke the migration. \ - * **Complete**: Complete the migration. \ - * **Hide**: Hide the hostpool. \ - * **Unhide**: Unhide the hostpool. - */ -export type Operation = string; - /** Known values of {@link RemoteApplicationType} that the service accepts. */ export enum KnownRemoteApplicationType { + /** InBuilt */ InBuilt = "InBuilt", + /** MsixApplication */ MsixApplication = "MsixApplication" } @@ -1249,8 +1269,11 @@ export type RemoteApplicationType = string; /** Known values of {@link CommandLineSetting} that the service accepts. */ export enum KnownCommandLineSetting { + /** DoNotAllow */ DoNotAllow = "DoNotAllow", + /** Allow */ Allow = "Allow", + /** Require */ Require = "Require" } @@ -1288,7 +1311,9 @@ export type HostPoolType = string; /** Known values of {@link PersonalDesktopAssignmentType} that the service accepts. */ export enum KnownPersonalDesktopAssignmentType { + /** Automatic */ Automatic = "Automatic", + /** Direct */ Direct = "Direct" } @@ -1304,8 +1329,11 @@ export type PersonalDesktopAssignmentType = string; /** Known values of {@link LoadBalancerType} that the service accepts. */ export enum KnownLoadBalancerType { + /** BreadthFirst */ BreadthFirst = "BreadthFirst", + /** DepthFirst */ DepthFirst = "DepthFirst", + /** Persistent */ Persistent = "Persistent" } @@ -1322,8 +1350,11 @@ export type LoadBalancerType = string; /** Known values of {@link RegistrationTokenOperation} that the service accepts. */ export enum KnownRegistrationTokenOperation { + /** Delete */ Delete = "Delete", + /** None */ None = "None", + /** Update */ Update = "Update" } @@ -1340,9 +1371,13 @@ export type RegistrationTokenOperation = string; /** Known values of {@link SSOSecretType} that the service accepts. */ export enum KnownSSOSecretType { + /** SharedKey */ SharedKey = "SharedKey", + /** Certificate */ Certificate = "Certificate", + /** SharedKeyInKeyVault */ SharedKeyInKeyVault = "SharedKeyInKeyVault", + /** CertificateInKeyVault */ CertificateInKeyVault = "CertificateInKeyVault" } @@ -1360,8 +1395,11 @@ export type SSOSecretType = string; /** Known values of {@link PreferredAppGroupType} that the service accepts. */ export enum KnownPreferredAppGroupType { + /** None */ None = "None", + /** Desktop */ Desktop = "Desktop", + /** RailApplications */ RailApplications = "RailApplications" } @@ -1376,9 +1414,29 @@ export enum KnownPreferredAppGroupType { */ export type PreferredAppGroupType = string; +/** Known values of {@link SessionHostComponentUpdateType} that the service accepts. */ +export enum KnownSessionHostComponentUpdateType { + /** Agent and other agent side components are delivery schedule is controlled by WVD Infra. */ + Default = "Default", + /** TenantAdmin have opted in for Scheduled Component Update feature. */ + Scheduled = "Scheduled" +} + +/** + * Defines values for SessionHostComponentUpdateType. \ + * {@link KnownSessionHostComponentUpdateType} can be used interchangeably with SessionHostComponentUpdateType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Default**: Agent and other agent side components are delivery schedule is controlled by WVD Infra. \ + * **Scheduled**: TenantAdmin have opted in for Scheduled Component Update feature. + */ +export type SessionHostComponentUpdateType = string; + /** Known values of {@link ApplicationType} that the service accepts. */ export enum KnownApplicationType { + /** RemoteApp */ RemoteApp = "RemoteApp", + /** Desktop */ Desktop = "Desktop" } @@ -1394,11 +1452,17 @@ export type ApplicationType = string; /** Known values of {@link SessionState} that the service accepts. */ export enum KnownSessionState { + /** Unknown */ Unknown = "Unknown", + /** Active */ Active = "Active", + /** Disconnected */ Disconnected = "Disconnected", + /** Pending */ Pending = "Pending", + /** LogOff */ LogOff = "LogOff", + /** UserProfileDiskMounted */ UserProfileDiskMounted = "UserProfileDiskMounted" } @@ -1466,10 +1530,15 @@ export type Status = string; /** Known values of {@link UpdateState} that the service accepts. */ export enum KnownUpdateState { + /** Initial */ Initial = "Initial", + /** Pending */ Pending = "Pending", + /** Started */ Started = "Started", + /** Succeeded */ Succeeded = "Succeeded", + /** Failed */ Failed = "Failed" } @@ -1554,46 +1623,17 @@ export enum KnownHealthCheckResult { * **SessionHostShutdown**: We received a Shutdown notification. */ export type HealthCheckResult = string; - -/** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */ -export enum KnownPrivateEndpointServiceConnectionStatus { - Pending = "Pending", - Approved = "Approved", - Rejected = "Rejected" -} - -/** - * Defines values for PrivateEndpointServiceConnectionStatus. \ - * {@link KnownPrivateEndpointServiceConnectionStatus} can be used interchangeably with PrivateEndpointServiceConnectionStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Pending** \ - * **Approved** \ - * **Rejected** - */ -export type PrivateEndpointServiceConnectionStatus = string; - -/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */ -export enum KnownPrivateEndpointConnectionProvisioningState { - Succeeded = "Succeeded", - Creating = "Creating", - Deleting = "Deleting", - Failed = "Failed" -} - -/** - * Defines values for PrivateEndpointConnectionProvisioningState. \ - * {@link KnownPrivateEndpointConnectionProvisioningState} can be used interchangeably with PrivateEndpointConnectionProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Succeeded** \ - * **Creating** \ - * **Deleting** \ - * **Failed** - */ -export type PrivateEndpointConnectionProvisioningState = string; /** Defines values for SkuTier. */ export type SkuTier = "Free" | "Basic" | "Standard" | "Premium"; +/** Defines values for DayOfWeek. */ +export type DayOfWeek = + | "Monday" + | "Tuesday" + | "Wednesday" + | "Thursday" + | "Friday" + | "Saturday" + | "Sunday"; /** Optional parameters. */ export interface OperationsListOptionalParams @@ -1639,7 +1679,14 @@ export type WorkspacesUpdateResponse = Workspace; /** Optional parameters. */ export interface WorkspacesListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; +} /** Contains response data for the listByResourceGroup operation. */ export type WorkspacesListByResourceGroupResponse = WorkspaceList; @@ -1653,7 +1700,14 @@ export type WorkspacesListBySubscriptionResponse = WorkspaceList; /** Optional parameters. */ export interface WorkspacesListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; +} /** Contains response data for the listByResourceGroupNext operation. */ export type WorkspacesListByResourceGroupNextResponse = WorkspaceList; @@ -1695,46 +1749,144 @@ export type ScalingPlansUpdateResponse = ScalingPlan; /** Optional parameters. */ export interface ScalingPlansListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; +} /** Contains response data for the listByResourceGroup operation. */ export type ScalingPlansListByResourceGroupResponse = ScalingPlanList; /** Optional parameters. */ export interface ScalingPlansListBySubscriptionOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; +} /** Contains response data for the listBySubscription operation. */ export type ScalingPlansListBySubscriptionResponse = ScalingPlanList; /** Optional parameters. */ export interface ScalingPlansListByHostPoolOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; +} /** Contains response data for the listByHostPool operation. */ export type ScalingPlansListByHostPoolResponse = ScalingPlanList; /** Optional parameters. */ export interface ScalingPlansListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; +} /** Contains response data for the listByResourceGroupNext operation. */ export type ScalingPlansListByResourceGroupNextResponse = ScalingPlanList; /** Optional parameters. */ export interface ScalingPlansListBySubscriptionNextOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; +} /** Contains response data for the listBySubscriptionNext operation. */ export type ScalingPlansListBySubscriptionNextResponse = ScalingPlanList; /** Optional parameters. */ export interface ScalingPlansListByHostPoolNextOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; +} /** Contains response data for the listByHostPoolNext operation. */ export type ScalingPlansListByHostPoolNextResponse = ScalingPlanList; +/** Optional parameters. */ +export interface ScalingPlanPooledSchedulesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ScalingPlanPooledSchedulesGetResponse = ScalingPlanPooledSchedule; + +/** Optional parameters. */ +export interface ScalingPlanPooledSchedulesCreateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the create operation. */ +export type ScalingPlanPooledSchedulesCreateResponse = ScalingPlanPooledSchedule; + +/** Optional parameters. */ +export interface ScalingPlanPooledSchedulesDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ScalingPlanPooledSchedulesUpdateOptionalParams + extends coreClient.OperationOptions { + /** Object containing ScalingPlanPooledSchedule definitions. */ + scalingPlanSchedule?: ScalingPlanPooledSchedulePatch; +} + +/** Contains response data for the update operation. */ +export type ScalingPlanPooledSchedulesUpdateResponse = ScalingPlanPooledSchedule; + +/** Optional parameters. */ +export interface ScalingPlanPooledSchedulesListOptionalParams + extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; +} + +/** Contains response data for the list operation. */ +export type ScalingPlanPooledSchedulesListResponse = ScalingPlanPooledScheduleList; + +/** Optional parameters. */ +export interface ScalingPlanPooledSchedulesListNextOptionalParams + extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; +} + +/** Contains response data for the listNext operation. */ +export type ScalingPlanPooledSchedulesListNextResponse = ScalingPlanPooledScheduleList; + /** Optional parameters. */ export interface ApplicationGroupsGetOptionalParams extends coreClient.OperationOptions {} @@ -1766,6 +1918,12 @@ export type ApplicationGroupsUpdateResponse = ApplicationGroup; /** Optional parameters. */ export interface ApplicationGroupsListByResourceGroupOptionalParams extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; /** OData filter expression. Valid properties for filtering are applicationGroupType. */ filter?: string; } @@ -1786,6 +1944,12 @@ export type ApplicationGroupsListBySubscriptionResponse = ApplicationGroupList; /** Optional parameters. */ export interface ApplicationGroupsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; /** OData filter expression. Valid properties for filtering are applicationGroupType. */ filter?: string; } @@ -1805,14 +1969,28 @@ export type ApplicationGroupsListBySubscriptionNextResponse = ApplicationGroupLi /** Optional parameters. */ export interface StartMenuItemsListOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; +} /** Contains response data for the list operation. */ export type StartMenuItemsListResponse = StartMenuItemList; /** Optional parameters. */ export interface StartMenuItemsListNextOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; +} /** Contains response data for the listNext operation. */ export type StartMenuItemsListNextResponse = StartMenuItemList; @@ -1847,14 +2025,28 @@ export type ApplicationsUpdateResponse = Application; /** Optional parameters. */ export interface ApplicationsListOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; +} /** Contains response data for the list operation. */ export type ApplicationsListResponse = ApplicationList; /** Optional parameters. */ export interface ApplicationsListNextOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; +} /** Contains response data for the listNext operation. */ export type ApplicationsListNextResponse = ApplicationList; @@ -1878,14 +2070,28 @@ export type DesktopsUpdateResponse = Desktop; /** Optional parameters. */ export interface DesktopsListOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; +} /** Contains response data for the list operation. */ export type DesktopsListResponse = DesktopList; /** Optional parameters. */ export interface DesktopsListNextOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; +} /** Contains response data for the listNext operation. */ export type DesktopsListNextResponse = DesktopList; @@ -1923,14 +2129,28 @@ export type HostPoolsUpdateResponse = HostPool; /** Optional parameters. */ export interface HostPoolsListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; +} /** Contains response data for the listByResourceGroup operation. */ export type HostPoolsListByResourceGroupResponse = HostPoolList; /** Optional parameters. */ export interface HostPoolsListOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; +} /** Contains response data for the list operation. */ export type HostPoolsListResponse = HostPoolList; @@ -1944,14 +2164,28 @@ export type HostPoolsRetrieveRegistrationTokenResponse = RegistrationInfo; /** Optional parameters. */ export interface HostPoolsListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; +} /** Contains response data for the listByResourceGroupNext operation. */ export type HostPoolsListByResourceGroupNextResponse = HostPoolList; /** Optional parameters. */ export interface HostPoolsListNextOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; +} /** Contains response data for the listNext operation. */ export type HostPoolsListNextResponse = HostPoolList; @@ -1959,6 +2193,12 @@ export type HostPoolsListNextResponse = HostPoolList; /** Optional parameters. */ export interface UserSessionsListByHostPoolOptionalParams extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; /** OData filter expression. Valid properties for filtering are userprincipalname and sessionstate. */ filter?: string; } @@ -1982,7 +2222,14 @@ export interface UserSessionsDeleteOptionalParams /** Optional parameters. */ export interface UserSessionsListOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; +} /** Contains response data for the list operation. */ export type UserSessionsListResponse = UserSessionList; @@ -2001,6 +2248,12 @@ export interface UserSessionsSendMessageOptionalParams /** Optional parameters. */ export interface UserSessionsListByHostPoolNextOptionalParams extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; /** OData filter expression. Valid properties for filtering are userprincipalname and sessionstate. */ filter?: string; } @@ -2010,7 +2263,14 @@ export type UserSessionsListByHostPoolNextResponse = UserSessionList; /** Optional parameters. */ export interface UserSessionsListNextOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; +} /** Contains response data for the listNext operation. */ export type UserSessionsListNextResponse = UserSessionList; @@ -2043,14 +2303,28 @@ export type SessionHostsUpdateResponse = SessionHost; /** Optional parameters. */ export interface SessionHostsListOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; +} /** Contains response data for the list operation. */ export type SessionHostsListResponse = SessionHostList; /** Optional parameters. */ export interface SessionHostsListNextOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; +} /** Contains response data for the listNext operation. */ export type SessionHostsListNextResponse = SessionHostList; @@ -2085,14 +2359,28 @@ export type MsixPackagesUpdateResponse = MsixPackage; /** Optional parameters. */ export interface MsixPackagesListOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; +} /** Contains response data for the list operation. */ export type MsixPackagesListResponse = MsixPackageList; /** Optional parameters. */ export interface MsixPackagesListNextOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Number of items per page. */ + pageSize?: number; + /** Indicates whether the collection is descending. */ + isDescending?: boolean; + /** Initial number of items to skip. */ + initialSkip?: number; +} /** Contains response data for the listNext operation. */ export type MsixPackagesListNextResponse = MsixPackageList; @@ -2111,98 +2399,6 @@ export interface MsixImagesExpandNextOptionalParams /** Contains response data for the expandNext operation. */ export type MsixImagesExpandNextResponse = ExpandMsixImageList; -/** Optional parameters. */ -export interface PrivateEndpointConnectionsListByHostPoolOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByHostPool operation. */ -export type PrivateEndpointConnectionsListByHostPoolResponse = PrivateEndpointConnectionListResultWithSystemData; - -/** Optional parameters. */ -export interface PrivateEndpointConnectionsGetByHostPoolOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getByHostPool operation. */ -export type PrivateEndpointConnectionsGetByHostPoolResponse = PrivateEndpointConnectionWithSystemData; - -/** Optional parameters. */ -export interface PrivateEndpointConnectionsDeleteByHostPoolOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface PrivateEndpointConnectionsUpdateByHostPoolOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the updateByHostPool operation. */ -export type PrivateEndpointConnectionsUpdateByHostPoolResponse = PrivateEndpointConnectionWithSystemData; - -/** Optional parameters. */ -export interface PrivateEndpointConnectionsListByWorkspaceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByWorkspace operation. */ -export type PrivateEndpointConnectionsListByWorkspaceResponse = PrivateEndpointConnectionListResultWithSystemData; - -/** Optional parameters. */ -export interface PrivateEndpointConnectionsGetByWorkspaceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getByWorkspace operation. */ -export type PrivateEndpointConnectionsGetByWorkspaceResponse = PrivateEndpointConnectionWithSystemData; - -/** Optional parameters. */ -export interface PrivateEndpointConnectionsDeleteByWorkspaceOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface PrivateEndpointConnectionsUpdateByWorkspaceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the updateByWorkspace operation. */ -export type PrivateEndpointConnectionsUpdateByWorkspaceResponse = PrivateEndpointConnectionWithSystemData; - -/** Optional parameters. */ -export interface PrivateEndpointConnectionsListByHostPoolNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByHostPoolNext operation. */ -export type PrivateEndpointConnectionsListByHostPoolNextResponse = PrivateEndpointConnectionListResultWithSystemData; - -/** Optional parameters. */ -export interface PrivateEndpointConnectionsListByWorkspaceNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByWorkspaceNext operation. */ -export type PrivateEndpointConnectionsListByWorkspaceNextResponse = PrivateEndpointConnectionListResultWithSystemData; - -/** Optional parameters. */ -export interface PrivateLinkResourcesListByHostPoolOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByHostPool operation. */ -export type PrivateLinkResourcesListByHostPoolResponse = PrivateLinkResourceListResult; - -/** Optional parameters. */ -export interface PrivateLinkResourcesListByWorkspaceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByWorkspace operation. */ -export type PrivateLinkResourcesListByWorkspaceResponse = PrivateLinkResourceListResult; - -/** Optional parameters. */ -export interface PrivateLinkResourcesListByHostPoolNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByHostPoolNext operation. */ -export type PrivateLinkResourcesListByHostPoolNextResponse = PrivateLinkResourceListResult; - -/** Optional parameters. */ -export interface PrivateLinkResourcesListByWorkspaceNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByWorkspaceNext operation. */ -export type PrivateLinkResourcesListByWorkspaceNextResponse = PrivateLinkResourceListResult; - /** Optional parameters. */ export interface DesktopVirtualizationAPIClientOptionalParams extends coreClient.ServiceClientOptions { diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/models/mappers.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/models/mappers.ts index 38097807e3ca..29c1798f190e 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/models/mappers.ts +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/models/mappers.ts @@ -484,12 +484,6 @@ export const WorkspacePatch: coreClient.CompositeMapper = { } } } - }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", - type: { - name: "String" - } } } } @@ -809,27 +803,6 @@ export const ScalingPlanList: coreClient.CompositeMapper = { } }; -export const MigrationRequestProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MigrationRequestProperties", - modelProperties: { - operation: { - serializedName: "operation", - type: { - name: "String" - } - }, - migrationPath: { - serializedName: "migrationPath", - type: { - name: "String" - } - } - } - } -}; - export const Resource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -860,6 +833,34 @@ export const Resource: coreClient.CompositeMapper = { } }; +export const ScalingPlanPooledScheduleList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScalingPlanPooledScheduleList", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ScalingPlanPooledSchedule" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + export const ApplicationGroupList: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1111,6 +1112,75 @@ export const RegistrationInfo: coreClient.CompositeMapper = { } }; +export const AgentUpdateProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AgentUpdateProperties", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "String" + } + }, + useSessionHostLocalTime: { + serializedName: "useSessionHostLocalTime", + type: { + name: "Boolean" + } + }, + maintenanceWindowTimeZone: { + serializedName: "maintenanceWindowTimeZone", + type: { + name: "String" + } + }, + maintenanceWindows: { + serializedName: "maintenanceWindows", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MaintenanceWindowProperties" + } + } + } + } + } + } +}; + +export const MaintenanceWindowProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MaintenanceWindowProperties", + modelProperties: { + hour: { + serializedName: "hour", + type: { + name: "Number" + } + }, + dayOfWeek: { + serializedName: "dayOfWeek", + type: { + name: "Enum", + allowedValues: [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Sunday" + ] + } + } + } + } +}; + export const RegistrationInfoPatch: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1132,6 +1202,75 @@ export const RegistrationInfoPatch: coreClient.CompositeMapper = { } }; +export const AgentUpdatePatchProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AgentUpdatePatchProperties", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "String" + } + }, + useSessionHostLocalTime: { + serializedName: "useSessionHostLocalTime", + type: { + name: "Boolean" + } + }, + maintenanceWindowTimeZone: { + serializedName: "maintenanceWindowTimeZone", + type: { + name: "String" + } + }, + maintenanceWindows: { + serializedName: "maintenanceWindows", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MaintenanceWindowPatchProperties" + } + } + } + } + } + } +}; + +export const MaintenanceWindowPatchProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MaintenanceWindowPatchProperties", + modelProperties: { + hour: { + serializedName: "hour", + type: { + name: "Number" + } + }, + dayOfWeek: { + serializedName: "dayOfWeek", + type: { + name: "Enum", + allowedValues: [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Sunday" + ] + } + } + } + } +}; + export const HostPoolList: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1446,105 +1585,6 @@ export const SendMessage: coreClient.CompositeMapper = { } }; -export const PrivateEndpointConnectionListResultWithSystemData: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpointConnectionListResultWithSystemData", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnectionWithSystemData" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const PrivateEndpoint: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpoint", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateLinkServiceConnectionState", - modelProperties: { - status: { - serializedName: "status", - type: { - name: "String" - } - }, - description: { - serializedName: "description", - type: { - name: "String" - } - }, - actionsRequired: { - serializedName: "actionsRequired", - type: { - name: "String" - } - } - } - } -}; - -export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateLinkResourceListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateLinkResource" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - export const Workspace: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1594,12 +1634,6 @@ export const Workspace: coreClient.CompositeMapper = { type: { name: "Boolean" } - }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", - type: { - name: "String" - } } } } @@ -1639,11 +1673,13 @@ export const ScalingPlan: coreClient.CompositeMapper = { }, timeZone: { serializedName: "properties.timeZone", + required: true, type: { name: "String" } }, hostPoolType: { + defaultValue: "Pooled", serializedName: "properties.hostPoolType", type: { name: "String" @@ -1736,13 +1772,6 @@ export const ApplicationGroup: coreClient.CompositeMapper = { name: "String" } }, - migrationRequest: { - serializedName: "properties.migrationRequest", - type: { - name: "Composite", - className: "MigrationRequestProperties" - } - }, cloudPcResource: { serializedName: "properties.cloudPcResource", readOnly: true, @@ -1892,13 +1921,6 @@ export const HostPool: coreClient.CompositeMapper = { name: "Boolean" } }, - migrationRequest: { - serializedName: "properties.migrationRequest", - type: { - name: "Composite", - className: "MigrationRequestProperties" - } - }, cloudPcResource: { serializedName: "properties.cloudPcResource", readOnly: true, @@ -1906,10 +1928,11 @@ export const HostPool: coreClient.CompositeMapper = { name: "Boolean" } }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", + agentUpdate: { + serializedName: "properties.agentUpdate", type: { - name: "String" + name: "Composite", + className: "AgentUpdateProperties" } } } @@ -1946,24 +1969,323 @@ export const ResourceModelWithAllowedPropertySetPlan: coreClient.CompositeMapper } }; -export const ApplicationGroupPatch: coreClient.CompositeMapper = { +export const ScalingPlanPooledSchedule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationGroupPatch", + className: "ScalingPlanPooledSchedule", modelProperties: { ...Resource.type.modelProperties, - tags: { - serializedName: "tags", + systemData: { + serializedName: "systemData", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Composite", + className: "SystemData" } }, - description: { - serializedName: "properties.description", + daysOfWeek: { + serializedName: "properties.daysOfWeek", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Enum", + allowedValues: [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Sunday" + ] + } + } + } + }, + rampUpStartTime: { + serializedName: "properties.rampUpStartTime", + type: { + name: "Composite", + className: "Time" + } + }, + rampUpLoadBalancingAlgorithm: { + serializedName: "properties.rampUpLoadBalancingAlgorithm", + type: { + name: "String" + } + }, + rampUpMinimumHostsPct: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0 + }, + serializedName: "properties.rampUpMinimumHostsPct", + type: { + name: "Number" + } + }, + rampUpCapacityThresholdPct: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 1 + }, + serializedName: "properties.rampUpCapacityThresholdPct", + type: { + name: "Number" + } + }, + peakStartTime: { + serializedName: "properties.peakStartTime", + type: { + name: "Composite", + className: "Time" + } + }, + peakLoadBalancingAlgorithm: { + serializedName: "properties.peakLoadBalancingAlgorithm", + type: { + name: "String" + } + }, + rampDownStartTime: { + serializedName: "properties.rampDownStartTime", + type: { + name: "Composite", + className: "Time" + } + }, + rampDownLoadBalancingAlgorithm: { + serializedName: "properties.rampDownLoadBalancingAlgorithm", + type: { + name: "String" + } + }, + rampDownMinimumHostsPct: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0 + }, + serializedName: "properties.rampDownMinimumHostsPct", + type: { + name: "Number" + } + }, + rampDownCapacityThresholdPct: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0 + }, + serializedName: "properties.rampDownCapacityThresholdPct", + type: { + name: "Number" + } + }, + rampDownForceLogoffUsers: { + serializedName: "properties.rampDownForceLogoffUsers", + type: { + name: "Boolean" + } + }, + rampDownStopHostsWhen: { + serializedName: "properties.rampDownStopHostsWhen", + type: { + name: "String" + } + }, + rampDownWaitTimeMinutes: { + serializedName: "properties.rampDownWaitTimeMinutes", + type: { + name: "Number" + } + }, + rampDownNotificationMessage: { + serializedName: "properties.rampDownNotificationMessage", + type: { + name: "String" + } + }, + offPeakStartTime: { + serializedName: "properties.offPeakStartTime", + type: { + name: "Composite", + className: "Time" + } + }, + offPeakLoadBalancingAlgorithm: { + serializedName: "properties.offPeakLoadBalancingAlgorithm", + type: { + name: "String" + } + } + } + } +}; + +export const ScalingPlanPooledSchedulePatch: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScalingPlanPooledSchedulePatch", + modelProperties: { + ...Resource.type.modelProperties, + daysOfWeek: { + serializedName: "properties.daysOfWeek", + type: { + name: "Sequence", + element: { + type: { + name: "Enum", + allowedValues: [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Sunday" + ] + } + } + } + }, + rampUpStartTime: { + serializedName: "properties.rampUpStartTime", + type: { + name: "Composite", + className: "Time" + } + }, + rampUpLoadBalancingAlgorithm: { + serializedName: "properties.rampUpLoadBalancingAlgorithm", + type: { + name: "String" + } + }, + rampUpMinimumHostsPct: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0 + }, + serializedName: "properties.rampUpMinimumHostsPct", + type: { + name: "Number" + } + }, + rampUpCapacityThresholdPct: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 1 + }, + serializedName: "properties.rampUpCapacityThresholdPct", + type: { + name: "Number" + } + }, + peakStartTime: { + serializedName: "properties.peakStartTime", + type: { + name: "Composite", + className: "Time" + } + }, + peakLoadBalancingAlgorithm: { + serializedName: "properties.peakLoadBalancingAlgorithm", + type: { + name: "String" + } + }, + rampDownStartTime: { + serializedName: "properties.rampDownStartTime", + type: { + name: "Composite", + className: "Time" + } + }, + rampDownLoadBalancingAlgorithm: { + serializedName: "properties.rampDownLoadBalancingAlgorithm", + type: { + name: "String" + } + }, + rampDownMinimumHostsPct: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0 + }, + serializedName: "properties.rampDownMinimumHostsPct", + type: { + name: "Number" + } + }, + rampDownCapacityThresholdPct: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0 + }, + serializedName: "properties.rampDownCapacityThresholdPct", + type: { + name: "Number" + } + }, + rampDownForceLogoffUsers: { + serializedName: "properties.rampDownForceLogoffUsers", + type: { + name: "Boolean" + } + }, + rampDownStopHostsWhen: { + serializedName: "properties.rampDownStopHostsWhen", + type: { + name: "String" + } + }, + rampDownWaitTimeMinutes: { + serializedName: "properties.rampDownWaitTimeMinutes", + type: { + name: "Number" + } + }, + rampDownNotificationMessage: { + serializedName: "properties.rampDownNotificationMessage", + type: { + name: "String" + } + }, + offPeakStartTime: { + serializedName: "properties.offPeakStartTime", + type: { + name: "Composite", + className: "Time" + } + }, + offPeakLoadBalancingAlgorithm: { + serializedName: "properties.offPeakLoadBalancingAlgorithm", + type: { + name: "String" + } + } + } + } +}; + +export const ApplicationGroupPatch: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApplicationGroupPatch", + modelProperties: { + ...Resource.type.modelProperties, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } }, friendlyName: { serializedName: "properties.friendlyName", @@ -2282,10 +2604,11 @@ export const HostPoolPatch: coreClient.CompositeMapper = { name: "Boolean" } }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", + agentUpdate: { + serializedName: "properties.agentUpdate", type: { - name: "String" + name: "Composite", + className: "AgentUpdatePatchProperties" } } } @@ -2410,6 +2733,12 @@ export const SessionHost: coreClient.CompositeMapper = { name: "String" } }, + friendlyName: { + serializedName: "properties.friendlyName", + type: { + name: "String" + } + }, status: { serializedName: "properties.status", type: { @@ -2488,6 +2817,12 @@ export const SessionHostPatch: coreClient.CompositeMapper = { type: { name: "String" } + }, + friendlyName: { + serializedName: "properties.friendlyName", + type: { + name: "String" + } } } } @@ -2718,90 +3053,3 @@ export const ExpandMsixImage: coreClient.CompositeMapper = { } } }; - -export const PrivateEndpointConnection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpointConnection", - modelProperties: { - ...Resource.type.modelProperties, - privateEndpoint: { - serializedName: "properties.privateEndpoint", - type: { - name: "Composite", - className: "PrivateEndpoint" - } - }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", - type: { - name: "Composite", - className: "PrivateLinkServiceConnectionState" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - type: { - name: "String" - } - } - } - } -}; - -export const PrivateLinkResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateLinkResource", - modelProperties: { - ...Resource.type.modelProperties, - groupId: { - serializedName: "properties.groupId", - readOnly: true, - type: { - name: "String" - } - }, - requiredMembers: { - serializedName: "properties.requiredMembers", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - requiredZoneNames: { - serializedName: "properties.requiredZoneNames", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const PrivateEndpointConnectionWithSystemData: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpointConnectionWithSystemData", - modelProperties: { - ...PrivateEndpointConnection.type.modelProperties, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } - } - } - } -}; diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/models/parameters.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/models/parameters.ts index 6c8618a4d9ea..7cc22c45f4b9 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/models/parameters.ts +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/models/parameters.ts @@ -16,6 +16,8 @@ import { WorkspacePatch as WorkspacePatchMapper, ScalingPlan as ScalingPlanMapper, ScalingPlanPatch as ScalingPlanPatchMapper, + ScalingPlanPooledSchedule as ScalingPlanPooledScheduleMapper, + ScalingPlanPooledSchedulePatch as ScalingPlanPooledSchedulePatchMapper, ApplicationGroup as ApplicationGroupMapper, ApplicationGroupPatch as ApplicationGroupPatchMapper, Application as ApplicationMapper, @@ -27,8 +29,7 @@ import { SessionHostPatch as SessionHostPatchMapper, MsixPackage as MsixPackageMapper, MsixPackagePatch as MsixPackagePatchMapper, - MsixImageURI as MsixImageURIMapper, - PrivateEndpointConnection as PrivateEndpointConnectionMapper + MsixImageURI as MsixImageURIMapper } from "../models/mappers"; export const accept: OperationParameter = { @@ -58,7 +59,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2021-09-03-preview", + defaultValue: "2022-09-09", isConstant: true, serializedName: "api-version", type: { @@ -145,6 +146,36 @@ export const workspace1: OperationParameter = { mapper: WorkspacePatchMapper }; +export const pageSize: OperationQueryParameter = { + parameterPath: ["options", "pageSize"], + mapper: { + serializedName: "pageSize", + type: { + name: "Number" + } + } +}; + +export const isDescending: OperationQueryParameter = { + parameterPath: ["options", "isDescending"], + mapper: { + serializedName: "isDescending", + type: { + name: "Boolean" + } + } +}; + +export const initialSkip: OperationQueryParameter = { + parameterPath: ["options", "initialSkip"], + mapper: { + serializedName: "initialSkip", + type: { + name: "Number" + } + } +}; + export const scalingPlanName: OperationURLParameter = { parameterPath: "scalingPlanName", mapper: { @@ -185,6 +216,31 @@ export const hostPoolName: OperationURLParameter = { } }; +export const scalingPlanScheduleName: OperationURLParameter = { + parameterPath: "scalingPlanScheduleName", + mapper: { + constraints: { + MaxLength: 64, + MinLength: 1 + }, + serializedName: "scalingPlanScheduleName", + required: true, + type: { + name: "String" + } + } +}; + +export const scalingPlanSchedule: OperationParameter = { + parameterPath: "scalingPlanSchedule", + mapper: ScalingPlanPooledScheduleMapper +}; + +export const scalingPlanSchedule1: OperationParameter = { + parameterPath: ["options", "scalingPlanSchedule"], + mapper: ScalingPlanPooledSchedulePatchMapper +}; + export const applicationGroupName: OperationURLParameter = { parameterPath: "applicationGroupName", mapper: { @@ -354,19 +410,3 @@ export const msixImageURI: OperationParameter = { parameterPath: "msixImageURI", mapper: MsixImageURIMapper }; - -export const privateEndpointConnectionName: OperationURLParameter = { - parameterPath: "privateEndpointConnectionName", - mapper: { - serializedName: "privateEndpointConnectionName", - required: true, - type: { - name: "String" - } - } -}; - -export const connection: OperationParameter = { - parameterPath: "connection", - mapper: PrivateEndpointConnectionMapper -}; diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/applicationGroups.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/applicationGroups.ts index e75b786a2433..44c3c4f69255 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/applicationGroups.ts +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/applicationGroups.ts @@ -378,7 +378,13 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion, Parameters.filter], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip, + Parameters.filter + ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -415,7 +421,13 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion, Parameters.filter], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip, + Parameters.filter + ], urlParameters: [ Parameters.$host, Parameters.nextLink, diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/applications.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/applications.ts index 9243cb240ad8..69daf93d1b59 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/applications.ts +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/applications.ts @@ -344,7 +344,12 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip + ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -365,7 +370,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip + ], urlParameters: [ Parameters.$host, Parameters.nextLink, diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/desktops.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/desktops.ts index f54b34e7fb88..32979d7ff821 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/desktops.ts +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/desktops.ts @@ -245,7 +245,12 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip + ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -266,7 +271,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip + ], urlParameters: [ Parameters.$host, Parameters.nextLink, diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/hostPools.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/hostPools.ts index 4d423ed59a96..a5ed0d1b9371 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/hostPools.ts +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/hostPools.ts @@ -394,7 +394,12 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip + ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -415,7 +420,12 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip + ], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -453,7 +463,12 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip + ], urlParameters: [ Parameters.$host, Parameters.nextLink, @@ -474,7 +489,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip + ], urlParameters: [ Parameters.$host, Parameters.nextLink, diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/index.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/index.ts index 7431743f39da..0c7bb50adcdd 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/index.ts +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/index.ts @@ -9,6 +9,7 @@ export * from "./operations"; export * from "./workspaces"; export * from "./scalingPlans"; +export * from "./scalingPlanPooledSchedules"; export * from "./applicationGroups"; export * from "./startMenuItems"; export * from "./applications"; @@ -18,5 +19,3 @@ export * from "./userSessions"; export * from "./sessionHosts"; export * from "./msixPackages"; export * from "./msixImages"; -export * from "./privateEndpointConnections"; -export * from "./privateLinkResources"; diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/msixPackages.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/msixPackages.ts index ad7ebd125706..c1207d3f9608 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/msixPackages.ts +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/msixPackages.ts @@ -336,7 +336,12 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip + ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -357,7 +362,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip + ], urlParameters: [ Parameters.$host, Parameters.nextLink, diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/privateEndpointConnections.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/privateEndpointConnections.ts deleted file mode 100644 index d138531613d5..000000000000 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/privateEndpointConnections.ts +++ /dev/null @@ -1,652 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PrivateEndpointConnections } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient"; -import { - PrivateEndpointConnectionWithSystemData, - PrivateEndpointConnectionsListByHostPoolNextOptionalParams, - PrivateEndpointConnectionsListByHostPoolOptionalParams, - PrivateEndpointConnectionsListByWorkspaceNextOptionalParams, - PrivateEndpointConnectionsListByWorkspaceOptionalParams, - PrivateEndpointConnectionsListByHostPoolResponse, - PrivateEndpointConnectionsGetByHostPoolOptionalParams, - PrivateEndpointConnectionsGetByHostPoolResponse, - PrivateEndpointConnectionsDeleteByHostPoolOptionalParams, - PrivateEndpointConnection, - PrivateEndpointConnectionsUpdateByHostPoolOptionalParams, - PrivateEndpointConnectionsUpdateByHostPoolResponse, - PrivateEndpointConnectionsListByWorkspaceResponse, - PrivateEndpointConnectionsGetByWorkspaceOptionalParams, - PrivateEndpointConnectionsGetByWorkspaceResponse, - PrivateEndpointConnectionsDeleteByWorkspaceOptionalParams, - PrivateEndpointConnectionsUpdateByWorkspaceOptionalParams, - PrivateEndpointConnectionsUpdateByWorkspaceResponse, - PrivateEndpointConnectionsListByHostPoolNextResponse, - PrivateEndpointConnectionsListByWorkspaceNextResponse -} from "../models"; - -/// -/** Class containing PrivateEndpointConnections operations. */ -export class PrivateEndpointConnectionsImpl - implements PrivateEndpointConnections { - private readonly client: DesktopVirtualizationAPIClient; - - /** - * Initialize a new instance of the class PrivateEndpointConnections class. - * @param client Reference to the service client - */ - constructor(client: DesktopVirtualizationAPIClient) { - this.client = client; - } - - /** - * List private endpoint connections associated with hostpool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param hostPoolName The name of the host pool within the specified resource group - * @param options The options parameters. - */ - public listByHostPool( - resourceGroupName: string, - hostPoolName: string, - options?: PrivateEndpointConnectionsListByHostPoolOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByHostPoolPagingAll( - resourceGroupName, - hostPoolName, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: () => { - return this.listByHostPoolPagingPage( - resourceGroupName, - hostPoolName, - options - ); - } - }; - } - - private async *listByHostPoolPagingPage( - resourceGroupName: string, - hostPoolName: string, - options?: PrivateEndpointConnectionsListByHostPoolOptionalParams - ): AsyncIterableIterator { - let result = await this._listByHostPool( - resourceGroupName, - hostPoolName, - options - ); - yield result.value || []; - let continuationToken = result.nextLink; - while (continuationToken) { - result = await this._listByHostPoolNext( - resourceGroupName, - hostPoolName, - continuationToken, - options - ); - continuationToken = result.nextLink; - yield result.value || []; - } - } - - private async *listByHostPoolPagingAll( - resourceGroupName: string, - hostPoolName: string, - options?: PrivateEndpointConnectionsListByHostPoolOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByHostPoolPagingPage( - resourceGroupName, - hostPoolName, - options - )) { - yield* page; - } - } - - /** - * List private endpoint connections. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param options The options parameters. - */ - public listByWorkspace( - resourceGroupName: string, - workspaceName: string, - options?: PrivateEndpointConnectionsListByWorkspaceOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByWorkspacePagingAll( - resourceGroupName, - workspaceName, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: () => { - return this.listByWorkspacePagingPage( - resourceGroupName, - workspaceName, - options - ); - } - }; - } - - private async *listByWorkspacePagingPage( - resourceGroupName: string, - workspaceName: string, - options?: PrivateEndpointConnectionsListByWorkspaceOptionalParams - ): AsyncIterableIterator { - let result = await this._listByWorkspace( - resourceGroupName, - workspaceName, - options - ); - yield result.value || []; - let continuationToken = result.nextLink; - while (continuationToken) { - result = await this._listByWorkspaceNext( - resourceGroupName, - workspaceName, - continuationToken, - options - ); - continuationToken = result.nextLink; - yield result.value || []; - } - } - - private async *listByWorkspacePagingAll( - resourceGroupName: string, - workspaceName: string, - options?: PrivateEndpointConnectionsListByWorkspaceOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByWorkspacePagingPage( - resourceGroupName, - workspaceName, - options - )) { - yield* page; - } - } - - /** - * List private endpoint connections associated with hostpool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param hostPoolName The name of the host pool within the specified resource group - * @param options The options parameters. - */ - private _listByHostPool( - resourceGroupName: string, - hostPoolName: string, - options?: PrivateEndpointConnectionsListByHostPoolOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, hostPoolName, options }, - listByHostPoolOperationSpec - ); - } - - /** - * Get a private endpoint connection. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param hostPoolName The name of the host pool within the specified resource group - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the - * Azure resource - * @param options The options parameters. - */ - getByHostPool( - resourceGroupName: string, - hostPoolName: string, - privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsGetByHostPoolOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - hostPoolName, - privateEndpointConnectionName, - options - }, - getByHostPoolOperationSpec - ); - } - - /** - * Remove a connection. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param hostPoolName The name of the host pool within the specified resource group - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the - * Azure resource - * @param options The options parameters. - */ - deleteByHostPool( - resourceGroupName: string, - hostPoolName: string, - privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsDeleteByHostPoolOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - hostPoolName, - privateEndpointConnectionName, - options - }, - deleteByHostPoolOperationSpec - ); - } - - /** - * Approve or reject a private endpoint connection. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param hostPoolName The name of the host pool within the specified resource group - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the - * Azure resource - * @param connection Object containing the updated connection. - * @param options The options parameters. - */ - updateByHostPool( - resourceGroupName: string, - hostPoolName: string, - privateEndpointConnectionName: string, - connection: PrivateEndpointConnection, - options?: PrivateEndpointConnectionsUpdateByHostPoolOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - hostPoolName, - privateEndpointConnectionName, - connection, - options - }, - updateByHostPoolOperationSpec - ); - } - - /** - * List private endpoint connections. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param options The options parameters. - */ - private _listByWorkspace( - resourceGroupName: string, - workspaceName: string, - options?: PrivateEndpointConnectionsListByWorkspaceOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, options }, - listByWorkspaceOperationSpec - ); - } - - /** - * Get a private endpoint connection. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the - * Azure resource - * @param options The options parameters. - */ - getByWorkspace( - resourceGroupName: string, - workspaceName: string, - privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsGetByWorkspaceOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - privateEndpointConnectionName, - options - }, - getByWorkspaceOperationSpec - ); - } - - /** - * Remove a connection. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the - * Azure resource - * @param options The options parameters. - */ - deleteByWorkspace( - resourceGroupName: string, - workspaceName: string, - privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsDeleteByWorkspaceOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - privateEndpointConnectionName, - options - }, - deleteByWorkspaceOperationSpec - ); - } - - /** - * Approve or reject a private endpoint connection. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the - * Azure resource - * @param connection Object containing the updated connection. - * @param options The options parameters. - */ - updateByWorkspace( - resourceGroupName: string, - workspaceName: string, - privateEndpointConnectionName: string, - connection: PrivateEndpointConnection, - options?: PrivateEndpointConnectionsUpdateByWorkspaceOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - privateEndpointConnectionName, - connection, - options - }, - updateByWorkspaceOperationSpec - ); - } - - /** - * ListByHostPoolNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param hostPoolName The name of the host pool within the specified resource group - * @param nextLink The nextLink from the previous successful call to the ListByHostPool method. - * @param options The options parameters. - */ - private _listByHostPoolNext( - resourceGroupName: string, - hostPoolName: string, - nextLink: string, - options?: PrivateEndpointConnectionsListByHostPoolNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, hostPoolName, nextLink, options }, - listByHostPoolNextOperationSpec - ); - } - - /** - * ListByWorkspaceNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param nextLink The nextLink from the previous successful call to the ListByWorkspace method. - * @param options The options parameters. - */ - private _listByWorkspaceNext( - resourceGroupName: string, - workspaceName: string, - nextLink: string, - options?: PrivateEndpointConnectionsListByWorkspaceNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, nextLink, options }, - listByWorkspaceNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByHostPoolOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateEndpointConnections", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.PrivateEndpointConnectionListResultWithSystemData - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.hostPoolName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getByHostPoolOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateEndpointConnections/{privateEndpointConnectionName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.PrivateEndpointConnectionWithSystemData - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.hostPoolName, - Parameters.privateEndpointConnectionName - ], - headerParameters: [Parameters.accept], - serializer -}; -const deleteByHostPoolOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateEndpointConnections/{privateEndpointConnectionName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.hostPoolName, - Parameters.privateEndpointConnectionName - ], - headerParameters: [Parameters.accept], - serializer -}; -const updateByHostPoolOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateEndpointConnections/{privateEndpointConnectionName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.PrivateEndpointConnectionWithSystemData - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - requestBody: Parameters.connection, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.hostPoolName, - Parameters.privateEndpointConnectionName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const listByWorkspaceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateEndpointConnections", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.PrivateEndpointConnectionListResultWithSystemData - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getByWorkspaceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.PrivateEndpointConnectionWithSystemData - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.privateEndpointConnectionName - ], - headerParameters: [Parameters.accept], - serializer -}; -const deleteByWorkspaceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.privateEndpointConnectionName - ], - headerParameters: [Parameters.accept], - serializer -}; -const updateByWorkspaceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.PrivateEndpointConnectionWithSystemData - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - requestBody: Parameters.connection, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.privateEndpointConnectionName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const listByHostPoolNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.PrivateEndpointConnectionListResultWithSystemData - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.hostPoolName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.PrivateEndpointConnectionListResultWithSystemData - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/privateLinkResources.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/privateLinkResources.ts deleted file mode 100644 index ca011dcddc63..000000000000 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/privateLinkResources.ts +++ /dev/null @@ -1,344 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PrivateLinkResources } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient"; -import { - PrivateLinkResource, - PrivateLinkResourcesListByHostPoolNextOptionalParams, - PrivateLinkResourcesListByHostPoolOptionalParams, - PrivateLinkResourcesListByWorkspaceNextOptionalParams, - PrivateLinkResourcesListByWorkspaceOptionalParams, - PrivateLinkResourcesListByHostPoolResponse, - PrivateLinkResourcesListByWorkspaceResponse, - PrivateLinkResourcesListByHostPoolNextResponse, - PrivateLinkResourcesListByWorkspaceNextResponse -} from "../models"; - -/// -/** Class containing PrivateLinkResources operations. */ -export class PrivateLinkResourcesImpl implements PrivateLinkResources { - private readonly client: DesktopVirtualizationAPIClient; - - /** - * Initialize a new instance of the class PrivateLinkResources class. - * @param client Reference to the service client - */ - constructor(client: DesktopVirtualizationAPIClient) { - this.client = client; - } - - /** - * List the private link resources available for this hostpool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param hostPoolName The name of the host pool within the specified resource group - * @param options The options parameters. - */ - public listByHostPool( - resourceGroupName: string, - hostPoolName: string, - options?: PrivateLinkResourcesListByHostPoolOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByHostPoolPagingAll( - resourceGroupName, - hostPoolName, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: () => { - return this.listByHostPoolPagingPage( - resourceGroupName, - hostPoolName, - options - ); - } - }; - } - - private async *listByHostPoolPagingPage( - resourceGroupName: string, - hostPoolName: string, - options?: PrivateLinkResourcesListByHostPoolOptionalParams - ): AsyncIterableIterator { - let result = await this._listByHostPool( - resourceGroupName, - hostPoolName, - options - ); - yield result.value || []; - let continuationToken = result.nextLink; - while (continuationToken) { - result = await this._listByHostPoolNext( - resourceGroupName, - hostPoolName, - continuationToken, - options - ); - continuationToken = result.nextLink; - yield result.value || []; - } - } - - private async *listByHostPoolPagingAll( - resourceGroupName: string, - hostPoolName: string, - options?: PrivateLinkResourcesListByHostPoolOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByHostPoolPagingPage( - resourceGroupName, - hostPoolName, - options - )) { - yield* page; - } - } - - /** - * List the private link resources available for this workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param options The options parameters. - */ - public listByWorkspace( - resourceGroupName: string, - workspaceName: string, - options?: PrivateLinkResourcesListByWorkspaceOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByWorkspacePagingAll( - resourceGroupName, - workspaceName, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: () => { - return this.listByWorkspacePagingPage( - resourceGroupName, - workspaceName, - options - ); - } - }; - } - - private async *listByWorkspacePagingPage( - resourceGroupName: string, - workspaceName: string, - options?: PrivateLinkResourcesListByWorkspaceOptionalParams - ): AsyncIterableIterator { - let result = await this._listByWorkspace( - resourceGroupName, - workspaceName, - options - ); - yield result.value || []; - let continuationToken = result.nextLink; - while (continuationToken) { - result = await this._listByWorkspaceNext( - resourceGroupName, - workspaceName, - continuationToken, - options - ); - continuationToken = result.nextLink; - yield result.value || []; - } - } - - private async *listByWorkspacePagingAll( - resourceGroupName: string, - workspaceName: string, - options?: PrivateLinkResourcesListByWorkspaceOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByWorkspacePagingPage( - resourceGroupName, - workspaceName, - options - )) { - yield* page; - } - } - - /** - * List the private link resources available for this hostpool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param hostPoolName The name of the host pool within the specified resource group - * @param options The options parameters. - */ - private _listByHostPool( - resourceGroupName: string, - hostPoolName: string, - options?: PrivateLinkResourcesListByHostPoolOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, hostPoolName, options }, - listByHostPoolOperationSpec - ); - } - - /** - * List the private link resources available for this workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param options The options parameters. - */ - private _listByWorkspace( - resourceGroupName: string, - workspaceName: string, - options?: PrivateLinkResourcesListByWorkspaceOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, options }, - listByWorkspaceOperationSpec - ); - } - - /** - * ListByHostPoolNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param hostPoolName The name of the host pool within the specified resource group - * @param nextLink The nextLink from the previous successful call to the ListByHostPool method. - * @param options The options parameters. - */ - private _listByHostPoolNext( - resourceGroupName: string, - hostPoolName: string, - nextLink: string, - options?: PrivateLinkResourcesListByHostPoolNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, hostPoolName, nextLink, options }, - listByHostPoolNextOperationSpec - ); - } - - /** - * ListByWorkspaceNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param nextLink The nextLink from the previous successful call to the ListByWorkspace method. - * @param options The options parameters. - */ - private _listByWorkspaceNext( - resourceGroupName: string, - workspaceName: string, - nextLink: string, - options?: PrivateLinkResourcesListByWorkspaceNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, nextLink, options }, - listByWorkspaceNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByHostPoolOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateLinkResources", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.PrivateLinkResourceListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.hostPoolName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listByWorkspaceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateLinkResources", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.PrivateLinkResourceListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listByHostPoolNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.PrivateLinkResourceListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.hostPoolName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.PrivateLinkResourceListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/scalingPlanPooledSchedules.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/scalingPlanPooledSchedules.ts new file mode 100644 index 000000000000..cee568f7713b --- /dev/null +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/scalingPlanPooledSchedules.ts @@ -0,0 +1,381 @@ +/* + * 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 { ScalingPlanPooledSchedules } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient"; +import { + ScalingPlanPooledSchedule, + ScalingPlanPooledSchedulesListNextOptionalParams, + ScalingPlanPooledSchedulesListOptionalParams, + ScalingPlanPooledSchedulesGetOptionalParams, + ScalingPlanPooledSchedulesGetResponse, + ScalingPlanPooledSchedulesCreateOptionalParams, + ScalingPlanPooledSchedulesCreateResponse, + ScalingPlanPooledSchedulesDeleteOptionalParams, + ScalingPlanPooledSchedulesUpdateOptionalParams, + ScalingPlanPooledSchedulesUpdateResponse, + ScalingPlanPooledSchedulesListResponse, + ScalingPlanPooledSchedulesListNextResponse +} from "../models"; + +/// +/** Class containing ScalingPlanPooledSchedules operations. */ +export class ScalingPlanPooledSchedulesImpl + implements ScalingPlanPooledSchedules { + private readonly client: DesktopVirtualizationAPIClient; + + /** + * Initialize a new instance of the class ScalingPlanPooledSchedules class. + * @param client Reference to the service client + */ + constructor(client: DesktopVirtualizationAPIClient) { + this.client = client; + } + + /** + * List ScalingPlanPooledSchedules. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scalingPlanName The name of the scaling plan. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + scalingPlanName: string, + options?: ScalingPlanPooledSchedulesListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + scalingPlanName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, scalingPlanName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + scalingPlanName: string, + options?: ScalingPlanPooledSchedulesListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, scalingPlanName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + scalingPlanName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + scalingPlanName: string, + options?: ScalingPlanPooledSchedulesListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + scalingPlanName, + options + )) { + yield* page; + } + } + + /** + * Get a ScalingPlanPooledSchedule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scalingPlanName The name of the scaling plan. + * @param scalingPlanScheduleName The name of the ScalingPlanSchedule + * @param options The options parameters. + */ + get( + resourceGroupName: string, + scalingPlanName: string, + scalingPlanScheduleName: string, + options?: ScalingPlanPooledSchedulesGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, scalingPlanName, scalingPlanScheduleName, options }, + getOperationSpec + ); + } + + /** + * Create or update a ScalingPlanPooledSchedule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scalingPlanName The name of the scaling plan. + * @param scalingPlanScheduleName The name of the ScalingPlanSchedule + * @param scalingPlanSchedule Object containing ScalingPlanPooledSchedule definitions. + * @param options The options parameters. + */ + create( + resourceGroupName: string, + scalingPlanName: string, + scalingPlanScheduleName: string, + scalingPlanSchedule: ScalingPlanPooledSchedule, + options?: ScalingPlanPooledSchedulesCreateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + scalingPlanName, + scalingPlanScheduleName, + scalingPlanSchedule, + options + }, + createOperationSpec + ); + } + + /** + * Remove a ScalingPlanPooledSchedule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scalingPlanName The name of the scaling plan. + * @param scalingPlanScheduleName The name of the ScalingPlanSchedule + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + scalingPlanName: string, + scalingPlanScheduleName: string, + options?: ScalingPlanPooledSchedulesDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, scalingPlanName, scalingPlanScheduleName, options }, + deleteOperationSpec + ); + } + + /** + * Update a ScalingPlanPooledSchedule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scalingPlanName The name of the scaling plan. + * @param scalingPlanScheduleName The name of the ScalingPlanSchedule + * @param options The options parameters. + */ + update( + resourceGroupName: string, + scalingPlanName: string, + scalingPlanScheduleName: string, + options?: ScalingPlanPooledSchedulesUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, scalingPlanName, scalingPlanScheduleName, options }, + updateOperationSpec + ); + } + + /** + * List ScalingPlanPooledSchedules. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scalingPlanName The name of the scaling plan. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + scalingPlanName: string, + options?: ScalingPlanPooledSchedulesListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, scalingPlanName, options }, + listOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scalingPlanName The name of the scaling plan. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + scalingPlanName: string, + nextLink: string, + options?: ScalingPlanPooledSchedulesListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, scalingPlanName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ScalingPlanPooledSchedule + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.scalingPlanName, + Parameters.scalingPlanScheduleName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ScalingPlanPooledSchedule + }, + 201: { + bodyMapper: Mappers.ScalingPlanPooledSchedule + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.scalingPlanSchedule, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.scalingPlanName, + Parameters.scalingPlanScheduleName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.scalingPlanName, + Parameters.scalingPlanScheduleName + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.ScalingPlanPooledSchedule + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.scalingPlanSchedule1, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.scalingPlanName, + Parameters.scalingPlanScheduleName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ScalingPlanPooledScheduleList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.scalingPlanName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ScalingPlanPooledScheduleList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip + ], + urlParameters: [ + Parameters.$host, + Parameters.nextLink, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.scalingPlanName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/scalingPlans.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/scalingPlans.ts index 8b20d02f59ee..d33d3266cc3b 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/scalingPlans.ts +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/scalingPlans.ts @@ -489,7 +489,12 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip + ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -510,7 +515,12 @@ const listBySubscriptionOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip + ], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -527,7 +537,12 @@ const listByHostPoolOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip + ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -548,7 +563,12 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip + ], urlParameters: [ Parameters.$host, Parameters.nextLink, @@ -569,7 +589,12 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip + ], urlParameters: [ Parameters.$host, Parameters.nextLink, @@ -589,7 +614,12 @@ const listByHostPoolNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip + ], urlParameters: [ Parameters.$host, Parameters.nextLink, diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/sessionHosts.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/sessionHosts.ts index df3a84252b5d..37c770209e89 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/sessionHosts.ts +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/sessionHosts.ts @@ -275,7 +275,12 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip + ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -296,7 +301,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip + ], urlParameters: [ Parameters.$host, Parameters.nextLink, diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/startMenuItems.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/startMenuItems.ts index e2710efc50ec..10b5c38ae8b3 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/startMenuItems.ts +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/startMenuItems.ts @@ -155,7 +155,12 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip + ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -176,7 +181,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip + ], urlParameters: [ Parameters.$host, Parameters.nextLink, diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/userSessions.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/userSessions.ts index 720e6c5d52e9..07a9d8c16726 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/userSessions.ts +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/userSessions.ts @@ -392,7 +392,13 @@ const listByHostPoolOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion, Parameters.filter], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip, + Parameters.filter + ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -461,7 +467,12 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip + ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -529,7 +540,13 @@ const listByHostPoolNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion, Parameters.filter], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip, + Parameters.filter + ], urlParameters: [ Parameters.$host, Parameters.nextLink, @@ -551,7 +568,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip + ], urlParameters: [ Parameters.$host, Parameters.nextLink, diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/workspaces.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/workspaces.ts index 293e687fb7e9..a75c3947f2d3 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/workspaces.ts +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/workspaces.ts @@ -378,7 +378,12 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip + ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -415,7 +420,12 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.isDescending, + Parameters.initialSkip + ], urlParameters: [ Parameters.$host, Parameters.nextLink, diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/index.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/index.ts index 7431743f39da..0c7bb50adcdd 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/index.ts +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/index.ts @@ -9,6 +9,7 @@ export * from "./operations"; export * from "./workspaces"; export * from "./scalingPlans"; +export * from "./scalingPlanPooledSchedules"; export * from "./applicationGroups"; export * from "./startMenuItems"; export * from "./applications"; @@ -18,5 +19,3 @@ export * from "./userSessions"; export * from "./sessionHosts"; export * from "./msixPackages"; export * from "./msixImages"; -export * from "./privateEndpointConnections"; -export * from "./privateLinkResources"; diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/privateEndpointConnections.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/privateEndpointConnections.ts deleted file mode 100644 index d57d4c906c60..000000000000 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/privateEndpointConnections.ts +++ /dev/null @@ -1,140 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - PrivateEndpointConnectionWithSystemData, - PrivateEndpointConnectionsListByHostPoolOptionalParams, - PrivateEndpointConnectionsListByWorkspaceOptionalParams, - PrivateEndpointConnectionsGetByHostPoolOptionalParams, - PrivateEndpointConnectionsGetByHostPoolResponse, - PrivateEndpointConnectionsDeleteByHostPoolOptionalParams, - PrivateEndpointConnection, - PrivateEndpointConnectionsUpdateByHostPoolOptionalParams, - PrivateEndpointConnectionsUpdateByHostPoolResponse, - PrivateEndpointConnectionsGetByWorkspaceOptionalParams, - PrivateEndpointConnectionsGetByWorkspaceResponse, - PrivateEndpointConnectionsDeleteByWorkspaceOptionalParams, - PrivateEndpointConnectionsUpdateByWorkspaceOptionalParams, - PrivateEndpointConnectionsUpdateByWorkspaceResponse -} from "../models"; - -/// -/** Interface representing a PrivateEndpointConnections. */ -export interface PrivateEndpointConnections { - /** - * List private endpoint connections associated with hostpool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param hostPoolName The name of the host pool within the specified resource group - * @param options The options parameters. - */ - listByHostPool( - resourceGroupName: string, - hostPoolName: string, - options?: PrivateEndpointConnectionsListByHostPoolOptionalParams - ): PagedAsyncIterableIterator; - /** - * List private endpoint connections. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param options The options parameters. - */ - listByWorkspace( - resourceGroupName: string, - workspaceName: string, - options?: PrivateEndpointConnectionsListByWorkspaceOptionalParams - ): PagedAsyncIterableIterator; - /** - * Get a private endpoint connection. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param hostPoolName The name of the host pool within the specified resource group - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the - * Azure resource - * @param options The options parameters. - */ - getByHostPool( - resourceGroupName: string, - hostPoolName: string, - privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsGetByHostPoolOptionalParams - ): Promise; - /** - * Remove a connection. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param hostPoolName The name of the host pool within the specified resource group - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the - * Azure resource - * @param options The options parameters. - */ - deleteByHostPool( - resourceGroupName: string, - hostPoolName: string, - privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsDeleteByHostPoolOptionalParams - ): Promise; - /** - * Approve or reject a private endpoint connection. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param hostPoolName The name of the host pool within the specified resource group - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the - * Azure resource - * @param connection Object containing the updated connection. - * @param options The options parameters. - */ - updateByHostPool( - resourceGroupName: string, - hostPoolName: string, - privateEndpointConnectionName: string, - connection: PrivateEndpointConnection, - options?: PrivateEndpointConnectionsUpdateByHostPoolOptionalParams - ): Promise; - /** - * Get a private endpoint connection. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the - * Azure resource - * @param options The options parameters. - */ - getByWorkspace( - resourceGroupName: string, - workspaceName: string, - privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsGetByWorkspaceOptionalParams - ): Promise; - /** - * Remove a connection. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the - * Azure resource - * @param options The options parameters. - */ - deleteByWorkspace( - resourceGroupName: string, - workspaceName: string, - privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsDeleteByWorkspaceOptionalParams - ): Promise; - /** - * Approve or reject a private endpoint connection. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the - * Azure resource - * @param connection Object containing the updated connection. - * @param options The options parameters. - */ - updateByWorkspace( - resourceGroupName: string, - workspaceName: string, - privateEndpointConnectionName: string, - connection: PrivateEndpointConnection, - options?: PrivateEndpointConnectionsUpdateByWorkspaceOptionalParams - ): Promise; -} diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/privateLinkResources.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/privateLinkResources.ts deleted file mode 100644 index e72893f912c2..000000000000 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/privateLinkResources.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - PrivateLinkResource, - PrivateLinkResourcesListByHostPoolOptionalParams, - PrivateLinkResourcesListByWorkspaceOptionalParams -} from "../models"; - -/// -/** Interface representing a PrivateLinkResources. */ -export interface PrivateLinkResources { - /** - * List the private link resources available for this hostpool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param hostPoolName The name of the host pool within the specified resource group - * @param options The options parameters. - */ - listByHostPool( - resourceGroupName: string, - hostPoolName: string, - options?: PrivateLinkResourcesListByHostPoolOptionalParams - ): PagedAsyncIterableIterator; - /** - * List the private link resources available for this workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param options The options parameters. - */ - listByWorkspace( - resourceGroupName: string, - workspaceName: string, - options?: PrivateLinkResourcesListByWorkspaceOptionalParams - ): PagedAsyncIterableIterator; -} diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/scalingPlanPooledSchedules.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/scalingPlanPooledSchedules.ts new file mode 100644 index 000000000000..87dbec33896d --- /dev/null +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/scalingPlanPooledSchedules.ts @@ -0,0 +1,90 @@ +/* + * 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 { + ScalingPlanPooledSchedule, + ScalingPlanPooledSchedulesListOptionalParams, + ScalingPlanPooledSchedulesGetOptionalParams, + ScalingPlanPooledSchedulesGetResponse, + ScalingPlanPooledSchedulesCreateOptionalParams, + ScalingPlanPooledSchedulesCreateResponse, + ScalingPlanPooledSchedulesDeleteOptionalParams, + ScalingPlanPooledSchedulesUpdateOptionalParams, + ScalingPlanPooledSchedulesUpdateResponse +} from "../models"; + +/// +/** Interface representing a ScalingPlanPooledSchedules. */ +export interface ScalingPlanPooledSchedules { + /** + * List ScalingPlanPooledSchedules. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scalingPlanName The name of the scaling plan. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + scalingPlanName: string, + options?: ScalingPlanPooledSchedulesListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get a ScalingPlanPooledSchedule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scalingPlanName The name of the scaling plan. + * @param scalingPlanScheduleName The name of the ScalingPlanSchedule + * @param options The options parameters. + */ + get( + resourceGroupName: string, + scalingPlanName: string, + scalingPlanScheduleName: string, + options?: ScalingPlanPooledSchedulesGetOptionalParams + ): Promise; + /** + * Create or update a ScalingPlanPooledSchedule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scalingPlanName The name of the scaling plan. + * @param scalingPlanScheduleName The name of the ScalingPlanSchedule + * @param scalingPlanSchedule Object containing ScalingPlanPooledSchedule definitions. + * @param options The options parameters. + */ + create( + resourceGroupName: string, + scalingPlanName: string, + scalingPlanScheduleName: string, + scalingPlanSchedule: ScalingPlanPooledSchedule, + options?: ScalingPlanPooledSchedulesCreateOptionalParams + ): Promise; + /** + * Remove a ScalingPlanPooledSchedule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scalingPlanName The name of the scaling plan. + * @param scalingPlanScheduleName The name of the ScalingPlanSchedule + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + scalingPlanName: string, + scalingPlanScheduleName: string, + options?: ScalingPlanPooledSchedulesDeleteOptionalParams + ): Promise; + /** + * Update a ScalingPlanPooledSchedule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scalingPlanName The name of the scaling plan. + * @param scalingPlanScheduleName The name of the ScalingPlanSchedule + * @param options The options parameters. + */ + update( + resourceGroupName: string, + scalingPlanName: string, + scalingPlanScheduleName: string, + options?: ScalingPlanPooledSchedulesUpdateOptionalParams + ): Promise; +} diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/test/sampleTest.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/test/sampleTest.ts index 7ed89b043e1b..25aeb3ebcc36 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/test/sampleTest.ts +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/test/sampleTest.ts @@ -7,35 +7,30 @@ */ import { - env, - record, - RecorderEnvironmentSetup, - Recorder + Recorder, + RecorderStartOptions, + env } from "@azure-tools/test-recorder"; -import * as assert from "assert"; +import { assert } from "chai"; +import { Context } from "mocha"; -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: [] +const replaceableVariables: Record = { + 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" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables }; describe("My test", () => { let recorder: Recorder; - beforeEach(async function() { - recorder = record(this, recorderEnvSetup); + beforeEach(async function(this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); }); afterEach(async function() { diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/tsconfig.json b/sdk/desktopvirtualization/arm-desktopvirtualization/tsconfig.json index 02d427ad910e..3e6ae96443f3 100644 --- a/sdk/desktopvirtualization/arm-desktopvirtualization/tsconfig.json +++ b/sdk/desktopvirtualization/arm-desktopvirtualization/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-desktopvirtualization": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"