diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index b644604545c8..3072d14a9878 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -7789,7 +7789,7 @@ packages: dev: false file:projects/abort-controller.tgz: - resolution: {integrity: sha512-ab0RnaytbrVZoJQONDDsXop7PN/NZgfyl/UXKCdmYwv0uVLDwWGH+zfZ3b2tII7SrMPGq08qgM9mvWX92LgJWQ==, tarball: file:projects/abort-controller.tgz} + resolution: {integrity: sha512-u1RuSYeAxMH+EZpLd9X7Z62tCxELWXl01dDTUDC/zfmPklcJqyJooNpZfJ25LC+ch8ivFyeZ5VY3jHK0Te1H+g==, tarball: file:projects/abort-controller.tgz} name: '@rush-temp/abort-controller' version: 0.0.0 dependencies: @@ -7832,7 +7832,7 @@ packages: dev: false file:projects/agrifood-farming.tgz: - resolution: {integrity: sha512-q/CvF23gNMcT9oDHNsVf/3LrKoLC6r5xHse9ZjUgoPrStQehVb3b+85K8EeOOxFCixTAVusbFiAvT93cz9FbMA==, tarball: file:projects/agrifood-farming.tgz} + resolution: {integrity: sha512-xvpQlD5jgGFaVsBO1RfjhZyqO4jFMEAZgAMaO/+30izDsiXX3CCYDnVDYC7l9vHiDgdpUZbO42TXSEbscMMc/A==, tarball: file:projects/agrifood-farming.tgz} name: '@rush-temp/agrifood-farming' version: 0.0.0 dependencies: @@ -7879,7 +7879,7 @@ packages: dev: false file:projects/ai-anomaly-detector.tgz: - resolution: {integrity: sha512-Was1FlQDfni4j3gQChqwG0ilBbvJgyuua7RskKoMxx1QDuB1mAvQUIreTiRhwmkiFDkTm3mZI6Mrdj4SkCEjpQ==, tarball: file:projects/ai-anomaly-detector.tgz} + resolution: {integrity: sha512-yv9zXQdVFEJr6z0DWN4qWWG5NRM/oJ0FOT+PvEM8dNTCX0h2pM3VZzx4pduqH66X4MeYLRkB5G8rDv02c0cqww==, tarball: file:projects/ai-anomaly-detector.tgz} name: '@rush-temp/ai-anomaly-detector' version: 0.0.0 dependencies: @@ -7932,7 +7932,7 @@ packages: dev: false file:projects/ai-document-translator.tgz: - resolution: {integrity: sha512-+4/loU1HOCjvbKbOE/FQuR9W03ac1qyodf4cecEbhNxMEYxwyjQL6iIG3sZxya31SQ+erxGBcm0zcB5m7pGY3g==, tarball: file:projects/ai-document-translator.tgz} + resolution: {integrity: sha512-/vNpWhmG6wzou2UBl5UnF4liLZpK00WyYazSH3tkMfoGMU70+k0TqZ0k5zCymBcSVaNisbVg+gUSZTD9ZZH7LQ==, tarball: file:projects/ai-document-translator.tgz} name: '@rush-temp/ai-document-translator' version: 0.0.0 dependencies: @@ -7977,7 +7977,7 @@ packages: dev: false file:projects/ai-form-recognizer.tgz: - resolution: {integrity: sha512-yH80gCGTSKIEWTf/JqjZJbpLQzmMmACfZH09xXh6Ra8sviE42uoZwnH9yjH9WvY719jKl5ENmPME4inJvCfxwA==, tarball: file:projects/ai-form-recognizer.tgz} + resolution: {integrity: sha512-3CXLJGbtAkZc6TmdBzCN09fCot57bFuySZhg2onmcM2QU/y7yCHKMMqZyh0XQsPQ7qra0itAwU4t07+HnTrZEw==, tarball: file:projects/ai-form-recognizer.tgz} name: '@rush-temp/ai-form-recognizer' version: 0.0.0 dependencies: @@ -8024,7 +8024,7 @@ packages: dev: false file:projects/ai-metrics-advisor.tgz: - resolution: {integrity: sha512-G4+w6DvulKHJqm5Dg6hqF7ZaN+8gtSOtMsaFqIPXQq611S8Wt7OPUW4h1neiUwToapAE1rRBV/7D0SCqlOn7sA==, tarball: file:projects/ai-metrics-advisor.tgz} + resolution: {integrity: sha512-eCz6EZJl3qTMP4ywxI1v1KSRbwRprVJsnRr3b4Cv4vamq4b0APWDrgu9K/g3K03vp2wNbuheBlaNPBHGXqsM2g==, tarball: file:projects/ai-metrics-advisor.tgz} name: '@rush-temp/ai-metrics-advisor' version: 0.0.0 dependencies: @@ -8075,7 +8075,7 @@ packages: dev: false file:projects/ai-text-analytics.tgz: - resolution: {integrity: sha512-c/7MyPtRsY2NdbFwCU/u6KKRgHi05NjKM5CwTIrbwhIqp7BZvvK4WAKkBufNdXMRhWEYX602aAqUU+Cq8Dtwpg==, tarball: file:projects/ai-text-analytics.tgz} + resolution: {integrity: sha512-EFeN/KUeqdXjAa76GXvzJWrbGYrc1TlUdD1XI3QlULH5MrC5a+3uAweaP5uIzXONmnPG3FUZrd9uV07T2uHhvg==, tarball: file:projects/ai-text-analytics.tgz} name: '@rush-temp/ai-text-analytics' version: 0.0.0 dependencies: @@ -8127,7 +8127,7 @@ packages: dev: false file:projects/app-configuration.tgz: - resolution: {integrity: sha512-RTnq5Bnk1gO47YNXxKXJ7x9fGkqpp5gpFAnT6h0LzBkYEb8CgttoAQDQ7/K5dV70hOwAhrPJCxvkLBWdW3Rekg==, tarball: file:projects/app-configuration.tgz} + resolution: {integrity: sha512-hrSXCZ6eGxTUNHn31pEMmCt2jRpCewcV/Ov3DSHLCZ8QTyih3Oxci6Xb7tseW2ZB5PRQz2FRrC557gdPYdVC/Q==, tarball: file:projects/app-configuration.tgz} name: '@rush-temp/app-configuration' version: 0.0.0 dependencies: @@ -9397,7 +9397,7 @@ packages: dev: false file:projects/arm-webpubsub.tgz: - resolution: {integrity: sha512-outReJxntlsc+34E+MMqYNybnLClXCh8GSmgwhybPn1YwfEUFmD2lG9P+w4HDstkAshJ0gDu5su/JBlpU94AkQ==, tarball: file:projects/arm-webpubsub.tgz} + resolution: {integrity: sha512-eLY8zVVnNv6rhrsCO3lDa/BWU7ep4cfwt3mOU0Dli0yd8n+OqxouRs6zPC0caWYCBxVjYT/Zl+zyTSR/hPPphQ==, tarball: file:projects/arm-webpubsub.tgz} name: '@rush-temp/arm-webpubsub' version: 0.0.0 dependencies: @@ -9406,7 +9406,10 @@ packages: '@rollup/plugin-json': 4.1.0_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1 '@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1 + cross-env: 7.0.3 mkdirp: 1.0.4 + mocha: 7.2.0 + rimraf: 3.0.2 rollup: 1.32.1 rollup-plugin-node-resolve: 3.4.0 rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1 @@ -9416,7 +9419,7 @@ packages: dev: false file:projects/attestation.tgz: - resolution: {integrity: sha512-xAAhJzTO9YVdCo04DAo7PzW1wrbdyHXNUFmikB+7VhqDfVbqiymycIvubyuVa3LjrhdRBOQyzMfkorsFsGT2rg==, tarball: file:projects/attestation.tgz} + resolution: {integrity: sha512-1cYc9upFE5cDmppkfWNP4I7hTWQ5C/N98qM50Uc5bpfqdmFUS7MqXE3BJIifZ/RyoHywHGuwdPgKu5ozBj31Bw==, tarball: file:projects/attestation.tgz} name: '@rush-temp/attestation' version: 0.0.0 dependencies: @@ -9473,7 +9476,7 @@ packages: dev: false file:projects/communication-chat.tgz: - resolution: {integrity: sha512-cE7IsJBeMhzpBvg1UefKnajIKnioO8OmCIAsyiHLVJn+4NpgszXU9+QHWEbXy7W1q83XTalsj4CAXRKvOFkldA==, tarball: file:projects/communication-chat.tgz} + resolution: {integrity: sha512-KXdNo2HmgbXFgKg1DG7Yr/TtcHXRd2EIPXbChgaLEHIClJ74TOwvwEKNzxiVUcoCE72fo1Crjmm4JN0uBPvtWw==, tarball: file:projects/communication-chat.tgz} name: '@rush-temp/communication-chat' version: 0.0.0 dependencies: @@ -9535,7 +9538,7 @@ packages: dev: false file:projects/communication-common.tgz: - resolution: {integrity: sha512-BnjLd/QpVnhHttTkgfyjZcL+3EtgX92tgGdsGDecEDRBhlGgKQkc9CEBgDyULD7FXJLZ2Ot8NtvhTvzHd8+M/w==, tarball: file:projects/communication-common.tgz} + resolution: {integrity: sha512-fAa1QN9fUP7uKX1cFhAhYU66fOO6oFj0VroID2wP8EyQbGRmeScPAP1uAksGGeWXVW7J5M40uI31L2oIT7pjhQ==, tarball: file:projects/communication-common.tgz} name: '@rush-temp/communication-common' version: 0.0.0 dependencies: @@ -9593,7 +9596,7 @@ packages: dev: false file:projects/communication-identity.tgz: - resolution: {integrity: sha512-l8Y+HjmXWbl0kidKJa6lfl2ezUppZ0QI7MbqEDW15mopxNYj34P7vqVntu5IPnvTQKDJEeFk/0rPZjtbwNZggQ==, tarball: file:projects/communication-identity.tgz} + resolution: {integrity: sha512-Wsq/cbvj2skuy/8RgaKp6/bDY/WRqPKfKtA8+4Hf6L5DOG1w5ZESVX1VnSq5tSOUaiyiUaOBROtBJXmKCrBArQ==, tarball: file:projects/communication-identity.tgz} name: '@rush-temp/communication-identity' version: 0.0.0 dependencies: @@ -9650,7 +9653,7 @@ packages: dev: false file:projects/communication-network-traversal.tgz: - resolution: {integrity: sha512-Vfp3YcmdRtGfIkfwuVQ8hJBvql8M8JBlux7y1vOyQfpQHWrW9gllGKMEbaEr1ag8ZjdofPEab/QnpSZmxCyEhw==, tarball: file:projects/communication-network-traversal.tgz} + resolution: {integrity: sha512-Jo03JizQrbBgUl2W3xH7B0bmY4gTtjvrG097aG1tCzqHHyul06IzZwxmR6ntw98knptEerEVUkYqf5GTFaC3Cw==, tarball: file:projects/communication-network-traversal.tgz} name: '@rush-temp/communication-network-traversal' version: 0.0.0 dependencies: @@ -9708,7 +9711,7 @@ packages: dev: false file:projects/communication-phone-numbers.tgz: - resolution: {integrity: sha512-lMT5pBMrcdSbBbpdtYL24Ll2FAYXeTzWZUxFdxAXq2VU3ey0V0BJIk67D0LvagaI2S7uO355HpxNEOuZGJHgIg==, tarball: file:projects/communication-phone-numbers.tgz} + resolution: {integrity: sha512-a8Kr8kwgEO1DSh51HKl4mDDrmbNa2ALs22pltGLR3qDMKatlAAv+SxTyzg4V3UPv+yT4vukiW+3JtFBjGn/j6Q==, tarball: file:projects/communication-phone-numbers.tgz} name: '@rush-temp/communication-phone-numbers' version: 0.0.0 dependencies: @@ -9765,7 +9768,7 @@ packages: dev: false file:projects/communication-short-codes.tgz: - resolution: {integrity: sha512-OpHH3Hz4/aEuBf5kY0miTipaXM/LI7wEaAqniJv0CI2WP4CHfWVIn8nFnm0jxwwjSctbRlEpRdCDfYmz8FniSQ==, tarball: file:projects/communication-short-codes.tgz} + resolution: {integrity: sha512-LinNxApiXrnegB3VB/GqAKaNi4dV76EVnTP1cI43SrZ0hv8FK+lzAeVpREtiW0cZmeOO5BfVZxnTrSDN24u/Hw==, tarball: file:projects/communication-short-codes.tgz} name: '@rush-temp/communication-short-codes' version: 0.0.0 dependencies: @@ -9823,7 +9826,7 @@ packages: dev: false file:projects/communication-sms.tgz: - resolution: {integrity: sha512-Otg1wZND5QV8jpID+Oerk+UqsEaqkzoK6YV0u/P15HuMTfclaxF/PS/AhLyqfccttp5itvkGGcutlUeZvCSKgQ==, tarball: file:projects/communication-sms.tgz} + resolution: {integrity: sha512-FJxE+KG4zVvThfG0SOfpfuAmrn+gzgNqLY3bAA+ryOSQBkfZWjmmrLfbUZv5wM2TL272mlxxbKoyYnY8sVKsJg==, tarball: file:projects/communication-sms.tgz} name: '@rush-temp/communication-sms' version: 0.0.0 dependencies: @@ -9879,7 +9882,7 @@ packages: dev: false file:projects/confidential-ledger.tgz: - resolution: {integrity: sha512-WDN2rqUqQRZI8TOOV6j4NrAzfv71QCoZY5rPJHUSk5pSwSbWZyQ2NTLQwv+nf4sCPMBwXIvqSosedNZjrdEFbA==, tarball: file:projects/confidential-ledger.tgz} + resolution: {integrity: sha512-0xly5mg3c1DxMdXjMpHbpXNoWA+g8h1KZXnuDAvosKAasbeeZwV7qEJ/rK8RRxJgS44w/YKLwXRX9OyhlqRjBA==, tarball: file:projects/confidential-ledger.tgz} name: '@rush-temp/confidential-ledger' version: 0.0.0 dependencies: @@ -9924,7 +9927,7 @@ packages: dev: false file:projects/container-registry.tgz: - resolution: {integrity: sha512-9CwmY4HuTDpc1kb4ZsuUUJnKgd6MYNvuhU8uav/018jJTApit27MV9c16ByDjBLxIovSvTz0dqik3AWM7iH+EA==, tarball: file:projects/container-registry.tgz} + resolution: {integrity: sha512-BKA2Dr5Kz/xKhZuaP9Q3jjdX8bRox8wtEuf2pLUFKWIGapFGJGYljHVM2WmNeIEGWTP332OVqP9m2kkcD41uQw==, tarball: file:projects/container-registry.tgz} name: '@rush-temp/container-registry' version: 0.0.0 dependencies: @@ -9971,7 +9974,7 @@ packages: dev: false file:projects/core-amqp.tgz: - resolution: {integrity: sha512-o4/vVNFNkW+bLPUcQ1AQcad5yVVwDpUH8bA1zXd48O4Ct8ELkcbkURR1+1qlxTdZdBEfXBj7se8nMQtqpvnA/A==, tarball: file:projects/core-amqp.tgz} + resolution: {integrity: sha512-+AjDA2zWxljz1cVHStZNpmHHAlOLN2dj3Fy2bZfpB9Kl1pCIXaVXeuEjEJTQFqGFh8iwyD2uHZ9lK7a8O2KW6A==, tarball: file:projects/core-amqp.tgz} name: '@rush-temp/core-amqp' version: 0.0.0 dependencies: @@ -10030,7 +10033,7 @@ packages: dev: false file:projects/core-asynciterator-polyfill.tgz: - resolution: {integrity: sha512-NMQzIXmS6Aw+/UpoOPolEKGWu0ak5sbvZn3jGCttx2gFZqO832WYZuAeNlwxEYUepdypxNQRnAR8EAdx7b7iiw==, tarball: file:projects/core-asynciterator-polyfill.tgz} + resolution: {integrity: sha512-ugOcJyCydJvJ8cDCJkyx+P3NLINxAf9NluDDWAnvkSOyZG0s4Gc3sV2uSC02/a6WQ+zCNHYS7xtAZkoKa2nkyw==, tarball: file:projects/core-asynciterator-polyfill.tgz} name: '@rush-temp/core-asynciterator-polyfill' version: 0.0.0 dependencies: @@ -10044,7 +10047,7 @@ packages: dev: false file:projects/core-auth.tgz: - resolution: {integrity: sha512-5za6xyOYzRmSo5PeWlUk551FZeM+MkLHFd0l2Oh84pwtIDbMS3gr6txPMJ8k088/Dhvr+HDNTGRhGsGlZqgIig==, tarball: file:projects/core-auth.tgz} + resolution: {integrity: sha512-UvkHUe2LQU+T+OHBHkY4pZg0tTFb67h4leQSy2utolPHNVglaR9BbkbeCepYWJ75o3JFeaZSi/Iz5AgZpWNfIQ==, tarball: file:projects/core-auth.tgz} name: '@rush-temp/core-auth' version: 0.0.0 dependencies: @@ -10071,7 +10074,7 @@ packages: dev: false file:projects/core-client-1.tgz: - resolution: {integrity: sha512-uT5cnoJ29hlOhdzBgjlTt9Z4g/MU5mdyzsFBg+wpkFxdhGvoAiNcTjErOSjs+5UHjxt5QJdyro+poWQitpzYJg==, tarball: file:projects/core-client-1.tgz} + resolution: {integrity: sha512-PxE3+UKSxBBaa1Qix8rCedH0Yoy2pM62A+8fLJMmkL425NZO8ZjIC7PnTETUa2i+kC50zKsSaWkNkEsbLYbGmQ==, tarball: file:projects/core-client-1.tgz} name: '@rush-temp/core-client-1' version: 0.0.0 dependencies: @@ -10118,7 +10121,7 @@ packages: dev: false file:projects/core-client-lro.tgz: - resolution: {integrity: sha512-14MiFwnsKK9QvQvw2HCX58K9SBbi1vwuharI1RRrGA/QE5T1vjt003O8xyOE0+VpyFhVxOBcPJAzeve+iaVlag==, tarball: file:projects/core-client-lro.tgz} + resolution: {integrity: sha512-s2mUnPzFvC65O19ZtV7f2IMME7QTer+ioCbfO4dDHaGBc651DKTI0/4RqnA24weKlLueUZccCag8lbxHt3ZrVQ==, tarball: file:projects/core-client-lro.tgz} name: '@rush-temp/core-client-lro' version: 0.0.0 dependencies: @@ -10162,7 +10165,7 @@ packages: dev: false file:projects/core-client-paging.tgz: - resolution: {integrity: sha512-6zYQV6oIAFUeOUZCLOQMaaOIrTxq4ZByRSK9v8y0kpJt2ONw9ZsPxeDzDl7F9/sboyw7R5I9nTBYmGHAGBD1gw==, tarball: file:projects/core-client-paging.tgz} + resolution: {integrity: sha512-DCFNc7TF3nxukQiopjo/zsrGwgmGx69o9or5LFOvKoR6Ca0W0Z2yT310g9yC/AaA3vcgvy0E6/enm8ihkuaf5A==, tarball: file:projects/core-client-paging.tgz} name: '@rush-temp/core-client-paging' version: 0.0.0 dependencies: @@ -10204,7 +10207,7 @@ packages: dev: false file:projects/core-client.tgz: - resolution: {integrity: sha512-40FmaWM7B/I4tBCb2GxVu8yMRoVaTVL1ZbemM3EMMtHS7VGVbTome+vt3Esz6l9RsItmRok4G81NzPW5w4N5SA==, tarball: file:projects/core-client.tgz} + resolution: {integrity: sha512-z3SFo91UYPq1GvbCsTU1Z+dnYHxT7lDXem8cC3kDcRh2UyohZYHRD/xBY3QER4Kc0OIf4W8CncSnpq57ftJuMg==, tarball: file:projects/core-client.tgz} name: '@rush-temp/core-client' version: 0.0.0 dependencies: @@ -10246,7 +10249,7 @@ packages: dev: false file:projects/core-crypto.tgz: - resolution: {integrity: sha512-J2pLnKslszxb3f01A/fO+69mI9MUGiFZIcThEAccAja3ngH+G596d2tDeVVj8dJ3j5fiu+DvrbRwNeUndO6+8w==, tarball: file:projects/core-crypto.tgz} + resolution: {integrity: sha512-bNBaYb6X4/jVmPmc5QUh0/brQcbWXltKb38BNAWDFnenVofKRBp1/EMrHHwW99fyhh9gVFpioFwd0ZnEkOYmnQ==, tarball: file:projects/core-crypto.tgz} name: '@rush-temp/core-crypto' version: 0.0.0 dependencies: @@ -10291,7 +10294,7 @@ packages: dev: false file:projects/core-http.tgz: - resolution: {integrity: sha512-J9YoKDE6YGbZLCR4egrdgPInlJPtgaNfyuCRFF7qC8WtZ3hC1lQDYZBsHwuXobFLIP4LUyqVV7vMiYamLENpew==, tarball: file:projects/core-http.tgz} + resolution: {integrity: sha512-UH5ljunFMq5otz9KrWRYCiK7P/PhiO0LspIboYPbXSwAzy4wRJDQNg454inGqyJxDkYMtBaEbqnD59k6DGrX/w==, tarball: file:projects/core-http.tgz} name: '@rush-temp/core-http' version: 0.0.0 dependencies: @@ -10360,7 +10363,7 @@ packages: dev: false file:projects/core-lro.tgz: - resolution: {integrity: sha512-tLmQGr9tGjn4FjZr43yYqNrV3LWFkUCFYElX20HxmIlwapaEPy8OXyURbnjWB7hhu82YV1UaEF8j/X4iHOHZCA==, tarball: file:projects/core-lro.tgz} + resolution: {integrity: sha512-Y4ztqOmUB7myEM1FHg0VLlz4/KhyyeTCSSt6ouLCQ+7kEFCmFhjUP8fMB6uizu1HaT+d0UnHbrXDMVpR8TRE4w==, tarball: file:projects/core-lro.tgz} name: '@rush-temp/core-lro' version: 0.0.0 dependencies: @@ -10405,7 +10408,7 @@ packages: dev: false file:projects/core-paging.tgz: - resolution: {integrity: sha512-UjHPixglA9K1Yn2RahHbaLPYGstD1B2lvrMTRTgMgwaeFQuzHajn6TQBvO4bs4Yg9Sjl+XwKGFYWP8LEGTba7A==, tarball: file:projects/core-paging.tgz} + resolution: {integrity: sha512-cmJf/Ggz15Y8eRC5wwhR++J+AgzassuQ1SdQLYvcKZyRxuTk2fuCTGpLW2LqJbSaoZVznm50ZZZh1vrhAenl/g==, tarball: file:projects/core-paging.tgz} name: '@rush-temp/core-paging' version: 0.0.0 dependencies: @@ -10443,7 +10446,7 @@ packages: dev: false file:projects/core-rest-pipeline.tgz: - resolution: {integrity: sha512-wxzY3+t7F39z7Kq8lUkS6fRk/2LXYGd1tmzyspZHHKrXTwZ5llcznQOiqV9bIJROXpo9/nzBJXS1jOm5S7VI8g==, tarball: file:projects/core-rest-pipeline.tgz} + resolution: {integrity: sha512-Xy4V/9Y8TfgLoT+g1tXOhOUBpcSa0jbAThMncVPswnNmn2ZZMH5I+kjmxy0n8tVjZrttANSBytJsiSXlWsHIug==, tarball: file:projects/core-rest-pipeline.tgz} name: '@rush-temp/core-rest-pipeline' version: 0.0.0 dependencies: @@ -10494,7 +10497,7 @@ packages: dev: false file:projects/core-tracing.tgz: - resolution: {integrity: sha512-f61XTsl+LjwqPrnFo3B2Y62ZxqWYFKRTNrV/BYqo72zS8RAfNJ/5McNTZf3KF5XMRsmDNlNCerx9M3KHWcQilA==, tarball: file:projects/core-tracing.tgz} + resolution: {integrity: sha512-qvCCahJK/PW5kRBfOZFFZllmpJe0kTCCA5+FVA1VYy8rx+3XboCg8nIwJfNLr9AvAZa7H20mnrABOEWifkU0jQ==, tarball: file:projects/core-tracing.tgz} name: '@rush-temp/core-tracing' version: 0.0.0 dependencies: @@ -10538,7 +10541,7 @@ packages: dev: false file:projects/core-util.tgz: - resolution: {integrity: sha512-FNsdK96TLCqM6bDGl1STn9VB1HoJAtmAOPF9/CRLGETEbi/z4JECaCo6bAS8kKXWk7P33UkPLYp8IF8n2bSgdg==, tarball: file:projects/core-util.tgz} + resolution: {integrity: sha512-1fQP9i7iCm1zs76t9K22KJ5EDrKGxe1p7QamYNfU0QwBjVC1f8etYSeL++wRMOhZfwjY2oE5iNEfZQOk1I3REg==, tarball: file:projects/core-util.tgz} name: '@rush-temp/core-util' version: 0.0.0 dependencies: @@ -10581,7 +10584,7 @@ packages: dev: false file:projects/core-xml.tgz: - resolution: {integrity: sha512-jZ9OmhFtUTs6H+ar4gjE3WwO/OeCG99di7P0AOLV5kQdDREn79Eb+Q8JdoRj1iwxksdiPGX92gzI4dCKXOtECw==, tarball: file:projects/core-xml.tgz} + resolution: {integrity: sha512-kpLzsdqCWQHR11IszASmwM5FahXFxQYaPDArsrYaA89uT92KMTzqHc0f3e9NTPRyqLiHZXuhqFpWgPBjLbfWlQ==, tarball: file:projects/core-xml.tgz} name: '@rush-temp/core-xml' version: 0.0.0 dependencies: @@ -10626,7 +10629,7 @@ packages: dev: false file:projects/cosmos.tgz: - resolution: {integrity: sha512-Pz1pN92p604dS/NMZHVYHn8LsMANsPxp5eGK4726AHJs4phugA1uQih4edKZwWqA7GIOnM2mI88vb12y4nBs5A==, tarball: file:projects/cosmos.tgz} + resolution: {integrity: sha512-U6xSZLG5K8r1t8JkRNhKf7VLN0tSbrhoJs/kvifbON1+2SjuZpcFwvErPW4ylGlrEt1JRURUWn79QV87ff2OQQ==, tarball: file:projects/cosmos.tgz} name: '@rush-temp/cosmos' version: 0.0.0 dependencies: @@ -10677,7 +10680,7 @@ packages: dev: false file:projects/data-tables.tgz: - resolution: {integrity: sha512-SFqBsNmgiaWwDI10QGmpd7jIw/8fO8VSSxx9j+ytK1lq9+xFAPZ/POGPWII4agDMpjcCLeDTE7lOBv1xX16pQg==, tarball: file:projects/data-tables.tgz} + resolution: {integrity: sha512-O7CIRgpIB+tsFmCG7UvXJhEsHnkJILejjC0UdjGQDZrrAriDR2qBiMFZi1kGZn2WZHGqU1mywzY5MsBWS1GjTA==, tarball: file:projects/data-tables.tgz} name: '@rush-temp/data-tables' version: 0.0.0 dependencies: @@ -10738,7 +10741,7 @@ packages: dev: false file:projects/dev-tool.tgz: - resolution: {integrity: sha512-kIv+fJbY2f89rQmcriGnUQSMyEfqk0ywz7kxqv71AkbY0EIe02xTQgbUpQkvyM39BLeG4XOM736TsrhK9i9vgw==, tarball: file:projects/dev-tool.tgz} + resolution: {integrity: sha512-ExPHrCE3m71/FrakA576UduFoYRSKlzn1I33/TfiUBCuqQzMWUqUVdwsG/WGo83rbNfSpdJSeK+KCxcVOwrMcg==, tarball: file:projects/dev-tool.tgz} name: '@rush-temp/dev-tool' version: 0.0.0 dependencies: @@ -10781,7 +10784,7 @@ packages: dev: false file:projects/digital-twins-core.tgz: - resolution: {integrity: sha512-7l1OHcIlni48MkM7KAZfSZ56o/sZ8rrg+iCjlfWui9mbQCHWF5XgrWIXNKtjYB2QXpBEn2bmwqSKQvr+cWXTtw==, tarball: file:projects/digital-twins-core.tgz} + resolution: {integrity: sha512-E4xrVkieEKeOr1SRqW0PpICK3JzdjKZgmDbOhacVVLQMZBtGctaP4RmBuyTnQ9HMX2Ue5JFPWvJ5oAFyQSYdRA==, tarball: file:projects/digital-twins-core.tgz} name: '@rush-temp/digital-twins-core' version: 0.0.0 dependencies: @@ -10839,7 +10842,7 @@ packages: dev: false file:projects/eslint-plugin-azure-sdk.tgz: - resolution: {integrity: sha512-9QeRV6tJaY41UTA9Bf7mXhuazf83pKvMngFDH/rawytjqFGjwSjPt5yTTWyLw6Le3bslteTJ52TlPlq0HSAZNQ==, tarball: file:projects/eslint-plugin-azure-sdk.tgz} + resolution: {integrity: sha512-oIAP+zht1Mb7PUVzR4que7GVTjteONl2bebL6v1BKor67OiiV9wT7rl714aD3rLLfXFpyQNocd5h2FQfzGZApw==, tarball: file:projects/eslint-plugin-azure-sdk.tgz} name: '@rush-temp/eslint-plugin-azure-sdk' version: 0.0.0 dependencies: @@ -10876,7 +10879,7 @@ packages: dev: false file:projects/event-hubs.tgz: - resolution: {integrity: sha512-d+ROSZoC4muMeYFR6Q6xxmLlCd3rArBwX+ogBtYpbAidDG9W16hS9TUFBL72TfsWSXl3Qs3zMe1zYJKy9ValFg==, tarball: file:projects/event-hubs.tgz} + resolution: {integrity: sha512-A57GYd+DMGazEi3SD3h/Wtm4y4OxpQe9qSaAWlnuAXBF1uJ2vXmL7F72VlPWdBGaXv63MzG9yQB0KIiZs2w0nA==, tarball: file:projects/event-hubs.tgz} name: '@rush-temp/event-hubs' version: 0.0.0 dependencies: @@ -10954,7 +10957,7 @@ packages: dev: false file:projects/eventgrid.tgz: - resolution: {integrity: sha512-OiIxcx+gmDgjz3MaHl8+QfpuzSUwOP1Yu9H7kWuSxiuu07WzYNIeZjT0Et8PZUGsm3PAJApNfWshGnJ6rBX1LA==, tarball: file:projects/eventgrid.tgz} + resolution: {integrity: sha512-mi+/HkOMfpkBUfNx/Fidj44M/kAbYTbbuMIjw2WJb8Mu+B+W7T/QoB/TCPKKgW7B6z8FIFplUEr6fNL9ChGM+Q==, tarball: file:projects/eventgrid.tgz} name: '@rush-temp/eventgrid' version: 0.0.0 dependencies: @@ -11017,7 +11020,7 @@ packages: dev: false file:projects/eventhubs-checkpointstore-blob.tgz: - resolution: {integrity: sha512-tQ3HNismGFDxh8PzIy159+fDFFklNzJYQRFE+S/HCAdNyZRK2wMOG3+4blHNLmqCr38GZPyox01untQCsbxz5g==, tarball: file:projects/eventhubs-checkpointstore-blob.tgz} + resolution: {integrity: sha512-niYUoa5GP9GCesrt0CcPUEbHXArodhSeNYeO1aWeyvv0P7QTgD4FoZWU8R/DswptFr0XqxMBS52/tFTI1hNX5g==, tarball: file:projects/eventhubs-checkpointstore-blob.tgz} name: '@rush-temp/eventhubs-checkpointstore-blob' version: 0.0.0 dependencies: @@ -11083,7 +11086,7 @@ packages: dev: false file:projects/eventhubs-checkpointstore-table.tgz: - resolution: {integrity: sha512-Wb6FU3xeTRFx9kjYQfuHZlCD1E4PikPNXm6C5tkZ8qkij96mHcagN6V7fJ0MLn4DUo6Iz3PF3q08S1jKmOFPGg==, tarball: file:projects/eventhubs-checkpointstore-table.tgz} + resolution: {integrity: sha512-rzHGprGR84aHlej8RgrsL4mjWXDBfkgzWRyrOrRrMq6OY7boBuybiCv6XT3lUp2KL8fO/NNIhFkXttqauv5E9A==, tarball: file:projects/eventhubs-checkpointstore-table.tgz} name: '@rush-temp/eventhubs-checkpointstore-table' version: 0.0.0 dependencies: @@ -11148,7 +11151,7 @@ packages: dev: false file:projects/identity-cache-persistence.tgz: - resolution: {integrity: sha512-aUWzOqq1sv2F72eCGmijhvnpnasuUEAsnkUGV0xInfTyf5LOVf3Z//U8fUUQm1OshoiqIuyjNOhFZU/bz8aLAQ==, tarball: file:projects/identity-cache-persistence.tgz} + resolution: {integrity: sha512-bGNkGKoGAg4kiboATbTIh6EuutLD64hwEyENlUrHMDlAr8l9WPILKc51mPU8Imgr9bFLB7ymXJ4RMyORDfTmPg==, tarball: file:projects/identity-cache-persistence.tgz} name: '@rush-temp/identity-cache-persistence' version: 0.0.0 dependencies: @@ -11185,7 +11188,7 @@ packages: dev: false file:projects/identity-vscode.tgz: - resolution: {integrity: sha512-06rNZoUZii907sL/dmwYPnrLwAfeJgsiY8WCfNFrOeSmDFxI7/A3N/FH2nx2MlKwx+faPQ24+0ATF9FAUT8gxQ==, tarball: file:projects/identity-vscode.tgz} + resolution: {integrity: sha512-SplX9+8ejpz1BoLG/PBrZlFr2tyCZHxhxdySL6B88i9JQI26gs57bFsVtEtIbUT3mkPlB8F+rVGiMYz+EgPafg==, tarball: file:projects/identity-vscode.tgz} name: '@rush-temp/identity-vscode' version: 0.0.0 dependencies: @@ -11220,7 +11223,7 @@ packages: dev: false file:projects/identity.tgz: - resolution: {integrity: sha512-tHxEzQVPPXXKbPqZ3jMWbY+ofDzNwarKsUD2q5kX4PFiM63RofyiOJvBd0p6J+AvrsC7pn0DjFmU6jxKu6nskQ==, tarball: file:projects/identity.tgz} + resolution: {integrity: sha512-7In0aUFFgftkzhxWi4t+JgEJwhSj5aoC5nOOpOOnTKZwPYpSO4dHaW71cNYmMAQDutMNj+JqTZjB4SXyrVgrjA==, tarball: file:projects/identity.tgz} name: '@rush-temp/identity' version: 0.0.0 dependencies: @@ -11276,7 +11279,7 @@ packages: dev: false file:projects/iot-device-update.tgz: - resolution: {integrity: sha512-6LBsYH/eIaBvoej21Y8fBf3ZTBcjRgs18Ltet8id34p+o9URtBOPBpsgQPidpUhen9aSyY/8yUXIxTPXSkeoxg==, tarball: file:projects/iot-device-update.tgz} + resolution: {integrity: sha512-yKaQRRzbc8nuJGrj8daTEQ3r45c20aXlL1O21pNa+L7foP7ezix+r/qe2NNpYRov+uEZNTRQ9GZ2K48pDXBhXA==, tarball: file:projects/iot-device-update.tgz} name: '@rush-temp/iot-device-update' version: 0.0.0 dependencies: @@ -11302,7 +11305,7 @@ packages: dev: false file:projects/iot-modelsrepository.tgz: - resolution: {integrity: sha512-8Kn9/Qa2yxAcXfUinCf5ZztmFJFAB6ufJDhLZedHkz/Y1r0NfLjeCmdXcnSMY/axcK2fmW3AsfD2UEpdUhR4SA==, tarball: file:projects/iot-modelsrepository.tgz} + resolution: {integrity: sha512-BLTg7oaQA1fMvJ4sW56q1fbUfDP0nDR6rditFplaTf/A9WMwj+DRef1+oJsoRyi3xllzJf7MYytBhfvL+3/13w==, tarball: file:projects/iot-modelsrepository.tgz} name: '@rush-temp/iot-modelsrepository' version: 0.0.0 dependencies: @@ -11359,7 +11362,7 @@ packages: dev: false file:projects/keyvault-admin.tgz: - resolution: {integrity: sha512-rxc+Hu1AlzQzkPrkHSLkyZDgb5z5GYBZ63jDuLQXW3L4BhCUX+54Q6o7gh1E/5iV2XTJf1MjjliEihO7LFh2qg==, tarball: file:projects/keyvault-admin.tgz} + resolution: {integrity: sha512-WthgrGyM2M7tYPjG3PDMa94zvtkQ85lCHcw0zcwW+y0flTnlcQ5PwfP+5RBtej+v+KZuzXDcWSM4yq9/Q+OLgA==, tarball: file:projects/keyvault-admin.tgz} name: '@rush-temp/keyvault-admin' version: 0.0.0 dependencies: @@ -11405,7 +11408,7 @@ packages: dev: false file:projects/keyvault-certificates.tgz: - resolution: {integrity: sha512-YUzQyU4oCPYmfA9AOUF1k397q08RoUeUTTAEzbd+ZnyRlhAhR+2av2CMW97YQvwN8V5bnfWhvpFl1hV1tgERHA==, tarball: file:projects/keyvault-certificates.tgz} + resolution: {integrity: sha512-Bk5dtToNIkRBLN4Nd9+Mv4U2JFus1u5GI8K/kWIC/Jpqx1tsz7ycZQTShRbxlkhlbUYBQ1EJdxuq0H3KwuDE1w==, tarball: file:projects/keyvault-certificates.tgz} name: '@rush-temp/keyvault-certificates' version: 0.0.0 dependencies: @@ -11480,7 +11483,7 @@ packages: dev: false file:projects/keyvault-keys.tgz: - resolution: {integrity: sha512-BF6nDaoQIbCcRovEo0RCElWHBjN2cC7pBDyVxYHS2FzNU86+Cuukvl34qSeLYPd0lFZGdm8uxXrOPDv3JCxpcg==, tarball: file:projects/keyvault-keys.tgz} + resolution: {integrity: sha512-CnhwCD4UCEn+o8qGUO1aFc8MDlRSuDqXNCDI7CZjn2uKtXCW/odMSEBi0W46ebUO0bIfKDBypMDGmqBCRukGYA==, tarball: file:projects/keyvault-keys.tgz} name: '@rush-temp/keyvault-keys' version: 0.0.0 dependencies: @@ -11543,7 +11546,7 @@ packages: dev: false file:projects/keyvault-secrets.tgz: - resolution: {integrity: sha512-BScu99ZgDk9ejdDYGP/fQA+HAtklKLpmoMH4/e1BkMYTXdz5bMGTRTWSvIf0ScbS9pH2j/px3VsiqsCHpJBnew==, tarball: file:projects/keyvault-secrets.tgz} + resolution: {integrity: sha512-UmxZQwycw7tNjcP9iBHQncUhcF9fdtTIg/9RZ7ah34KpobqIkntA+dsidPc9zO7P1F34rO82ZYh1BAcXXd9BAg==, tarball: file:projects/keyvault-secrets.tgz} name: '@rush-temp/keyvault-secrets' version: 0.0.0 dependencies: @@ -11602,7 +11605,7 @@ packages: dev: false file:projects/logger.tgz: - resolution: {integrity: sha512-aXvBO/56tAXpc2ud7z5TAjuTEafAfR3i3QZuqtPWc+61doYZGjBvRtdQzGRIiQ+lQnngGhesjXci3H6M//KBHg==, tarball: file:projects/logger.tgz} + resolution: {integrity: sha512-s+CWBtYL3wvjpoGfYZF+l+WA/hp0MO1FAkjkLnP7pPZn9AttIFPHe71R4V38GRqXMQXCgs9r2dH2kwrDCdQcNA==, tarball: file:projects/logger.tgz} name: '@rush-temp/logger' version: 0.0.0 dependencies: @@ -11649,7 +11652,7 @@ packages: dev: false file:projects/mixed-reality-authentication.tgz: - resolution: {integrity: sha512-8MBrnxBOZWh+BT6Qcy3r5DC3rnVkoW9oaZhA2sPSQP8X4aZmHLVbVjPTMkBJsoeFtb8pHOIueaujeiDlrkMEWA==, tarball: file:projects/mixed-reality-authentication.tgz} + resolution: {integrity: sha512-b6eDnYYjDWqYViVgDoL+V92VmzB1d9MeVRXQ8AWO6r7woR+k+VAk+UphB4Ujcx3j7ytW6sdaZyBhJQ3SimCmdA==, tarball: file:projects/mixed-reality-authentication.tgz} name: '@rush-temp/mixed-reality-authentication' version: 0.0.0 dependencies: @@ -11696,7 +11699,7 @@ packages: dev: false file:projects/mixed-reality-remote-rendering.tgz: - resolution: {integrity: sha512-e0usRbRSnLvsfy7nD2/3P+e8bLImLKfL9sPCKULTUDekvYwQu1aCLyZe3U/5ksf9tPXRajnUM+y0jH/bgsujUA==, tarball: file:projects/mixed-reality-remote-rendering.tgz} + resolution: {integrity: sha512-Xsv8+c/IQuxCqIvtUR5sCu58A8CGqIXRrr0dFzCmu+M8KJr9umHf8zSwuJRDd7RcTMmJwDfGiWKW1eNQ1BkMHg==, tarball: file:projects/mixed-reality-remote-rendering.tgz} name: '@rush-temp/mixed-reality-remote-rendering' version: 0.0.0 dependencies: @@ -11762,7 +11765,7 @@ packages: dev: false file:projects/monitor-opentelemetry-exporter.tgz: - resolution: {integrity: sha512-UvJyk/Munw1fDcubGdOm5PcTPlA60Fl86emO/R3GgFUjogZKk7SGRrfZYWf6SWzIGxzF/eU7TYkzOz3veQyYSA==, tarball: file:projects/monitor-opentelemetry-exporter.tgz} + resolution: {integrity: sha512-hUGjniOfZdX1DTXlFw/eeSyMLWuV3E/A+21fV6405htKobNDL6r/pa8EnyOKbo7G1yc6/DlmXWb1vWTa5pl9fg==, tarball: file:projects/monitor-opentelemetry-exporter.tgz} name: '@rush-temp/monitor-opentelemetry-exporter' version: 0.0.0 dependencies: @@ -11799,7 +11802,7 @@ packages: dev: false file:projects/monitor-query.tgz: - resolution: {integrity: sha512-B/+CGj1TXnWvjyhD3/63KYkpGnmm58plFrvZFMhOS3zecalL4MeH9Jti3T/rcsdJG015pxy8P2liDuMuHHtbmQ==, tarball: file:projects/monitor-query.tgz} + resolution: {integrity: sha512-Olrg1jtfep/4NgEQx7aAjpKj2k0BZvQqn+AvZryxUZfOjf6/BqQJiRc4l3e0e0PK5UndrJJmGWbiizOI/G3uug==, tarball: file:projects/monitor-query.tgz} name: '@rush-temp/monitor-query' version: 0.0.0 dependencies: @@ -12266,7 +12269,7 @@ packages: dev: false file:projects/purview-account.tgz: - resolution: {integrity: sha512-DQpCdMx6Yc4xpI6GHuPj4osgCIrcLC5IR7TbqLeVvqz24YN6V2WDWEp8H9mATGfLLBt2lJlG8E05A2WioukmvQ==, tarball: file:projects/purview-account.tgz} + resolution: {integrity: sha512-+2PvA5m+lhZ2oHWg8xWthvvMAPwoDPhKRfjGYM6I/+vwzhiUehNMy2iIR79Y9chxfmvOAA4T2dw85Cs5NiiANw==, tarball: file:projects/purview-account.tgz} name: '@rush-temp/purview-account' version: 0.0.0 dependencies: @@ -12316,7 +12319,7 @@ packages: dev: false file:projects/purview-administration.tgz: - resolution: {integrity: sha512-HHm1IBP416EMgXjd7zTtOQqCyS0+rg/Ik1Pfqp/MZMjGM7hc27er85fVh4jRyvPubG4bJNM6iyeMaHXt/HKmyQ==, tarball: file:projects/purview-administration.tgz} + resolution: {integrity: sha512-hIYrnsk19HQKi7hPqiGK5Co2zeQrF7M70vRH56uQ+LWTtZu76tj7zX90Z064ZcJa4hlcHRrdOtzJ2vhfg3nyig==, tarball: file:projects/purview-administration.tgz} name: '@rush-temp/purview-administration' version: 0.0.0 dependencies: @@ -12362,7 +12365,7 @@ packages: dev: false file:projects/purview-catalog.tgz: - resolution: {integrity: sha512-Zl2oBL2/AyJMPYZN3H78GotRvzgExYDG9JJmt+QuO34jsT6DDtO9EMIRwdjGOAKFFcLhJkLAuO2fDbQPw+XGAw==, tarball: file:projects/purview-catalog.tgz} + resolution: {integrity: sha512-85zICH/JRCYk7Q4OUoFjFrY0qEzFBoQCB1XCCjWL28TNL1c9JMydVBjYh90AG+Xymq81vTgaegw1oEJThP1ZdQ==, tarball: file:projects/purview-catalog.tgz} name: '@rush-temp/purview-catalog' version: 0.0.0 dependencies: @@ -12408,7 +12411,7 @@ packages: dev: false file:projects/purview-scanning.tgz: - resolution: {integrity: sha512-j0YycGCRFnKxxJVko0VVeIaQrEXXTE0lETUiINtdcnCYPUm6eHYRDCgCnxMCK/FPzfzd74a2PGGvD3zAlvZgDw==, tarball: file:projects/purview-scanning.tgz} + resolution: {integrity: sha512-UvvGCxvn0w/tsCtOd/4pfwwZ5HvexYxH2rX/ftDWcSHk7Du70TN0tnN9qKS76DtpPHT6fHlk9atKQb/MeMV9Tw==, tarball: file:projects/purview-scanning.tgz} name: '@rush-temp/purview-scanning' version: 0.0.0 dependencies: @@ -12454,7 +12457,7 @@ packages: dev: false file:projects/quantum-jobs.tgz: - resolution: {integrity: sha512-KKglCKEUw9k3dqrDDJl+Z44W9U2UWKOuR7SahBraYNdTr/Ae/OkfcfWfHs17mQDFvP8NVL+3sCuC/hOlrdqiEQ==, tarball: file:projects/quantum-jobs.tgz} + resolution: {integrity: sha512-az4CM+ikoy7VKPVrT16mhVoQBkTfGOqjYiM1xOXSTrakXuGyh7OkVBQ09oxPigtvoJyqeSgfIKbd9T5cP1XP8A==, tarball: file:projects/quantum-jobs.tgz} name: '@rush-temp/quantum-jobs' version: 0.0.0 dependencies: @@ -12512,7 +12515,7 @@ packages: dev: false file:projects/schema-registry-avro.tgz: - resolution: {integrity: sha512-jipaR6ba7yucvB7lDHHDb0xy24Sbzk+WMYrGmCGLHVY2OE0ZTY7z8zTEdhFFcMdDnq5S468zjNMMFNTcParEqg==, tarball: file:projects/schema-registry-avro.tgz} + resolution: {integrity: sha512-97fRp3BkBCZ/jyo0gQE360uOeKyqcf68FCmdoIyIR5q8TXxZNX8+uTFVhjJRi8yNGkqSqehUuJk1Lpjm6dK1xw==, tarball: file:projects/schema-registry-avro.tgz} name: '@rush-temp/schema-registry-avro' version: 0.0.0 dependencies: @@ -12564,7 +12567,7 @@ packages: dev: false file:projects/schema-registry.tgz: - resolution: {integrity: sha512-6QbYdqJnLQhSFDl3fwUWstPnUCVouvOcB5hsnP081SNPzLCEec6zIn5IKpBzmnNJF2TnIyy65biwIFfXcKUhRg==, tarball: file:projects/schema-registry.tgz} + resolution: {integrity: sha512-AvFttkS65E4YvVmML4BSCk5bZS/UMVeT3GmuBj9bwYQkNqIrFTZwJGG4rfiph+gYEHMp/eMP5fFRRZhYo2PKiA==, tarball: file:projects/schema-registry.tgz} name: '@rush-temp/schema-registry' version: 0.0.0 dependencies: @@ -12610,7 +12613,7 @@ packages: dev: false file:projects/search-documents.tgz: - resolution: {integrity: sha512-h5GtzMdjUtjjnyaKvGIlGrDOjMZ1/rHAPOUlVX+bOGxbz6hjeDS16eyjR6CGUgHSfFhlH7aiM0SsBjH8OilKLQ==, tarball: file:projects/search-documents.tgz} + resolution: {integrity: sha512-pCmTQLXkg9VT2c/6QcU8snmJvW42ugOCrsqjCOJ77IN0ccFNcAge3hhklqFH7Qz7GIo67bq9/B//GR5wtr9hag==, tarball: file:projects/search-documents.tgz} name: '@rush-temp/search-documents' version: 0.0.0 dependencies: @@ -12670,7 +12673,7 @@ packages: dev: false file:projects/service-bus.tgz: - resolution: {integrity: sha512-tDh3mNjr22q/CfjwRcd0XfHy0jIL/E1UtEnpe1U0IZ2sbaWrbnekklUgDF8vvAC3vwM2mH3LllA7Z5nnHR4DKA==, tarball: file:projects/service-bus.tgz} + resolution: {integrity: sha512-FnMoBgjV07Jg7N2dnqZBLxtYc+yILIaGb0WB6o6EzeGM3SKhXvdUMgTUHYT6XHc8QX0soEiI4KzRj+asaQcFeQ==, tarball: file:projects/service-bus.tgz} name: '@rush-temp/service-bus' version: 0.0.0 dependencies: @@ -12749,7 +12752,7 @@ packages: dev: false file:projects/storage-blob-changefeed.tgz: - resolution: {integrity: sha512-qdsiL57Dm8bOj7zDcA0/9mqAfEH5hoP9njebMo1532SknPDi4SPYJMbVu+BJjgQU6+lKQMwou/2bg+RbUO4jvg==, tarball: file:projects/storage-blob-changefeed.tgz} + resolution: {integrity: sha512-sP/4y9UfdU0W7x1Ebqtt/J4azVot+wgtwSdlQjgtjCpi5305/5/rNwZz5Pvvj22uPyfR2Y32cGQAPwX3MNmSng==, tarball: file:projects/storage-blob-changefeed.tgz} name: '@rush-temp/storage-blob-changefeed' version: 0.0.0 dependencies: @@ -12813,7 +12816,7 @@ packages: dev: false file:projects/storage-blob.tgz: - resolution: {integrity: sha512-1ZuQ7lh7QYH0vjFB6ic4037CSkCSBnVPSsZ9G7vSKwo5JQedOvlgVZE9x2WyTC8ra6vQxlhDFzrxp04cxfUTqg==, tarball: file:projects/storage-blob.tgz} + resolution: {integrity: sha512-exu3n35aAL2CZc3EYKZCRuRfDMTQIMziS8mKQJ3KL77/kPT8/d+Oxi4QCQqrkSwuExy0gEAp1zWkTaRe/nBYWQ==, tarball: file:projects/storage-blob.tgz} name: '@rush-temp/storage-blob' version: 0.0.0 dependencies: @@ -12877,7 +12880,7 @@ packages: dev: false file:projects/storage-file-datalake.tgz: - resolution: {integrity: sha512-sjA/G4re6n6KndEucya17jvkfUfRoibYNKIwGAUMog4nC7miSkZCxVWtAZp1rnURGYVXOgmUav873aLjn4o+Uw==, tarball: file:projects/storage-file-datalake.tgz} + resolution: {integrity: sha512-0ejARiJ9kUN06tOlJVqYlqWgadzdd0c75IufmSuYMmFsjkHGCxsZzNezsH+kDukVvqGICn+xUr3v7Jql9r2DSw==, tarball: file:projects/storage-file-datalake.tgz} name: '@rush-temp/storage-file-datalake' version: 0.0.0 dependencies: @@ -12940,7 +12943,7 @@ packages: dev: false file:projects/storage-file-share.tgz: - resolution: {integrity: sha512-yStdXjcYny86/6+RfAyKluotkTwPQ4d/LYVhjBWaxCc88LXk5HdtArSTKb+auAND2uUc6RApBlbeSCoE7djWGQ==, tarball: file:projects/storage-file-share.tgz} + resolution: {integrity: sha512-uAwhdYneatpGl5HHKYAR9WthtQgYxjkPmntEZDWoT/K36a+JzwWJYXEtzF3ywlnmjTClqRgGjyyzUIw49tUghg==, tarball: file:projects/storage-file-share.tgz} name: '@rush-temp/storage-file-share' version: 0.0.0 dependencies: @@ -13058,7 +13061,7 @@ packages: dev: false file:projects/storage-queue.tgz: - resolution: {integrity: sha512-uMadY47m49wYsrwiwfixo200rupY5ZGqb+Fpb7RX3KmOFN4+jiPI4NWbnFIWCAyoTaPdFzW8JqwTVgG6K2ceRQ==, tarball: file:projects/storage-queue.tgz} + resolution: {integrity: sha512-9SXSv8BWZ2vZLkFN7eihECaI7N4vod/kDzDj2LqOILwksPk7+MWk4dk2QAalX1NXOnTZBZ3AlR/DoPsWDqlKEA==, tarball: file:projects/storage-queue.tgz} name: '@rush-temp/storage-queue' version: 0.0.0 dependencies: @@ -13118,7 +13121,7 @@ packages: dev: false file:projects/synapse-access-control-1.tgz: - resolution: {integrity: sha512-r2RjGlzNxIGQdyCPamaEfZjD8beahEX2BOHuDZkbDg3g5yerq7COtmzV5xKthySw4rKp29SwLkRjWW1BgYYeQg==, tarball: file:projects/synapse-access-control-1.tgz} + resolution: {integrity: sha512-bQN8CsRkAxsvoG68yB0xkDv2qxb+Sbpxcs0ropxRF/B21CoDnrfMg+pMo8P/1bd3q4XuG7Ep2mT1SiV6xd+AUw==, tarball: file:projects/synapse-access-control-1.tgz} name: '@rush-temp/synapse-access-control-1' version: 0.0.0 dependencies: @@ -13171,7 +13174,7 @@ packages: dev: false file:projects/synapse-access-control.tgz: - resolution: {integrity: sha512-WUjkNN/9M8lZfpxFtXhuoLnu/mWSKbXII7EYvMR9uyjs20y1/yT9SffkHeL70xDRRn0xtbtmfkzDhx8QnsCMyQ==, tarball: file:projects/synapse-access-control.tgz} + resolution: {integrity: sha512-00g29uAc1KbhfqBNEUnEBbkT3Vvfsozyvm0/KND6ls6CPh64M6WSXV0nlVWd219na1T/sBCJM5tbaQrXfNOuUQ==, tarball: file:projects/synapse-access-control.tgz} name: '@rush-temp/synapse-access-control' version: 0.0.0 dependencies: @@ -13227,7 +13230,7 @@ packages: dev: false file:projects/synapse-artifacts.tgz: - resolution: {integrity: sha512-PtwgQu0nH/7X7+EHbC+3FV74Z6em42JnitUEeObi4yjInM3a7A7ITL/80xdA0FjM7MV2dK//Ze16Tk6B2W/DxA==, tarball: file:projects/synapse-artifacts.tgz} + resolution: {integrity: sha512-77DTPadP3hveyoCnv6KMuaKAMYr077MyV181NYefSkNDx8wVVtejbwcY6w+HWPwqtpeBswTgmCNhHswTtvJP8A==, tarball: file:projects/synapse-artifacts.tgz} name: '@rush-temp/synapse-artifacts' version: 0.0.0 dependencies: @@ -13280,7 +13283,7 @@ packages: dev: false file:projects/synapse-managed-private-endpoints.tgz: - resolution: {integrity: sha512-Bo71kbnQQKtYESpl4wCwQ5EI4QEKGPVuiSIGtY21qj/mRvYt9qeUd+WnUGqhjBtp3vybn/I053sS3YBtAddbZw==, tarball: file:projects/synapse-managed-private-endpoints.tgz} + resolution: {integrity: sha512-YCAW3RcvGQpQD/9CW7kpEiWI7ZUs2gzyDlsh7bV3XoH5loDkKwUbU4W2NGnSV6dzzrwkV81NHf4zEVUVbuSiNA==, tarball: file:projects/synapse-managed-private-endpoints.tgz} name: '@rush-temp/synapse-managed-private-endpoints' version: 0.0.0 dependencies: @@ -13326,7 +13329,7 @@ packages: dev: false file:projects/synapse-monitoring.tgz: - resolution: {integrity: sha512-6H+/OE0Cl6lLymcfOL/ZYgOnTlCq4rf28I1TxkPAzc+ar/dk+D3LVpCE0jnk9+w0YYGvjDSl/PzPVQaQ87HCcA==, tarball: file:projects/synapse-monitoring.tgz} + resolution: {integrity: sha512-FoF8l3ScgxtmUbJWWdocQYvptdNco4HCi6IR4eJO/38G4YQwXPUJMoEJsUvY3d6EEDTJ39QjoRxBq696AIDI4Q==, tarball: file:projects/synapse-monitoring.tgz} name: '@rush-temp/synapse-monitoring' version: 0.0.0 dependencies: @@ -13347,7 +13350,7 @@ packages: dev: false file:projects/synapse-spark.tgz: - resolution: {integrity: sha512-z1+CQPV46gSPOJnIANciOawQB/+71DczYTUsWkh9ymT+SG3PG4BqyRdcqiDJIyakQU/2i9aomcqVt2zuJfUG8Q==, tarball: file:projects/synapse-spark.tgz} + resolution: {integrity: sha512-0m0uxwNtQJy4wsc6O4QqC0jWk5CK2Jppeu/RegYolnafUd1FJGUD88oBQhUsgV4AZwHWBo27wWCpfAtLBUVJ3Q==, tarball: file:projects/synapse-spark.tgz} name: '@rush-temp/synapse-spark' version: 0.0.0 dependencies: @@ -13393,7 +13396,7 @@ packages: dev: false file:projects/template.tgz: - resolution: {integrity: sha512-3FyBd1trKt9lA4MvtAhkJypaSqKy2zGUX5r1BuGfVX/6EhIVOq33rZE+l/ZIu0I9fwNWT5/lCXuSE0+pJycUzQ==, tarball: file:projects/template.tgz} + resolution: {integrity: sha512-p/NXM+Alycb/JLwMtDbJO9sNQuR6fqwt8qLNsdp2L4eY0V+1K+kpJruMAY2bqT+KyL1KVaqvazZ5jWi7Zuslbg==, tarball: file:projects/template.tgz} name: '@rush-temp/template' version: 0.0.0 dependencies: @@ -13685,7 +13688,7 @@ packages: dev: false file:projects/video-analyzer-edge.tgz: - resolution: {integrity: sha512-xXkxSClLXPT9c3iX3Clzx4kv+sfB5FBaQyq8gUibUfcq9JnDZo1lea3HASBYf/ZQnAjN+2hFGulLMUwkOV7gEw==, tarball: file:projects/video-analyzer-edge.tgz} + resolution: {integrity: sha512-Xv3ShfZUgNx8q9UT/CkNKfXvHcowA8arWY8ve9VPN2KeG/muHEPIN+VmJdJRpmXdSe/NGcDNOq+X6qRw81RLfQ==, tarball: file:projects/video-analyzer-edge.tgz} name: '@rush-temp/video-analyzer-edge' version: 0.0.0 dependencies: @@ -13732,7 +13735,7 @@ packages: dev: false file:projects/web-pubsub-express.tgz: - resolution: {integrity: sha512-v6i4GGa5vnm0XCHOuGvEi3xae+UniwEbMypQJN6qGfRwxeqo6e7vE1YR3aYuFn2KcS8EILGHX90GQtUDAXQL9g==, tarball: file:projects/web-pubsub-express.tgz} + resolution: {integrity: sha512-pyNur8Z/dtucLXS7sAC400jpC+fsPn5vzow51FNm2lvMs/h3S/KgYEPHjqYTpnkCLwlaeS3nLHbq53cPZjvJmw==, tarball: file:projects/web-pubsub-express.tgz} name: '@rush-temp/web-pubsub-express' version: 0.0.0 dependencies: @@ -13793,7 +13796,7 @@ packages: dev: false file:projects/web-pubsub.tgz: - resolution: {integrity: sha512-7tybu1DUua3JKog73h74wTld0NDEM8DJBu3Q8WYzgXVQMcxEQwRCvKv+/pZJSMYc1qtLyc2Dj8ypsrpeVsdu7w==, tarball: file:projects/web-pubsub.tgz} + resolution: {integrity: sha512-voOO1BhkBHfGbruIHzarGd8MBtsgNqBgjHFjPPOq3eDG15JPqvXam7ZSMZfzhdfSQbEcBE7e9/jwtw+1K7UVfQ==, tarball: file:projects/web-pubsub.tgz} name: '@rush-temp/web-pubsub' version: 0.0.0 dependencies: diff --git a/sdk/web-pubsub/arm-webpubsub/CHANGELOG.md b/sdk/web-pubsub/arm-webpubsub/CHANGELOG.md index 00df13453d33..34006e2005e6 100644 --- a/sdk/web-pubsub/arm-webpubsub/CHANGELOG.md +++ b/sdk/web-pubsub/arm-webpubsub/CHANGELOG.md @@ -1,31 +1,5 @@ # Release History + +## 1.0.0 (2021-12-14) -## 1.0.0-beta.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 1.0.0-beta.1 (2021-08-25) - - - Bump major version - -## 0.1.0-beta.1 (2021-07-27) - -This is the first preview for the new version of the `@azure/arm-webpubsub` package that follows the new [guidelines for TypeScript SDKs](https://azure.github.io/azure-sdk/typescript_introduction.html) for Azure services. - -While this package remains auto generated, the SDK generator itself has undergone changes to comply with the above guidelines in order to generate packages that are idiomatic to the JavaScript/TypeScript ecosystem and consistent with other packages for Azure services. For more on this, please see [State of the Azure SDK 2021](https://devblogs.microsoft.com/azure-sdk/state-of-the-azure-sdk-2021/). - -Please note that this version has breaking changes, all of which were made after careful consideration during the authoring of the guidelines and user studies. - -**Noteworthy changes and features** - -- Authentication: The packages `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` are no longer supported. Use package [@azure/identity](https://www.npmjs.com/package/@azure/identity) instead. Select a credential from Azure Identity examples based on the authentication method of your choice. -- Callbacks: Method overloads that used callbacks have been removed and the use of promises is encouraged instead. -- List operations now return an iterable result that follows the `PagedAsyncIterableIterator` interface as opposed to the previous model where you had to make a new request using the link to the next page. -- Long running operations i.e. the Lro related object returned by methods whose names started with `begin`, now uses `pollUntilDone` to check whether the request is finished, instead of `pollUntilFinished`. To get the final result, use the corresponding method that will have the suffix `AndWait`. -- The SDK only supports ECMAScript 2015 (ES6) and beyond, all projects that referenced this SDK should be upgraded to use ES6. +- Initial Release diff --git a/sdk/web-pubsub/arm-webpubsub/README.md b/sdk/web-pubsub/arm-webpubsub/README.md index 8cec047523a2..328674fd8883 100644 --- a/sdk/web-pubsub/arm-webpubsub/README.md +++ b/sdk/web-pubsub/arm-webpubsub/README.md @@ -33,23 +33,30 @@ npm install @azure/arm-webpubsub To create a client object to access the Azure WebPubSubManagement API, you will need the `endpoint` of your Azure WebPubSubManagement resource and a `credential`. The Azure WebPubSubManagement client can use Azure Active Directory credentials to authenticate. You can find the endpoint for your Azure WebPubSubManagement resource in the [Azure Portal][azure_portal]. -#### Using an Azure Active Directory Credential +You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token). -You can authenticate with Azure Active Directory using the [Azure Identity library][azure_identity]. To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package: +To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package: ```bash npm install @azure/identity ``` -You will also need to register a new AAD application and grant access to Azure WebPubSubManagement by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions). +You will also need to **register a new AAD application and grant access to Azure WebPubSubManagement** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions). Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`. +For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal). + ```javascript const { WebPubSubManagementClient } = require("@azure/arm-webpubsub"); const { DefaultAzureCredential } = require("@azure/identity"); -const client = new WebPubSubManagementClient("", new DefaultAzureCredential()); +const subscriptionId = "00000000-0000-0000-0000-000000000000"; +const client = new WebPubSubManagementClient(new DefaultAzureCredential(), subscriptionId); ``` + +### JavaScript Bundle +To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling). + ## Key concepts ### WebPubSubManagementClient @@ -63,11 +70,11 @@ const client = new WebPubSubManagementClient("", new DefaultAzureCrede Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`: ```javascript -import { setLogLevel } from "@azure/logger"; +const { setLogLevel } = require("@azure/logger"); setLogLevel("info"); ``` -For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/core/logger). +For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger). ## Next steps @@ -75,7 +82,7 @@ Please take a look at the [samples](https://github.com/Azure-Samples/azure-sampl ## Contributing -If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code. +If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code. ## Related projects @@ -87,5 +94,5 @@ If you'd like to contribute to this library, please read the [contributing guide [azure_sub]: https://azure.microsoft.com/free/ [azure_sub]: https://azure.microsoft.com/free/ [azure_portal]: https://portal.azure.com -[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/identity/identity -[defaultazurecredential]: https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/identity/identity#defaultazurecredential +[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity +[defaultazurecredential]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential diff --git a/sdk/web-pubsub/arm-webpubsub/_meta.json b/sdk/web-pubsub/arm-webpubsub/_meta.json index afe83b19a30c..db1ef7bb2b6f 100644 --- a/sdk/web-pubsub/arm-webpubsub/_meta.json +++ b/sdk/web-pubsub/arm-webpubsub/_meta.json @@ -1,7 +1,7 @@ { - "commit": "bea659d448f0195819a326dfefa5a2364ac0171b", + "commit": "84768c98c683c1600e255a22053a4ad490452f09", "readme": "specification/webpubsub/resource-manager/readme.md", - "autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/webpubsub/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.8.20210726.1", + "autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/webpubsub/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211130.1", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "use": "@autorest/typescript@6.0.0-alpha.8.20210726.1" + "use": "@autorest/typescript@6.0.0-alpha.16.20211130.1" } \ No newline at end of file diff --git a/sdk/web-pubsub/arm-webpubsub/api-extractor.json b/sdk/web-pubsub/arm-webpubsub/api-extractor.json index 5fb5b21b56f2..9d1e9de0ae37 100644 --- a/sdk/web-pubsub/arm-webpubsub/api-extractor.json +++ b/sdk/web-pubsub/arm-webpubsub/api-extractor.json @@ -1,12 +1,12 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "./esm/index.d.ts", + "mainEntryPointFilePath": "./dist-esm/src/index.d.ts", "docModel": { "enabled": true }, "apiReport": { "enabled": true, "reportFolder": "./review" }, "dtsRollup": { "enabled": true, "untrimmedFilePath": "", - "publicTrimmedFilePath": "./esm/index.d.ts" + "publicTrimmedFilePath": "./types/arm-webpubsub.d.ts" }, "messages": { "tsdocMessageReporting": { "default": { "logLevel": "none" } }, diff --git a/sdk/web-pubsub/arm-webpubsub/package.json b/sdk/web-pubsub/arm-webpubsub/package.json index 700e4c5c3c58..909993b17aaa 100644 --- a/sdk/web-pubsub/arm-webpubsub/package.json +++ b/sdk/web-pubsub/arm-webpubsub/package.json @@ -3,30 +3,22 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for WebPubSubManagementClient.", - "version": "1.0.0-beta.2", - "engines": { - "node": ">=12.0.0" - }, + "version": "1.0.0", + "engines": { "node": ">=12.0.0" }, "dependencies": { "@azure/core-lro": "^2.2.0", "@azure/abort-controller": "^1.0.0", - "@azure/core-paging": "^1.1.1", + "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.0.0", "@azure/core-auth": "^1.3.0", "@azure/core-rest-pipeline": "^1.1.0", "tslib": "^2.2.0" }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], + "keywords": ["node", "azure", "typescript", "browser", "isomorphic"], "license": "MIT", "main": "./dist/index.js", - "module": "./esm/index.js", - "types": "./esm/index.d.ts", + "module": "./dist-esm/src/index.js", + "types": "./types/arm-webpubsub.d.ts", "devDependencies": { "@microsoft/api-extractor": "^7.18.11", "@rollup/plugin-commonjs": "11.0.2", @@ -36,44 +28,47 @@ "mkdirp": "^1.0.4", "rollup": "^1.16.3", "rollup-plugin-sourcemaps": "^0.4.2", - "rollup-plugin-node-resolve": "^3.4.0", "typescript": "~4.2.0", - "uglify-js": "^3.4.9" + "uglify-js": "^3.4.9", + "rimraf": "^3.0.0", + "@azure/identity": "^2.0.1", + "@azure-tools/test-recorder": "^1.0.0", + "mocha": "^7.1.1", + "cross-env": "^7.0.2" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/web-pubsub/arm-webpubsub", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" }, - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, + "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ "dist/**/*.js", "dist/**/*.js.map", "dist/**/*.d.ts", "dist/**/*.d.ts.map", - "esm/**/*.js", - "esm/**/*.js.map", - "esm/**/*.d.ts", - "esm/**/*.d.ts.map", + "dist-esm/**/*.js", + "dist-esm/**/*.js.map", + "dist-esm/**/*.d.ts", + "dist-esm/**/*.d.ts.map", "src/**/*.ts", "README.md", "LICENSE", "rollup.config.js", "tsconfig.json", "review/*", - "CHANGELOG.md" + "CHANGELOG.md", + "types/*" ], "scripts": { - "build": "tsc && rollup -c rollup.config.js && npm run minify && mkdirp ./review && npm run extract-api", + "build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api", "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", "prepack": "npm run build", "pack": "npm pack 2>&1", "extract-api": "api-extractor run --local", "lint": "echo skipped", "audit": "echo skipped", - "clean": "echo skipped", + "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", "build:test": "echo skipped", @@ -81,16 +76,15 @@ "check-format": "echo skipped", "execute:samples": "echo skipped", "format": "echo skipped", - "test": "echo skipped", - "prebuild": "echo skipped", + "test": "npm run integration-test", "test:node": "echo skipped", "test:browser": "echo skipped", - "unit-test": "echo skipped", - "unit-test:node": "echo skipped", + "unit-test": "npm run unit-test:node && npm run unit-test:browser", + "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node", "unit-test:browser": "echo skipped", + "integration-test": "npm run integration-test:node && npm run integration-test:browser", + "integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js", "integration-test:browser": "echo skipped", - "integration-test:node": "echo skipped", - "integration-test": "echo skipped", "docs": "echo skipped" }, "sideEffects": false, diff --git a/sdk/web-pubsub/arm-webpubsub/review/arm-webpubsub.api.md b/sdk/web-pubsub/arm-webpubsub/review/arm-webpubsub.api.md index e67d71cc5416..ec239f164fc3 100644 --- a/sdk/web-pubsub/arm-webpubsub/review/arm-webpubsub.api.md +++ b/sdk/web-pubsub/arm-webpubsub/review/arm-webpubsub.api.md @@ -16,13 +16,6 @@ export type ACLAction = string; // @public export type CreatedByType = string; -// @public -export interface DiagnosticConfiguration { - enableConnectivityLogs?: string; - enableLiveTrace?: string; - enableMessagingLogs?: string; -} - // @public export interface Dimension { displayName?: string; @@ -52,16 +45,9 @@ export interface ErrorResponse { } // @public -export interface EventHandlerSettings { - items?: { - [propertyName: string]: EventHandlerTemplate[]; - }; -} - -// @public -export interface EventHandlerTemplate { +export interface EventHandler { auth?: UpstreamAuthSettings; - systemEventPattern?: string; + systemEvents?: string[]; urlTemplate: string; userEventPattern?: string; } @@ -95,6 +81,8 @@ export enum KnownKeyType { // (undocumented) Primary = "Primary", // (undocumented) + Salt = "Salt", + // (undocumented) Secondary = "Secondary" } @@ -142,6 +130,16 @@ export enum KnownProvisioningState { Updating = "Updating" } +// @public +export enum KnownScaleType { + // (undocumented) + Automatic = "Automatic", + // (undocumented) + Manual = "Manual", + // (undocumented) + None = "None" +} + // @public export enum KnownSharedPrivateLinkResourceStatus { // (undocumented) @@ -188,6 +186,18 @@ export enum KnownWebPubSubSkuTier { Standard = "Standard" } +// @public +export interface LiveTraceCategory { + enabled?: string; + name?: string; +} + +// @public +export interface LiveTraceConfiguration { + categories?: LiveTraceCategory[]; + enabled?: string; +} + // @public export interface LogSpecification { displayName?: string; @@ -305,6 +315,7 @@ export type PrivateEndpointConnection = ProxyResource & { readonly systemData?: SystemData; readonly provisioningState?: ProvisioningState; privateEndpoint?: PrivateEndpoint; + readonly groupIds?: string[]; privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; }; @@ -356,6 +367,17 @@ export interface Resource { readonly type?: string; } +// @public +export interface ResourceLogCategory { + enabled?: string; + name?: string; +} + +// @public +export interface ResourceLogConfiguration { + categories?: ResourceLogCategory[]; +} + // @public export interface ResourceSku { capacity?: number; @@ -365,6 +387,9 @@ export interface ResourceSku { tier?: WebPubSubSkuTier; } +// @public +export type ScaleType = string; + // @public export interface ServiceSpecification { logSpecifications?: LogSpecification[]; @@ -424,6 +449,28 @@ export interface SignalRServiceUsageName { value?: string; } +// @public +export interface Sku { + readonly capacity?: SkuCapacity; + readonly resourceType?: string; + readonly sku?: ResourceSku; +} + +// @public +export interface SkuCapacity { + readonly allowedValues?: number[]; + readonly default?: number; + readonly maximum?: number; + readonly minimum?: number; + readonly scaleType?: ScaleType; +} + +// @public +export interface SkuList { + readonly nextLink?: string; + readonly value?: Sku[]; +} + // @public export interface SystemData { createdAt?: Date; @@ -493,6 +540,7 @@ export interface WebPubSub { listByResourceGroup(resourceGroupName: string, options?: WebPubSubListByResourceGroupOptionalParams): PagedAsyncIterableIterator; listBySubscription(options?: WebPubSubListBySubscriptionOptionalParams): PagedAsyncIterableIterator; listKeys(resourceGroupName: string, resourceName: string, options?: WebPubSubListKeysOptionalParams): Promise; + listSkus(resourceGroupName: string, resourceName: string, options?: WebPubSubListSkusOptionalParams): Promise; } // @public @@ -524,6 +572,70 @@ export interface WebPubSubGetOptionalParams extends coreClient.OperationOptions // @public export type WebPubSubGetResponse = WebPubSubResource; +// @public +export type WebPubSubHub = ProxyResource & { + readonly systemData?: SystemData; + properties: WebPubSubHubProperties; +}; + +// @public +export interface WebPubSubHubList { + readonly nextLink?: string; + value?: WebPubSubHub[]; +} + +// @public +export interface WebPubSubHubProperties { + anonymousConnectPolicy?: string; + eventHandlers?: EventHandler[]; +} + +// @public +export interface WebPubSubHubs { + beginCreateOrUpdate(hubName: string, resourceGroupName: string, resourceName: string, parameters: WebPubSubHub, options?: WebPubSubHubsCreateOrUpdateOptionalParams): Promise, WebPubSubHubsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(hubName: string, resourceGroupName: string, resourceName: string, parameters: WebPubSubHub, options?: WebPubSubHubsCreateOrUpdateOptionalParams): Promise; + beginDelete(hubName: string, resourceGroupName: string, resourceName: string, options?: WebPubSubHubsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(hubName: string, resourceGroupName: string, resourceName: string, options?: WebPubSubHubsDeleteOptionalParams): Promise; + get(hubName: string, resourceGroupName: string, resourceName: string, options?: WebPubSubHubsGetOptionalParams): Promise; + list(resourceGroupName: string, resourceName: string, options?: WebPubSubHubsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WebPubSubHubsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WebPubSubHubsCreateOrUpdateResponse = WebPubSubHub; + +// @public +export interface WebPubSubHubsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface WebPubSubHubsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WebPubSubHubsGetResponse = WebPubSubHub; + +// @public +export interface WebPubSubHubsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WebPubSubHubsListNextResponse = WebPubSubHubList; + +// @public +export interface WebPubSubHubsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WebPubSubHubsListResponse = WebPubSubHubList; + // @public export interface WebPubSubKeys { primaryConnectionString?: string; @@ -567,16 +679,31 @@ export interface WebPubSubListKeysOptionalParams extends coreClient.OperationOpt // @public export type WebPubSubListKeysResponse = WebPubSubKeys; +// @public +export interface WebPubSubListSkusOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WebPubSubListSkusResponse = SkuList; + // @public (undocumented) -export class WebPubSubManagementClient extends WebPubSubManagementClientContext { +export class WebPubSubManagementClient extends coreClient.ServiceClient { + // (undocumented) + $host: string; constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: WebPubSubManagementClientOptionalParams); // (undocumented) + apiVersion: string; + // (undocumented) operations: Operations; // (undocumented) + subscriptionId: string; + // (undocumented) usages: Usages; // (undocumented) webPubSub: WebPubSub; // (undocumented) + webPubSubHubs: WebPubSubHubs; + // (undocumented) webPubSubPrivateEndpointConnections: WebPubSubPrivateEndpointConnections; // (undocumented) webPubSubPrivateLinkResources: WebPubSubPrivateLinkResources; @@ -584,17 +711,6 @@ export class WebPubSubManagementClient extends WebPubSubManagementClientContext webPubSubSharedPrivateLinkResources: WebPubSubSharedPrivateLinkResources; } -// @public (undocumented) -export class WebPubSubManagementClientContext extends coreClient.ServiceClient { - // (undocumented) - $host: string; - constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: WebPubSubManagementClientOptionalParams); - // (undocumented) - apiVersion: string; - // (undocumented) - subscriptionId: string; -} - // @public export interface WebPubSubManagementClientOptionalParams extends coreClient.ServiceClientOptions { $host?: string; @@ -697,8 +813,9 @@ export type WebPubSubResource = TrackedResource & { readonly privateEndpointConnections?: PrivateEndpointConnection[]; readonly sharedPrivateLinkResources?: SharedPrivateLinkResource[]; tls?: WebPubSubTlsSettings; - diagnosticConfiguration?: DiagnosticConfiguration; - eventHandler?: EventHandlerSettings; + readonly hostNamePrefix?: string; + liveTraceConfiguration?: LiveTraceConfiguration; + resourceLogConfiguration?: ResourceLogConfiguration; networkACLs?: WebPubSubNetworkACLs; publicNetworkAccess?: string; disableLocalAuth?: boolean; diff --git a/sdk/web-pubsub/arm-webpubsub/src/index.ts b/sdk/web-pubsub/arm-webpubsub/src/index.ts index 99cb58f12ef6..ad8acb3f9197 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/index.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/index.ts @@ -9,5 +9,4 @@ /// export * from "./models"; export { WebPubSubManagementClient } from "./webPubSubManagementClient"; -export { WebPubSubManagementClientContext } from "./webPubSubManagementClientContext"; export * from "./operationsInterfaces"; diff --git a/sdk/web-pubsub/arm-webpubsub/src/models/index.ts b/sdk/web-pubsub/arm-webpubsub/src/models/index.ts index 1388f25b7168..94d7b3a834f3 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/models/index.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/models/index.ts @@ -25,11 +25,11 @@ export interface Operation { name?: string; /** If the operation is a data action. (for data plane rbac) */ isDataAction?: boolean; - /** The object that describes the operation. */ + /** The object that describes a operation. */ display?: OperationDisplay; /** Optional. The intended executor of the operation; governs the display of the operation in the RBAC UX and the audit logs UX. */ origin?: string; - /** Extra properties for the operation. */ + /** Extra Operation properties. */ properties?: OperationProperties; } @@ -47,7 +47,7 @@ export interface OperationDisplay { /** Extra Operation properties. */ export interface OperationProperties { - /** The service specifications. */ + /** An object that describes a specification. */ serviceSpecification?: ServiceSpecification; } @@ -214,25 +214,6 @@ export interface WebPubSubResourceList { nextLink?: string; } -/** The core properties of ARM resources. */ -export interface Resource { - /** - * Fully qualified resource Id for the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * The name of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * The type of the resource - e.g. "Microsoft.SignalRService/SignalR" - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; -} - /** The billing information of the resource. */ export interface ResourceSku { /** @@ -299,89 +280,88 @@ export interface PrivateLinkServiceConnectionState { actionsRequired?: string; } +/** The core properties of ARM resources. */ +export interface Resource { + /** + * Fully qualified resource Id for the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The name of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The type of the resource - e.g. "Microsoft.SignalRService/SignalR" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; +} + /** TLS settings for the resource */ export interface WebPubSubTlsSettings { /** Request client certificate during TLS handshake if enabled */ clientCertEnabled?: boolean; } -/** Diagnostic configuration of a Microsoft.SignalRService resource. Used together with Azure monitor DiagnosticSettings. */ -export interface DiagnosticConfiguration { +/** Live trace configuration of a Microsoft.SignalRService resource. */ +export interface LiveTraceConfiguration { /** - * Indicate whether or not enable Connectivity logs. - * Available values: Enabled, Disabled. + * Indicates whether or not enable live trace. + * When it's set to true, live trace client can connect to the service. + * Otherwise, live trace client can't connect to the service, so that you are unable to receive any log, no matter what you configure in "categories". + * Available values: true, false. * Case insensitive. */ - enableConnectivityLogs?: string; + enabled?: string; + /** Gets or sets the list of category configurations. */ + categories?: LiveTraceCategory[]; +} + +/** Live trace category configuration of a Microsoft.SignalRService resource. */ +export interface LiveTraceCategory { /** - * Indicate whether or not enable Messaging logs. - * Available values: Enabled, Disabled. + * Gets or sets the live trace category's name. + * Available values: ConnectivityLogs, MessagingLogs. * Case insensitive. */ - enableMessagingLogs?: string; + name?: string; /** - * Indicate whether or not enable Live Trace. - * Available values: Enabled, Disabled. + * Indicates whether or the live trace category is enabled. + * Available values: true, false. * Case insensitive. - * Live Trace allows you to know what's happening inside Azure SignalR service, it will give you live traces in real time, it will be helpful when you developing your own Azure SignalR based web application or self-troubleshooting some issues. */ - enableLiveTrace?: string; + enabled?: string; } -/** The settings for event handler in webpubsub service */ -export interface EventHandlerSettings { - /** Get or set the EventHandler items. The key is the hub name and the value is the corresponding EventHandlerTemplate. */ - items?: { [propertyName: string]: EventHandlerTemplate[] }; +/** Resource log configuration of a Microsoft.SignalRService resource. */ +export interface ResourceLogConfiguration { + /** Gets or sets the list of category configurations. */ + categories?: ResourceLogCategory[]; } -/** EventHandler template item settings. */ -export interface EventHandlerTemplate { +/** Resource log category configuration of a Microsoft.SignalRService resource. */ +export interface ResourceLogCategory { /** - * Gets or sets the EventHandler URL template. You can use a predefined parameter {hub} and {event} inside the template, the value of the EventHandler URL is dynamically calculated when the client request comes in. - * For example, UrlTemplate can be `http://example.com/api/{hub}/{event}`. The host part can't contains parameters. - */ - urlTemplate: string; - /** - * Gets or sets the matching pattern for event names. - * There are 3 kind of patterns supported: - * 1. "*", it to matches any event name - * 2. Combine multiple events with ",", for example "event1,event2", it matches event "event1" and "event2" - * 3. The single event name, for example, "event1", it matches "event1" - */ - userEventPattern?: string; - /** - * Gets ot sets the system event pattern. - * There are 2 kind of patterns supported: - * 1. The single event name, for example, "connect", it matches "connect" - * 2. Combine multiple events with ",", for example "connect,disconnected", it matches event "connect" and "disconnected" + * Gets or sets the resource log category's name. + * Available values: ConnectivityLogs, MessagingLogs. + * Case insensitive. */ - systemEventPattern?: string; - /** Gets or sets the auth settings for an event handler. If not set, no auth is used. */ - auth?: UpstreamAuthSettings; -} - -/** Upstream auth settings. */ -export interface UpstreamAuthSettings { - /** Gets or sets the type of auth. None or ManagedIdentity is supported now. */ - type?: UpstreamAuthType; - /** Gets or sets the managed identity settings. It's required if the auth type is set to ManagedIdentity. */ - managedIdentity?: ManagedIdentitySettings; -} - -/** Managed identity settings for upstream. */ -export interface ManagedIdentitySettings { + name?: string; /** - * The Resource indicating the App ID URI of the target resource. - * It also appears in the aud (audience) claim of the issued token. + * Indicates whether or the resource log category is enabled. + * Available values: true, false. + * Case insensitive. */ - resource?: string; + enabled?: string; } /** Network ACLs for the resource */ export interface WebPubSubNetworkACLs { - /** Default action when no other rule matches */ + /** Azure Networking ACL Action. */ defaultAction?: ACLAction; - /** ACL for requests from public network */ + /** Network ACL */ publicNetwork?: NetworkACL; /** ACLs for requests from private endpoints */ privateEndpoints?: PrivateEndpointACL[]; @@ -397,7 +377,7 @@ export interface NetworkACL { /** A class represent managed identities used for request and response */ export interface ManagedIdentity { - /** Represent the identity type: systemAssigned, userAssigned, None */ + /** Represents the identity type: systemAssigned, userAssigned, None */ type?: ManagedIdentityType; /** Get or set the user assigned identities */ userAssignedIdentities?: { @@ -431,6 +411,64 @@ export interface UserAssignedIdentityProperty { readonly clientId?: string; } +/** Hub setting list */ +export interface WebPubSubHubList { + /** List of hub settings to this resource. */ + value?: WebPubSubHub[]; + /** + * The URL the client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** Properties of a hub. */ +export interface WebPubSubHubProperties { + /** Event handler of a hub. */ + eventHandlers?: EventHandler[]; + /** The settings for configuring if anonymous connections are allowed for this hub: "allow" or "deny". Default to "deny". */ + anonymousConnectPolicy?: string; +} + +/** Properties of event handler. */ +export interface EventHandler { + /** + * Gets or sets the EventHandler URL template. You can use a predefined parameter {hub} and {event} inside the template, the value of the EventHandler URL is dynamically calculated when the client request comes in. + * For example, UrlTemplate can be `http://example.com/api/{hub}/{event}`. The host part can't contains parameters. + */ + urlTemplate: string; + /** + * Gets or sets the matching pattern for event names. + * There are 3 kind of patterns supported: + * 1. "*", it to matches any event name + * 2. Combine multiple events with ",", for example "event1,event2", it matches event "event1" and "event2" + * 3. The single event name, for example, "event1", it matches "event1" + */ + userEventPattern?: string; + /** Gets ot sets the list of system events. */ + systemEvents?: string[]; + /** Upstream auth settings. If not set, no auth is used for upstream messages. */ + auth?: UpstreamAuthSettings; +} + +/** Upstream auth settings. If not set, no auth is used for upstream messages. */ +export interface UpstreamAuthSettings { + /** Upstream auth type enum. */ + type?: UpstreamAuthType; + /** Managed identity settings for upstream. */ + managedIdentity?: ManagedIdentitySettings; +} + +/** Managed identity settings for upstream. */ +export interface ManagedIdentitySettings { + /** + * The Resource indicating the App ID URI of the target resource. + * It also appears in the aud (audience) claim of the issued token. + */ + resource?: string; +} + /** A class represents the access keys of the resource. */ export interface WebPubSubKeys { /** The primary access key. */ @@ -482,7 +520,7 @@ export interface ShareablePrivateLinkResourceProperties { /** Parameters describes the request to regenerate access keys */ export interface RegenerateKeyParameters { - /** The keyType to regenerate. Must be either 'primary' or 'secondary'(case-insensitive). */ + /** The type of access key. */ keyType?: KeyType; } @@ -494,6 +532,72 @@ export interface SharedPrivateLinkResourceList { nextLink?: string; } +/** The list skus operation response */ +export interface SkuList { + /** + * The list of skus available for the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: Sku[]; + /** + * The URL the client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** Describes an available sku." */ +export interface Sku { + /** + * The resource type that this object applies to + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resourceType?: string; + /** + * The billing information of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly sku?: ResourceSku; + /** + * Describes scaling information of a sku. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly capacity?: SkuCapacity; +} + +/** Describes scaling information of a sku. */ +export interface SkuCapacity { + /** + * The lowest permitted capacity for this resource + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly minimum?: number; + /** + * The highest permitted capacity for this resource + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly maximum?: number; + /** + * The default capacity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly default?: number; + /** + * Allows capacity value list. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly allowedValues?: number[]; + /** + * The scale type applicable to the sku. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly scaleType?: ScaleType; +} + +/** The resource model definition for a ARM proxy resource. It will have everything other than required location and tags */ +export type ProxyResource = Resource & {}; + /** The resource model definition for a ARM tracked top level resource. */ export type TrackedResource = Resource & { /** The GEO location of the resource. e.g. West US | East US | North Central US | South Central US. */ @@ -502,20 +606,88 @@ export type TrackedResource = Resource & { tags?: { [propertyName: string]: string }; }; -/** The resource model definition for a ARM proxy resource. It will have everything other than required location and tags */ -export type ProxyResource = Resource & {}; - /** ACL for a private endpoint */ export type PrivateEndpointACL = NetworkACL & { /** Name of the private endpoint connection */ name: string; }; +/** A private endpoint connection to an azure resource */ +export type PrivateEndpointConnection = ProxyResource & { + /** + * 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; + /** + * Provisioning state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; + /** Private endpoint */ + privateEndpoint?: PrivateEndpoint; + /** + * Group IDs + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly groupIds?: string[]; + /** Connection state of the private endpoint connection */ + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; +}; + +/** Describes a Shared Private Link Resource */ +export type SharedPrivateLinkResource = ProxyResource & { + /** + * 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; + /** The group id from the provider of resource the shared private link resource is for */ + groupId?: string; + /** The resource id of the resource the shared private link resource is for */ + privateLinkResourceId?: string; + /** + * Provisioning state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; + /** The request message for requesting approval of the shared private link resource */ + requestMessage?: string; + /** + * Status of the shared private link resource + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: SharedPrivateLinkResourceStatus; +}; + +/** A hub setting */ +export type WebPubSubHub = ProxyResource & { + /** + * 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; + /** Properties of a hub. */ + properties: WebPubSubHubProperties; +}; + +/** Private link resource */ +export type PrivateLinkResource = ProxyResource & { + /** Group Id of the private link resource */ + groupId?: string; + /** Required members of the private link resource */ + requiredMembers?: string[]; + /** Required private DNS zone names */ + requiredZoneNames?: string[]; + /** The list of resources that are onboarded to private link service */ + shareablePrivateLinkResourceTypes?: ShareablePrivateLinkResourceType[]; +}; + /** A class represent a resource. */ export type WebPubSubResource = TrackedResource & { - /** The billing information of the resource.(e.g. Free, Standard) */ + /** The billing information of the resource. */ sku?: ResourceSku; - /** The managed identity response */ + /** A class represent managed identities used for request and response */ identity?: ManagedIdentity; /** * Metadata pertaining to creation and last modification of the resource. @@ -562,13 +734,18 @@ export type WebPubSubResource = TrackedResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly sharedPrivateLinkResources?: SharedPrivateLinkResource[]; - /** TLS settings. */ + /** TLS settings for the resource */ tls?: WebPubSubTlsSettings; - /** Diagnostic configuration of a Microsoft.SignalRService resource. Used together with Azure monitor DiagnosticSettings. */ - diagnosticConfiguration?: DiagnosticConfiguration; - /** The settings for event handler in webpubsub service. */ - eventHandler?: EventHandlerSettings; - /** Network ACLs */ + /** + * Deprecated. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly hostNamePrefix?: string; + /** Live trace configuration of a Microsoft.SignalRService resource. */ + liveTraceConfiguration?: LiveTraceConfiguration; + /** Resource log configuration of a Microsoft.SignalRService resource. */ + resourceLogConfiguration?: ResourceLogConfiguration; + /** Network ACLs for the resource */ networkACLs?: WebPubSubNetworkACLs; /** * Enable or disable public network access. Default to "Enabled". @@ -590,61 +767,6 @@ export type WebPubSubResource = TrackedResource & { disableAadAuth?: boolean; }; -/** A private endpoint connection to an azure resource */ -export type PrivateEndpointConnection = ProxyResource & { - /** - * 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; - /** - * Provisioning state of the private endpoint connection - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ProvisioningState; - /** Private endpoint associated with the private endpoint connection */ - privateEndpoint?: PrivateEndpoint; - /** Connection state */ - privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; -}; - -/** Describes a Shared Private Link Resource */ -export type SharedPrivateLinkResource = ProxyResource & { - /** - * 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; - /** The group id from the provider of resource the shared private link resource is for */ - groupId?: string; - /** The resource id of the resource the shared private link resource is for */ - privateLinkResourceId?: string; - /** - * Provisioning state of the shared private link resource - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ProvisioningState; - /** The request message for requesting approval of the shared private link resource */ - requestMessage?: string; - /** - * Status of the shared private link resource - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly status?: SharedPrivateLinkResourceStatus; -}; - -/** Private link resource */ -export type PrivateLinkResource = ProxyResource & { - /** Group Id of the private link resource */ - groupId?: string; - /** Required members of the private link resource */ - requiredMembers?: string[]; - /** Required private DNS zone names */ - requiredZoneNames?: string[]; - /** The list of resources that are onboarded to private link service */ - shareablePrivateLinkResourceTypes?: ShareablePrivateLinkResourceType[]; -}; - /** Known values of {@link WebPubSubSkuTier} that the service accepts. */ export enum KnownWebPubSubSkuTier { Free = "Free", @@ -757,22 +879,6 @@ export enum KnownSharedPrivateLinkResourceStatus { */ export type SharedPrivateLinkResourceStatus = string; -/** Known values of {@link UpstreamAuthType} that the service accepts. */ -export enum KnownUpstreamAuthType { - None = "None", - ManagedIdentity = "ManagedIdentity" -} - -/** - * Defines values for UpstreamAuthType. \ - * {@link KnownUpstreamAuthType} can be used interchangeably with UpstreamAuthType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None** \ - * **ManagedIdentity** - */ -export type UpstreamAuthType = string; - /** Known values of {@link ACLAction} that the service accepts. */ export enum KnownACLAction { Allow = "Allow", @@ -827,10 +933,27 @@ export enum KnownManagedIdentityType { */ export type ManagedIdentityType = string; +/** Known values of {@link UpstreamAuthType} that the service accepts. */ +export enum KnownUpstreamAuthType { + None = "None", + ManagedIdentity = "ManagedIdentity" +} + +/** + * Defines values for UpstreamAuthType. \ + * {@link KnownUpstreamAuthType} can be used interchangeably with UpstreamAuthType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **ManagedIdentity** + */ +export type UpstreamAuthType = string; + /** Known values of {@link KeyType} that the service accepts. */ export enum KnownKeyType { Primary = "Primary", - Secondary = "Secondary" + Secondary = "Secondary", + Salt = "Salt" } /** @@ -839,10 +962,29 @@ export enum KnownKeyType { * this enum contains the known values that the service supports. * ### Known values supported by the service * **Primary** \ - * **Secondary** + * **Secondary** \ + * **Salt** */ export type KeyType = string; +/** Known values of {@link ScaleType} that the service accepts. */ +export enum KnownScaleType { + None = "None", + Manual = "Manual", + Automatic = "Automatic" +} + +/** + * Defines values for ScaleType. \ + * {@link KnownScaleType} can be used interchangeably with ScaleType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **Manual** \ + * **Automatic** + */ +export type ScaleType = string; + /** Optional parameters. */ export interface OperationsListOptionalParams extends coreClient.OperationOptions {} @@ -946,6 +1088,13 @@ export interface WebPubSubRestartOptionalParams resumeFrom?: string; } +/** Optional parameters. */ +export interface WebPubSubListSkusOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listSkus operation. */ +export type WebPubSubListSkusResponse = SkuList; + /** Optional parameters. */ export interface WebPubSubListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} @@ -973,6 +1122,48 @@ export interface UsagesListNextOptionalParams /** Contains response data for the listNext operation. */ export type UsagesListNextResponse = SignalRServiceUsageList; +/** Optional parameters. */ +export interface WebPubSubHubsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type WebPubSubHubsListResponse = WebPubSubHubList; + +/** Optional parameters. */ +export interface WebPubSubHubsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type WebPubSubHubsGetResponse = WebPubSubHub; + +/** Optional parameters. */ +export interface WebPubSubHubsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type WebPubSubHubsCreateOrUpdateResponse = WebPubSubHub; + +/** Optional parameters. */ +export interface WebPubSubHubsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface WebPubSubHubsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type WebPubSubHubsListNextResponse = WebPubSubHubList; + /** Optional parameters. */ export interface WebPubSubPrivateEndpointConnectionsListOptionalParams extends coreClient.OperationOptions {} diff --git a/sdk/web-pubsub/arm-webpubsub/src/models/mappers.ts b/sdk/web-pubsub/arm-webpubsub/src/models/mappers.ts index 6f2ffa68e6ee..8b973a726909 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/models/mappers.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/models/mappers.ts @@ -536,36 +536,6 @@ export const WebPubSubResourceList: coreClient.CompositeMapper = { } }; -export const Resource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Resource", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - export const ResourceSku: coreClient.CompositeMapper = { type: { name: "Composite", @@ -695,41 +665,28 @@ export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { } }; -export const WebPubSubTlsSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "WebPubSubTlsSettings", - modelProperties: { - clientCertEnabled: { - defaultValue: true, - serializedName: "clientCertEnabled", - type: { - name: "Boolean" - } - } - } - } -}; - -export const DiagnosticConfiguration: coreClient.CompositeMapper = { +export const Resource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiagnosticConfiguration", + className: "Resource", modelProperties: { - enableConnectivityLogs: { - serializedName: "enableConnectivityLogs", + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } }, - enableMessagingLogs: { - serializedName: "enableMessagingLogs", + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } }, - enableLiveTrace: { - serializedName: "enableLiveTrace", + type: { + serializedName: "type", + readOnly: true, type: { name: "String" } @@ -738,93 +695,105 @@ export const DiagnosticConfiguration: coreClient.CompositeMapper = { } }; -export const EventHandlerSettings: coreClient.CompositeMapper = { +export const WebPubSubTlsSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EventHandlerSettings", + className: "WebPubSubTlsSettings", modelProperties: { - items: { - serializedName: "items", + clientCertEnabled: { + defaultValue: true, + serializedName: "clientCertEnabled", type: { - name: "Dictionary", - value: { - type: { - name: "Sequence", - element: { - type: { name: "Composite", className: "EventHandlerTemplate" } - } - } - } + name: "Boolean" } } } } }; -export const EventHandlerTemplate: coreClient.CompositeMapper = { +export const LiveTraceConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EventHandlerTemplate", + className: "LiveTraceConfiguration", modelProperties: { - urlTemplate: { - serializedName: "urlTemplate", - required: true, + enabled: { + defaultValue: "false", + serializedName: "enabled", type: { name: "String" } }, - userEventPattern: { - serializedName: "userEventPattern", + categories: { + serializedName: "categories", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LiveTraceCategory" + } + } } - }, - systemEventPattern: { - serializedName: "systemEventPattern", + } + } + } +}; + +export const LiveTraceCategory: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LiveTraceCategory", + modelProperties: { + name: { + serializedName: "name", type: { name: "String" } }, - auth: { - serializedName: "auth", + enabled: { + serializedName: "enabled", type: { - name: "Composite", - className: "UpstreamAuthSettings" + name: "String" } } } } }; -export const UpstreamAuthSettings: coreClient.CompositeMapper = { +export const ResourceLogConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpstreamAuthSettings", + className: "ResourceLogConfiguration", modelProperties: { - type: { - serializedName: "type", - type: { - name: "String" - } - }, - managedIdentity: { - serializedName: "managedIdentity", + categories: { + serializedName: "categories", type: { - name: "Composite", - className: "ManagedIdentitySettings" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceLogCategory" + } + } } } } } }; -export const ManagedIdentitySettings: coreClient.CompositeMapper = { +export const ResourceLogCategory: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedIdentitySettings", + className: "ResourceLogCategory", modelProperties: { - resource: { - serializedName: "resource", + name: { + serializedName: "name", + type: { + name: "String" + } + }, + enabled: { + serializedName: "enabled", type: { name: "String" } @@ -962,6 +931,139 @@ export const UserAssignedIdentityProperty: coreClient.CompositeMapper = { } }; +export const WebPubSubHubList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WebPubSubHubList", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WebPubSubHub" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const WebPubSubHubProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WebPubSubHubProperties", + modelProperties: { + eventHandlers: { + serializedName: "eventHandlers", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EventHandler" + } + } + } + }, + anonymousConnectPolicy: { + defaultValue: "deny", + serializedName: "anonymousConnectPolicy", + type: { + name: "String" + } + } + } + } +}; + +export const EventHandler: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EventHandler", + modelProperties: { + urlTemplate: { + serializedName: "urlTemplate", + required: true, + type: { + name: "String" + } + }, + userEventPattern: { + serializedName: "userEventPattern", + type: { + name: "String" + } + }, + systemEvents: { + serializedName: "systemEvents", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + auth: { + serializedName: "auth", + type: { + name: "Composite", + className: "UpstreamAuthSettings" + } + } + } + } +}; + +export const UpstreamAuthSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UpstreamAuthSettings", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "String" + } + }, + managedIdentity: { + serializedName: "managedIdentity", + type: { + name: "Composite", + className: "ManagedIdentitySettings" + } + } + } + } +}; + +export const ManagedIdentitySettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedIdentitySettings", + modelProperties: { + resource: { + serializedName: "resource", + type: { + name: "String" + } + } + } + } +}; + export const WebPubSubKeys: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1140,48 +1242,27 @@ export const SharedPrivateLinkResourceList: coreClient.CompositeMapper = { } }; -export const TrackedResource: coreClient.CompositeMapper = { +export const SkuList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TrackedResource", + className: "SkuList", modelProperties: { - ...Resource.type.modelProperties, - location: { - serializedName: "location", - type: { - name: "String" - } - }, - tags: { - serializedName: "tags", + value: { + serializedName: "value", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Sku" + } + } } - } - } - } -}; - -export const ProxyResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProxyResource", - modelProperties: { - ...Resource.type.modelProperties - } - } -}; - -export const PrivateEndpointACL: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpointACL", - modelProperties: { - ...NetworkACL.type.modelProperties, - name: { - serializedName: "name", - required: true, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -1190,146 +1271,129 @@ export const PrivateEndpointACL: coreClient.CompositeMapper = { } }; -export const WebPubSubResource: coreClient.CompositeMapper = { +export const Sku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WebPubSubResource", + className: "Sku", modelProperties: { - ...TrackedResource.type.modelProperties, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "ResourceSku" - } - }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ManagedIdentity" - } - }, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", + resourceType: { + serializedName: "resourceType", readOnly: true, type: { name: "String" } }, - externalIP: { - serializedName: "properties.externalIP", - readOnly: true, + sku: { + serializedName: "sku", type: { - name: "String" + name: "Composite", + className: "ResourceSku" } }, - hostName: { - serializedName: "properties.hostName", - readOnly: true, + capacity: { + serializedName: "capacity", type: { - name: "String" + name: "Composite", + className: "SkuCapacity" } - }, - publicPort: { - serializedName: "properties.publicPort", + } + } + } +}; + +export const SkuCapacity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SkuCapacity", + modelProperties: { + minimum: { + serializedName: "minimum", readOnly: true, type: { name: "Number" } }, - serverPort: { - serializedName: "properties.serverPort", + maximum: { + serializedName: "maximum", readOnly: true, type: { name: "Number" } }, - version: { - serializedName: "properties.version", + default: { + serializedName: "default", readOnly: true, type: { - name: "String" + name: "Number" } }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", + allowedValues: { + serializedName: "allowedValues", readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "PrivateEndpointConnection" + name: "Number" } } } }, - sharedPrivateLinkResources: { - serializedName: "properties.sharedPrivateLinkResources", + scaleType: { + serializedName: "scaleType", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SharedPrivateLinkResource" - } - } - } - }, - tls: { - serializedName: "properties.tls", - type: { - name: "Composite", - className: "WebPubSubTlsSettings" - } - }, - diagnosticConfiguration: { - serializedName: "properties.diagnosticConfiguration", - type: { - name: "Composite", - className: "DiagnosticConfiguration" - } - }, - eventHandler: { - serializedName: "properties.eventHandler", - type: { - name: "Composite", - className: "EventHandlerSettings" - } - }, - networkACLs: { - serializedName: "properties.networkACLs", - type: { - name: "Composite", - className: "WebPubSubNetworkACLs" + name: "String" } - }, - publicNetworkAccess: { - defaultValue: "Enabled", - serializedName: "properties.publicNetworkAccess", + } + } + } +}; + +export const ProxyResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties + } + } +}; + +export const TrackedResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TrackedResource", + modelProperties: { + ...Resource.type.modelProperties, + location: { + serializedName: "location", type: { name: "String" } }, - disableLocalAuth: { - serializedName: "properties.disableLocalAuth", + tags: { + serializedName: "tags", type: { - name: "Boolean" + name: "Dictionary", + value: { type: { name: "String" } } } - }, - disableAadAuth: { - serializedName: "properties.disableAadAuth", + } + } + } +}; + +export const PrivateEndpointACL: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointACL", + modelProperties: { + ...NetworkACL.type.modelProperties, + name: { + serializedName: "name", + required: true, type: { - name: "Boolean" + name: "String" } } } @@ -1363,6 +1427,18 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { className: "PrivateEndpoint" } }, + groupIds: { + serializedName: "properties.groupIds", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, privateLinkServiceConnectionState: { serializedName: "properties.privateLinkServiceConnectionState", type: { @@ -1423,6 +1499,30 @@ export const SharedPrivateLinkResource: coreClient.CompositeMapper = { } }; +export const WebPubSubHub: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WebPubSubHub", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "WebPubSubHubProperties" + } + } + } + } +}; + export const PrivateLinkResource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1472,3 +1572,158 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { } } }; + +export const WebPubSubResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WebPubSubResource", + modelProperties: { + ...TrackedResource.type.modelProperties, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "ResourceSku" + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedIdentity" + } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + externalIP: { + serializedName: "properties.externalIP", + readOnly: true, + type: { + name: "String" + } + }, + hostName: { + serializedName: "properties.hostName", + readOnly: true, + type: { + name: "String" + } + }, + publicPort: { + serializedName: "properties.publicPort", + readOnly: true, + type: { + name: "Number" + } + }, + serverPort: { + serializedName: "properties.serverPort", + readOnly: true, + type: { + name: "Number" + } + }, + version: { + serializedName: "properties.version", + readOnly: true, + type: { + name: "String" + } + }, + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } + } + }, + sharedPrivateLinkResources: { + serializedName: "properties.sharedPrivateLinkResources", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharedPrivateLinkResource" + } + } + } + }, + tls: { + serializedName: "properties.tls", + type: { + name: "Composite", + className: "WebPubSubTlsSettings" + } + }, + hostNamePrefix: { + serializedName: "properties.hostNamePrefix", + readOnly: true, + type: { + name: "String" + } + }, + liveTraceConfiguration: { + serializedName: "properties.liveTraceConfiguration", + type: { + name: "Composite", + className: "LiveTraceConfiguration" + } + }, + resourceLogConfiguration: { + serializedName: "properties.resourceLogConfiguration", + type: { + name: "Composite", + className: "ResourceLogConfiguration" + } + }, + networkACLs: { + serializedName: "properties.networkACLs", + type: { + name: "Composite", + className: "WebPubSubNetworkACLs" + } + }, + publicNetworkAccess: { + defaultValue: "Enabled", + serializedName: "properties.publicNetworkAccess", + type: { + name: "String" + } + }, + disableLocalAuth: { + defaultValue: false, + serializedName: "properties.disableLocalAuth", + type: { + name: "Boolean" + } + }, + disableAadAuth: { + defaultValue: false, + serializedName: "properties.disableAadAuth", + type: { + name: "Boolean" + } + } + } + } +}; diff --git a/sdk/web-pubsub/arm-webpubsub/src/models/parameters.ts b/sdk/web-pubsub/arm-webpubsub/src/models/parameters.ts index 638e909af1f5..086f27bd8546 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/models/parameters.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/models/parameters.ts @@ -15,6 +15,7 @@ import { NameAvailabilityParameters as NameAvailabilityParametersMapper, WebPubSubResource as WebPubSubResourceMapper, RegenerateKeyParameters as RegenerateKeyParametersMapper, + WebPubSubHub as WebPubSubHubMapper, PrivateEndpointConnection as PrivateEndpointConnectionMapper, SharedPrivateLinkResource as SharedPrivateLinkResourceMapper } from "../models/mappers"; @@ -46,7 +47,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2021-06-01-preview", + defaultValue: "2021-10-01", isConstant: true, serializedName: "api-version", type: { @@ -138,6 +139,22 @@ export const parameters2: OperationParameter = { mapper: RegenerateKeyParametersMapper }; +export const hubName: OperationURLParameter = { + parameterPath: "hubName", + mapper: { + serializedName: "hubName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters3: OperationParameter = { + parameterPath: "parameters", + mapper: WebPubSubHubMapper +}; + export const privateEndpointConnectionName: OperationURLParameter = { parameterPath: "privateEndpointConnectionName", mapper: { @@ -149,7 +166,7 @@ export const privateEndpointConnectionName: OperationURLParameter = { } }; -export const parameters3: OperationParameter = { +export const parameters4: OperationParameter = { parameterPath: "parameters", mapper: PrivateEndpointConnectionMapper }; @@ -165,7 +182,7 @@ export const sharedPrivateLinkResourceName: OperationURLParameter = { } }; -export const parameters4: OperationParameter = { +export const parameters5: OperationParameter = { parameterPath: "parameters", mapper: SharedPrivateLinkResourceMapper }; diff --git a/sdk/web-pubsub/arm-webpubsub/src/operations/index.ts b/sdk/web-pubsub/arm-webpubsub/src/operations/index.ts index c58c45c8e58c..90539aef2838 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/operations/index.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/operations/index.ts @@ -9,6 +9,7 @@ export * from "./operations"; export * from "./webPubSub"; export * from "./usages"; +export * from "./webPubSubHubs"; export * from "./webPubSubPrivateEndpointConnections"; export * from "./webPubSubPrivateLinkResources"; export * from "./webPubSubSharedPrivateLinkResources"; diff --git a/sdk/web-pubsub/arm-webpubsub/src/operations/operations.ts b/sdk/web-pubsub/arm-webpubsub/src/operations/operations.ts index 69568fbde442..009a033f6feb 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/operations/operations.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/operations/operations.ts @@ -6,13 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { Operations } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { WebPubSubManagementClientContext } from "../webPubSubManagementClientContext"; +import { WebPubSubManagementClient } from "../webPubSubManagementClient"; import { Operation, OperationsListNextOptionalParams, @@ -22,15 +21,15 @@ import { } from "../models"; /// -/** Class representing a Operations. */ +/** Class containing Operations operations. */ export class OperationsImpl implements Operations { - private readonly client: WebPubSubManagementClientContext; + private readonly client: WebPubSubManagementClient; /** * Initialize a new instance of the class Operations class. * @param client Reference to the service client */ - constructor(client: WebPubSubManagementClientContext) { + constructor(client: WebPubSubManagementClient) { this.client = client; } diff --git a/sdk/web-pubsub/arm-webpubsub/src/operations/usages.ts b/sdk/web-pubsub/arm-webpubsub/src/operations/usages.ts index 59ad6b40e401..d2adf3014cb2 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/operations/usages.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/operations/usages.ts @@ -6,13 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { Usages } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { WebPubSubManagementClientContext } from "../webPubSubManagementClientContext"; +import { WebPubSubManagementClient } from "../webPubSubManagementClient"; import { SignalRServiceUsage, UsagesListNextOptionalParams, @@ -22,15 +21,15 @@ import { } from "../models"; /// -/** Class representing a Usages. */ +/** Class containing Usages operations. */ export class UsagesImpl implements Usages { - private readonly client: WebPubSubManagementClientContext; + private readonly client: WebPubSubManagementClient; /** * Initialize a new instance of the class Usages class. * @param client Reference to the service client */ - constructor(client: WebPubSubManagementClientContext) { + constructor(client: WebPubSubManagementClient) { this.client = client; } diff --git a/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSub.ts b/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSub.ts index e1f664dfb8c2..8c0313e37243 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSub.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSub.ts @@ -6,13 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { WebPubSub } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { WebPubSubManagementClientContext } from "../webPubSubManagementClientContext"; +import { WebPubSubManagementClient } from "../webPubSubManagementClient"; import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; import { LroImpl } from "../lroImpl"; import { @@ -39,20 +38,22 @@ import { WebPubSubRegenerateKeyOptionalParams, WebPubSubRegenerateKeyResponse, WebPubSubRestartOptionalParams, + WebPubSubListSkusOptionalParams, + WebPubSubListSkusResponse, WebPubSubListBySubscriptionNextResponse, WebPubSubListByResourceGroupNextResponse } from "../models"; /// -/** Class representing a WebPubSub. */ +/** Class containing WebPubSub operations. */ export class WebPubSubImpl implements WebPubSub { - private readonly client: WebPubSubManagementClientContext; + private readonly client: WebPubSubManagementClient; /** * Initialize a new instance of the class WebPubSub class. * @param client Reference to the service client */ - constructor(client: WebPubSubManagementClientContext) { + constructor(client: WebPubSubManagementClient) { this.client = client; } @@ -678,6 +679,24 @@ export class WebPubSubImpl implements WebPubSub { return poller.pollUntilDone(); } + /** + * List all available skus of the resource. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param resourceName The name of the resource. + * @param options The options parameters. + */ + listSkus( + resourceGroupName: string, + resourceName: string, + options?: WebPubSubListSkusOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, resourceName, options }, + listSkusOperationSpec + ); + } + /** * ListBySubscriptionNext * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. @@ -964,6 +983,28 @@ const restartOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const listSkusOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/skus", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SkuList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceName + ], + headerParameters: [Parameters.accept], + serializer +}; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", diff --git a/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubHubs.ts b/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubHubs.ts new file mode 100644 index 000000000000..6e2ef6cc66b5 --- /dev/null +++ b/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubHubs.ts @@ -0,0 +1,472 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { WebPubSubHubs } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { WebPubSubManagementClient } from "../webPubSubManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + WebPubSubHub, + WebPubSubHubsListNextOptionalParams, + WebPubSubHubsListOptionalParams, + WebPubSubHubsListResponse, + WebPubSubHubsGetOptionalParams, + WebPubSubHubsGetResponse, + WebPubSubHubsCreateOrUpdateOptionalParams, + WebPubSubHubsCreateOrUpdateResponse, + WebPubSubHubsDeleteOptionalParams, + WebPubSubHubsListNextResponse +} from "../models"; + +/// +/** Class containing WebPubSubHubs operations. */ +export class WebPubSubHubsImpl implements WebPubSubHubs { + private readonly client: WebPubSubManagementClient; + + /** + * Initialize a new instance of the class WebPubSubHubs class. + * @param client Reference to the service client + */ + constructor(client: WebPubSubManagementClient) { + this.client = client; + } + + /** + * List hub settings. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param resourceName The name of the resource. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + resourceName: string, + options?: WebPubSubHubsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, resourceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, resourceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + resourceName: string, + options?: WebPubSubHubsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, resourceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + resourceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + resourceName: string, + options?: WebPubSubHubsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + resourceName, + options + )) { + yield* page; + } + } + + /** + * List hub settings. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param resourceName The name of the resource. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + resourceName: string, + options?: WebPubSubHubsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, resourceName, options }, + listOperationSpec + ); + } + + /** + * Get a hub setting. + * @param hubName The hub name. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param resourceName The name of the resource. + * @param options The options parameters. + */ + get( + hubName: string, + resourceGroupName: string, + resourceName: string, + options?: WebPubSubHubsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { hubName, resourceGroupName, resourceName, options }, + getOperationSpec + ); + } + + /** + * Create or update a hub setting. + * @param hubName The hub name. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param resourceName The name of the resource. + * @param parameters The resource of WebPubSubHub and its properties + * @param options The options parameters. + */ + async beginCreateOrUpdate( + hubName: string, + resourceGroupName: string, + resourceName: string, + parameters: WebPubSubHub, + options?: WebPubSubHubsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + WebPubSubHubsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { hubName, resourceGroupName, resourceName, parameters, options }, + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Create or update a hub setting. + * @param hubName The hub name. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param resourceName The name of the resource. + * @param parameters The resource of WebPubSubHub and its properties + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + hubName: string, + resourceGroupName: string, + resourceName: string, + parameters: WebPubSubHub, + options?: WebPubSubHubsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + hubName, + resourceGroupName, + resourceName, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Delete a hub setting. + * @param hubName The hub name. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param resourceName The name of the resource. + * @param options The options parameters. + */ + async beginDelete( + hubName: string, + resourceGroupName: string, + resourceName: string, + options?: WebPubSubHubsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { hubName, resourceGroupName, resourceName, options }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Delete a hub setting. + * @param hubName The hub name. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param resourceName The name of the resource. + * @param options The options parameters. + */ + async beginDeleteAndWait( + hubName: string, + resourceGroupName: string, + resourceName: string, + options?: WebPubSubHubsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + hubName, + resourceGroupName, + resourceName, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param resourceName The name of the resource. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + resourceName: string, + nextLink: string, + options?: WebPubSubHubsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, resourceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/hubs", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WebPubSubHubList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/hubs/{hubName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WebPubSubHub + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceName, + Parameters.hubName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/hubs/{hubName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.WebPubSubHub + }, + 201: { + bodyMapper: Mappers.WebPubSubHub + }, + 202: { + bodyMapper: Mappers.WebPubSubHub + }, + 204: { + bodyMapper: Mappers.WebPubSubHub + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters3, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceName, + Parameters.hubName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/hubs/{hubName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceName, + Parameters.hubName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WebPubSubHubList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.nextLink, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubPrivateEndpointConnections.ts b/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubPrivateEndpointConnections.ts index f365b9c1e009..5e4acef4fb34 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubPrivateEndpointConnections.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubPrivateEndpointConnections.ts @@ -6,13 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { WebPubSubPrivateEndpointConnections } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { WebPubSubManagementClientContext } from "../webPubSubManagementClientContext"; +import { WebPubSubManagementClient } from "../webPubSubManagementClient"; import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; import { LroImpl } from "../lroImpl"; import { @@ -29,16 +28,16 @@ import { } from "../models"; /// -/** Class representing a WebPubSubPrivateEndpointConnections. */ +/** Class containing WebPubSubPrivateEndpointConnections operations. */ export class WebPubSubPrivateEndpointConnectionsImpl implements WebPubSubPrivateEndpointConnections { - private readonly client: WebPubSubManagementClientContext; + private readonly client: WebPubSubManagementClient; /** * Initialize a new instance of the class WebPubSubPrivateEndpointConnections class. * @param client Reference to the service client */ - constructor(client: WebPubSubManagementClientContext) { + constructor(client: WebPubSubManagementClient) { this.client = client; } @@ -345,7 +344,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters3, + requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubPrivateLinkResources.ts b/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubPrivateLinkResources.ts index 10063c0e9f0a..83a81b7ee9a4 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubPrivateLinkResources.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubPrivateLinkResources.ts @@ -6,13 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { WebPubSubPrivateLinkResources } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { WebPubSubManagementClientContext } from "../webPubSubManagementClientContext"; +import { WebPubSubManagementClient } from "../webPubSubManagementClient"; import { PrivateLinkResource, WebPubSubPrivateLinkResourcesListNextOptionalParams, @@ -22,16 +21,16 @@ import { } from "../models"; /// -/** Class representing a WebPubSubPrivateLinkResources. */ +/** Class containing WebPubSubPrivateLinkResources operations. */ export class WebPubSubPrivateLinkResourcesImpl implements WebPubSubPrivateLinkResources { - private readonly client: WebPubSubManagementClientContext; + private readonly client: WebPubSubManagementClient; /** * Initialize a new instance of the class WebPubSubPrivateLinkResources class. * @param client Reference to the service client */ - constructor(client: WebPubSubManagementClientContext) { + constructor(client: WebPubSubManagementClient) { this.client = client; } diff --git a/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubSharedPrivateLinkResources.ts b/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubSharedPrivateLinkResources.ts index 37b36901ba12..fc1f643e2460 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubSharedPrivateLinkResources.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/operations/webPubSubSharedPrivateLinkResources.ts @@ -6,13 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { WebPubSubSharedPrivateLinkResources } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { WebPubSubManagementClientContext } from "../webPubSubManagementClientContext"; +import { WebPubSubManagementClient } from "../webPubSubManagementClient"; import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; import { LroImpl } from "../lroImpl"; import { @@ -29,16 +28,16 @@ import { } from "../models"; /// -/** Class representing a WebPubSubSharedPrivateLinkResources. */ +/** Class containing WebPubSubSharedPrivateLinkResources operations. */ export class WebPubSubSharedPrivateLinkResourcesImpl implements WebPubSubSharedPrivateLinkResources { - private readonly client: WebPubSubManagementClientContext; + private readonly client: WebPubSubManagementClient; /** * Initialize a new instance of the class WebPubSubSharedPrivateLinkResources class. * @param client Reference to the service client */ - constructor(client: WebPubSubManagementClientContext) { + constructor(client: WebPubSubManagementClient) { this.client = client; } @@ -431,7 +430,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters4, + requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/index.ts b/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/index.ts index c58c45c8e58c..90539aef2838 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/index.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/index.ts @@ -9,6 +9,7 @@ export * from "./operations"; export * from "./webPubSub"; export * from "./usages"; +export * from "./webPubSubHubs"; export * from "./webPubSubPrivateEndpointConnections"; export * from "./webPubSubPrivateLinkResources"; export * from "./webPubSubSharedPrivateLinkResources"; diff --git a/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/operations.ts b/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/operations.ts index 51a1e8cf1150..df52586abc39 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/operations.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/operations.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { Operation, OperationsListOptionalParams } from "../models"; diff --git a/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/usages.ts b/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/usages.ts index 2645af372f28..e7c4264b6f2d 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/usages.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/usages.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SignalRServiceUsage, UsagesListOptionalParams } from "../models"; diff --git a/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSub.ts b/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSub.ts index 4000f1902b0f..21f581dd26f4 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSub.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSub.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { @@ -28,7 +27,9 @@ import { RegenerateKeyParameters, WebPubSubRegenerateKeyOptionalParams, WebPubSubRegenerateKeyResponse, - WebPubSubRestartOptionalParams + WebPubSubRestartOptionalParams, + WebPubSubListSkusOptionalParams, + WebPubSubListSkusResponse } from "../models"; /// @@ -235,4 +236,16 @@ export interface WebPubSub { resourceName: string, options?: WebPubSubRestartOptionalParams ): Promise; + /** + * List all available skus of the resource. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param resourceName The name of the resource. + * @param options The options parameters. + */ + listSkus( + resourceGroupName: string, + resourceName: string, + options?: WebPubSubListSkusOptionalParams + ): Promise; } diff --git a/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubHubs.ts b/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubHubs.ts new file mode 100644 index 000000000000..e6383858b0bd --- /dev/null +++ b/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubHubs.ts @@ -0,0 +1,115 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + WebPubSubHub, + WebPubSubHubsListOptionalParams, + WebPubSubHubsGetOptionalParams, + WebPubSubHubsGetResponse, + WebPubSubHubsCreateOrUpdateOptionalParams, + WebPubSubHubsCreateOrUpdateResponse, + WebPubSubHubsDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a WebPubSubHubs. */ +export interface WebPubSubHubs { + /** + * List hub settings. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param resourceName The name of the resource. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + resourceName: string, + options?: WebPubSubHubsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get a hub setting. + * @param hubName The hub name. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param resourceName The name of the resource. + * @param options The options parameters. + */ + get( + hubName: string, + resourceGroupName: string, + resourceName: string, + options?: WebPubSubHubsGetOptionalParams + ): Promise; + /** + * Create or update a hub setting. + * @param hubName The hub name. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param resourceName The name of the resource. + * @param parameters The resource of WebPubSubHub and its properties + * @param options The options parameters. + */ + beginCreateOrUpdate( + hubName: string, + resourceGroupName: string, + resourceName: string, + parameters: WebPubSubHub, + options?: WebPubSubHubsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + WebPubSubHubsCreateOrUpdateResponse + > + >; + /** + * Create or update a hub setting. + * @param hubName The hub name. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param resourceName The name of the resource. + * @param parameters The resource of WebPubSubHub and its properties + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + hubName: string, + resourceGroupName: string, + resourceName: string, + parameters: WebPubSubHub, + options?: WebPubSubHubsCreateOrUpdateOptionalParams + ): Promise; + /** + * Delete a hub setting. + * @param hubName The hub name. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param resourceName The name of the resource. + * @param options The options parameters. + */ + beginDelete( + hubName: string, + resourceGroupName: string, + resourceName: string, + options?: WebPubSubHubsDeleteOptionalParams + ): Promise, void>>; + /** + * Delete a hub setting. + * @param hubName The hub name. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param resourceName The name of the resource. + * @param options The options parameters. + */ + beginDeleteAndWait( + hubName: string, + resourceGroupName: string, + resourceName: string, + options?: WebPubSubHubsDeleteOptionalParams + ): Promise; +} diff --git a/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubPrivateEndpointConnections.ts b/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubPrivateEndpointConnections.ts index 388ecf904e9c..85a2e61751c3 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubPrivateEndpointConnections.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubPrivateEndpointConnections.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubPrivateLinkResources.ts b/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubPrivateLinkResources.ts index 4ae869303f0a..6a4d1c5832d7 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubPrivateLinkResources.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubPrivateLinkResources.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PrivateLinkResource, diff --git a/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubSharedPrivateLinkResources.ts b/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubSharedPrivateLinkResources.ts index 52310153551a..9fda4cd90b29 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubSharedPrivateLinkResources.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/operationsInterfaces/webPubSubSharedPrivateLinkResources.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/web-pubsub/arm-webpubsub/src/webPubSubManagementClient.ts b/sdk/web-pubsub/arm-webpubsub/src/webPubSubManagementClient.ts index 7ce6b459d83e..af2243c598f4 100644 --- a/sdk/web-pubsub/arm-webpubsub/src/webPubSubManagementClient.ts +++ b/sdk/web-pubsub/arm-webpubsub/src/webPubSubManagementClient.ts @@ -6,11 +6,13 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import * as coreClient from "@azure/core-client"; import * as coreAuth from "@azure/core-auth"; import { OperationsImpl, WebPubSubImpl, UsagesImpl, + WebPubSubHubsImpl, WebPubSubPrivateEndpointConnectionsImpl, WebPubSubPrivateLinkResourcesImpl, WebPubSubSharedPrivateLinkResourcesImpl @@ -19,14 +21,18 @@ import { Operations, WebPubSub, Usages, + WebPubSubHubs, WebPubSubPrivateEndpointConnections, WebPubSubPrivateLinkResources, WebPubSubSharedPrivateLinkResources } from "./operationsInterfaces"; -import { WebPubSubManagementClientContext } from "./webPubSubManagementClientContext"; import { WebPubSubManagementClientOptionalParams } from "./models"; -export class WebPubSubManagementClient extends WebPubSubManagementClientContext { +export class WebPubSubManagementClient extends coreClient.ServiceClient { + $host: string; + apiVersion: string; + subscriptionId: string; + /** * Initializes a new instance of the WebPubSubManagementClient class. * @param credentials Subscription credentials which uniquely identify client subscription. @@ -39,10 +45,50 @@ export class WebPubSubManagementClient extends WebPubSubManagementClientContext subscriptionId: string, options?: WebPubSubManagementClientOptionalParams ) { - super(credentials, subscriptionId, options); + if (credentials === undefined) { + throw new Error("'credentials' cannot be null"); + } + if (subscriptionId === undefined) { + throw new Error("'subscriptionId' cannot be null"); + } + + // Initializing default values for options + if (!options) { + options = {}; + } + const defaults: WebPubSubManagementClientOptionalParams = { + requestContentType: "application/json; charset=utf-8", + credential: credentials + }; + + const packageDetails = `azsdk-js-arm-webpubsub/1.0.0`; + const userAgentPrefix = + options.userAgentOptions && options.userAgentOptions.userAgentPrefix + ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` + : `${packageDetails}`; + + if (!options.credentialScopes) { + options.credentialScopes = ["https://management.azure.com/.default"]; + } + const optionsWithDefaults = { + ...defaults, + ...options, + userAgentOptions: { + userAgentPrefix + }, + baseUri: options.endpoint || "https://management.azure.com" + }; + super(optionsWithDefaults); + // Parameter assignments + this.subscriptionId = subscriptionId; + + // Assigning values to Constant parameters + this.$host = options.$host || "https://management.azure.com"; + this.apiVersion = options.apiVersion || "2021-10-01"; this.operations = new OperationsImpl(this); this.webPubSub = new WebPubSubImpl(this); this.usages = new UsagesImpl(this); + this.webPubSubHubs = new WebPubSubHubsImpl(this); this.webPubSubPrivateEndpointConnections = new WebPubSubPrivateEndpointConnectionsImpl( this ); @@ -57,6 +103,7 @@ export class WebPubSubManagementClient extends WebPubSubManagementClientContext operations: Operations; webPubSub: WebPubSub; usages: Usages; + webPubSubHubs: WebPubSubHubs; webPubSubPrivateEndpointConnections: WebPubSubPrivateEndpointConnections; webPubSubPrivateLinkResources: WebPubSubPrivateLinkResources; webPubSubSharedPrivateLinkResources: WebPubSubSharedPrivateLinkResources; diff --git a/sdk/web-pubsub/arm-webpubsub/src/webPubSubManagementClientContext.ts b/sdk/web-pubsub/arm-webpubsub/src/webPubSubManagementClientContext.ts deleted file mode 100644 index 9b573407a891..000000000000 --- a/sdk/web-pubsub/arm-webpubsub/src/webPubSubManagementClientContext.ts +++ /dev/null @@ -1,71 +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 * as coreClient from "@azure/core-client"; -import * as coreAuth from "@azure/core-auth"; -import { WebPubSubManagementClientOptionalParams } from "./models"; - -export class WebPubSubManagementClientContext extends coreClient.ServiceClient { - $host: string; - apiVersion: string; - subscriptionId: string; - - /** - * Initializes a new instance of the WebPubSubManagementClientContext class. - * @param credentials Subscription credentials which uniquely identify client subscription. - * @param subscriptionId Gets subscription Id which uniquely identify the Microsoft Azure subscription. - * The subscription ID forms part of the URI for every service call. - * @param options The parameter options - */ - constructor( - credentials: coreAuth.TokenCredential, - subscriptionId: string, - options?: WebPubSubManagementClientOptionalParams - ) { - if (credentials === undefined) { - throw new Error("'credentials' cannot be null"); - } - if (subscriptionId === undefined) { - throw new Error("'subscriptionId' cannot be null"); - } - - // Initializing default values for options - if (!options) { - options = {}; - } - const defaults: WebPubSubManagementClientOptionalParams = { - requestContentType: "application/json; charset=utf-8", - credential: credentials - }; - - const packageDetails = `azsdk-js-arm-webpubsub/1.0.0-beta.1`; - const userAgentPrefix = - options.userAgentOptions && options.userAgentOptions.userAgentPrefix - ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` - : `${packageDetails}`; - - if (!options.credentialScopes) { - options.credentialScopes = ["https://management.azure.com/.default"]; - } - const optionsWithDefaults = { - ...defaults, - ...options, - userAgentOptions: { - userAgentPrefix - }, - baseUri: options.endpoint || "https://management.azure.com" - }; - super(optionsWithDefaults); - // Parameter assignments - this.subscriptionId = subscriptionId; - - // Assigning values to Constant parameters - this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2021-06-01-preview"; - } -} diff --git a/sdk/web-pubsub/arm-webpubsub/test/sampleTest.ts b/sdk/web-pubsub/arm-webpubsub/test/sampleTest.ts new file mode 100644 index 000000000000..7ed89b043e1b --- /dev/null +++ b/sdk/web-pubsub/arm-webpubsub/test/sampleTest.ts @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + env, + record, + RecorderEnvironmentSetup, + Recorder +} from "@azure-tools/test-recorder"; +import * as assert from "assert"; + +const recorderEnvSetup: RecorderEnvironmentSetup = { + replaceableVariables: { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" + }, + customizationsOnRecordings: [ + (recording: any): any => + recording.replace( + /"access_token":"[^"]*"/g, + `"access_token":"access_token"` + ) + ], + queryParametersToSkip: [] +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function() { + recorder = record(this, recorderEnvSetup); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/web-pubsub/arm-webpubsub/tsconfig.json b/sdk/web-pubsub/arm-webpubsub/tsconfig.json index 1755ff4179ec..6e3251194117 100644 --- a/sdk/web-pubsub/arm-webpubsub/tsconfig.json +++ b/sdk/web-pubsub/arm-webpubsub/tsconfig.json @@ -11,9 +11,9 @@ "forceConsistentCasingInFileNames": true, "lib": ["es6", "dom"], "declaration": true, - "outDir": "./esm", + "outDir": "./dist-esm", "importHelpers": true }, - "include": ["./src/**/*.ts"], + "include": ["./src/**/*.ts", "./test/**/*.ts"], "exclude": ["node_modules"] }